configure revision e6bced22
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xkbprint 1.0.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/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/xkbprint/-/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='xkbprint' 614PACKAGE_TARNAME='xkbprint' 615PACKAGE_VERSION='1.0.6' 616PACKAGE_STRING='xkbprint 1.0.6' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbprint/-/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 657XKBPRINT_LIBS 658XKBPRINT_CFLAGS 659MAN_SUBSTS 660XORG_MAN_PAGE 661ADMIN_MAN_DIR 662DRIVER_MAN_DIR 663MISC_MAN_DIR 664FILE_MAN_DIR 665LIB_MAN_DIR 666APP_MAN_DIR 667ADMIN_MAN_SUFFIX 668DRIVER_MAN_SUFFIX 669MISC_MAN_SUFFIX 670FILE_MAN_SUFFIX 671LIB_MAN_SUFFIX 672APP_MAN_SUFFIX 673SED 674host_os 675host_vendor 676host_cpu 677host 678build_os 679build_vendor 680build_cpu 681build 682INSTALL_CMD 683PKG_CONFIG_LIBDIR 684PKG_CONFIG_PATH 685PKG_CONFIG 686CHANGELOG_CMD 687STRICT_CFLAGS 688CWARNFLAGS 689BASE_CFLAGS 690AM_BACKSLASH 691AM_DEFAULT_VERBOSITY 692AM_DEFAULT_V 693AM_V 694CSCOPE 695ETAGS 696CTAGS 697am__fastdepCC_FALSE 698am__fastdepCC_TRUE 699CCDEPMODE 700am__nodep 701AMDEPBACKSLASH 702AMDEP_FALSE 703AMDEP_TRUE 704am__include 705DEPDIR 706am__untar 707am__tar 708AMTAR 709am__leading_dot 710SET_MAKE 711AWK 712mkdir_p 713MKDIR_P 714INSTALL_STRIP_PROGRAM 715STRIP 716install_sh 717MAKEINFO 718AUTOHEADER 719AUTOMAKE 720AUTOCONF 721ACLOCAL 722VERSION 723PACKAGE 724CYGPATH_W 725am__isrc 726INSTALL_DATA 727INSTALL_SCRIPT 728INSTALL_PROGRAM 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755runstatedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL 775am__quote' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_dependency_tracking 780enable_silent_rules 781enable_selective_werror 782enable_strict_compilation 783' 784 ac_precious_vars='build_alias 785host_alias 786target_alias 787CC 788CFLAGS 789LDFLAGS 790LIBS 791CPPFLAGS 792PKG_CONFIG 793PKG_CONFIG_PATH 794PKG_CONFIG_LIBDIR 795XKBPRINT_CFLAGS 796XKBPRINT_LIBS' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 835runstatedir='${localstatedir}/run' 836includedir='${prefix}/include' 837oldincludedir='/usr/include' 838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839infodir='${datarootdir}/info' 840htmldir='${docdir}' 841dvidir='${docdir}' 842pdfdir='${docdir}' 843psdir='${docdir}' 844libdir='${exec_prefix}/lib' 845localedir='${datarootdir}/locale' 846mandir='${datarootdir}/man' 847 848ac_prev= 849ac_dashdash= 850for ac_option 851do 852 # If the previous option needs an argument, assign it. 853 if test -n "$ac_prev"; then 854 eval $ac_prev=\$ac_option 855 ac_prev= 856 continue 857 fi 858 859 case $ac_option in 860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 861 *=) ac_optarg= ;; 862 *) ac_optarg=yes ;; 863 esac 864 865 case $ac_dashdash$ac_option in 866 --) 867 ac_dashdash=yes ;; 868 869 -bindir | --bindir | --bindi | --bind | --bin | --bi) 870 ac_prev=bindir ;; 871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 872 bindir=$ac_optarg ;; 873 874 -build | --build | --buil | --bui | --bu) 875 ac_prev=build_alias ;; 876 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 877 build_alias=$ac_optarg ;; 878 879 -cache-file | --cache-file | --cache-fil | --cache-fi \ 880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 881 ac_prev=cache_file ;; 882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 884 cache_file=$ac_optarg ;; 885 886 --config-cache | -C) 887 cache_file=config.cache ;; 888 889 -datadir | --datadir | --datadi | --datad) 890 ac_prev=datadir ;; 891 -datadir=* | --datadir=* | --datadi=* | --datad=*) 892 datadir=$ac_optarg ;; 893 894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895 | --dataroo | --dataro | --datar) 896 ac_prev=datarootdir ;; 897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899 datarootdir=$ac_optarg ;; 900 901 -disable-* | --disable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: \`$ac_useropt'" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=no ;; 916 917 -docdir | --docdir | --docdi | --doc | --do) 918 ac_prev=docdir ;; 919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920 docdir=$ac_optarg ;; 921 922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923 ac_prev=dvidir ;; 924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925 dvidir=$ac_optarg ;; 926 927 -enable-* | --enable-*) 928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 929 # Reject names that are not valid shell variable names. 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931 as_fn_error $? "invalid feature name: \`$ac_useropt'" 932 ac_useropt_orig=$ac_useropt 933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 934 case $ac_user_opts in 935 *" 936"enable_$ac_useropt" 937"*) ;; 938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939 ac_unrecognized_sep=', ';; 940 esac 941 eval enable_$ac_useropt=\$ac_optarg ;; 942 943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 945 | --exec | --exe | --ex) 946 ac_prev=exec_prefix ;; 947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 949 | --exec=* | --exe=* | --ex=*) 950 exec_prefix=$ac_optarg ;; 951 952 -gas | --gas | --ga | --g) 953 # Obsolete; use --with-gas. 954 with_gas=yes ;; 955 956 -help | --help | --hel | --he | -h) 957 ac_init_help=long ;; 958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 959 ac_init_help=recursive ;; 960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 961 ac_init_help=short ;; 962 963 -host | --host | --hos | --ho) 964 ac_prev=host_alias ;; 965 -host=* | --host=* | --hos=* | --ho=*) 966 host_alias=$ac_optarg ;; 967 968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969 ac_prev=htmldir ;; 970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971 | --ht=*) 972 htmldir=$ac_optarg ;; 973 974 -includedir | --includedir | --includedi | --included | --include \ 975 | --includ | --inclu | --incl | --inc) 976 ac_prev=includedir ;; 977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 978 | --includ=* | --inclu=* | --incl=* | --inc=*) 979 includedir=$ac_optarg ;; 980 981 -infodir | --infodir | --infodi | --infod | --info | --inf) 982 ac_prev=infodir ;; 983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 984 infodir=$ac_optarg ;; 985 986 -libdir | --libdir | --libdi | --libd) 987 ac_prev=libdir ;; 988 -libdir=* | --libdir=* | --libdi=* | --libd=*) 989 libdir=$ac_optarg ;; 990 991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 992 | --libexe | --libex | --libe) 993 ac_prev=libexecdir ;; 994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 995 | --libexe=* | --libex=* | --libe=*) 996 libexecdir=$ac_optarg ;; 997 998 -localedir | --localedir | --localedi | --localed | --locale) 999 ac_prev=localedir ;; 1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001 localedir=$ac_optarg ;; 1002 1003 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004 | --localstate | --localstat | --localsta | --localst | --locals) 1005 ac_prev=localstatedir ;; 1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008 localstatedir=$ac_optarg ;; 1009 1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011 ac_prev=mandir ;; 1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013 mandir=$ac_optarg ;; 1014 1015 -nfp | --nfp | --nf) 1016 # Obsolete; use --without-fp. 1017 with_fp=no ;; 1018 1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020 | --no-cr | --no-c | -n) 1021 no_create=yes ;; 1022 1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025 no_recursion=yes ;; 1026 1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029 | --oldin | --oldi | --old | --ol | --o) 1030 ac_prev=oldincludedir ;; 1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034 oldincludedir=$ac_optarg ;; 1035 1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037 ac_prev=prefix ;; 1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039 prefix=$ac_optarg ;; 1040 1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042 | --program-pre | --program-pr | --program-p) 1043 ac_prev=program_prefix ;; 1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046 program_prefix=$ac_optarg ;; 1047 1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049 | --program-suf | --program-su | --program-s) 1050 ac_prev=program_suffix ;; 1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053 program_suffix=$ac_optarg ;; 1054 1055 -program-transform-name | --program-transform-name \ 1056 | --program-transform-nam | --program-transform-na \ 1057 | --program-transform-n | --program-transform- \ 1058 | --program-transform | --program-transfor \ 1059 | --program-transfo | --program-transf \ 1060 | --program-trans | --program-tran \ 1061 | --progr-tra | --program-tr | --program-t) 1062 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1071 1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073 ac_prev=pdfdir ;; 1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075 pdfdir=$ac_optarg ;; 1076 1077 -psdir | --psdir | --psdi | --psd | --ps) 1078 ac_prev=psdir ;; 1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080 psdir=$ac_optarg ;; 1081 1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083 | -silent | --silent | --silen | --sile | --sil) 1084 silent=yes ;; 1085 1086 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1087 | --runstate | --runstat | --runsta | --runst | --runs \ 1088 | --run | --ru | --r) 1089 ac_prev=runstatedir ;; 1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1092 | --run=* | --ru=* | --r=*) 1093 runstatedir=$ac_optarg ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: \`$ac_useropt'" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: \`$ac_useropt'" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=no ;; 1171 1172 --x) 1173 # Obsolete; use --with-x. 1174 with_x=yes ;; 1175 1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177 | --x-incl | --x-inc | --x-in | --x-i) 1178 ac_prev=x_includes ;; 1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181 x_includes=$ac_optarg ;; 1182 1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185 ac_prev=x_libraries ;; 1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188 x_libraries=$ac_optarg ;; 1189 1190 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1191Try \`$0 --help' for more information" 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 case $ac_envvar in #( 1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1200 esac 1201 eval $ac_envvar=\$ac_optarg 1202 export $ac_envvar ;; 1203 1204 *) 1205 # FIXME: should be removed in autoconf 3.0. 1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210 ;; 1211 1212 esac 1213done 1214 1215if test -n "$ac_prev"; then 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217 as_fn_error $? "missing argument to $ac_option" 1218fi 1219 1220if test -n "$ac_unrecognized_opts"; then 1221 case $enable_option_checking in 1222 no) ;; 1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225 esac 1226fi 1227 1228# Check all directory arguments for consistency. 1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230 datadir sysconfdir sharedstatedir localstatedir includedir \ 1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232 libdir localedir mandir runstatedir 1233do 1234 eval ac_val=\$$ac_var 1235 # Remove trailing slashes. 1236 case $ac_val in 1237 */ ) 1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239 eval $ac_var=\$ac_val;; 1240 esac 1241 # Be sure to have absolute directory names. 1242 case $ac_val in 1243 [\\/$]* | ?:[\\/]* ) continue;; 1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245 esac 1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247done 1248 1249# There might be people who depend on the old broken behavior: `$host' 1250# used to hold the argument of --host etc. 1251# FIXME: To remove some day. 1252build=$build_alias 1253host=$host_alias 1254target=$target_alias 1255 1256# FIXME: To remove some day. 1257if test "x$host_alias" != x; then 1258 if test "x$build_alias" = x; then 1259 cross_compiling=maybe 1260 elif test "x$build_alias" != "x$host_alias"; then 1261 cross_compiling=yes 1262 fi 1263fi 1264 1265ac_tool_prefix= 1266test -n "$host_alias" && ac_tool_prefix=$host_alias- 1267 1268test "$silent" = yes && exec 6>/dev/null 1269 1270 1271ac_pwd=`pwd` && test -n "$ac_pwd" && 1272ac_ls_di=`ls -di .` && 1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274 as_fn_error $? "working directory cannot be determined" 1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276 as_fn_error $? "pwd does not report name of working directory" 1277 1278 1279# Find the source files, if location was not specified. 1280if test -z "$srcdir"; then 1281 ac_srcdir_defaulted=yes 1282 # Try the directory containing this script, then the parent directory. 1283 ac_confdir=`$as_dirname -- "$as_myself" || 1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285 X"$as_myself" : 'X\(//\)[^/]' \| \ 1286 X"$as_myself" : 'X\(//\)$' \| \ 1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288printf "%s\n" X"$as_myself" | 1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)[^/].*/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\).*/{ 1302 s//\1/ 1303 q 1304 } 1305 s/.*/./; q'` 1306 srcdir=$ac_confdir 1307 if test ! -r "$srcdir/$ac_unique_file"; then 1308 srcdir=.. 1309 fi 1310else 1311 ac_srcdir_defaulted=no 1312fi 1313if test ! -r "$srcdir/$ac_unique_file"; then 1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316fi 1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1318ac_abs_confdir=`( 1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320 pwd)` 1321# When building in place, set srcdir=. 1322if test "$ac_abs_confdir" = "$ac_pwd"; then 1323 srcdir=. 1324fi 1325# Remove unnecessary trailing slashes from srcdir. 1326# Double slashes in file names in object file debugging info 1327# mess up M-x gdb in Emacs. 1328case $srcdir in 1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330esac 1331for ac_var in $ac_precious_vars; do 1332 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_env_${ac_var}_value=\$${ac_var} 1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336done 1337 1338# 1339# Report the --help message. 1340# 1341if test "$ac_init_help" = "long"; then 1342 # Omit some internal or obsolete options to make the list less imposing. 1343 # This message is too long to be a string in the A/UX 3.1 sh. 1344 cat <<_ACEOF 1345\`configure' configures xkbprint 1.0.6 to adapt to many kinds of systems. 1346 1347Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352Defaults for the options are specified in brackets. 1353 1354Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print \`checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for \`--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1364 1365Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371By default, \`make install' will install all the files in 1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1373an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1374for instance \`--prefix=\$HOME'. 1375 1376For better control, use the options below. 1377 1378Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbprint] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399_ACEOF 1400 1401 cat <<\_ACEOF 1402 1403Program names: 1404 --program-prefix=PREFIX prepend PREFIX to installed program names 1405 --program-suffix=SUFFIX append SUFFIX to installed program names 1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407 1408System types: 1409 --build=BUILD configure for building on BUILD [guessed] 1410 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411_ACEOF 1412fi 1413 1414if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of xkbprint 1.0.6:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --enable-silent-rules less verbose build output (undo: "make V=1") 1429 --disable-silent-rules verbose build output (undo: "make V=0") 1430 --disable-selective-werror 1431 Turn off selective compiler errors. (default: 1432 enabled) 1433 --enable-strict-compilation 1434 Enable all warnings from compiler and make them 1435 errors (default: disabled) 1436 1437Some influential environment variables: 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 PKG_CONFIG path to pkg-config utility 1446 PKG_CONFIG_PATH 1447 directories to add to pkg-config's search path 1448 PKG_CONFIG_LIBDIR 1449 path overriding pkg-config's built-in search path 1450 XKBPRINT_CFLAGS 1451 C compiler flags for XKBPRINT, overriding pkg-config 1452 XKBPRINT_LIBS 1453 linker flags for XKBPRINT, overriding pkg-config 1454 1455Use these variables to override the choices made by `configure' or to help 1456it to find libraries and programs with nonstandard names/locations. 1457 1458Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>. 1459_ACEOF 1460ac_status=$? 1461fi 1462 1463if test "$ac_init_help" = "recursive"; then 1464 # If there are subdirs, report their specific --help. 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1466 test -d "$ac_dir" || 1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1468 continue 1469 ac_builddir=. 1470 1471case "$ac_dir" in 1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473*) 1474 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1475 # A ".." for each directory in $ac_dir_suffix. 1476 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1477 case $ac_top_builddir_sub in 1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1480 esac ;; 1481esac 1482ac_abs_top_builddir=$ac_pwd 1483ac_abs_builddir=$ac_pwd$ac_dir_suffix 1484# for backward compatibility: 1485ac_top_builddir=$ac_top_build_prefix 1486 1487case $srcdir in 1488 .) # We are building in place. 1489 ac_srcdir=. 1490 ac_top_srcdir=$ac_top_builddir_sub 1491 ac_abs_top_srcdir=$ac_pwd ;; 1492 [\\/]* | ?:[\\/]* ) # Absolute name. 1493 ac_srcdir=$srcdir$ac_dir_suffix; 1494 ac_top_srcdir=$srcdir 1495 ac_abs_top_srcdir=$srcdir ;; 1496 *) # Relative name. 1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1498 ac_top_srcdir=$ac_top_build_prefix$srcdir 1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1500esac 1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1502 1503 cd "$ac_dir" || { ac_status=$?; continue; } 1504 # Check for configure.gnu first; this name is used for a wrapper for 1505 # Metaconfig's "Configure" on case-insensitive file systems. 1506 if test -f "$ac_srcdir/configure.gnu"; then 1507 echo && 1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1509 elif test -f "$ac_srcdir/configure"; then 1510 echo && 1511 $SHELL "$ac_srcdir/configure" --help=recursive 1512 else 1513 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1514 fi || ac_status=$? 1515 cd "$ac_pwd" || { ac_status=$?; break; } 1516 done 1517fi 1518 1519test -n "$ac_init_help" && exit $ac_status 1520if $ac_init_version; then 1521 cat <<\_ACEOF 1522xkbprint configure 1.0.6 1523generated by GNU Autoconf 2.71 1524 1525Copyright (C) 2021 Free Software Foundation, Inc. 1526This configure script is free software; the Free Software Foundation 1527gives unlimited permission to copy, distribute and modify it. 1528_ACEOF 1529 exit 1530fi 1531 1532## ------------------------ ## 1533## Autoconf initialization. ## 1534## ------------------------ ## 1535 1536# ac_fn_c_try_compile LINENO 1537# -------------------------- 1538# Try to compile conftest.$ac_ext, and return whether this succeeded. 1539ac_fn_c_try_compile () 1540{ 1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 rm -f conftest.$ac_objext conftest.beam 1543 if { { ac_try="$ac_compile" 1544case "(($ac_try" in 1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1546 *) ac_try_echo=$ac_try;; 1547esac 1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1549printf "%s\n" "$ac_try_echo"; } >&5 1550 (eval "$ac_compile") 2>conftest.err 1551 ac_status=$? 1552 if test -s conftest.err; then 1553 grep -v '^ *+' conftest.err >conftest.er1 1554 cat conftest.er1 >&5 1555 mv -f conftest.er1 conftest.err 1556 fi 1557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1558 test $ac_status = 0; } && { 1559 test -z "$ac_c_werror_flag" || 1560 test ! -s conftest.err 1561 } && test -s conftest.$ac_objext 1562then : 1563 ac_retval=0 1564else $as_nop 1565 printf "%s\n" "$as_me: failed program was:" >&5 1566sed 's/^/| /' conftest.$ac_ext >&5 1567 1568 ac_retval=1 1569fi 1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1571 as_fn_set_status $ac_retval 1572 1573} # ac_fn_c_try_compile 1574 1575# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1576# ------------------------------------------------------- 1577# Tests whether HEADER exists and can be compiled using the include files in 1578# INCLUDES, setting the cache variable VAR accordingly. 1579ac_fn_c_check_header_compile () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1583printf %s "checking for $2... " >&6; } 1584if eval test \${$3+y} 1585then : 1586 printf %s "(cached) " >&6 1587else $as_nop 1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1589/* end confdefs.h. */ 1590$4 1591#include <$2> 1592_ACEOF 1593if ac_fn_c_try_compile "$LINENO" 1594then : 1595 eval "$3=yes" 1596else $as_nop 1597 eval "$3=no" 1598fi 1599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1600fi 1601eval ac_res=\$$3 1602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1603printf "%s\n" "$ac_res" >&6; } 1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1605 1606} # ac_fn_c_check_header_compile 1607 1608# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1609# ------------------------------------------------------------------ 1610# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1611# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1612ac_fn_check_decl () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 as_decl_name=`echo $2|sed 's/ *(.*//'` 1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1617printf %s "checking whether $as_decl_name is declared... " >&6; } 1618if eval test \${$3+y} 1619then : 1620 printf %s "(cached) " >&6 1621else $as_nop 1622 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1623 eval ac_save_FLAGS=\$$6 1624 as_fn_append $6 " $5" 1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1626/* end confdefs.h. */ 1627$4 1628int 1629main (void) 1630{ 1631#ifndef $as_decl_name 1632#ifdef __cplusplus 1633 (void) $as_decl_use; 1634#else 1635 (void) $as_decl_name; 1636#endif 1637#endif 1638 1639 ; 1640 return 0; 1641} 1642_ACEOF 1643if ac_fn_c_try_compile "$LINENO" 1644then : 1645 eval "$3=yes" 1646else $as_nop 1647 eval "$3=no" 1648fi 1649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1650 eval $6=\$ac_save_FLAGS 1651 1652fi 1653eval ac_res=\$$3 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655printf "%s\n" "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658} # ac_fn_check_decl 1659 1660# ac_fn_c_try_link LINENO 1661# ----------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_link () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673printf "%s\n" "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 } 1689then : 1690 ac_retval=0 1691else $as_nop 1692 printf "%s\n" "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 1696fi 1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1699 # interfere with the next link command; also delete a directory that is 1700 # left behind by Apple's compiler. We do this before executing the actions. 1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_link 1706 1707# ac_fn_c_check_func LINENO FUNC VAR 1708# ---------------------------------- 1709# Tests whether FUNC exists, setting the cache variable VAR accordingly 1710ac_fn_c_check_func () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1714printf %s "checking for $2... " >&6; } 1715if eval test \${$3+y} 1716then : 1717 printf %s "(cached) " >&6 1718else $as_nop 1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1720/* end confdefs.h. */ 1721/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1723#define $2 innocuous_$2 1724 1725/* System header to define __stub macros and hopefully few prototypes, 1726 which can conflict with char $2 (); below. */ 1727 1728#include <limits.h> 1729#undef $2 1730 1731/* Override any GCC internal prototype to avoid an error. 1732 Use char because int might match the return type of a GCC 1733 builtin and then its argument prototype would still apply. */ 1734#ifdef __cplusplus 1735extern "C" 1736#endif 1737char $2 (); 1738/* The GNU C library defines this for functions which it implements 1739 to always fail with ENOSYS. Some functions are actually named 1740 something starting with __ and the normal name is an alias. */ 1741#if defined __stub_$2 || defined __stub___$2 1742choke me 1743#endif 1744 1745int 1746main (void) 1747{ 1748return $2 (); 1749 ; 1750 return 0; 1751} 1752_ACEOF 1753if ac_fn_c_try_link "$LINENO" 1754then : 1755 eval "$3=yes" 1756else $as_nop 1757 eval "$3=no" 1758fi 1759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1760 conftest$ac_exeext conftest.$ac_ext 1761fi 1762eval ac_res=\$$3 1763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1764printf "%s\n" "$ac_res" >&6; } 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 1767} # ac_fn_c_check_func 1768ac_configure_args_raw= 1769for ac_arg 1770do 1771 case $ac_arg in 1772 *\'*) 1773 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1774 esac 1775 as_fn_append ac_configure_args_raw " '$ac_arg'" 1776done 1777 1778case $ac_configure_args_raw in 1779 *$as_nl*) 1780 ac_safe_unquote= ;; 1781 *) 1782 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1783 ac_unsafe_a="$ac_unsafe_z#~" 1784 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1785 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1786esac 1787 1788cat >config.log <<_ACEOF 1789This file contains any messages produced by compilers while 1790running configure, to aid debugging if configure makes a mistake. 1791 1792It was created by xkbprint $as_me 1.0.6, which was 1793generated by GNU Autoconf 2.71. Invocation command line was 1794 1795 $ $0$ac_configure_args_raw 1796 1797_ACEOF 1798exec 5>>config.log 1799{ 1800cat <<_ASUNAME 1801## --------- ## 1802## Platform. ## 1803## --------- ## 1804 1805hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1806uname -m = `(uname -m) 2>/dev/null || echo unknown` 1807uname -r = `(uname -r) 2>/dev/null || echo unknown` 1808uname -s = `(uname -s) 2>/dev/null || echo unknown` 1809uname -v = `(uname -v) 2>/dev/null || echo unknown` 1810 1811/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1812/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1813 1814/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1815/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1816/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1817/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1818/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1819/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1820/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1821 1822_ASUNAME 1823 1824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1825for as_dir in $PATH 1826do 1827 IFS=$as_save_IFS 1828 case $as_dir in #((( 1829 '') as_dir=./ ;; 1830 */) ;; 1831 *) as_dir=$as_dir/ ;; 1832 esac 1833 printf "%s\n" "PATH: $as_dir" 1834 done 1835IFS=$as_save_IFS 1836 1837} >&5 1838 1839cat >&5 <<_ACEOF 1840 1841 1842## ----------- ## 1843## Core tests. ## 1844## ----------- ## 1845 1846_ACEOF 1847 1848 1849# Keep a trace of the command line. 1850# Strip out --no-create and --no-recursion so they do not pile up. 1851# Strip out --silent because we don't want to record it for future runs. 1852# Also quote any args containing shell meta-characters. 1853# Make two passes to allow for proper duplicate-argument suppression. 1854ac_configure_args= 1855ac_configure_args0= 1856ac_configure_args1= 1857ac_must_keep_next=false 1858for ac_pass in 1 2 1859do 1860 for ac_arg 1861 do 1862 case $ac_arg in 1863 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1865 | -silent | --silent | --silen | --sile | --sil) 1866 continue ;; 1867 *\'*) 1868 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1869 esac 1870 case $ac_pass in 1871 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1872 2) 1873 as_fn_append ac_configure_args1 " '$ac_arg'" 1874 if test $ac_must_keep_next = true; then 1875 ac_must_keep_next=false # Got value, back to normal. 1876 else 1877 case $ac_arg in 1878 *=* | --config-cache | -C | -disable-* | --disable-* \ 1879 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1880 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1881 | -with-* | --with-* | -without-* | --without-* | --x) 1882 case "$ac_configure_args0 " in 1883 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1884 esac 1885 ;; 1886 -* ) ac_must_keep_next=true ;; 1887 esac 1888 fi 1889 as_fn_append ac_configure_args " '$ac_arg'" 1890 ;; 1891 esac 1892 done 1893done 1894{ ac_configure_args0=; unset ac_configure_args0;} 1895{ ac_configure_args1=; unset ac_configure_args1;} 1896 1897# When interrupted or exit'd, cleanup temporary files, and complete 1898# config.log. We remove comments because anyway the quotes in there 1899# would cause problems or look ugly. 1900# WARNING: Use '\'' to represent an apostrophe within the trap. 1901# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1902trap 'exit_status=$? 1903 # Sanitize IFS. 1904 IFS=" "" $as_nl" 1905 # Save into config.log some information that might help in debugging. 1906 { 1907 echo 1908 1909 printf "%s\n" "## ---------------- ## 1910## Cache variables. ## 1911## ---------------- ##" 1912 echo 1913 # The following way of writing the cache mishandles newlines in values, 1914( 1915 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1916 eval ac_val=\$$ac_var 1917 case $ac_val in #( 1918 *${as_nl}*) 1919 case $ac_var in #( 1920 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1921printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1922 esac 1923 case $ac_var in #( 1924 _ | IFS | as_nl) ;; #( 1925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1926 *) { eval $ac_var=; unset $ac_var;} ;; 1927 esac ;; 1928 esac 1929 done 1930 (set) 2>&1 | 1931 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1932 *${as_nl}ac_space=\ *) 1933 sed -n \ 1934 "s/'\''/'\''\\\\'\'''\''/g; 1935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1936 ;; #( 1937 *) 1938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1939 ;; 1940 esac | 1941 sort 1942) 1943 echo 1944 1945 printf "%s\n" "## ----------------- ## 1946## Output variables. ## 1947## ----------------- ##" 1948 echo 1949 for ac_var in $ac_subst_vars 1950 do 1951 eval ac_val=\$$ac_var 1952 case $ac_val in 1953 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1954 esac 1955 printf "%s\n" "$ac_var='\''$ac_val'\''" 1956 done | sort 1957 echo 1958 1959 if test -n "$ac_subst_files"; then 1960 printf "%s\n" "## ------------------- ## 1961## File substitutions. ## 1962## ------------------- ##" 1963 echo 1964 for ac_var in $ac_subst_files 1965 do 1966 eval ac_val=\$$ac_var 1967 case $ac_val in 1968 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1969 esac 1970 printf "%s\n" "$ac_var='\''$ac_val'\''" 1971 done | sort 1972 echo 1973 fi 1974 1975 if test -s confdefs.h; then 1976 printf "%s\n" "## ----------- ## 1977## confdefs.h. ## 1978## ----------- ##" 1979 echo 1980 cat confdefs.h 1981 echo 1982 fi 1983 test "$ac_signal" != 0 && 1984 printf "%s\n" "$as_me: caught signal $ac_signal" 1985 printf "%s\n" "$as_me: exit $exit_status" 1986 } >&5 1987 rm -f core *.core core.conftest.* && 1988 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1989 exit $exit_status 1990' 0 1991for ac_signal in 1 2 13 15; do 1992 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1993done 1994ac_signal=0 1995 1996# confdefs.h avoids OS command line length limits that DEFS can exceed. 1997rm -f -r conftest* confdefs.h 1998 1999printf "%s\n" "/* confdefs.h */" > confdefs.h 2000 2001# Predefined preprocessor variables. 2002 2003printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2004 2005printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2006 2007printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2008 2009printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2010 2011printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2012 2013printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2014 2015 2016# Let the site file select an alternate cache file if it wants to. 2017# Prefer an explicitly selected file to automatically selected ones. 2018if test -n "$CONFIG_SITE"; then 2019 ac_site_files="$CONFIG_SITE" 2020elif test "x$prefix" != xNONE; then 2021 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2022else 2023 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2024fi 2025 2026for ac_site_file in $ac_site_files 2027do 2028 case $ac_site_file in #( 2029 */*) : 2030 ;; #( 2031 *) : 2032 ac_site_file=./$ac_site_file ;; 2033esac 2034 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2036printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2037 sed 's/^/| /' "$ac_site_file" >&5 2038 . "$ac_site_file" \ 2039 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2040printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2041as_fn_error $? "failed to load site script $ac_site_file 2042See \`config.log' for more details" "$LINENO" 5; } 2043 fi 2044done 2045 2046if test -r "$cache_file"; then 2047 # Some versions of bash will fail to source /dev/null (special files 2048 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2049 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2051printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2052 case $cache_file in 2053 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2054 *) . "./$cache_file";; 2055 esac 2056 fi 2057else 2058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2059printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2060 >$cache_file 2061fi 2062 2063as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2064# Test code for whether the C compiler supports C89 (global declarations) 2065ac_c_conftest_c89_globals=' 2066/* Does the compiler advertise C89 conformance? 2067 Do not test the value of __STDC__, because some compilers set it to 0 2068 while being otherwise adequately conformant. */ 2069#if !defined __STDC__ 2070# error "Compiler does not advertise C89 conformance" 2071#endif 2072 2073#include <stddef.h> 2074#include <stdarg.h> 2075struct stat; 2076/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2077struct buf { int x; }; 2078struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2079static char *e (p, i) 2080 char **p; 2081 int i; 2082{ 2083 return p[i]; 2084} 2085static char *f (char * (*g) (char **, int), char **p, ...) 2086{ 2087 char *s; 2088 va_list v; 2089 va_start (v,p); 2090 s = g (p, va_arg (v,int)); 2091 va_end (v); 2092 return s; 2093} 2094 2095/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2096 function prototypes and stuff, but not \xHH hex character constants. 2097 These do not provoke an error unfortunately, instead are silently treated 2098 as an "x". The following induces an error, until -std is added to get 2099 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2100 array size at least. It is necessary to write \x00 == 0 to get something 2101 that is true only with -std. */ 2102int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2103 2104/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2105 inside strings and character constants. */ 2106#define FOO(x) '\''x'\'' 2107int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2108 2109int test (int i, double x); 2110struct s1 {int (*f) (int a);}; 2111struct s2 {int (*f) (double a);}; 2112int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2113 int, int);' 2114 2115# Test code for whether the C compiler supports C89 (body of main). 2116ac_c_conftest_c89_main=' 2117ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2118' 2119 2120# Test code for whether the C compiler supports C99 (global declarations) 2121ac_c_conftest_c99_globals=' 2122// Does the compiler advertise C99 conformance? 2123#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2124# error "Compiler does not advertise C99 conformance" 2125#endif 2126 2127#include <stdbool.h> 2128extern int puts (const char *); 2129extern int printf (const char *, ...); 2130extern int dprintf (int, const char *, ...); 2131extern void *malloc (size_t); 2132 2133// Check varargs macros. These examples are taken from C99 6.10.3.5. 2134// dprintf is used instead of fprintf to avoid needing to declare 2135// FILE and stderr. 2136#define debug(...) dprintf (2, __VA_ARGS__) 2137#define showlist(...) puts (#__VA_ARGS__) 2138#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2139static void 2140test_varargs_macros (void) 2141{ 2142 int x = 1234; 2143 int y = 5678; 2144 debug ("Flag"); 2145 debug ("X = %d\n", x); 2146 showlist (The first, second, and third items.); 2147 report (x>y, "x is %d but y is %d", x, y); 2148} 2149 2150// Check long long types. 2151#define BIG64 18446744073709551615ull 2152#define BIG32 4294967295ul 2153#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2154#if !BIG_OK 2155 #error "your preprocessor is broken" 2156#endif 2157#if BIG_OK 2158#else 2159 #error "your preprocessor is broken" 2160#endif 2161static long long int bignum = -9223372036854775807LL; 2162static unsigned long long int ubignum = BIG64; 2163 2164struct incomplete_array 2165{ 2166 int datasize; 2167 double data[]; 2168}; 2169 2170struct named_init { 2171 int number; 2172 const wchar_t *name; 2173 double average; 2174}; 2175 2176typedef const char *ccp; 2177 2178static inline int 2179test_restrict (ccp restrict text) 2180{ 2181 // See if C++-style comments work. 2182 // Iterate through items via the restricted pointer. 2183 // Also check for declarations in for loops. 2184 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2185 continue; 2186 return 0; 2187} 2188 2189// Check varargs and va_copy. 2190static bool 2191test_varargs (const char *format, ...) 2192{ 2193 va_list args; 2194 va_start (args, format); 2195 va_list args_copy; 2196 va_copy (args_copy, args); 2197 2198 const char *str = ""; 2199 int number = 0; 2200 float fnumber = 0; 2201 2202 while (*format) 2203 { 2204 switch (*format++) 2205 { 2206 case '\''s'\'': // string 2207 str = va_arg (args_copy, const char *); 2208 break; 2209 case '\''d'\'': // int 2210 number = va_arg (args_copy, int); 2211 break; 2212 case '\''f'\'': // float 2213 fnumber = va_arg (args_copy, double); 2214 break; 2215 default: 2216 break; 2217 } 2218 } 2219 va_end (args_copy); 2220 va_end (args); 2221 2222 return *str && number && fnumber; 2223} 2224' 2225 2226# Test code for whether the C compiler supports C99 (body of main). 2227ac_c_conftest_c99_main=' 2228 // Check bool. 2229 _Bool success = false; 2230 success |= (argc != 0); 2231 2232 // Check restrict. 2233 if (test_restrict ("String literal") == 0) 2234 success = true; 2235 char *restrict newvar = "Another string"; 2236 2237 // Check varargs. 2238 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2239 test_varargs_macros (); 2240 2241 // Check flexible array members. 2242 struct incomplete_array *ia = 2243 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2244 ia->datasize = 10; 2245 for (int i = 0; i < ia->datasize; ++i) 2246 ia->data[i] = i * 1.234; 2247 2248 // Check named initializers. 2249 struct named_init ni = { 2250 .number = 34, 2251 .name = L"Test wide string", 2252 .average = 543.34343, 2253 }; 2254 2255 ni.number = 58; 2256 2257 int dynamic_array[ni.number]; 2258 dynamic_array[0] = argv[0][0]; 2259 dynamic_array[ni.number - 1] = 543; 2260 2261 // work around unused variable warnings 2262 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2263 || dynamic_array[ni.number - 1] != 543); 2264' 2265 2266# Test code for whether the C compiler supports C11 (global declarations) 2267ac_c_conftest_c11_globals=' 2268// Does the compiler advertise C11 conformance? 2269#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2270# error "Compiler does not advertise C11 conformance" 2271#endif 2272 2273// Check _Alignas. 2274char _Alignas (double) aligned_as_double; 2275char _Alignas (0) no_special_alignment; 2276extern char aligned_as_int; 2277char _Alignas (0) _Alignas (int) aligned_as_int; 2278 2279// Check _Alignof. 2280enum 2281{ 2282 int_alignment = _Alignof (int), 2283 int_array_alignment = _Alignof (int[100]), 2284 char_alignment = _Alignof (char) 2285}; 2286_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2287 2288// Check _Noreturn. 2289int _Noreturn does_not_return (void) { for (;;) continue; } 2290 2291// Check _Static_assert. 2292struct test_static_assert 2293{ 2294 int x; 2295 _Static_assert (sizeof (int) <= sizeof (long int), 2296 "_Static_assert does not work in struct"); 2297 long int y; 2298}; 2299 2300// Check UTF-8 literals. 2301#define u8 syntax error! 2302char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2303 2304// Check duplicate typedefs. 2305typedef long *long_ptr; 2306typedef long int *long_ptr; 2307typedef long_ptr long_ptr; 2308 2309// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2310struct anonymous 2311{ 2312 union { 2313 struct { int i; int j; }; 2314 struct { int k; long int l; } w; 2315 }; 2316 int m; 2317} v1; 2318' 2319 2320# Test code for whether the C compiler supports C11 (body of main). 2321ac_c_conftest_c11_main=' 2322 _Static_assert ((offsetof (struct anonymous, i) 2323 == offsetof (struct anonymous, w.k)), 2324 "Anonymous union alignment botch"); 2325 v1.i = 2; 2326 v1.w.k = 5; 2327 ok |= v1.i != 5; 2328' 2329 2330# Test code for whether the C compiler supports C11 (complete). 2331ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2332${ac_c_conftest_c99_globals} 2333${ac_c_conftest_c11_globals} 2334 2335int 2336main (int argc, char **argv) 2337{ 2338 int ok = 0; 2339 ${ac_c_conftest_c89_main} 2340 ${ac_c_conftest_c99_main} 2341 ${ac_c_conftest_c11_main} 2342 return ok; 2343} 2344" 2345 2346# Test code for whether the C compiler supports C99 (complete). 2347ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2348${ac_c_conftest_c99_globals} 2349 2350int 2351main (int argc, char **argv) 2352{ 2353 int ok = 0; 2354 ${ac_c_conftest_c89_main} 2355 ${ac_c_conftest_c99_main} 2356 return ok; 2357} 2358" 2359 2360# Test code for whether the C compiler supports C89 (complete). 2361ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2362 2363int 2364main (int argc, char **argv) 2365{ 2366 int ok = 0; 2367 ${ac_c_conftest_c89_main} 2368 return ok; 2369} 2370" 2371 2372as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2373as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2374as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2375as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2376as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2377as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2378as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2379as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2380as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2381as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2382 2383# Auxiliary files required by this configure script. 2384ac_aux_files="config.guess config.sub missing install-sh compile" 2385 2386# Locations in which to look for auxiliary files. 2387ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2388 2389# Search for a directory containing all of the required auxiliary files, 2390# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2391# If we don't find one directory that contains all the files we need, 2392# we report the set of missing files from the *first* directory in 2393# $ac_aux_dir_candidates and give up. 2394ac_missing_aux_files="" 2395ac_first_candidate=: 2396printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398as_found=false 2399for as_dir in $ac_aux_dir_candidates 2400do 2401 IFS=$as_save_IFS 2402 case $as_dir in #((( 2403 '') as_dir=./ ;; 2404 */) ;; 2405 *) as_dir=$as_dir/ ;; 2406 esac 2407 as_found=: 2408 2409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2410 ac_aux_dir_found=yes 2411 ac_install_sh= 2412 for ac_aux in $ac_aux_files 2413 do 2414 # As a special case, if "install-sh" is required, that requirement 2415 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2416 # and $ac_install_sh is set appropriately for whichever one is found. 2417 if test x"$ac_aux" = x"install-sh" 2418 then 2419 if test -f "${as_dir}install-sh"; then 2420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2421 ac_install_sh="${as_dir}install-sh -c" 2422 elif test -f "${as_dir}install.sh"; then 2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2424 ac_install_sh="${as_dir}install.sh -c" 2425 elif test -f "${as_dir}shtool"; then 2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2427 ac_install_sh="${as_dir}shtool install -c" 2428 else 2429 ac_aux_dir_found=no 2430 if $ac_first_candidate; then 2431 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2432 else 2433 break 2434 fi 2435 fi 2436 else 2437 if test -f "${as_dir}${ac_aux}"; then 2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2439 else 2440 ac_aux_dir_found=no 2441 if $ac_first_candidate; then 2442 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2443 else 2444 break 2445 fi 2446 fi 2447 fi 2448 done 2449 if test "$ac_aux_dir_found" = yes; then 2450 ac_aux_dir="$as_dir" 2451 break 2452 fi 2453 ac_first_candidate=false 2454 2455 as_found=false 2456done 2457IFS=$as_save_IFS 2458if $as_found 2459then : 2460 2461else $as_nop 2462 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2463fi 2464 2465 2466# These three variables are undocumented and unsupported, 2467# and are intended to be withdrawn in a future Autoconf release. 2468# They can cause serious problems if a builder's source tree is in a directory 2469# whose full name contains unusual characters. 2470if test -f "${ac_aux_dir}config.guess"; then 2471 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2472fi 2473if test -f "${ac_aux_dir}config.sub"; then 2474 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2475fi 2476if test -f "$ac_aux_dir/configure"; then 2477 ac_configure="$SHELL ${ac_aux_dir}configure" 2478fi 2479 2480# Check that the precious variables saved in the cache have kept the same 2481# value. 2482ac_cache_corrupted=false 2483for ac_var in $ac_precious_vars; do 2484 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2485 eval ac_new_set=\$ac_env_${ac_var}_set 2486 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2487 eval ac_new_val=\$ac_env_${ac_var}_value 2488 case $ac_old_set,$ac_new_set in 2489 set,) 2490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2491printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2492 ac_cache_corrupted=: ;; 2493 ,set) 2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2495printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2496 ac_cache_corrupted=: ;; 2497 ,);; 2498 *) 2499 if test "x$ac_old_val" != "x$ac_new_val"; then 2500 # differences in whitespace do not lead to failure. 2501 ac_old_val_w=`echo x $ac_old_val` 2502 ac_new_val_w=`echo x $ac_new_val` 2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2505printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2506 ac_cache_corrupted=: 2507 else 2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2509printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2510 eval $ac_var=\$ac_old_val 2511 fi 2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2513printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2515printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2516 fi;; 2517 esac 2518 # Pass precious variables to config.status. 2519 if test "$ac_new_set" = set; then 2520 case $ac_new_val in 2521 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2522 *) ac_arg=$ac_var=$ac_new_val ;; 2523 esac 2524 case " $ac_configure_args " in 2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2526 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2527 esac 2528 fi 2529done 2530if $ac_cache_corrupted; then 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2532printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2534printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2535 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2536 and start over" "$LINENO" 5 2537fi 2538## -------------------- ## 2539## Main body of script. ## 2540## -------------------- ## 2541 2542ac_ext=c 2543ac_cpp='$CPP $CPPFLAGS' 2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2546ac_compiler_gnu=$ac_cv_c_compiler_gnu 2547 2548 2549 2550ac_config_headers="$ac_config_headers config.h" 2551 2552# Needed for asprintf on GNU libc 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564# Expand $ac_aux_dir to an absolute path. 2565am_aux_dir=`cd "$ac_aux_dir" && pwd` 2566 2567ac_ext=c 2568ac_cpp='$CPP $CPPFLAGS' 2569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2571ac_compiler_gnu=$ac_cv_c_compiler_gnu 2572if test -n "$ac_tool_prefix"; then 2573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2574set dummy ${ac_tool_prefix}gcc; ac_word=$2 2575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2576printf %s "checking for $ac_word... " >&6; } 2577if test ${ac_cv_prog_CC+y} 2578then : 2579 printf %s "(cached) " >&6 2580else $as_nop 2581 if test -n "$CC"; then 2582 ac_cv_prog_CC="$CC" # Let the user override the test. 2583else 2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2585for as_dir in $PATH 2586do 2587 IFS=$as_save_IFS 2588 case $as_dir in #((( 2589 '') as_dir=./ ;; 2590 */) ;; 2591 *) as_dir=$as_dir/ ;; 2592 esac 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2595 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605CC=$ac_cv_prog_CC 2606if test -n "$CC"; then 2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2608printf "%s\n" "$CC" >&6; } 2609else 2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611printf "%s\n" "no" >&6; } 2612fi 2613 2614 2615fi 2616if test -z "$ac_cv_prog_CC"; then 2617 ac_ct_CC=$CC 2618 # Extract the first word of "gcc", so it can be a program name with args. 2619set dummy gcc; ac_word=$2 2620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621printf %s "checking for $ac_word... " >&6; } 2622if test ${ac_cv_prog_ac_ct_CC+y} 2623then : 2624 printf %s "(cached) " >&6 2625else $as_nop 2626 if test -n "$ac_ct_CC"; then 2627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2628else 2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2630for as_dir in $PATH 2631do 2632 IFS=$as_save_IFS 2633 case $as_dir in #((( 2634 '') as_dir=./ ;; 2635 */) ;; 2636 *) as_dir=$as_dir/ ;; 2637 esac 2638 for ac_exec_ext in '' $ac_executable_extensions; do 2639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2640 ac_cv_prog_ac_ct_CC="gcc" 2641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2642 break 2 2643 fi 2644done 2645 done 2646IFS=$as_save_IFS 2647 2648fi 2649fi 2650ac_ct_CC=$ac_cv_prog_ac_ct_CC 2651if test -n "$ac_ct_CC"; then 2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2653printf "%s\n" "$ac_ct_CC" >&6; } 2654else 2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2656printf "%s\n" "no" >&6; } 2657fi 2658 2659 if test "x$ac_ct_CC" = x; then 2660 CC="" 2661 else 2662 case $cross_compiling:$ac_tool_warned in 2663yes:) 2664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2665printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2666ac_tool_warned=yes ;; 2667esac 2668 CC=$ac_ct_CC 2669 fi 2670else 2671 CC="$ac_cv_prog_CC" 2672fi 2673 2674if test -z "$CC"; then 2675 if test -n "$ac_tool_prefix"; then 2676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2677set dummy ${ac_tool_prefix}cc; ac_word=$2 2678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2679printf %s "checking for $ac_word... " >&6; } 2680if test ${ac_cv_prog_CC+y} 2681then : 2682 printf %s "(cached) " >&6 2683else $as_nop 2684 if test -n "$CC"; then 2685 ac_cv_prog_CC="$CC" # Let the user override the test. 2686else 2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 case $as_dir in #((( 2692 '') as_dir=./ ;; 2693 */) ;; 2694 *) as_dir=$as_dir/ ;; 2695 esac 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2698 ac_cv_prog_CC="${ac_tool_prefix}cc" 2699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2700 break 2 2701 fi 2702done 2703 done 2704IFS=$as_save_IFS 2705 2706fi 2707fi 2708CC=$ac_cv_prog_CC 2709if test -n "$CC"; then 2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2711printf "%s\n" "$CC" >&6; } 2712else 2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714printf "%s\n" "no" >&6; } 2715fi 2716 2717 2718 fi 2719fi 2720if test -z "$CC"; then 2721 # Extract the first word of "cc", so it can be a program name with args. 2722set dummy cc; ac_word=$2 2723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724printf %s "checking for $ac_word... " >&6; } 2725if test ${ac_cv_prog_CC+y} 2726then : 2727 printf %s "(cached) " >&6 2728else $as_nop 2729 if test -n "$CC"; then 2730 ac_cv_prog_CC="$CC" # Let the user override the test. 2731else 2732 ac_prog_rejected=no 2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2734for as_dir in $PATH 2735do 2736 IFS=$as_save_IFS 2737 case $as_dir in #((( 2738 '') as_dir=./ ;; 2739 */) ;; 2740 *) as_dir=$as_dir/ ;; 2741 esac 2742 for ac_exec_ext in '' $ac_executable_extensions; do 2743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2744 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2745 ac_prog_rejected=yes 2746 continue 2747 fi 2748 ac_cv_prog_CC="cc" 2749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2750 break 2 2751 fi 2752done 2753 done 2754IFS=$as_save_IFS 2755 2756if test $ac_prog_rejected = yes; then 2757 # We found a bogon in the path, so make sure we never use it. 2758 set dummy $ac_cv_prog_CC 2759 shift 2760 if test $# != 0; then 2761 # We chose a different compiler from the bogus one. 2762 # However, it has the same basename, so the bogon will be chosen 2763 # first if we set CC to just the basename; use the full file name. 2764 shift 2765 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2766 fi 2767fi 2768fi 2769fi 2770CC=$ac_cv_prog_CC 2771if test -n "$CC"; then 2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2773printf "%s\n" "$CC" >&6; } 2774else 2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2776printf "%s\n" "no" >&6; } 2777fi 2778 2779 2780fi 2781if test -z "$CC"; then 2782 if test -n "$ac_tool_prefix"; then 2783 for ac_prog in cl.exe 2784 do 2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2786set dummy $ac_tool_prefix$ac_prog; 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_CC+y} 2790then : 2791 printf %s "(cached) " >&6 2792else $as_nop 2793 if test -n "$CC"; then 2794 ac_cv_prog_CC="$CC" # 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_CC="$ac_tool_prefix$ac_prog" 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 2817CC=$ac_cv_prog_CC 2818if test -n "$CC"; then 2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2820printf "%s\n" "$CC" >&6; } 2821else 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823printf "%s\n" "no" >&6; } 2824fi 2825 2826 2827 test -n "$CC" && break 2828 done 2829fi 2830if test -z "$CC"; then 2831 ac_ct_CC=$CC 2832 for ac_prog in cl.exe 2833do 2834 # Extract the first word of "$ac_prog", so it can be a program name with args. 2835set dummy $ac_prog; ac_word=$2 2836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2837printf %s "checking for $ac_word... " >&6; } 2838if test ${ac_cv_prog_ac_ct_CC+y} 2839then : 2840 printf %s "(cached) " >&6 2841else $as_nop 2842 if test -n "$ac_ct_CC"; then 2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2844else 2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846for as_dir in $PATH 2847do 2848 IFS=$as_save_IFS 2849 case $as_dir in #((( 2850 '') as_dir=./ ;; 2851 */) ;; 2852 *) as_dir=$as_dir/ ;; 2853 esac 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2856 ac_cv_prog_ac_ct_CC="$ac_prog" 2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2858 break 2 2859 fi 2860done 2861 done 2862IFS=$as_save_IFS 2863 2864fi 2865fi 2866ac_ct_CC=$ac_cv_prog_ac_ct_CC 2867if test -n "$ac_ct_CC"; then 2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2869printf "%s\n" "$ac_ct_CC" >&6; } 2870else 2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2872printf "%s\n" "no" >&6; } 2873fi 2874 2875 2876 test -n "$ac_ct_CC" && break 2877done 2878 2879 if test "x$ac_ct_CC" = x; then 2880 CC="" 2881 else 2882 case $cross_compiling:$ac_tool_warned in 2883yes:) 2884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2885printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2886ac_tool_warned=yes ;; 2887esac 2888 CC=$ac_ct_CC 2889 fi 2890fi 2891 2892fi 2893if test -z "$CC"; then 2894 if test -n "$ac_tool_prefix"; then 2895 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2896set dummy ${ac_tool_prefix}clang; ac_word=$2 2897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2898printf %s "checking for $ac_word... " >&6; } 2899if test ${ac_cv_prog_CC+y} 2900then : 2901 printf %s "(cached) " >&6 2902else $as_nop 2903 if test -n "$CC"; then 2904 ac_cv_prog_CC="$CC" # Let the user override the test. 2905else 2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2907for as_dir in $PATH 2908do 2909 IFS=$as_save_IFS 2910 case $as_dir in #((( 2911 '') as_dir=./ ;; 2912 */) ;; 2913 *) as_dir=$as_dir/ ;; 2914 esac 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2917 ac_cv_prog_CC="${ac_tool_prefix}clang" 2918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2919 break 2 2920 fi 2921done 2922 done 2923IFS=$as_save_IFS 2924 2925fi 2926fi 2927CC=$ac_cv_prog_CC 2928if test -n "$CC"; then 2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2930printf "%s\n" "$CC" >&6; } 2931else 2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933printf "%s\n" "no" >&6; } 2934fi 2935 2936 2937fi 2938if test -z "$ac_cv_prog_CC"; then 2939 ac_ct_CC=$CC 2940 # Extract the first word of "clang", so it can be a program name with args. 2941set dummy clang; ac_word=$2 2942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2943printf %s "checking for $ac_word... " >&6; } 2944if test ${ac_cv_prog_ac_ct_CC+y} 2945then : 2946 printf %s "(cached) " >&6 2947else $as_nop 2948 if test -n "$ac_ct_CC"; then 2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2950else 2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952for as_dir in $PATH 2953do 2954 IFS=$as_save_IFS 2955 case $as_dir in #((( 2956 '') as_dir=./ ;; 2957 */) ;; 2958 *) as_dir=$as_dir/ ;; 2959 esac 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2962 ac_cv_prog_ac_ct_CC="clang" 2963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2964 break 2 2965 fi 2966done 2967 done 2968IFS=$as_save_IFS 2969 2970fi 2971fi 2972ac_ct_CC=$ac_cv_prog_ac_ct_CC 2973if test -n "$ac_ct_CC"; then 2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2975printf "%s\n" "$ac_ct_CC" >&6; } 2976else 2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978printf "%s\n" "no" >&6; } 2979fi 2980 2981 if test "x$ac_ct_CC" = x; then 2982 CC="" 2983 else 2984 case $cross_compiling:$ac_tool_warned in 2985yes:) 2986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2987printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2988ac_tool_warned=yes ;; 2989esac 2990 CC=$ac_ct_CC 2991 fi 2992else 2993 CC="$ac_cv_prog_CC" 2994fi 2995 2996fi 2997 2998 2999test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3000printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3001as_fn_error $? "no acceptable C compiler found in \$PATH 3002See \`config.log' for more details" "$LINENO" 5; } 3003 3004# Provide some information about the compiler. 3005printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3006set X $ac_compile 3007ac_compiler=$2 3008for ac_option in --version -v -V -qversion -version; do 3009 { { ac_try="$ac_compiler $ac_option >&5" 3010case "(($ac_try" in 3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3012 *) ac_try_echo=$ac_try;; 3013esac 3014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3015printf "%s\n" "$ac_try_echo"; } >&5 3016 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3017 ac_status=$? 3018 if test -s conftest.err; then 3019 sed '10a\ 3020... rest of stderr output deleted ... 3021 10q' conftest.err >conftest.er1 3022 cat conftest.er1 >&5 3023 fi 3024 rm -f conftest.er1 conftest.err 3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3026 test $ac_status = 0; } 3027done 3028 3029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3030/* end confdefs.h. */ 3031 3032int 3033main (void) 3034{ 3035 3036 ; 3037 return 0; 3038} 3039_ACEOF 3040ac_clean_files_save=$ac_clean_files 3041ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3042# Try to create an executable without -o first, disregard a.out. 3043# It will help us diagnose broken compilers, and finding out an intuition 3044# of exeext. 3045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3046printf %s "checking whether the C compiler works... " >&6; } 3047ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3048 3049# The possible output files: 3050ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3051 3052ac_rmfiles= 3053for ac_file in $ac_files 3054do 3055 case $ac_file in 3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3057 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3058 esac 3059done 3060rm -f $ac_rmfiles 3061 3062if { { ac_try="$ac_link_default" 3063case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066esac 3067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3068printf "%s\n" "$ac_try_echo"; } >&5 3069 (eval "$ac_link_default") 2>&5 3070 ac_status=$? 3071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3072 test $ac_status = 0; } 3073then : 3074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3075# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3076# in a Makefile. We should not override ac_cv_exeext if it was cached, 3077# so that the user can short-circuit this test for compilers unknown to 3078# Autoconf. 3079for ac_file in $ac_files '' 3080do 3081 test -f "$ac_file" || continue 3082 case $ac_file in 3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3084 ;; 3085 [ab].out ) 3086 # We found the default executable, but exeext='' is most 3087 # certainly right. 3088 break;; 3089 *.* ) 3090 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3091 then :; else 3092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3093 fi 3094 # We set ac_cv_exeext here because the later test for it is not 3095 # safe: cross compilers may not add the suffix if given an `-o' 3096 # argument, so we may need to know it at that point already. 3097 # Even if this section looks crufty: it has the advantage of 3098 # actually working. 3099 break;; 3100 * ) 3101 break;; 3102 esac 3103done 3104test "$ac_cv_exeext" = no && ac_cv_exeext= 3105 3106else $as_nop 3107 ac_file='' 3108fi 3109if test -z "$ac_file" 3110then : 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3112printf "%s\n" "no" >&6; } 3113printf "%s\n" "$as_me: failed program was:" >&5 3114sed 's/^/| /' conftest.$ac_ext >&5 3115 3116{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3117printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3118as_fn_error 77 "C compiler cannot create executables 3119See \`config.log' for more details" "$LINENO" 5; } 3120else $as_nop 3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3122printf "%s\n" "yes" >&6; } 3123fi 3124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3125printf %s "checking for C compiler default output file name... " >&6; } 3126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3127printf "%s\n" "$ac_file" >&6; } 3128ac_exeext=$ac_cv_exeext 3129 3130rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3131ac_clean_files=$ac_clean_files_save 3132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3133printf %s "checking for suffix of executables... " >&6; } 3134if { { ac_try="$ac_link" 3135case "(($ac_try" in 3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3137 *) ac_try_echo=$ac_try;; 3138esac 3139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3140printf "%s\n" "$ac_try_echo"; } >&5 3141 (eval "$ac_link") 2>&5 3142 ac_status=$? 3143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3144 test $ac_status = 0; } 3145then : 3146 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3147# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3148# work properly (i.e., refer to `conftest.exe'), while it won't with 3149# `rm'. 3150for ac_file in conftest.exe conftest conftest.*; do 3151 test -f "$ac_file" || continue 3152 case $ac_file in 3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3155 break;; 3156 * ) break;; 3157 esac 3158done 3159else $as_nop 3160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3161printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3162as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3163See \`config.log' for more details" "$LINENO" 5; } 3164fi 3165rm -f conftest conftest$ac_cv_exeext 3166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3167printf "%s\n" "$ac_cv_exeext" >&6; } 3168 3169rm -f conftest.$ac_ext 3170EXEEXT=$ac_cv_exeext 3171ac_exeext=$EXEEXT 3172cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3173/* end confdefs.h. */ 3174#include <stdio.h> 3175int 3176main (void) 3177{ 3178FILE *f = fopen ("conftest.out", "w"); 3179 return ferror (f) || fclose (f) != 0; 3180 3181 ; 3182 return 0; 3183} 3184_ACEOF 3185ac_clean_files="$ac_clean_files conftest.out" 3186# Check that the compiler produces executables we can run. If not, either 3187# the compiler is broken, or we cross compile. 3188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3189printf %s "checking whether we are cross compiling... " >&6; } 3190if test "$cross_compiling" != yes; then 3191 { { ac_try="$ac_link" 3192case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195esac 3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3197printf "%s\n" "$ac_try_echo"; } >&5 3198 (eval "$ac_link") 2>&5 3199 ac_status=$? 3200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3201 test $ac_status = 0; } 3202 if { ac_try='./conftest$ac_cv_exeext' 3203 { { case "(($ac_try" in 3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3205 *) ac_try_echo=$ac_try;; 3206esac 3207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3208printf "%s\n" "$ac_try_echo"; } >&5 3209 (eval "$ac_try") 2>&5 3210 ac_status=$? 3211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3212 test $ac_status = 0; }; }; then 3213 cross_compiling=no 3214 else 3215 if test "$cross_compiling" = maybe; then 3216 cross_compiling=yes 3217 else 3218 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3219printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3220as_fn_error 77 "cannot run C compiled programs. 3221If you meant to cross compile, use \`--host'. 3222See \`config.log' for more details" "$LINENO" 5; } 3223 fi 3224 fi 3225fi 3226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3227printf "%s\n" "$cross_compiling" >&6; } 3228 3229rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3230ac_clean_files=$ac_clean_files_save 3231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3232printf %s "checking for suffix of object files... " >&6; } 3233if test ${ac_cv_objext+y} 3234then : 3235 printf %s "(cached) " >&6 3236else $as_nop 3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3238/* end confdefs.h. */ 3239 3240int 3241main (void) 3242{ 3243 3244 ; 3245 return 0; 3246} 3247_ACEOF 3248rm -f conftest.o conftest.obj 3249if { { ac_try="$ac_compile" 3250case "(($ac_try" in 3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3252 *) ac_try_echo=$ac_try;; 3253esac 3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3255printf "%s\n" "$ac_try_echo"; } >&5 3256 (eval "$ac_compile") 2>&5 3257 ac_status=$? 3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3259 test $ac_status = 0; } 3260then : 3261 for ac_file in conftest.o conftest.obj conftest.*; do 3262 test -f "$ac_file" || continue; 3263 case $ac_file in 3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3265 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3266 break;; 3267 esac 3268done 3269else $as_nop 3270 printf "%s\n" "$as_me: failed program was:" >&5 3271sed 's/^/| /' conftest.$ac_ext >&5 3272 3273{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3274printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3275as_fn_error $? "cannot compute suffix of object files: cannot compile 3276See \`config.log' for more details" "$LINENO" 5; } 3277fi 3278rm -f conftest.$ac_cv_objext conftest.$ac_ext 3279fi 3280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3281printf "%s\n" "$ac_cv_objext" >&6; } 3282OBJEXT=$ac_cv_objext 3283ac_objext=$OBJEXT 3284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3285printf %s "checking whether the compiler supports GNU C... " >&6; } 3286if test ${ac_cv_c_compiler_gnu+y} 3287then : 3288 printf %s "(cached) " >&6 3289else $as_nop 3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3291/* end confdefs.h. */ 3292 3293int 3294main (void) 3295{ 3296#ifndef __GNUC__ 3297 choke me 3298#endif 3299 3300 ; 3301 return 0; 3302} 3303_ACEOF 3304if ac_fn_c_try_compile "$LINENO" 3305then : 3306 ac_compiler_gnu=yes 3307else $as_nop 3308 ac_compiler_gnu=no 3309fi 3310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3311ac_cv_c_compiler_gnu=$ac_compiler_gnu 3312 3313fi 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3315printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3316ac_compiler_gnu=$ac_cv_c_compiler_gnu 3317 3318if test $ac_compiler_gnu = yes; then 3319 GCC=yes 3320else 3321 GCC= 3322fi 3323ac_test_CFLAGS=${CFLAGS+y} 3324ac_save_CFLAGS=$CFLAGS 3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3326printf %s "checking whether $CC accepts -g... " >&6; } 3327if test ${ac_cv_prog_cc_g+y} 3328then : 3329 printf %s "(cached) " >&6 3330else $as_nop 3331 ac_save_c_werror_flag=$ac_c_werror_flag 3332 ac_c_werror_flag=yes 3333 ac_cv_prog_cc_g=no 3334 CFLAGS="-g" 3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336/* end confdefs.h. */ 3337 3338int 3339main (void) 3340{ 3341 3342 ; 3343 return 0; 3344} 3345_ACEOF 3346if ac_fn_c_try_compile "$LINENO" 3347then : 3348 ac_cv_prog_cc_g=yes 3349else $as_nop 3350 CFLAGS="" 3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3352/* end confdefs.h. */ 3353 3354int 3355main (void) 3356{ 3357 3358 ; 3359 return 0; 3360} 3361_ACEOF 3362if ac_fn_c_try_compile "$LINENO" 3363then : 3364 3365else $as_nop 3366 ac_c_werror_flag=$ac_save_c_werror_flag 3367 CFLAGS="-g" 3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3369/* end confdefs.h. */ 3370 3371int 3372main (void) 3373{ 3374 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379if ac_fn_c_try_compile "$LINENO" 3380then : 3381 ac_cv_prog_cc_g=yes 3382fi 3383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3384fi 3385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3386fi 3387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3388 ac_c_werror_flag=$ac_save_c_werror_flag 3389fi 3390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3391printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3392if test $ac_test_CFLAGS; then 3393 CFLAGS=$ac_save_CFLAGS 3394elif test $ac_cv_prog_cc_g = yes; then 3395 if test "$GCC" = yes; then 3396 CFLAGS="-g -O2" 3397 else 3398 CFLAGS="-g" 3399 fi 3400else 3401 if test "$GCC" = yes; then 3402 CFLAGS="-O2" 3403 else 3404 CFLAGS= 3405 fi 3406fi 3407ac_prog_cc_stdc=no 3408if test x$ac_prog_cc_stdc = xno 3409then : 3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3411printf %s "checking for $CC option to enable C11 features... " >&6; } 3412if test ${ac_cv_prog_cc_c11+y} 3413then : 3414 printf %s "(cached) " >&6 3415else $as_nop 3416 ac_cv_prog_cc_c11=no 3417ac_save_CC=$CC 3418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419/* end confdefs.h. */ 3420$ac_c_conftest_c11_program 3421_ACEOF 3422for ac_arg in '' -std=gnu11 3423do 3424 CC="$ac_save_CC $ac_arg" 3425 if ac_fn_c_try_compile "$LINENO" 3426then : 3427 ac_cv_prog_cc_c11=$ac_arg 3428fi 3429rm -f core conftest.err conftest.$ac_objext conftest.beam 3430 test "x$ac_cv_prog_cc_c11" != "xno" && break 3431done 3432rm -f conftest.$ac_ext 3433CC=$ac_save_CC 3434fi 3435 3436if test "x$ac_cv_prog_cc_c11" = xno 3437then : 3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3439printf "%s\n" "unsupported" >&6; } 3440else $as_nop 3441 if test "x$ac_cv_prog_cc_c11" = x 3442then : 3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3444printf "%s\n" "none needed" >&6; } 3445else $as_nop 3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3447printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3448 CC="$CC $ac_cv_prog_cc_c11" 3449fi 3450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3451 ac_prog_cc_stdc=c11 3452fi 3453fi 3454if test x$ac_prog_cc_stdc = xno 3455then : 3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3457printf %s "checking for $CC option to enable C99 features... " >&6; } 3458if test ${ac_cv_prog_cc_c99+y} 3459then : 3460 printf %s "(cached) " >&6 3461else $as_nop 3462 ac_cv_prog_cc_c99=no 3463ac_save_CC=$CC 3464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3465/* end confdefs.h. */ 3466$ac_c_conftest_c99_program 3467_ACEOF 3468for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3469do 3470 CC="$ac_save_CC $ac_arg" 3471 if ac_fn_c_try_compile "$LINENO" 3472then : 3473 ac_cv_prog_cc_c99=$ac_arg 3474fi 3475rm -f core conftest.err conftest.$ac_objext conftest.beam 3476 test "x$ac_cv_prog_cc_c99" != "xno" && break 3477done 3478rm -f conftest.$ac_ext 3479CC=$ac_save_CC 3480fi 3481 3482if test "x$ac_cv_prog_cc_c99" = xno 3483then : 3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3485printf "%s\n" "unsupported" >&6; } 3486else $as_nop 3487 if test "x$ac_cv_prog_cc_c99" = x 3488then : 3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3490printf "%s\n" "none needed" >&6; } 3491else $as_nop 3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3493printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3494 CC="$CC $ac_cv_prog_cc_c99" 3495fi 3496 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3497 ac_prog_cc_stdc=c99 3498fi 3499fi 3500if test x$ac_prog_cc_stdc = xno 3501then : 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3503printf %s "checking for $CC option to enable C89 features... " >&6; } 3504if test ${ac_cv_prog_cc_c89+y} 3505then : 3506 printf %s "(cached) " >&6 3507else $as_nop 3508 ac_cv_prog_cc_c89=no 3509ac_save_CC=$CC 3510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3511/* end confdefs.h. */ 3512$ac_c_conftest_c89_program 3513_ACEOF 3514for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3515do 3516 CC="$ac_save_CC $ac_arg" 3517 if ac_fn_c_try_compile "$LINENO" 3518then : 3519 ac_cv_prog_cc_c89=$ac_arg 3520fi 3521rm -f core conftest.err conftest.$ac_objext conftest.beam 3522 test "x$ac_cv_prog_cc_c89" != "xno" && break 3523done 3524rm -f conftest.$ac_ext 3525CC=$ac_save_CC 3526fi 3527 3528if test "x$ac_cv_prog_cc_c89" = xno 3529then : 3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3531printf "%s\n" "unsupported" >&6; } 3532else $as_nop 3533 if test "x$ac_cv_prog_cc_c89" = x 3534then : 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3536printf "%s\n" "none needed" >&6; } 3537else $as_nop 3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3539printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3540 CC="$CC $ac_cv_prog_cc_c89" 3541fi 3542 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3543 ac_prog_cc_stdc=c89 3544fi 3545fi 3546 3547ac_ext=c 3548ac_cpp='$CPP $CPPFLAGS' 3549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3551ac_compiler_gnu=$ac_cv_c_compiler_gnu 3552 3553 3554 ac_ext=c 3555ac_cpp='$CPP $CPPFLAGS' 3556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3558ac_compiler_gnu=$ac_cv_c_compiler_gnu 3559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3560printf %s "checking whether $CC understands -c and -o together... " >&6; } 3561if test ${am_cv_prog_cc_c_o+y} 3562then : 3563 printf %s "(cached) " >&6 3564else $as_nop 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3566/* end confdefs.h. */ 3567 3568int 3569main (void) 3570{ 3571 3572 ; 3573 return 0; 3574} 3575_ACEOF 3576 # Make sure it works both with $CC and with simple cc. 3577 # Following AC_PROG_CC_C_O, we do the test twice because some 3578 # compilers refuse to overwrite an existing .o file with -o, 3579 # though they will create one. 3580 am_cv_prog_cc_c_o=yes 3581 for am_i in 1 2; do 3582 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3583 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3584 ac_status=$? 3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3586 (exit $ac_status); } \ 3587 && test -f conftest2.$ac_objext; then 3588 : OK 3589 else 3590 am_cv_prog_cc_c_o=no 3591 break 3592 fi 3593 done 3594 rm -f core conftest* 3595 unset am_i 3596fi 3597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3598printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3599if test "$am_cv_prog_cc_c_o" != yes; then 3600 # Losing compiler, so override with the script. 3601 # FIXME: It is wrong to rewrite CC. 3602 # But if we don't then we get into trouble of one sort or another. 3603 # A longer-term fix would be to have automake use am__CC in this case, 3604 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3605 CC="$am_aux_dir/compile $CC" 3606fi 3607ac_ext=c 3608ac_cpp='$CPP $CPPFLAGS' 3609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3611ac_compiler_gnu=$ac_cv_c_compiler_gnu 3612 3613 3614 3615ac_header= ac_cache= 3616for ac_item in $ac_header_c_list 3617do 3618 if test $ac_cache; then 3619 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3620 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3621 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3622 fi 3623 ac_header= ac_cache= 3624 elif test $ac_header; then 3625 ac_cache=$ac_item 3626 else 3627 ac_header=$ac_item 3628 fi 3629done 3630 3631 3632 3633 3634 3635 3636 3637 3638if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3639then : 3640 3641printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3642 3643fi 3644 3645 3646 3647 3648 3649 3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3651printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3652if test ${ac_cv_safe_to_define___extensions__+y} 3653then : 3654 printf %s "(cached) " >&6 3655else $as_nop 3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3657/* end confdefs.h. */ 3658 3659# define __EXTENSIONS__ 1 3660 $ac_includes_default 3661int 3662main (void) 3663{ 3664 3665 ; 3666 return 0; 3667} 3668_ACEOF 3669if ac_fn_c_try_compile "$LINENO" 3670then : 3671 ac_cv_safe_to_define___extensions__=yes 3672else $as_nop 3673 ac_cv_safe_to_define___extensions__=no 3674fi 3675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3676fi 3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3678printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3679 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3681printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3682if test ${ac_cv_should_define__xopen_source+y} 3683then : 3684 printf %s "(cached) " >&6 3685else $as_nop 3686 ac_cv_should_define__xopen_source=no 3687 if test $ac_cv_header_wchar_h = yes 3688then : 3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3690/* end confdefs.h. */ 3691 3692 #include <wchar.h> 3693 mbstate_t x; 3694int 3695main (void) 3696{ 3697 3698 ; 3699 return 0; 3700} 3701_ACEOF 3702if ac_fn_c_try_compile "$LINENO" 3703then : 3704 3705else $as_nop 3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3707/* end confdefs.h. */ 3708 3709 #define _XOPEN_SOURCE 500 3710 #include <wchar.h> 3711 mbstate_t x; 3712int 3713main (void) 3714{ 3715 3716 ; 3717 return 0; 3718} 3719_ACEOF 3720if ac_fn_c_try_compile "$LINENO" 3721then : 3722 ac_cv_should_define__xopen_source=yes 3723fi 3724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3725fi 3726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3727fi 3728fi 3729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3730printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3731 3732 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3733 3734 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3735 3736 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3737 3738 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3739 3740 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3741 3742 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3743 3744 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3745 3746 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3747 3748 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3749 3750 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3751 3752 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3753 3754 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3755 3756 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3757 3758 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3759 3760 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3761 3762 if test $ac_cv_header_minix_config_h = yes 3763then : 3764 MINIX=yes 3765 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3766 3767 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3768 3769 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3770 3771else $as_nop 3772 MINIX= 3773fi 3774 if test $ac_cv_safe_to_define___extensions__ = yes 3775then : 3776 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3777 3778fi 3779 if test $ac_cv_should_define__xopen_source = yes 3780then : 3781 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3782 3783fi 3784 3785 3786# Initialize Automake 3787am__api_version='1.16' 3788 3789 3790 # Find a good install program. We prefer a C program (faster), 3791# so one script is as good as another. But avoid the broken or 3792# incompatible versions: 3793# SysV /etc/install, /usr/sbin/install 3794# SunOS /usr/etc/install 3795# IRIX /sbin/install 3796# AIX /bin/install 3797# AmigaOS /C/install, which installs bootblocks on floppy discs 3798# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3799# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3800# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3801# OS/2's system install, which has a completely different semantic 3802# ./install, which can be erroneously created by make from ./install.sh. 3803# Reject install programs that cannot install multiple files. 3804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3805printf %s "checking for a BSD-compatible install... " >&6; } 3806if test -z "$INSTALL"; then 3807if test ${ac_cv_path_install+y} 3808then : 3809 printf %s "(cached) " >&6 3810else $as_nop 3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3812for as_dir in $PATH 3813do 3814 IFS=$as_save_IFS 3815 case $as_dir in #((( 3816 '') as_dir=./ ;; 3817 */) ;; 3818 *) as_dir=$as_dir/ ;; 3819 esac 3820 # Account for fact that we put trailing slashes in our PATH walk. 3821case $as_dir in #(( 3822 ./ | /[cC]/* | \ 3823 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3824 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3825 /usr/ucb/* ) ;; 3826 *) 3827 # OSF1 and SCO ODT 3.0 have their own names for install. 3828 # Don't use installbsd from OSF since it installs stuff as root 3829 # by default. 3830 for ac_prog in ginstall scoinst install; do 3831 for ac_exec_ext in '' $ac_executable_extensions; do 3832 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3833 if test $ac_prog = install && 3834 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3835 # AIX install. It has an incompatible calling convention. 3836 : 3837 elif test $ac_prog = install && 3838 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3839 # program-specific install script used by HP pwplus--don't use. 3840 : 3841 else 3842 rm -rf conftest.one conftest.two conftest.dir 3843 echo one > conftest.one 3844 echo two > conftest.two 3845 mkdir conftest.dir 3846 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3847 test -s conftest.one && test -s conftest.two && 3848 test -s conftest.dir/conftest.one && 3849 test -s conftest.dir/conftest.two 3850 then 3851 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3852 break 3 3853 fi 3854 fi 3855 fi 3856 done 3857 done 3858 ;; 3859esac 3860 3861 done 3862IFS=$as_save_IFS 3863 3864rm -rf conftest.one conftest.two conftest.dir 3865 3866fi 3867 if test ${ac_cv_path_install+y}; then 3868 INSTALL=$ac_cv_path_install 3869 else 3870 # As a last resort, use the slow shell script. Don't cache a 3871 # value for INSTALL within a source directory, because that will 3872 # break other packages using the cache if that directory is 3873 # removed, or if the value is a relative name. 3874 INSTALL=$ac_install_sh 3875 fi 3876fi 3877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3878printf "%s\n" "$INSTALL" >&6; } 3879 3880# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3881# It thinks the first close brace ends the variable substitution. 3882test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3883 3884test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3885 3886test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3887 3888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3889printf %s "checking whether build environment is sane... " >&6; } 3890# Reject unsafe characters in $srcdir or the absolute working directory 3891# name. Accept space and tab only in the latter. 3892am_lf=' 3893' 3894case `pwd` in 3895 *[\\\"\#\$\&\'\`$am_lf]*) 3896 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3897esac 3898case $srcdir in 3899 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3900 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3901esac 3902 3903# Do 'set' in a subshell so we don't clobber the current shell's 3904# arguments. Must try -L first in case configure is actually a 3905# symlink; some systems play weird games with the mod time of symlinks 3906# (eg FreeBSD returns the mod time of the symlink's containing 3907# directory). 3908if ( 3909 am_has_slept=no 3910 for am_try in 1 2; do 3911 echo "timestamp, slept: $am_has_slept" > conftest.file 3912 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3913 if test "$*" = "X"; then 3914 # -L didn't work. 3915 set X `ls -t "$srcdir/configure" conftest.file` 3916 fi 3917 if test "$*" != "X $srcdir/configure conftest.file" \ 3918 && test "$*" != "X conftest.file $srcdir/configure"; then 3919 3920 # If neither matched, then we have a broken ls. This can happen 3921 # if, for instance, CONFIG_SHELL is bash and it inherits a 3922 # broken ls alias from the environment. This has actually 3923 # happened. Such a system could not be considered "sane". 3924 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3925 alias in your environment" "$LINENO" 5 3926 fi 3927 if test "$2" = conftest.file || test $am_try -eq 2; then 3928 break 3929 fi 3930 # Just in case. 3931 sleep 1 3932 am_has_slept=yes 3933 done 3934 test "$2" = conftest.file 3935 ) 3936then 3937 # Ok. 3938 : 3939else 3940 as_fn_error $? "newly created file is older than distributed files! 3941Check your system clock" "$LINENO" 5 3942fi 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3944printf "%s\n" "yes" >&6; } 3945# If we didn't sleep, we still need to ensure time stamps of config.status and 3946# generated files are strictly newer. 3947am_sleep_pid= 3948if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3949 ( sleep 1 ) & 3950 am_sleep_pid=$! 3951fi 3952 3953rm -f conftest.file 3954 3955test "$program_prefix" != NONE && 3956 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3957# Use a double $ so make ignores it. 3958test "$program_suffix" != NONE && 3959 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3960# Double any \ or $. 3961# By default was `s,x,x', remove it if useless. 3962ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3963program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3964 3965 3966 if test x"${MISSING+set}" != xset; then 3967 MISSING="\${SHELL} '$am_aux_dir/missing'" 3968fi 3969# Use eval to expand $SHELL 3970if eval "$MISSING --is-lightweight"; then 3971 am_missing_run="$MISSING " 3972else 3973 am_missing_run= 3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3975printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3976fi 3977 3978if test x"${install_sh+set}" != xset; then 3979 case $am_aux_dir in 3980 *\ * | *\ *) 3981 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3982 *) 3983 install_sh="\${SHELL} $am_aux_dir/install-sh" 3984 esac 3985fi 3986 3987# Installed binaries are usually stripped using 'strip' when the user 3988# run "make install-strip". However 'strip' might not be the right 3989# tool to use in cross-compilation environments, therefore Automake 3990# will honor the 'STRIP' environment variable to overrule this program. 3991if test "$cross_compiling" != no; then 3992 if test -n "$ac_tool_prefix"; then 3993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3994set dummy ${ac_tool_prefix}strip; ac_word=$2 3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3996printf %s "checking for $ac_word... " >&6; } 3997if test ${ac_cv_prog_STRIP+y} 3998then : 3999 printf %s "(cached) " >&6 4000else $as_nop 4001 if test -n "$STRIP"; then 4002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4003else 4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4005for as_dir in $PATH 4006do 4007 IFS=$as_save_IFS 4008 case $as_dir in #((( 4009 '') as_dir=./ ;; 4010 */) ;; 4011 *) as_dir=$as_dir/ ;; 4012 esac 4013 for ac_exec_ext in '' $ac_executable_extensions; do 4014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4015 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4017 break 2 4018 fi 4019done 4020 done 4021IFS=$as_save_IFS 4022 4023fi 4024fi 4025STRIP=$ac_cv_prog_STRIP 4026if test -n "$STRIP"; then 4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4028printf "%s\n" "$STRIP" >&6; } 4029else 4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4031printf "%s\n" "no" >&6; } 4032fi 4033 4034 4035fi 4036if test -z "$ac_cv_prog_STRIP"; then 4037 ac_ct_STRIP=$STRIP 4038 # Extract the first word of "strip", so it can be a program name with args. 4039set dummy strip; ac_word=$2 4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4041printf %s "checking for $ac_word... " >&6; } 4042if test ${ac_cv_prog_ac_ct_STRIP+y} 4043then : 4044 printf %s "(cached) " >&6 4045else $as_nop 4046 if test -n "$ac_ct_STRIP"; then 4047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4048else 4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4050for as_dir in $PATH 4051do 4052 IFS=$as_save_IFS 4053 case $as_dir in #((( 4054 '') as_dir=./ ;; 4055 */) ;; 4056 *) as_dir=$as_dir/ ;; 4057 esac 4058 for ac_exec_ext in '' $ac_executable_extensions; do 4059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4060 ac_cv_prog_ac_ct_STRIP="strip" 4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4062 break 2 4063 fi 4064done 4065 done 4066IFS=$as_save_IFS 4067 4068fi 4069fi 4070ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4071if test -n "$ac_ct_STRIP"; then 4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4073printf "%s\n" "$ac_ct_STRIP" >&6; } 4074else 4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4076printf "%s\n" "no" >&6; } 4077fi 4078 4079 if test "x$ac_ct_STRIP" = x; then 4080 STRIP=":" 4081 else 4082 case $cross_compiling:$ac_tool_warned in 4083yes:) 4084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4085printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4086ac_tool_warned=yes ;; 4087esac 4088 STRIP=$ac_ct_STRIP 4089 fi 4090else 4091 STRIP="$ac_cv_prog_STRIP" 4092fi 4093 4094fi 4095INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4096 4097 4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4099printf %s "checking for a race-free mkdir -p... " >&6; } 4100if test -z "$MKDIR_P"; then 4101 if test ${ac_cv_path_mkdir+y} 4102then : 4103 printf %s "(cached) " >&6 4104else $as_nop 4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4106for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4107do 4108 IFS=$as_save_IFS 4109 case $as_dir in #((( 4110 '') as_dir=./ ;; 4111 */) ;; 4112 *) as_dir=$as_dir/ ;; 4113 esac 4114 for ac_prog in mkdir gmkdir; do 4115 for ac_exec_ext in '' $ac_executable_extensions; do 4116 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4117 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4118 'mkdir ('*'coreutils) '* | \ 4119 'BusyBox '* | \ 4120 'mkdir (fileutils) '4.1*) 4121 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4122 break 3;; 4123 esac 4124 done 4125 done 4126 done 4127IFS=$as_save_IFS 4128 4129fi 4130 4131 test -d ./--version && rmdir ./--version 4132 if test ${ac_cv_path_mkdir+y}; then 4133 MKDIR_P="$ac_cv_path_mkdir -p" 4134 else 4135 # As a last resort, use the slow shell script. Don't cache a 4136 # value for MKDIR_P within a source directory, because that will 4137 # break other packages using the cache if that directory is 4138 # removed, or if the value is a relative name. 4139 MKDIR_P="$ac_install_sh -d" 4140 fi 4141fi 4142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4143printf "%s\n" "$MKDIR_P" >&6; } 4144 4145for ac_prog in gawk mawk nawk awk 4146do 4147 # Extract the first word of "$ac_prog", so it can be a program name with args. 4148set dummy $ac_prog; ac_word=$2 4149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4150printf %s "checking for $ac_word... " >&6; } 4151if test ${ac_cv_prog_AWK+y} 4152then : 4153 printf %s "(cached) " >&6 4154else $as_nop 4155 if test -n "$AWK"; then 4156 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4157else 4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4159for as_dir in $PATH 4160do 4161 IFS=$as_save_IFS 4162 case $as_dir in #((( 4163 '') as_dir=./ ;; 4164 */) ;; 4165 *) as_dir=$as_dir/ ;; 4166 esac 4167 for ac_exec_ext in '' $ac_executable_extensions; do 4168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4169 ac_cv_prog_AWK="$ac_prog" 4170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4171 break 2 4172 fi 4173done 4174 done 4175IFS=$as_save_IFS 4176 4177fi 4178fi 4179AWK=$ac_cv_prog_AWK 4180if test -n "$AWK"; then 4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4182printf "%s\n" "$AWK" >&6; } 4183else 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4185printf "%s\n" "no" >&6; } 4186fi 4187 4188 4189 test -n "$AWK" && break 4190done 4191 4192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4193printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4194set x ${MAKE-make} 4195ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4196if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4197then : 4198 printf %s "(cached) " >&6 4199else $as_nop 4200 cat >conftest.make <<\_ACEOF 4201SHELL = /bin/sh 4202all: 4203 @echo '@@@%%%=$(MAKE)=@@@%%%' 4204_ACEOF 4205# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4206case `${MAKE-make} -f conftest.make 2>/dev/null` in 4207 *@@@%%%=?*=@@@%%%*) 4208 eval ac_cv_prog_make_${ac_make}_set=yes;; 4209 *) 4210 eval ac_cv_prog_make_${ac_make}_set=no;; 4211esac 4212rm -f conftest.make 4213fi 4214if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4216printf "%s\n" "yes" >&6; } 4217 SET_MAKE= 4218else 4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4220printf "%s\n" "no" >&6; } 4221 SET_MAKE="MAKE=${MAKE-make}" 4222fi 4223 4224rm -rf .tst 2>/dev/null 4225mkdir .tst 2>/dev/null 4226if test -d .tst; then 4227 am__leading_dot=. 4228else 4229 am__leading_dot=_ 4230fi 4231rmdir .tst 2>/dev/null 4232 4233DEPDIR="${am__leading_dot}deps" 4234 4235ac_config_commands="$ac_config_commands depfiles" 4236 4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4238printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4239cat > confinc.mk << 'END' 4240am__doit: 4241 @echo this is the am__doit target >confinc.out 4242.PHONY: am__doit 4243END 4244am__include="#" 4245am__quote= 4246# BSD make does it like this. 4247echo '.include "confinc.mk" # ignored' > confmf.BSD 4248# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4249echo 'include confinc.mk # ignored' > confmf.GNU 4250_am_result=no 4251for s in GNU BSD; do 4252 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4253 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4254 ac_status=$? 4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4256 (exit $ac_status); } 4257 case $?:`cat confinc.out 2>/dev/null` in #( 4258 '0:this is the am__doit target') : 4259 case $s in #( 4260 BSD) : 4261 am__include='.include' am__quote='"' ;; #( 4262 *) : 4263 am__include='include' am__quote='' ;; 4264esac ;; #( 4265 *) : 4266 ;; 4267esac 4268 if test "$am__include" != "#"; then 4269 _am_result="yes ($s style)" 4270 break 4271 fi 4272done 4273rm -f confinc.* confmf.* 4274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4275printf "%s\n" "${_am_result}" >&6; } 4276 4277# Check whether --enable-dependency-tracking was given. 4278if test ${enable_dependency_tracking+y} 4279then : 4280 enableval=$enable_dependency_tracking; 4281fi 4282 4283if test "x$enable_dependency_tracking" != xno; then 4284 am_depcomp="$ac_aux_dir/depcomp" 4285 AMDEPBACKSLASH='\' 4286 am__nodep='_no' 4287fi 4288 if test "x$enable_dependency_tracking" != xno; then 4289 AMDEP_TRUE= 4290 AMDEP_FALSE='#' 4291else 4292 AMDEP_TRUE='#' 4293 AMDEP_FALSE= 4294fi 4295 4296 4297# Check whether --enable-silent-rules was given. 4298if test ${enable_silent_rules+y} 4299then : 4300 enableval=$enable_silent_rules; 4301fi 4302 4303case $enable_silent_rules in # ((( 4304 yes) AM_DEFAULT_VERBOSITY=0;; 4305 no) AM_DEFAULT_VERBOSITY=1;; 4306 *) AM_DEFAULT_VERBOSITY=1;; 4307esac 4308am_make=${MAKE-make} 4309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4310printf %s "checking whether $am_make supports nested variables... " >&6; } 4311if test ${am_cv_make_support_nested_variables+y} 4312then : 4313 printf %s "(cached) " >&6 4314else $as_nop 4315 if printf "%s\n" 'TRUE=$(BAR$(V)) 4316BAR0=false 4317BAR1=true 4318V=1 4319am__doit: 4320 @$(TRUE) 4321.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4322 am_cv_make_support_nested_variables=yes 4323else 4324 am_cv_make_support_nested_variables=no 4325fi 4326fi 4327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4328printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4329if test $am_cv_make_support_nested_variables = yes; then 4330 AM_V='$(V)' 4331 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4332else 4333 AM_V=$AM_DEFAULT_VERBOSITY 4334 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4335fi 4336AM_BACKSLASH='\' 4337 4338if test "`cd $srcdir && pwd`" != "`pwd`"; then 4339 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4340 # is not polluted with repeated "-I." 4341 am__isrc=' -I$(srcdir)' 4342 # test to see if srcdir already configured 4343 if test -f $srcdir/config.status; then 4344 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4345 fi 4346fi 4347 4348# test whether we have cygpath 4349if test -z "$CYGPATH_W"; then 4350 if (cygpath --version) >/dev/null 2>/dev/null; then 4351 CYGPATH_W='cygpath -w' 4352 else 4353 CYGPATH_W=echo 4354 fi 4355fi 4356 4357 4358# Define the identity of the package. 4359 PACKAGE='xkbprint' 4360 VERSION='1.0.6' 4361 4362 4363printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4364 4365 4366printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4367 4368# Some tools Automake needs. 4369 4370ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4371 4372 4373AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4374 4375 4376AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4377 4378 4379AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4380 4381 4382MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4383 4384# For better backward compatibility. To be removed once Automake 1.9.x 4385# dies out for good. For more background, see: 4386# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4387# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4388mkdir_p='$(MKDIR_P)' 4389 4390# We need awk for the "check" target (and possibly the TAP driver). The 4391# system "awk" is bad on some platforms. 4392# Always define AMTAR for backward compatibility. Yes, it's still used 4393# in the wild :-( We should find a proper way to deprecate it ... 4394AMTAR='$${TAR-tar}' 4395 4396 4397# We'll loop over all known methods to create a tar archive until one works. 4398_am_tools='gnutar pax cpio none' 4399 4400am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4401 4402 4403 4404 4405 4406depcc="$CC" am_compiler_list= 4407 4408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4409printf %s "checking dependency style of $depcc... " >&6; } 4410if test ${am_cv_CC_dependencies_compiler_type+y} 4411then : 4412 printf %s "(cached) " >&6 4413else $as_nop 4414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4415 # We make a subdir and do the tests there. Otherwise we can end up 4416 # making bogus files that we don't know about and never remove. For 4417 # instance it was reported that on HP-UX the gcc test will end up 4418 # making a dummy file named 'D' -- because '-MD' means "put the output 4419 # in D". 4420 rm -rf conftest.dir 4421 mkdir conftest.dir 4422 # Copy depcomp to subdir because otherwise we won't find it if we're 4423 # using a relative directory. 4424 cp "$am_depcomp" conftest.dir 4425 cd conftest.dir 4426 # We will build objects and dependencies in a subdirectory because 4427 # it helps to detect inapplicable dependency modes. For instance 4428 # both Tru64's cc and ICC support -MD to output dependencies as a 4429 # side effect of compilation, but ICC will put the dependencies in 4430 # the current directory while Tru64 will put them in the object 4431 # directory. 4432 mkdir sub 4433 4434 am_cv_CC_dependencies_compiler_type=none 4435 if test "$am_compiler_list" = ""; then 4436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4437 fi 4438 am__universal=false 4439 case " $depcc " in #( 4440 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4441 esac 4442 4443 for depmode in $am_compiler_list; do 4444 # Setup a source with many dependencies, because some compilers 4445 # like to wrap large dependency lists on column 80 (with \), and 4446 # we should not choose a depcomp mode which is confused by this. 4447 # 4448 # We need to recreate these files for each test, as the compiler may 4449 # overwrite some of them when testing with obscure command lines. 4450 # This happens at least with the AIX C compiler. 4451 : > sub/conftest.c 4452 for i in 1 2 3 4 5 6; do 4453 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4454 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4455 # Solaris 10 /bin/sh. 4456 echo '/* dummy */' > sub/conftst$i.h 4457 done 4458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4459 4460 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4461 # mode. It turns out that the SunPro C++ compiler does not properly 4462 # handle '-M -o', and we need to detect this. Also, some Intel 4463 # versions had trouble with output in subdirs. 4464 am__obj=sub/conftest.${OBJEXT-o} 4465 am__minus_obj="-o $am__obj" 4466 case $depmode in 4467 gcc) 4468 # This depmode causes a compiler race in universal mode. 4469 test "$am__universal" = false || continue 4470 ;; 4471 nosideeffect) 4472 # After this tag, mechanisms are not by side-effect, so they'll 4473 # only be used when explicitly requested. 4474 if test "x$enable_dependency_tracking" = xyes; then 4475 continue 4476 else 4477 break 4478 fi 4479 ;; 4480 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4481 # This compiler won't grok '-c -o', but also, the minuso test has 4482 # not run yet. These depmodes are late enough in the game, and 4483 # so weak that their functioning should not be impacted. 4484 am__obj=conftest.${OBJEXT-o} 4485 am__minus_obj= 4486 ;; 4487 none) break ;; 4488 esac 4489 if depmode=$depmode \ 4490 source=sub/conftest.c object=$am__obj \ 4491 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4492 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4493 >/dev/null 2>conftest.err && 4494 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4496 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4498 # icc doesn't choke on unknown options, it will just issue warnings 4499 # or remarks (even with -Werror). So we grep stderr for any message 4500 # that says an option was ignored or not supported. 4501 # When given -MP, icc 7.0 and 7.1 complain thusly: 4502 # icc: Command line warning: ignoring option '-M'; no argument required 4503 # The diagnosis changed in icc 8.0: 4504 # icc: Command line remark: option '-MP' not supported 4505 if (grep 'ignoring option' conftest.err || 4506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4507 am_cv_CC_dependencies_compiler_type=$depmode 4508 break 4509 fi 4510 fi 4511 done 4512 4513 cd .. 4514 rm -rf conftest.dir 4515else 4516 am_cv_CC_dependencies_compiler_type=none 4517fi 4518 4519fi 4520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4521printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4522CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4523 4524 if 4525 test "x$enable_dependency_tracking" != xno \ 4526 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4527 am__fastdepCC_TRUE= 4528 am__fastdepCC_FALSE='#' 4529else 4530 am__fastdepCC_TRUE='#' 4531 am__fastdepCC_FALSE= 4532fi 4533 4534 4535# Variables for tags utilities; see am/tags.am 4536if test -z "$CTAGS"; then 4537 CTAGS=ctags 4538fi 4539 4540if test -z "$ETAGS"; then 4541 ETAGS=etags 4542fi 4543 4544if test -z "$CSCOPE"; then 4545 CSCOPE=cscope 4546fi 4547 4548 4549 4550# POSIX will say in a future version that running "rm -f" with no argument 4551# is OK; and we want to be able to make that assumption in our Makefile 4552# recipes. So use an aggressive probe to check that the usage we want is 4553# actually supported "in the wild" to an acceptable degree. 4554# See automake bug#10828. 4555# To make any issue more visible, cause the running configure to be aborted 4556# by default if the 'rm' program in use doesn't match our expectations; the 4557# user can still override this though. 4558if rm -f && rm -fr && rm -rf; then : OK; else 4559 cat >&2 <<'END' 4560Oops! 4561 4562Your 'rm' program seems unable to run without file operands specified 4563on the command line, even when the '-f' option is present. This is contrary 4564to the behaviour of most rm programs out there, and not conforming with 4565the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4566 4567Please tell bug-automake@gnu.org about your system, including the value 4568of your $PATH and any error possibly output before this message. This 4569can help us improve future automake versions. 4570 4571END 4572 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4573 echo 'Configuration will proceed anyway, since you have set the' >&2 4574 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4575 echo >&2 4576 else 4577 cat >&2 <<'END' 4578Aborting the configuration process, to ensure you take notice of the issue. 4579 4580You can download and install GNU coreutils to get an 'rm' implementation 4581that behaves properly: <https://www.gnu.org/software/coreutils/>. 4582 4583If you want to complete the configuration process using your problematic 4584'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4585to "yes", and re-run configure. 4586 4587END 4588 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4589 fi 4590fi 4591 4592 4593# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4607printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4608if test ${ac_cv_c_undeclared_builtin_options+y} 4609then : 4610 printf %s "(cached) " >&6 4611else $as_nop 4612 ac_save_CFLAGS=$CFLAGS 4613 ac_cv_c_undeclared_builtin_options='cannot detect' 4614 for ac_arg in '' -fno-builtin; do 4615 CFLAGS="$ac_save_CFLAGS $ac_arg" 4616 # This test program should *not* compile successfully. 4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4618/* end confdefs.h. */ 4619 4620int 4621main (void) 4622{ 4623(void) strchr; 4624 ; 4625 return 0; 4626} 4627_ACEOF 4628if ac_fn_c_try_compile "$LINENO" 4629then : 4630 4631else $as_nop 4632 # This test program should compile successfully. 4633 # No library function is consistently available on 4634 # freestanding implementations, so test against a dummy 4635 # declaration. Include always-available headers on the 4636 # off chance that they somehow elicit warnings. 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638/* end confdefs.h. */ 4639#include <float.h> 4640#include <limits.h> 4641#include <stdarg.h> 4642#include <stddef.h> 4643extern void ac_decl (int, char *); 4644 4645int 4646main (void) 4647{ 4648(void) ac_decl (0, (char *) 0); 4649 (void) ac_decl; 4650 4651 ; 4652 return 0; 4653} 4654_ACEOF 4655if ac_fn_c_try_compile "$LINENO" 4656then : 4657 if test x"$ac_arg" = x 4658then : 4659 ac_cv_c_undeclared_builtin_options='none needed' 4660else $as_nop 4661 ac_cv_c_undeclared_builtin_options=$ac_arg 4662fi 4663 break 4664fi 4665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4666fi 4667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4668 done 4669 CFLAGS=$ac_save_CFLAGS 4670 4671fi 4672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4673printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4674 case $ac_cv_c_undeclared_builtin_options in #( 4675 'cannot detect') : 4676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4677printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4678as_fn_error $? "cannot make $CC report undeclared builtins 4679See \`config.log' for more details" "$LINENO" 5; } ;; #( 4680 'none needed') : 4681 ac_c_undeclared_builtin_options='' ;; #( 4682 *) : 4683 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4684esac 4685 4686 4687 4688 4689 4690ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4691if test "x$ac_cv_have_decl___clang__" = xyes 4692then : 4693 CLANGCC="yes" 4694else $as_nop 4695 CLANGCC="no" 4696fi 4697ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4698if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4699then : 4700 INTELCC="yes" 4701else $as_nop 4702 INTELCC="no" 4703fi 4704ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4705if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4706then : 4707 SUNCC="yes" 4708else $as_nop 4709 SUNCC="no" 4710fi 4711 4712 4713 4714 4715 4716 4717 4718 4719if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4720 if test -n "$ac_tool_prefix"; then 4721 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4722set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4724printf %s "checking for $ac_word... " >&6; } 4725if test ${ac_cv_path_PKG_CONFIG+y} 4726then : 4727 printf %s "(cached) " >&6 4728else $as_nop 4729 case $PKG_CONFIG in 4730 [\\/]* | ?:[\\/]*) 4731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4732 ;; 4733 *) 4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4735for as_dir in $PATH 4736do 4737 IFS=$as_save_IFS 4738 case $as_dir in #((( 4739 '') as_dir=./ ;; 4740 */) ;; 4741 *) as_dir=$as_dir/ ;; 4742 esac 4743 for ac_exec_ext in '' $ac_executable_extensions; do 4744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4745 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4747 break 2 4748 fi 4749done 4750 done 4751IFS=$as_save_IFS 4752 4753 ;; 4754esac 4755fi 4756PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4757if test -n "$PKG_CONFIG"; then 4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4759printf "%s\n" "$PKG_CONFIG" >&6; } 4760else 4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4762printf "%s\n" "no" >&6; } 4763fi 4764 4765 4766fi 4767if test -z "$ac_cv_path_PKG_CONFIG"; then 4768 ac_pt_PKG_CONFIG=$PKG_CONFIG 4769 # Extract the first word of "pkg-config", so it can be a program name with args. 4770set dummy pkg-config; ac_word=$2 4771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4772printf %s "checking for $ac_word... " >&6; } 4773if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4774then : 4775 printf %s "(cached) " >&6 4776else $as_nop 4777 case $ac_pt_PKG_CONFIG in 4778 [\\/]* | ?:[\\/]*) 4779 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4780 ;; 4781 *) 4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4783for as_dir in $PATH 4784do 4785 IFS=$as_save_IFS 4786 case $as_dir in #((( 4787 '') as_dir=./ ;; 4788 */) ;; 4789 *) as_dir=$as_dir/ ;; 4790 esac 4791 for ac_exec_ext in '' $ac_executable_extensions; do 4792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4793 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4795 break 2 4796 fi 4797done 4798 done 4799IFS=$as_save_IFS 4800 4801 ;; 4802esac 4803fi 4804ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4805if test -n "$ac_pt_PKG_CONFIG"; then 4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4807printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4808else 4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810printf "%s\n" "no" >&6; } 4811fi 4812 4813 if test "x$ac_pt_PKG_CONFIG" = x; then 4814 PKG_CONFIG="" 4815 else 4816 case $cross_compiling:$ac_tool_warned in 4817yes:) 4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4819printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4820ac_tool_warned=yes ;; 4821esac 4822 PKG_CONFIG=$ac_pt_PKG_CONFIG 4823 fi 4824else 4825 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4826fi 4827 4828fi 4829if test -n "$PKG_CONFIG"; then 4830 _pkg_min_version=0.9.0 4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4832printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4833 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4835printf "%s\n" "yes" >&6; } 4836 else 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4838printf "%s\n" "no" >&6; } 4839 PKG_CONFIG="" 4840 fi 4841fi 4842 4843 4844 # Make sure we can run config.sub. 4845$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4846 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4847 4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4849printf %s "checking build system type... " >&6; } 4850if test ${ac_cv_build+y} 4851then : 4852 printf %s "(cached) " >&6 4853else $as_nop 4854 ac_build_alias=$build_alias 4855test "x$ac_build_alias" = x && 4856 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4857test "x$ac_build_alias" = x && 4858 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4859ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4860 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4861 4862fi 4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4864printf "%s\n" "$ac_cv_build" >&6; } 4865case $ac_cv_build in 4866*-*-*) ;; 4867*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4868esac 4869build=$ac_cv_build 4870ac_save_IFS=$IFS; IFS='-' 4871set x $ac_cv_build 4872shift 4873build_cpu=$1 4874build_vendor=$2 4875shift; shift 4876# Remember, the first character of IFS is used to create $*, 4877# except with old shells: 4878build_os=$* 4879IFS=$ac_save_IFS 4880case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4881 4882 4883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4884printf %s "checking host system type... " >&6; } 4885if test ${ac_cv_host+y} 4886then : 4887 printf %s "(cached) " >&6 4888else $as_nop 4889 if test "x$host_alias" = x; then 4890 ac_cv_host=$ac_cv_build 4891else 4892 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4893 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4894fi 4895 4896fi 4897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4898printf "%s\n" "$ac_cv_host" >&6; } 4899case $ac_cv_host in 4900*-*-*) ;; 4901*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4902esac 4903host=$ac_cv_host 4904ac_save_IFS=$IFS; IFS='-' 4905set x $ac_cv_host 4906shift 4907host_cpu=$1 4908host_vendor=$2 4909shift; shift 4910# Remember, the first character of IFS is used to create $*, 4911# except with old shells: 4912host_os=$* 4913IFS=$ac_save_IFS 4914case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4915 4916 4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4918printf %s "checking for a sed that does not truncate output... " >&6; } 4919if test ${ac_cv_path_SED+y} 4920then : 4921 printf %s "(cached) " >&6 4922else $as_nop 4923 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4924 for ac_i in 1 2 3 4 5 6 7; do 4925 ac_script="$ac_script$as_nl$ac_script" 4926 done 4927 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4928 { ac_script=; unset ac_script;} 4929 if test -z "$SED"; then 4930 ac_path_SED_found=false 4931 # Loop through the user's path and test for each of PROGNAME-LIST 4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4933for as_dir in $PATH 4934do 4935 IFS=$as_save_IFS 4936 case $as_dir in #((( 4937 '') as_dir=./ ;; 4938 */) ;; 4939 *) as_dir=$as_dir/ ;; 4940 esac 4941 for ac_prog in sed gsed 4942 do 4943 for ac_exec_ext in '' $ac_executable_extensions; do 4944 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4945 as_fn_executable_p "$ac_path_SED" || continue 4946# Check for GNU ac_path_SED and select it if it is found. 4947 # Check for GNU $ac_path_SED 4948case `"$ac_path_SED" --version 2>&1` in 4949*GNU*) 4950 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4951*) 4952 ac_count=0 4953 printf %s 0123456789 >"conftest.in" 4954 while : 4955 do 4956 cat "conftest.in" "conftest.in" >"conftest.tmp" 4957 mv "conftest.tmp" "conftest.in" 4958 cp "conftest.in" "conftest.nl" 4959 printf "%s\n" '' >> "conftest.nl" 4960 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4962 as_fn_arith $ac_count + 1 && ac_count=$as_val 4963 if test $ac_count -gt ${ac_path_SED_max-0}; then 4964 # Best one so far, save it but keep looking for a better one 4965 ac_cv_path_SED="$ac_path_SED" 4966 ac_path_SED_max=$ac_count 4967 fi 4968 # 10*(2^10) chars as input seems more than enough 4969 test $ac_count -gt 10 && break 4970 done 4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4972esac 4973 4974 $ac_path_SED_found && break 3 4975 done 4976 done 4977 done 4978IFS=$as_save_IFS 4979 if test -z "$ac_cv_path_SED"; then 4980 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4981 fi 4982else 4983 ac_cv_path_SED=$SED 4984fi 4985 4986fi 4987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4988printf "%s\n" "$ac_cv_path_SED" >&6; } 4989 SED="$ac_cv_path_SED" 4990 rm -f conftest.sed 4991 4992 4993 4994 4995 4996 4997# Check whether --enable-selective-werror was given. 4998if test ${enable_selective_werror+y} 4999then : 5000 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5001else $as_nop 5002 SELECTIVE_WERROR=yes 5003fi 5004 5005 5006 5007 5008 5009# -v is too short to test reliably with XORG_TESTSET_CFLAG 5010if test "x$SUNCC" = "xyes"; then 5011 BASE_CFLAGS="-v" 5012else 5013 BASE_CFLAGS="" 5014fi 5015 5016# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030xorg_testset_save_CFLAGS="$CFLAGS" 5031 5032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5036if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5037then : 5038 printf %s "(cached) " >&6 5039else $as_nop 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041/* end confdefs.h. */ 5042int i; 5043_ACEOF 5044if ac_fn_c_try_compile "$LINENO" 5045then : 5046 xorg_cv_cc_flag_unknown_warning_option=yes 5047else $as_nop 5048 xorg_cv_cc_flag_unknown_warning_option=no 5049fi 5050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5051fi 5052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5055 CFLAGS="$xorg_testset_save_CFLAGS" 5056fi 5057 5058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5061 fi 5062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5065if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5066then : 5067 printf %s "(cached) " >&6 5068else $as_nop 5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5070/* end confdefs.h. */ 5071int i; 5072_ACEOF 5073if ac_fn_c_try_compile "$LINENO" 5074then : 5075 xorg_cv_cc_flag_unused_command_line_argument=yes 5076else $as_nop 5077 xorg_cv_cc_flag_unused_command_line_argument=no 5078fi 5079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5080fi 5081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5084 CFLAGS="$xorg_testset_save_CFLAGS" 5085fi 5086 5087found="no" 5088 5089 if test $found = "no" ; then 5090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5092 fi 5093 5094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5096 fi 5097 5098 CFLAGS="$CFLAGS -Wall" 5099 5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5101printf %s "checking if $CC supports -Wall... " >&6; } 5102 cacheid=xorg_cv_cc_flag__Wall 5103 if eval test \${$cacheid+y} 5104then : 5105 printf %s "(cached) " >&6 5106else $as_nop 5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5108/* end confdefs.h. */ 5109int i; 5110int 5111main (void) 5112{ 5113 5114 ; 5115 return 0; 5116} 5117_ACEOF 5118if ac_fn_c_try_link "$LINENO" 5119then : 5120 eval $cacheid=yes 5121else $as_nop 5122 eval $cacheid=no 5123fi 5124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5125 conftest$ac_exeext conftest.$ac_ext 5126fi 5127 5128 5129 CFLAGS="$xorg_testset_save_CFLAGS" 5130 5131 eval supported=\$$cacheid 5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5133printf "%s\n" "$supported" >&6; } 5134 if test "$supported" = "yes" ; then 5135 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5136 found="yes" 5137 fi 5138 fi 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154xorg_testset_save_CFLAGS="$CFLAGS" 5155 5156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5160if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5161then : 5162 printf %s "(cached) " >&6 5163else $as_nop 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165/* end confdefs.h. */ 5166int i; 5167_ACEOF 5168if ac_fn_c_try_compile "$LINENO" 5169then : 5170 xorg_cv_cc_flag_unknown_warning_option=yes 5171else $as_nop 5172 xorg_cv_cc_flag_unknown_warning_option=no 5173fi 5174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5175fi 5176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5177printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5179 CFLAGS="$xorg_testset_save_CFLAGS" 5180fi 5181 5182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5185 fi 5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5188printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5189if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5190then : 5191 printf %s "(cached) " >&6 5192else $as_nop 5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5194/* end confdefs.h. */ 5195int i; 5196_ACEOF 5197if ac_fn_c_try_compile "$LINENO" 5198then : 5199 xorg_cv_cc_flag_unused_command_line_argument=yes 5200else $as_nop 5201 xorg_cv_cc_flag_unused_command_line_argument=no 5202fi 5203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5204fi 5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5208 CFLAGS="$xorg_testset_save_CFLAGS" 5209fi 5210 5211found="no" 5212 5213 if test $found = "no" ; then 5214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5216 fi 5217 5218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5220 fi 5221 5222 CFLAGS="$CFLAGS -Wpointer-arith" 5223 5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5225printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5226 cacheid=xorg_cv_cc_flag__Wpointer_arith 5227 if eval test \${$cacheid+y} 5228then : 5229 printf %s "(cached) " >&6 5230else $as_nop 5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5232/* end confdefs.h. */ 5233int i; 5234int 5235main (void) 5236{ 5237 5238 ; 5239 return 0; 5240} 5241_ACEOF 5242if ac_fn_c_try_link "$LINENO" 5243then : 5244 eval $cacheid=yes 5245else $as_nop 5246 eval $cacheid=no 5247fi 5248rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5249 conftest$ac_exeext conftest.$ac_ext 5250fi 5251 5252 5253 CFLAGS="$xorg_testset_save_CFLAGS" 5254 5255 eval supported=\$$cacheid 5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5257printf "%s\n" "$supported" >&6; } 5258 if test "$supported" = "yes" ; then 5259 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5260 found="yes" 5261 fi 5262 fi 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278xorg_testset_save_CFLAGS="$CFLAGS" 5279 5280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5283printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5284if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5285then : 5286 printf %s "(cached) " >&6 5287else $as_nop 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289/* end confdefs.h. */ 5290int i; 5291_ACEOF 5292if ac_fn_c_try_compile "$LINENO" 5293then : 5294 xorg_cv_cc_flag_unknown_warning_option=yes 5295else $as_nop 5296 xorg_cv_cc_flag_unknown_warning_option=no 5297fi 5298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5299fi 5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5301printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5303 CFLAGS="$xorg_testset_save_CFLAGS" 5304fi 5305 5306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5309 fi 5310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5312printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5313if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5314then : 5315 printf %s "(cached) " >&6 5316else $as_nop 5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318/* end confdefs.h. */ 5319int i; 5320_ACEOF 5321if ac_fn_c_try_compile "$LINENO" 5322then : 5323 xorg_cv_cc_flag_unused_command_line_argument=yes 5324else $as_nop 5325 xorg_cv_cc_flag_unused_command_line_argument=no 5326fi 5327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5328fi 5329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5330printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5332 CFLAGS="$xorg_testset_save_CFLAGS" 5333fi 5334 5335found="no" 5336 5337 if test $found = "no" ; then 5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340 fi 5341 5342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5344 fi 5345 5346 CFLAGS="$CFLAGS -Wmissing-declarations" 5347 5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5349printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5350 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5351 if eval test \${$cacheid+y} 5352then : 5353 printf %s "(cached) " >&6 5354else $as_nop 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356/* end confdefs.h. */ 5357int i; 5358int 5359main (void) 5360{ 5361 5362 ; 5363 return 0; 5364} 5365_ACEOF 5366if ac_fn_c_try_link "$LINENO" 5367then : 5368 eval $cacheid=yes 5369else $as_nop 5370 eval $cacheid=no 5371fi 5372rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5373 conftest$ac_exeext conftest.$ac_ext 5374fi 5375 5376 5377 CFLAGS="$xorg_testset_save_CFLAGS" 5378 5379 eval supported=\$$cacheid 5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5381printf "%s\n" "$supported" >&6; } 5382 if test "$supported" = "yes" ; then 5383 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5384 found="yes" 5385 fi 5386 fi 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402xorg_testset_save_CFLAGS="$CFLAGS" 5403 5404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5408if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5409then : 5410 printf %s "(cached) " >&6 5411else $as_nop 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5413/* end confdefs.h. */ 5414int i; 5415_ACEOF 5416if ac_fn_c_try_compile "$LINENO" 5417then : 5418 xorg_cv_cc_flag_unknown_warning_option=yes 5419else $as_nop 5420 xorg_cv_cc_flag_unknown_warning_option=no 5421fi 5422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5423fi 5424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5427 CFLAGS="$xorg_testset_save_CFLAGS" 5428fi 5429 5430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5433 fi 5434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5437if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5438then : 5439 printf %s "(cached) " >&6 5440else $as_nop 5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5442/* end confdefs.h. */ 5443int i; 5444_ACEOF 5445if ac_fn_c_try_compile "$LINENO" 5446then : 5447 xorg_cv_cc_flag_unused_command_line_argument=yes 5448else $as_nop 5449 xorg_cv_cc_flag_unused_command_line_argument=no 5450fi 5451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5452fi 5453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5456 CFLAGS="$xorg_testset_save_CFLAGS" 5457fi 5458 5459found="no" 5460 5461 if test $found = "no" ; then 5462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5464 fi 5465 5466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5468 fi 5469 5470 CFLAGS="$CFLAGS -Wformat=2" 5471 5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5473printf %s "checking if $CC supports -Wformat=2... " >&6; } 5474 cacheid=xorg_cv_cc_flag__Wformat_2 5475 if eval test \${$cacheid+y} 5476then : 5477 printf %s "(cached) " >&6 5478else $as_nop 5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5480/* end confdefs.h. */ 5481int i; 5482int 5483main (void) 5484{ 5485 5486 ; 5487 return 0; 5488} 5489_ACEOF 5490if ac_fn_c_try_link "$LINENO" 5491then : 5492 eval $cacheid=yes 5493else $as_nop 5494 eval $cacheid=no 5495fi 5496rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5497 conftest$ac_exeext conftest.$ac_ext 5498fi 5499 5500 5501 CFLAGS="$xorg_testset_save_CFLAGS" 5502 5503 eval supported=\$$cacheid 5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5505printf "%s\n" "$supported" >&6; } 5506 if test "$supported" = "yes" ; then 5507 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5508 found="yes" 5509 fi 5510 fi 5511 5512 if test $found = "no" ; then 5513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5515 fi 5516 5517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5519 fi 5520 5521 CFLAGS="$CFLAGS -Wformat" 5522 5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5524printf %s "checking if $CC supports -Wformat... " >&6; } 5525 cacheid=xorg_cv_cc_flag__Wformat 5526 if eval test \${$cacheid+y} 5527then : 5528 printf %s "(cached) " >&6 5529else $as_nop 5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532int i; 5533int 5534main (void) 5535{ 5536 5537 ; 5538 return 0; 5539} 5540_ACEOF 5541if ac_fn_c_try_link "$LINENO" 5542then : 5543 eval $cacheid=yes 5544else $as_nop 5545 eval $cacheid=no 5546fi 5547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5548 conftest$ac_exeext conftest.$ac_ext 5549fi 5550 5551 5552 CFLAGS="$xorg_testset_save_CFLAGS" 5553 5554 eval supported=\$$cacheid 5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5556printf "%s\n" "$supported" >&6; } 5557 if test "$supported" = "yes" ; then 5558 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5559 found="yes" 5560 fi 5561 fi 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579xorg_testset_save_CFLAGS="$CFLAGS" 5580 5581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5585if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5586then : 5587 printf %s "(cached) " >&6 5588else $as_nop 5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5590/* end confdefs.h. */ 5591int i; 5592_ACEOF 5593if ac_fn_c_try_compile "$LINENO" 5594then : 5595 xorg_cv_cc_flag_unknown_warning_option=yes 5596else $as_nop 5597 xorg_cv_cc_flag_unknown_warning_option=no 5598fi 5599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5600fi 5601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5604 CFLAGS="$xorg_testset_save_CFLAGS" 5605fi 5606 5607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5610 fi 5611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5614if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5615then : 5616 printf %s "(cached) " >&6 5617else $as_nop 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5619/* end confdefs.h. */ 5620int i; 5621_ACEOF 5622if ac_fn_c_try_compile "$LINENO" 5623then : 5624 xorg_cv_cc_flag_unused_command_line_argument=yes 5625else $as_nop 5626 xorg_cv_cc_flag_unused_command_line_argument=no 5627fi 5628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5629fi 5630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5633 CFLAGS="$xorg_testset_save_CFLAGS" 5634fi 5635 5636found="no" 5637 5638 if test $found = "no" ; then 5639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5641 fi 5642 5643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5645 fi 5646 5647 CFLAGS="$CFLAGS -Wstrict-prototypes" 5648 5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5650printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5651 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5652 if eval test \${$cacheid+y} 5653then : 5654 printf %s "(cached) " >&6 5655else $as_nop 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5657/* end confdefs.h. */ 5658int i; 5659int 5660main (void) 5661{ 5662 5663 ; 5664 return 0; 5665} 5666_ACEOF 5667if ac_fn_c_try_link "$LINENO" 5668then : 5669 eval $cacheid=yes 5670else $as_nop 5671 eval $cacheid=no 5672fi 5673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5674 conftest$ac_exeext conftest.$ac_ext 5675fi 5676 5677 5678 CFLAGS="$xorg_testset_save_CFLAGS" 5679 5680 eval supported=\$$cacheid 5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5682printf "%s\n" "$supported" >&6; } 5683 if test "$supported" = "yes" ; then 5684 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5685 found="yes" 5686 fi 5687 fi 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703xorg_testset_save_CFLAGS="$CFLAGS" 5704 5705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5709if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5710then : 5711 printf %s "(cached) " >&6 5712else $as_nop 5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714/* end confdefs.h. */ 5715int i; 5716_ACEOF 5717if ac_fn_c_try_compile "$LINENO" 5718then : 5719 xorg_cv_cc_flag_unknown_warning_option=yes 5720else $as_nop 5721 xorg_cv_cc_flag_unknown_warning_option=no 5722fi 5723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5724fi 5725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5728 CFLAGS="$xorg_testset_save_CFLAGS" 5729fi 5730 5731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5734 fi 5735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5738if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5739then : 5740 printf %s "(cached) " >&6 5741else $as_nop 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743/* end confdefs.h. */ 5744int i; 5745_ACEOF 5746if ac_fn_c_try_compile "$LINENO" 5747then : 5748 xorg_cv_cc_flag_unused_command_line_argument=yes 5749else $as_nop 5750 xorg_cv_cc_flag_unused_command_line_argument=no 5751fi 5752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5753fi 5754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5757 CFLAGS="$xorg_testset_save_CFLAGS" 5758fi 5759 5760found="no" 5761 5762 if test $found = "no" ; then 5763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5765 fi 5766 5767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5769 fi 5770 5771 CFLAGS="$CFLAGS -Wmissing-prototypes" 5772 5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5774printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5775 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5776 if eval test \${$cacheid+y} 5777then : 5778 printf %s "(cached) " >&6 5779else $as_nop 5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5781/* end confdefs.h. */ 5782int i; 5783int 5784main (void) 5785{ 5786 5787 ; 5788 return 0; 5789} 5790_ACEOF 5791if ac_fn_c_try_link "$LINENO" 5792then : 5793 eval $cacheid=yes 5794else $as_nop 5795 eval $cacheid=no 5796fi 5797rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5798 conftest$ac_exeext conftest.$ac_ext 5799fi 5800 5801 5802 CFLAGS="$xorg_testset_save_CFLAGS" 5803 5804 eval supported=\$$cacheid 5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5806printf "%s\n" "$supported" >&6; } 5807 if test "$supported" = "yes" ; then 5808 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5809 found="yes" 5810 fi 5811 fi 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827xorg_testset_save_CFLAGS="$CFLAGS" 5828 5829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5833if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5834then : 5835 printf %s "(cached) " >&6 5836else $as_nop 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838/* end confdefs.h. */ 5839int i; 5840_ACEOF 5841if ac_fn_c_try_compile "$LINENO" 5842then : 5843 xorg_cv_cc_flag_unknown_warning_option=yes 5844else $as_nop 5845 xorg_cv_cc_flag_unknown_warning_option=no 5846fi 5847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5848fi 5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5852 CFLAGS="$xorg_testset_save_CFLAGS" 5853fi 5854 5855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5858 fi 5859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5862if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5863then : 5864 printf %s "(cached) " >&6 5865else $as_nop 5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867/* end confdefs.h. */ 5868int i; 5869_ACEOF 5870if ac_fn_c_try_compile "$LINENO" 5871then : 5872 xorg_cv_cc_flag_unused_command_line_argument=yes 5873else $as_nop 5874 xorg_cv_cc_flag_unused_command_line_argument=no 5875fi 5876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5877fi 5878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5881 CFLAGS="$xorg_testset_save_CFLAGS" 5882fi 5883 5884found="no" 5885 5886 if test $found = "no" ; then 5887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5889 fi 5890 5891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5893 fi 5894 5895 CFLAGS="$CFLAGS -Wnested-externs" 5896 5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5898printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5899 cacheid=xorg_cv_cc_flag__Wnested_externs 5900 if eval test \${$cacheid+y} 5901then : 5902 printf %s "(cached) " >&6 5903else $as_nop 5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5905/* end confdefs.h. */ 5906int i; 5907int 5908main (void) 5909{ 5910 5911 ; 5912 return 0; 5913} 5914_ACEOF 5915if ac_fn_c_try_link "$LINENO" 5916then : 5917 eval $cacheid=yes 5918else $as_nop 5919 eval $cacheid=no 5920fi 5921rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5922 conftest$ac_exeext conftest.$ac_ext 5923fi 5924 5925 5926 CFLAGS="$xorg_testset_save_CFLAGS" 5927 5928 eval supported=\$$cacheid 5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5930printf "%s\n" "$supported" >&6; } 5931 if test "$supported" = "yes" ; then 5932 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5933 found="yes" 5934 fi 5935 fi 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951xorg_testset_save_CFLAGS="$CFLAGS" 5952 5953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5957if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5958then : 5959 printf %s "(cached) " >&6 5960else $as_nop 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963int i; 5964_ACEOF 5965if ac_fn_c_try_compile "$LINENO" 5966then : 5967 xorg_cv_cc_flag_unknown_warning_option=yes 5968else $as_nop 5969 xorg_cv_cc_flag_unknown_warning_option=no 5970fi 5971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5972fi 5973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5976 CFLAGS="$xorg_testset_save_CFLAGS" 5977fi 5978 5979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5982 fi 5983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5986if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5987then : 5988 printf %s "(cached) " >&6 5989else $as_nop 5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5991/* end confdefs.h. */ 5992int i; 5993_ACEOF 5994if ac_fn_c_try_compile "$LINENO" 5995then : 5996 xorg_cv_cc_flag_unused_command_line_argument=yes 5997else $as_nop 5998 xorg_cv_cc_flag_unused_command_line_argument=no 5999fi 6000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6001fi 6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6005 CFLAGS="$xorg_testset_save_CFLAGS" 6006fi 6007 6008found="no" 6009 6010 if test $found = "no" ; then 6011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6013 fi 6014 6015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6017 fi 6018 6019 CFLAGS="$CFLAGS -Wbad-function-cast" 6020 6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6022printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6023 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6024 if eval test \${$cacheid+y} 6025then : 6026 printf %s "(cached) " >&6 6027else $as_nop 6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6029/* end confdefs.h. */ 6030int i; 6031int 6032main (void) 6033{ 6034 6035 ; 6036 return 0; 6037} 6038_ACEOF 6039if ac_fn_c_try_link "$LINENO" 6040then : 6041 eval $cacheid=yes 6042else $as_nop 6043 eval $cacheid=no 6044fi 6045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6046 conftest$ac_exeext conftest.$ac_ext 6047fi 6048 6049 6050 CFLAGS="$xorg_testset_save_CFLAGS" 6051 6052 eval supported=\$$cacheid 6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6054printf "%s\n" "$supported" >&6; } 6055 if test "$supported" = "yes" ; then 6056 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6057 found="yes" 6058 fi 6059 fi 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075xorg_testset_save_CFLAGS="$CFLAGS" 6076 6077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6081if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6082then : 6083 printf %s "(cached) " >&6 6084else $as_nop 6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6086/* end confdefs.h. */ 6087int i; 6088_ACEOF 6089if ac_fn_c_try_compile "$LINENO" 6090then : 6091 xorg_cv_cc_flag_unknown_warning_option=yes 6092else $as_nop 6093 xorg_cv_cc_flag_unknown_warning_option=no 6094fi 6095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6096fi 6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6100 CFLAGS="$xorg_testset_save_CFLAGS" 6101fi 6102 6103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6106 fi 6107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6110if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6111then : 6112 printf %s "(cached) " >&6 6113else $as_nop 6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6115/* end confdefs.h. */ 6116int i; 6117_ACEOF 6118if ac_fn_c_try_compile "$LINENO" 6119then : 6120 xorg_cv_cc_flag_unused_command_line_argument=yes 6121else $as_nop 6122 xorg_cv_cc_flag_unused_command_line_argument=no 6123fi 6124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6125fi 6126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6129 CFLAGS="$xorg_testset_save_CFLAGS" 6130fi 6131 6132found="no" 6133 6134 if test $found = "no" ; then 6135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6137 fi 6138 6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6141 fi 6142 6143 CFLAGS="$CFLAGS -Wold-style-definition" 6144 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6146printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6147 cacheid=xorg_cv_cc_flag__Wold_style_definition 6148 if eval test \${$cacheid+y} 6149then : 6150 printf %s "(cached) " >&6 6151else $as_nop 6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6153/* end confdefs.h. */ 6154int i; 6155int 6156main (void) 6157{ 6158 6159 ; 6160 return 0; 6161} 6162_ACEOF 6163if ac_fn_c_try_link "$LINENO" 6164then : 6165 eval $cacheid=yes 6166else $as_nop 6167 eval $cacheid=no 6168fi 6169rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6170 conftest$ac_exeext conftest.$ac_ext 6171fi 6172 6173 6174 CFLAGS="$xorg_testset_save_CFLAGS" 6175 6176 eval supported=\$$cacheid 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6178printf "%s\n" "$supported" >&6; } 6179 if test "$supported" = "yes" ; then 6180 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6181 found="yes" 6182 fi 6183 fi 6184 6185 if test $found = "no" ; then 6186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6188 fi 6189 6190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6192 fi 6193 6194 CFLAGS="$CFLAGS -fd" 6195 6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6197printf %s "checking if $CC supports -fd... " >&6; } 6198 cacheid=xorg_cv_cc_flag__fd 6199 if eval test \${$cacheid+y} 6200then : 6201 printf %s "(cached) " >&6 6202else $as_nop 6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6204/* end confdefs.h. */ 6205int i; 6206int 6207main (void) 6208{ 6209 6210 ; 6211 return 0; 6212} 6213_ACEOF 6214if ac_fn_c_try_link "$LINENO" 6215then : 6216 eval $cacheid=yes 6217else $as_nop 6218 eval $cacheid=no 6219fi 6220rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6221 conftest$ac_exeext conftest.$ac_ext 6222fi 6223 6224 6225 CFLAGS="$xorg_testset_save_CFLAGS" 6226 6227 eval supported=\$$cacheid 6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6229printf "%s\n" "$supported" >&6; } 6230 if test "$supported" = "yes" ; then 6231 BASE_CFLAGS="$BASE_CFLAGS -fd" 6232 found="yes" 6233 fi 6234 fi 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250xorg_testset_save_CFLAGS="$CFLAGS" 6251 6252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6256if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6257then : 6258 printf %s "(cached) " >&6 6259else $as_nop 6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6261/* end confdefs.h. */ 6262int i; 6263_ACEOF 6264if ac_fn_c_try_compile "$LINENO" 6265then : 6266 xorg_cv_cc_flag_unknown_warning_option=yes 6267else $as_nop 6268 xorg_cv_cc_flag_unknown_warning_option=no 6269fi 6270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6271fi 6272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6273printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6275 CFLAGS="$xorg_testset_save_CFLAGS" 6276fi 6277 6278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6281 fi 6282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6284printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6285if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6286then : 6287 printf %s "(cached) " >&6 6288else $as_nop 6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6290/* end confdefs.h. */ 6291int i; 6292_ACEOF 6293if ac_fn_c_try_compile "$LINENO" 6294then : 6295 xorg_cv_cc_flag_unused_command_line_argument=yes 6296else $as_nop 6297 xorg_cv_cc_flag_unused_command_line_argument=no 6298fi 6299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6300fi 6301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6304 CFLAGS="$xorg_testset_save_CFLAGS" 6305fi 6306 6307found="no" 6308 6309 if test $found = "no" ; then 6310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6312 fi 6313 6314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6316 fi 6317 6318 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6319 6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6321printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6322 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6323 if eval test \${$cacheid+y} 6324then : 6325 printf %s "(cached) " >&6 6326else $as_nop 6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6328/* end confdefs.h. */ 6329int i; 6330int 6331main (void) 6332{ 6333 6334 ; 6335 return 0; 6336} 6337_ACEOF 6338if ac_fn_c_try_link "$LINENO" 6339then : 6340 eval $cacheid=yes 6341else $as_nop 6342 eval $cacheid=no 6343fi 6344rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6345 conftest$ac_exeext conftest.$ac_ext 6346fi 6347 6348 6349 CFLAGS="$xorg_testset_save_CFLAGS" 6350 6351 eval supported=\$$cacheid 6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6353printf "%s\n" "$supported" >&6; } 6354 if test "$supported" = "yes" ; then 6355 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6356 found="yes" 6357 fi 6358 fi 6359 6360 6361 6362 6363 6364# This chunk adds additional warnings that could catch undesired effects. 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378xorg_testset_save_CFLAGS="$CFLAGS" 6379 6380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6383printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6384if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6385then : 6386 printf %s "(cached) " >&6 6387else $as_nop 6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6389/* end confdefs.h. */ 6390int i; 6391_ACEOF 6392if ac_fn_c_try_compile "$LINENO" 6393then : 6394 xorg_cv_cc_flag_unknown_warning_option=yes 6395else $as_nop 6396 xorg_cv_cc_flag_unknown_warning_option=no 6397fi 6398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6399fi 6400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6401printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6403 CFLAGS="$xorg_testset_save_CFLAGS" 6404fi 6405 6406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6409 fi 6410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6412printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6413if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6414then : 6415 printf %s "(cached) " >&6 6416else $as_nop 6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6418/* end confdefs.h. */ 6419int i; 6420_ACEOF 6421if ac_fn_c_try_compile "$LINENO" 6422then : 6423 xorg_cv_cc_flag_unused_command_line_argument=yes 6424else $as_nop 6425 xorg_cv_cc_flag_unused_command_line_argument=no 6426fi 6427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6428fi 6429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6430printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6432 CFLAGS="$xorg_testset_save_CFLAGS" 6433fi 6434 6435found="no" 6436 6437 if test $found = "no" ; then 6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6440 fi 6441 6442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6444 fi 6445 6446 CFLAGS="$CFLAGS -Wunused" 6447 6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6449printf %s "checking if $CC supports -Wunused... " >&6; } 6450 cacheid=xorg_cv_cc_flag__Wunused 6451 if eval test \${$cacheid+y} 6452then : 6453 printf %s "(cached) " >&6 6454else $as_nop 6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6456/* end confdefs.h. */ 6457int i; 6458int 6459main (void) 6460{ 6461 6462 ; 6463 return 0; 6464} 6465_ACEOF 6466if ac_fn_c_try_link "$LINENO" 6467then : 6468 eval $cacheid=yes 6469else $as_nop 6470 eval $cacheid=no 6471fi 6472rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6473 conftest$ac_exeext conftest.$ac_ext 6474fi 6475 6476 6477 CFLAGS="$xorg_testset_save_CFLAGS" 6478 6479 eval supported=\$$cacheid 6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6481printf "%s\n" "$supported" >&6; } 6482 if test "$supported" = "yes" ; then 6483 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6484 found="yes" 6485 fi 6486 fi 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502xorg_testset_save_CFLAGS="$CFLAGS" 6503 6504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6507printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6508if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6509then : 6510 printf %s "(cached) " >&6 6511else $as_nop 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513/* end confdefs.h. */ 6514int i; 6515_ACEOF 6516if ac_fn_c_try_compile "$LINENO" 6517then : 6518 xorg_cv_cc_flag_unknown_warning_option=yes 6519else $as_nop 6520 xorg_cv_cc_flag_unknown_warning_option=no 6521fi 6522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6523fi 6524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6525printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6527 CFLAGS="$xorg_testset_save_CFLAGS" 6528fi 6529 6530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6533 fi 6534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6536printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6537if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6538then : 6539 printf %s "(cached) " >&6 6540else $as_nop 6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6542/* end confdefs.h. */ 6543int i; 6544_ACEOF 6545if ac_fn_c_try_compile "$LINENO" 6546then : 6547 xorg_cv_cc_flag_unused_command_line_argument=yes 6548else $as_nop 6549 xorg_cv_cc_flag_unused_command_line_argument=no 6550fi 6551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6552fi 6553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6554printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6556 CFLAGS="$xorg_testset_save_CFLAGS" 6557fi 6558 6559found="no" 6560 6561 if test $found = "no" ; then 6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6564 fi 6565 6566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6568 fi 6569 6570 CFLAGS="$CFLAGS -Wuninitialized" 6571 6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6573printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6574 cacheid=xorg_cv_cc_flag__Wuninitialized 6575 if eval test \${$cacheid+y} 6576then : 6577 printf %s "(cached) " >&6 6578else $as_nop 6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6580/* end confdefs.h. */ 6581int i; 6582int 6583main (void) 6584{ 6585 6586 ; 6587 return 0; 6588} 6589_ACEOF 6590if ac_fn_c_try_link "$LINENO" 6591then : 6592 eval $cacheid=yes 6593else $as_nop 6594 eval $cacheid=no 6595fi 6596rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6597 conftest$ac_exeext conftest.$ac_ext 6598fi 6599 6600 6601 CFLAGS="$xorg_testset_save_CFLAGS" 6602 6603 eval supported=\$$cacheid 6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6605printf "%s\n" "$supported" >&6; } 6606 if test "$supported" = "yes" ; then 6607 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6608 found="yes" 6609 fi 6610 fi 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626xorg_testset_save_CFLAGS="$CFLAGS" 6627 6628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6631printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6632if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6633then : 6634 printf %s "(cached) " >&6 6635else $as_nop 6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6637/* end confdefs.h. */ 6638int i; 6639_ACEOF 6640if ac_fn_c_try_compile "$LINENO" 6641then : 6642 xorg_cv_cc_flag_unknown_warning_option=yes 6643else $as_nop 6644 xorg_cv_cc_flag_unknown_warning_option=no 6645fi 6646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6647fi 6648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6649printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6651 CFLAGS="$xorg_testset_save_CFLAGS" 6652fi 6653 6654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 fi 6658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6660printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6661if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6662then : 6663 printf %s "(cached) " >&6 6664else $as_nop 6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6666/* end confdefs.h. */ 6667int i; 6668_ACEOF 6669if ac_fn_c_try_compile "$LINENO" 6670then : 6671 xorg_cv_cc_flag_unused_command_line_argument=yes 6672else $as_nop 6673 xorg_cv_cc_flag_unused_command_line_argument=no 6674fi 6675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6676fi 6677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6678printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6680 CFLAGS="$xorg_testset_save_CFLAGS" 6681fi 6682 6683found="no" 6684 6685 if test $found = "no" ; then 6686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6688 fi 6689 6690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6692 fi 6693 6694 CFLAGS="$CFLAGS -Wshadow" 6695 6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6697printf %s "checking if $CC supports -Wshadow... " >&6; } 6698 cacheid=xorg_cv_cc_flag__Wshadow 6699 if eval test \${$cacheid+y} 6700then : 6701 printf %s "(cached) " >&6 6702else $as_nop 6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705int i; 6706int 6707main (void) 6708{ 6709 6710 ; 6711 return 0; 6712} 6713_ACEOF 6714if ac_fn_c_try_link "$LINENO" 6715then : 6716 eval $cacheid=yes 6717else $as_nop 6718 eval $cacheid=no 6719fi 6720rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6721 conftest$ac_exeext conftest.$ac_ext 6722fi 6723 6724 6725 CFLAGS="$xorg_testset_save_CFLAGS" 6726 6727 eval supported=\$$cacheid 6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6729printf "%s\n" "$supported" >&6; } 6730 if test "$supported" = "yes" ; then 6731 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6732 found="yes" 6733 fi 6734 fi 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750xorg_testset_save_CFLAGS="$CFLAGS" 6751 6752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6755printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6756if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6757then : 6758 printf %s "(cached) " >&6 6759else $as_nop 6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6761/* end confdefs.h. */ 6762int i; 6763_ACEOF 6764if ac_fn_c_try_compile "$LINENO" 6765then : 6766 xorg_cv_cc_flag_unknown_warning_option=yes 6767else $as_nop 6768 xorg_cv_cc_flag_unknown_warning_option=no 6769fi 6770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6771fi 6772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6775 CFLAGS="$xorg_testset_save_CFLAGS" 6776fi 6777 6778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6781 fi 6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6785if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6786then : 6787 printf %s "(cached) " >&6 6788else $as_nop 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790/* end confdefs.h. */ 6791int i; 6792_ACEOF 6793if ac_fn_c_try_compile "$LINENO" 6794then : 6795 xorg_cv_cc_flag_unused_command_line_argument=yes 6796else $as_nop 6797 xorg_cv_cc_flag_unused_command_line_argument=no 6798fi 6799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6800fi 6801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6802printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6804 CFLAGS="$xorg_testset_save_CFLAGS" 6805fi 6806 6807found="no" 6808 6809 if test $found = "no" ; then 6810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6812 fi 6813 6814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6816 fi 6817 6818 CFLAGS="$CFLAGS -Wmissing-noreturn" 6819 6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6821printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6822 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6823 if eval test \${$cacheid+y} 6824then : 6825 printf %s "(cached) " >&6 6826else $as_nop 6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829int i; 6830int 6831main (void) 6832{ 6833 6834 ; 6835 return 0; 6836} 6837_ACEOF 6838if ac_fn_c_try_link "$LINENO" 6839then : 6840 eval $cacheid=yes 6841else $as_nop 6842 eval $cacheid=no 6843fi 6844rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6845 conftest$ac_exeext conftest.$ac_ext 6846fi 6847 6848 6849 CFLAGS="$xorg_testset_save_CFLAGS" 6850 6851 eval supported=\$$cacheid 6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6853printf "%s\n" "$supported" >&6; } 6854 if test "$supported" = "yes" ; then 6855 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6856 found="yes" 6857 fi 6858 fi 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874xorg_testset_save_CFLAGS="$CFLAGS" 6875 6876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6880if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6881then : 6882 printf %s "(cached) " >&6 6883else $as_nop 6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885/* end confdefs.h. */ 6886int i; 6887_ACEOF 6888if ac_fn_c_try_compile "$LINENO" 6889then : 6890 xorg_cv_cc_flag_unknown_warning_option=yes 6891else $as_nop 6892 xorg_cv_cc_flag_unknown_warning_option=no 6893fi 6894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6895fi 6896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6899 CFLAGS="$xorg_testset_save_CFLAGS" 6900fi 6901 6902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6905 fi 6906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6909if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6910then : 6911 printf %s "(cached) " >&6 6912else $as_nop 6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6914/* end confdefs.h. */ 6915int i; 6916_ACEOF 6917if ac_fn_c_try_compile "$LINENO" 6918then : 6919 xorg_cv_cc_flag_unused_command_line_argument=yes 6920else $as_nop 6921 xorg_cv_cc_flag_unused_command_line_argument=no 6922fi 6923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6924fi 6925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6926printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6928 CFLAGS="$xorg_testset_save_CFLAGS" 6929fi 6930 6931found="no" 6932 6933 if test $found = "no" ; then 6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6936 fi 6937 6938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6940 fi 6941 6942 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6943 6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6945printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6946 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6947 if eval test \${$cacheid+y} 6948then : 6949 printf %s "(cached) " >&6 6950else $as_nop 6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6952/* end confdefs.h. */ 6953int i; 6954int 6955main (void) 6956{ 6957 6958 ; 6959 return 0; 6960} 6961_ACEOF 6962if ac_fn_c_try_link "$LINENO" 6963then : 6964 eval $cacheid=yes 6965else $as_nop 6966 eval $cacheid=no 6967fi 6968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6969 conftest$ac_exeext conftest.$ac_ext 6970fi 6971 6972 6973 CFLAGS="$xorg_testset_save_CFLAGS" 6974 6975 eval supported=\$$cacheid 6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6977printf "%s\n" "$supported" >&6; } 6978 if test "$supported" = "yes" ; then 6979 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6980 found="yes" 6981 fi 6982 fi 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998xorg_testset_save_CFLAGS="$CFLAGS" 6999 7000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7003printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7004if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7005then : 7006 printf %s "(cached) " >&6 7007else $as_nop 7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7009/* end confdefs.h. */ 7010int i; 7011_ACEOF 7012if ac_fn_c_try_compile "$LINENO" 7013then : 7014 xorg_cv_cc_flag_unknown_warning_option=yes 7015else $as_nop 7016 xorg_cv_cc_flag_unknown_warning_option=no 7017fi 7018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7019fi 7020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7021printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7023 CFLAGS="$xorg_testset_save_CFLAGS" 7024fi 7025 7026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7029 fi 7030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7032printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7033if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7034then : 7035 printf %s "(cached) " >&6 7036else $as_nop 7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7038/* end confdefs.h. */ 7039int i; 7040_ACEOF 7041if ac_fn_c_try_compile "$LINENO" 7042then : 7043 xorg_cv_cc_flag_unused_command_line_argument=yes 7044else $as_nop 7045 xorg_cv_cc_flag_unused_command_line_argument=no 7046fi 7047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7048fi 7049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7050printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7052 CFLAGS="$xorg_testset_save_CFLAGS" 7053fi 7054 7055found="no" 7056 7057 if test $found = "no" ; then 7058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7060 fi 7061 7062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7064 fi 7065 7066 CFLAGS="$CFLAGS -Wredundant-decls" 7067 7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7069printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7070 cacheid=xorg_cv_cc_flag__Wredundant_decls 7071 if eval test \${$cacheid+y} 7072then : 7073 printf %s "(cached) " >&6 7074else $as_nop 7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7076/* end confdefs.h. */ 7077int i; 7078int 7079main (void) 7080{ 7081 7082 ; 7083 return 0; 7084} 7085_ACEOF 7086if ac_fn_c_try_link "$LINENO" 7087then : 7088 eval $cacheid=yes 7089else $as_nop 7090 eval $cacheid=no 7091fi 7092rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7093 conftest$ac_exeext conftest.$ac_ext 7094fi 7095 7096 7097 CFLAGS="$xorg_testset_save_CFLAGS" 7098 7099 eval supported=\$$cacheid 7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7101printf "%s\n" "$supported" >&6; } 7102 if test "$supported" = "yes" ; then 7103 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7104 found="yes" 7105 fi 7106 fi 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122xorg_testset_save_CFLAGS="$CFLAGS" 7123 7124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7127printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7128if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7129then : 7130 printf %s "(cached) " >&6 7131else $as_nop 7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133/* end confdefs.h. */ 7134int i; 7135_ACEOF 7136if ac_fn_c_try_compile "$LINENO" 7137then : 7138 xorg_cv_cc_flag_unknown_warning_option=yes 7139else $as_nop 7140 xorg_cv_cc_flag_unknown_warning_option=no 7141fi 7142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7143fi 7144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7145printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7147 CFLAGS="$xorg_testset_save_CFLAGS" 7148fi 7149 7150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7153 fi 7154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7156printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7157if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7158then : 7159 printf %s "(cached) " >&6 7160else $as_nop 7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7162/* end confdefs.h. */ 7163int i; 7164_ACEOF 7165if ac_fn_c_try_compile "$LINENO" 7166then : 7167 xorg_cv_cc_flag_unused_command_line_argument=yes 7168else $as_nop 7169 xorg_cv_cc_flag_unused_command_line_argument=no 7170fi 7171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7172fi 7173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7174printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7176 CFLAGS="$xorg_testset_save_CFLAGS" 7177fi 7178 7179found="no" 7180 7181 if test $found = "no" ; then 7182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7184 fi 7185 7186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7188 fi 7189 7190 CFLAGS="$CFLAGS -Wlogical-op" 7191 7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7193printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7194 cacheid=xorg_cv_cc_flag__Wlogical_op 7195 if eval test \${$cacheid+y} 7196then : 7197 printf %s "(cached) " >&6 7198else $as_nop 7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7200/* end confdefs.h. */ 7201int i; 7202int 7203main (void) 7204{ 7205 7206 ; 7207 return 0; 7208} 7209_ACEOF 7210if ac_fn_c_try_link "$LINENO" 7211then : 7212 eval $cacheid=yes 7213else $as_nop 7214 eval $cacheid=no 7215fi 7216rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7217 conftest$ac_exeext conftest.$ac_ext 7218fi 7219 7220 7221 CFLAGS="$xorg_testset_save_CFLAGS" 7222 7223 eval supported=\$$cacheid 7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7225printf "%s\n" "$supported" >&6; } 7226 if test "$supported" = "yes" ; then 7227 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7228 found="yes" 7229 fi 7230 fi 7231 7232 7233 7234# These are currently disabled because they are noisy. They will be enabled 7235# in the future once the codebase is sufficiently modernized to silence 7236# them. For now, I don't want them to drown out the other warnings. 7237# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7238# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7239# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7240 7241# Turn some warnings into errors, so we don't accidently get successful builds 7242# when there are problems that should be fixed. 7243 7244if test "x$SELECTIVE_WERROR" = "xyes" ; then 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258xorg_testset_save_CFLAGS="$CFLAGS" 7259 7260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7264if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7265then : 7266 printf %s "(cached) " >&6 7267else $as_nop 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269/* end confdefs.h. */ 7270int i; 7271_ACEOF 7272if ac_fn_c_try_compile "$LINENO" 7273then : 7274 xorg_cv_cc_flag_unknown_warning_option=yes 7275else $as_nop 7276 xorg_cv_cc_flag_unknown_warning_option=no 7277fi 7278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7279fi 7280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7283 CFLAGS="$xorg_testset_save_CFLAGS" 7284fi 7285 7286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7289 fi 7290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7293if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7294then : 7295 printf %s "(cached) " >&6 7296else $as_nop 7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7298/* end confdefs.h. */ 7299int i; 7300_ACEOF 7301if ac_fn_c_try_compile "$LINENO" 7302then : 7303 xorg_cv_cc_flag_unused_command_line_argument=yes 7304else $as_nop 7305 xorg_cv_cc_flag_unused_command_line_argument=no 7306fi 7307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7308fi 7309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7312 CFLAGS="$xorg_testset_save_CFLAGS" 7313fi 7314 7315found="no" 7316 7317 if test $found = "no" ; then 7318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7320 fi 7321 7322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7324 fi 7325 7326 CFLAGS="$CFLAGS -Werror=implicit" 7327 7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7329printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7330 cacheid=xorg_cv_cc_flag__Werror_implicit 7331 if eval test \${$cacheid+y} 7332then : 7333 printf %s "(cached) " >&6 7334else $as_nop 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336/* end confdefs.h. */ 7337int i; 7338int 7339main (void) 7340{ 7341 7342 ; 7343 return 0; 7344} 7345_ACEOF 7346if ac_fn_c_try_link "$LINENO" 7347then : 7348 eval $cacheid=yes 7349else $as_nop 7350 eval $cacheid=no 7351fi 7352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7353 conftest$ac_exeext conftest.$ac_ext 7354fi 7355 7356 7357 CFLAGS="$xorg_testset_save_CFLAGS" 7358 7359 eval supported=\$$cacheid 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7361printf "%s\n" "$supported" >&6; } 7362 if test "$supported" = "yes" ; then 7363 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7364 found="yes" 7365 fi 7366 fi 7367 7368 if test $found = "no" ; then 7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7371 fi 7372 7373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7375 fi 7376 7377 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7378 7379 { 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 7380printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7381 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7382 if eval test \${$cacheid+y} 7383then : 7384 printf %s "(cached) " >&6 7385else $as_nop 7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387/* end confdefs.h. */ 7388int i; 7389int 7390main (void) 7391{ 7392 7393 ; 7394 return 0; 7395} 7396_ACEOF 7397if ac_fn_c_try_link "$LINENO" 7398then : 7399 eval $cacheid=yes 7400else $as_nop 7401 eval $cacheid=no 7402fi 7403rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7404 conftest$ac_exeext conftest.$ac_ext 7405fi 7406 7407 7408 CFLAGS="$xorg_testset_save_CFLAGS" 7409 7410 eval supported=\$$cacheid 7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7412printf "%s\n" "$supported" >&6; } 7413 if test "$supported" = "yes" ; then 7414 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7415 found="yes" 7416 fi 7417 fi 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433xorg_testset_save_CFLAGS="$CFLAGS" 7434 7435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7438printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7439if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7440then : 7441 printf %s "(cached) " >&6 7442else $as_nop 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444/* end confdefs.h. */ 7445int i; 7446_ACEOF 7447if ac_fn_c_try_compile "$LINENO" 7448then : 7449 xorg_cv_cc_flag_unknown_warning_option=yes 7450else $as_nop 7451 xorg_cv_cc_flag_unknown_warning_option=no 7452fi 7453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7454fi 7455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7456printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7458 CFLAGS="$xorg_testset_save_CFLAGS" 7459fi 7460 7461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7464 fi 7465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7467printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7468if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7469then : 7470 printf %s "(cached) " >&6 7471else $as_nop 7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7473/* end confdefs.h. */ 7474int i; 7475_ACEOF 7476if ac_fn_c_try_compile "$LINENO" 7477then : 7478 xorg_cv_cc_flag_unused_command_line_argument=yes 7479else $as_nop 7480 xorg_cv_cc_flag_unused_command_line_argument=no 7481fi 7482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7483fi 7484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7485printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7487 CFLAGS="$xorg_testset_save_CFLAGS" 7488fi 7489 7490found="no" 7491 7492 if test $found = "no" ; then 7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7495 fi 7496 7497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7499 fi 7500 7501 CFLAGS="$CFLAGS -Werror=nonnull" 7502 7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7504printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7505 cacheid=xorg_cv_cc_flag__Werror_nonnull 7506 if eval test \${$cacheid+y} 7507then : 7508 printf %s "(cached) " >&6 7509else $as_nop 7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7511/* end confdefs.h. */ 7512int i; 7513int 7514main (void) 7515{ 7516 7517 ; 7518 return 0; 7519} 7520_ACEOF 7521if ac_fn_c_try_link "$LINENO" 7522then : 7523 eval $cacheid=yes 7524else $as_nop 7525 eval $cacheid=no 7526fi 7527rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7528 conftest$ac_exeext conftest.$ac_ext 7529fi 7530 7531 7532 CFLAGS="$xorg_testset_save_CFLAGS" 7533 7534 eval supported=\$$cacheid 7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7536printf "%s\n" "$supported" >&6; } 7537 if test "$supported" = "yes" ; then 7538 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7539 found="yes" 7540 fi 7541 fi 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557xorg_testset_save_CFLAGS="$CFLAGS" 7558 7559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7562printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7563if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7564then : 7565 printf %s "(cached) " >&6 7566else $as_nop 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569int i; 7570_ACEOF 7571if ac_fn_c_try_compile "$LINENO" 7572then : 7573 xorg_cv_cc_flag_unknown_warning_option=yes 7574else $as_nop 7575 xorg_cv_cc_flag_unknown_warning_option=no 7576fi 7577rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7578fi 7579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7580printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7582 CFLAGS="$xorg_testset_save_CFLAGS" 7583fi 7584 7585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7588 fi 7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7591printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7592if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7593then : 7594 printf %s "(cached) " >&6 7595else $as_nop 7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7597/* end confdefs.h. */ 7598int i; 7599_ACEOF 7600if ac_fn_c_try_compile "$LINENO" 7601then : 7602 xorg_cv_cc_flag_unused_command_line_argument=yes 7603else $as_nop 7604 xorg_cv_cc_flag_unused_command_line_argument=no 7605fi 7606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7607fi 7608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7609printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7611 CFLAGS="$xorg_testset_save_CFLAGS" 7612fi 7613 7614found="no" 7615 7616 if test $found = "no" ; then 7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7619 fi 7620 7621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7623 fi 7624 7625 CFLAGS="$CFLAGS -Werror=init-self" 7626 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7628printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7629 cacheid=xorg_cv_cc_flag__Werror_init_self 7630 if eval test \${$cacheid+y} 7631then : 7632 printf %s "(cached) " >&6 7633else $as_nop 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635/* end confdefs.h. */ 7636int i; 7637int 7638main (void) 7639{ 7640 7641 ; 7642 return 0; 7643} 7644_ACEOF 7645if ac_fn_c_try_link "$LINENO" 7646then : 7647 eval $cacheid=yes 7648else $as_nop 7649 eval $cacheid=no 7650fi 7651rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7652 conftest$ac_exeext conftest.$ac_ext 7653fi 7654 7655 7656 CFLAGS="$xorg_testset_save_CFLAGS" 7657 7658 eval supported=\$$cacheid 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7660printf "%s\n" "$supported" >&6; } 7661 if test "$supported" = "yes" ; then 7662 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7663 found="yes" 7664 fi 7665 fi 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681xorg_testset_save_CFLAGS="$CFLAGS" 7682 7683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7686printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7687if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7688then : 7689 printf %s "(cached) " >&6 7690else $as_nop 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692/* end confdefs.h. */ 7693int i; 7694_ACEOF 7695if ac_fn_c_try_compile "$LINENO" 7696then : 7697 xorg_cv_cc_flag_unknown_warning_option=yes 7698else $as_nop 7699 xorg_cv_cc_flag_unknown_warning_option=no 7700fi 7701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7702fi 7703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7704printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7706 CFLAGS="$xorg_testset_save_CFLAGS" 7707fi 7708 7709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7712 fi 7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7715printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7716if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7717then : 7718 printf %s "(cached) " >&6 7719else $as_nop 7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7721/* end confdefs.h. */ 7722int i; 7723_ACEOF 7724if ac_fn_c_try_compile "$LINENO" 7725then : 7726 xorg_cv_cc_flag_unused_command_line_argument=yes 7727else $as_nop 7728 xorg_cv_cc_flag_unused_command_line_argument=no 7729fi 7730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7731fi 7732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7733printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7735 CFLAGS="$xorg_testset_save_CFLAGS" 7736fi 7737 7738found="no" 7739 7740 if test $found = "no" ; then 7741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7743 fi 7744 7745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7747 fi 7748 7749 CFLAGS="$CFLAGS -Werror=main" 7750 7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7752printf %s "checking if $CC supports -Werror=main... " >&6; } 7753 cacheid=xorg_cv_cc_flag__Werror_main 7754 if eval test \${$cacheid+y} 7755then : 7756 printf %s "(cached) " >&6 7757else $as_nop 7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759/* end confdefs.h. */ 7760int i; 7761int 7762main (void) 7763{ 7764 7765 ; 7766 return 0; 7767} 7768_ACEOF 7769if ac_fn_c_try_link "$LINENO" 7770then : 7771 eval $cacheid=yes 7772else $as_nop 7773 eval $cacheid=no 7774fi 7775rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7776 conftest$ac_exeext conftest.$ac_ext 7777fi 7778 7779 7780 CFLAGS="$xorg_testset_save_CFLAGS" 7781 7782 eval supported=\$$cacheid 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7784printf "%s\n" "$supported" >&6; } 7785 if test "$supported" = "yes" ; then 7786 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7787 found="yes" 7788 fi 7789 fi 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805xorg_testset_save_CFLAGS="$CFLAGS" 7806 7807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7810printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7811if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7812then : 7813 printf %s "(cached) " >&6 7814else $as_nop 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816/* end confdefs.h. */ 7817int i; 7818_ACEOF 7819if ac_fn_c_try_compile "$LINENO" 7820then : 7821 xorg_cv_cc_flag_unknown_warning_option=yes 7822else $as_nop 7823 xorg_cv_cc_flag_unknown_warning_option=no 7824fi 7825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7826fi 7827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7828printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7830 CFLAGS="$xorg_testset_save_CFLAGS" 7831fi 7832 7833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7836 fi 7837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7839printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7840if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7841then : 7842 printf %s "(cached) " >&6 7843else $as_nop 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845/* end confdefs.h. */ 7846int i; 7847_ACEOF 7848if ac_fn_c_try_compile "$LINENO" 7849then : 7850 xorg_cv_cc_flag_unused_command_line_argument=yes 7851else $as_nop 7852 xorg_cv_cc_flag_unused_command_line_argument=no 7853fi 7854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7855fi 7856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7857printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7859 CFLAGS="$xorg_testset_save_CFLAGS" 7860fi 7861 7862found="no" 7863 7864 if test $found = "no" ; then 7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7867 fi 7868 7869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7871 fi 7872 7873 CFLAGS="$CFLAGS -Werror=missing-braces" 7874 7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7876printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7877 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7878 if eval test \${$cacheid+y} 7879then : 7880 printf %s "(cached) " >&6 7881else $as_nop 7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7883/* end confdefs.h. */ 7884int i; 7885int 7886main (void) 7887{ 7888 7889 ; 7890 return 0; 7891} 7892_ACEOF 7893if ac_fn_c_try_link "$LINENO" 7894then : 7895 eval $cacheid=yes 7896else $as_nop 7897 eval $cacheid=no 7898fi 7899rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7900 conftest$ac_exeext conftest.$ac_ext 7901fi 7902 7903 7904 CFLAGS="$xorg_testset_save_CFLAGS" 7905 7906 eval supported=\$$cacheid 7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7908printf "%s\n" "$supported" >&6; } 7909 if test "$supported" = "yes" ; then 7910 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7911 found="yes" 7912 fi 7913 fi 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929xorg_testset_save_CFLAGS="$CFLAGS" 7930 7931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7934printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7935if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7936then : 7937 printf %s "(cached) " >&6 7938else $as_nop 7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940/* end confdefs.h. */ 7941int i; 7942_ACEOF 7943if ac_fn_c_try_compile "$LINENO" 7944then : 7945 xorg_cv_cc_flag_unknown_warning_option=yes 7946else $as_nop 7947 xorg_cv_cc_flag_unknown_warning_option=no 7948fi 7949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7950fi 7951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7952printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7954 CFLAGS="$xorg_testset_save_CFLAGS" 7955fi 7956 7957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7960 fi 7961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7963printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7964if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7965then : 7966 printf %s "(cached) " >&6 7967else $as_nop 7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7969/* end confdefs.h. */ 7970int i; 7971_ACEOF 7972if ac_fn_c_try_compile "$LINENO" 7973then : 7974 xorg_cv_cc_flag_unused_command_line_argument=yes 7975else $as_nop 7976 xorg_cv_cc_flag_unused_command_line_argument=no 7977fi 7978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7979fi 7980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7981printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7983 CFLAGS="$xorg_testset_save_CFLAGS" 7984fi 7985 7986found="no" 7987 7988 if test $found = "no" ; then 7989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7991 fi 7992 7993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7995 fi 7996 7997 CFLAGS="$CFLAGS -Werror=sequence-point" 7998 7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8000printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8001 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8002 if eval test \${$cacheid+y} 8003then : 8004 printf %s "(cached) " >&6 8005else $as_nop 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008int i; 8009int 8010main (void) 8011{ 8012 8013 ; 8014 return 0; 8015} 8016_ACEOF 8017if ac_fn_c_try_link "$LINENO" 8018then : 8019 eval $cacheid=yes 8020else $as_nop 8021 eval $cacheid=no 8022fi 8023rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8024 conftest$ac_exeext conftest.$ac_ext 8025fi 8026 8027 8028 CFLAGS="$xorg_testset_save_CFLAGS" 8029 8030 eval supported=\$$cacheid 8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8032printf "%s\n" "$supported" >&6; } 8033 if test "$supported" = "yes" ; then 8034 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8035 found="yes" 8036 fi 8037 fi 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053xorg_testset_save_CFLAGS="$CFLAGS" 8054 8055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8058printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8059if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8060then : 8061 printf %s "(cached) " >&6 8062else $as_nop 8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8064/* end confdefs.h. */ 8065int i; 8066_ACEOF 8067if ac_fn_c_try_compile "$LINENO" 8068then : 8069 xorg_cv_cc_flag_unknown_warning_option=yes 8070else $as_nop 8071 xorg_cv_cc_flag_unknown_warning_option=no 8072fi 8073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8074fi 8075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8076printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8078 CFLAGS="$xorg_testset_save_CFLAGS" 8079fi 8080 8081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8084 fi 8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8087printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8088if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8089then : 8090 printf %s "(cached) " >&6 8091else $as_nop 8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093/* end confdefs.h. */ 8094int i; 8095_ACEOF 8096if ac_fn_c_try_compile "$LINENO" 8097then : 8098 xorg_cv_cc_flag_unused_command_line_argument=yes 8099else $as_nop 8100 xorg_cv_cc_flag_unused_command_line_argument=no 8101fi 8102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8103fi 8104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8105printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8107 CFLAGS="$xorg_testset_save_CFLAGS" 8108fi 8109 8110found="no" 8111 8112 if test $found = "no" ; then 8113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8115 fi 8116 8117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8119 fi 8120 8121 CFLAGS="$CFLAGS -Werror=return-type" 8122 8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8124printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8125 cacheid=xorg_cv_cc_flag__Werror_return_type 8126 if eval test \${$cacheid+y} 8127then : 8128 printf %s "(cached) " >&6 8129else $as_nop 8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8131/* end confdefs.h. */ 8132int i; 8133int 8134main (void) 8135{ 8136 8137 ; 8138 return 0; 8139} 8140_ACEOF 8141if ac_fn_c_try_link "$LINENO" 8142then : 8143 eval $cacheid=yes 8144else $as_nop 8145 eval $cacheid=no 8146fi 8147rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8148 conftest$ac_exeext conftest.$ac_ext 8149fi 8150 8151 8152 CFLAGS="$xorg_testset_save_CFLAGS" 8153 8154 eval supported=\$$cacheid 8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8156printf "%s\n" "$supported" >&6; } 8157 if test "$supported" = "yes" ; then 8158 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8159 found="yes" 8160 fi 8161 fi 8162 8163 if test $found = "no" ; then 8164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8166 fi 8167 8168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8170 fi 8171 8172 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8173 8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8175printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8176 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8177 if eval test \${$cacheid+y} 8178then : 8179 printf %s "(cached) " >&6 8180else $as_nop 8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8182/* end confdefs.h. */ 8183int i; 8184int 8185main (void) 8186{ 8187 8188 ; 8189 return 0; 8190} 8191_ACEOF 8192if ac_fn_c_try_link "$LINENO" 8193then : 8194 eval $cacheid=yes 8195else $as_nop 8196 eval $cacheid=no 8197fi 8198rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8199 conftest$ac_exeext conftest.$ac_ext 8200fi 8201 8202 8203 CFLAGS="$xorg_testset_save_CFLAGS" 8204 8205 eval supported=\$$cacheid 8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8207printf "%s\n" "$supported" >&6; } 8208 if test "$supported" = "yes" ; then 8209 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8210 found="yes" 8211 fi 8212 fi 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228xorg_testset_save_CFLAGS="$CFLAGS" 8229 8230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8233printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8234if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8235then : 8236 printf %s "(cached) " >&6 8237else $as_nop 8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8239/* end confdefs.h. */ 8240int i; 8241_ACEOF 8242if ac_fn_c_try_compile "$LINENO" 8243then : 8244 xorg_cv_cc_flag_unknown_warning_option=yes 8245else $as_nop 8246 xorg_cv_cc_flag_unknown_warning_option=no 8247fi 8248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8249fi 8250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8251printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8253 CFLAGS="$xorg_testset_save_CFLAGS" 8254fi 8255 8256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8259 fi 8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8262printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8263if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8264then : 8265 printf %s "(cached) " >&6 8266else $as_nop 8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8268/* end confdefs.h. */ 8269int i; 8270_ACEOF 8271if ac_fn_c_try_compile "$LINENO" 8272then : 8273 xorg_cv_cc_flag_unused_command_line_argument=yes 8274else $as_nop 8275 xorg_cv_cc_flag_unused_command_line_argument=no 8276fi 8277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8278fi 8279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8282 CFLAGS="$xorg_testset_save_CFLAGS" 8283fi 8284 8285found="no" 8286 8287 if test $found = "no" ; then 8288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8290 fi 8291 8292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8294 fi 8295 8296 CFLAGS="$CFLAGS -Werror=trigraphs" 8297 8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8299printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8300 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8301 if eval test \${$cacheid+y} 8302then : 8303 printf %s "(cached) " >&6 8304else $as_nop 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307int i; 8308int 8309main (void) 8310{ 8311 8312 ; 8313 return 0; 8314} 8315_ACEOF 8316if ac_fn_c_try_link "$LINENO" 8317then : 8318 eval $cacheid=yes 8319else $as_nop 8320 eval $cacheid=no 8321fi 8322rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8323 conftest$ac_exeext conftest.$ac_ext 8324fi 8325 8326 8327 CFLAGS="$xorg_testset_save_CFLAGS" 8328 8329 eval supported=\$$cacheid 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8331printf "%s\n" "$supported" >&6; } 8332 if test "$supported" = "yes" ; then 8333 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8334 found="yes" 8335 fi 8336 fi 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352xorg_testset_save_CFLAGS="$CFLAGS" 8353 8354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8358if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8359then : 8360 printf %s "(cached) " >&6 8361else $as_nop 8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363/* end confdefs.h. */ 8364int i; 8365_ACEOF 8366if ac_fn_c_try_compile "$LINENO" 8367then : 8368 xorg_cv_cc_flag_unknown_warning_option=yes 8369else $as_nop 8370 xorg_cv_cc_flag_unknown_warning_option=no 8371fi 8372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8373fi 8374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8375printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8377 CFLAGS="$xorg_testset_save_CFLAGS" 8378fi 8379 8380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8383 fi 8384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8386printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8387if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8388then : 8389 printf %s "(cached) " >&6 8390else $as_nop 8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8392/* end confdefs.h. */ 8393int i; 8394_ACEOF 8395if ac_fn_c_try_compile "$LINENO" 8396then : 8397 xorg_cv_cc_flag_unused_command_line_argument=yes 8398else $as_nop 8399 xorg_cv_cc_flag_unused_command_line_argument=no 8400fi 8401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8402fi 8403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8406 CFLAGS="$xorg_testset_save_CFLAGS" 8407fi 8408 8409found="no" 8410 8411 if test $found = "no" ; then 8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8414 fi 8415 8416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8418 fi 8419 8420 CFLAGS="$CFLAGS -Werror=array-bounds" 8421 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8423printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8424 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8425 if eval test \${$cacheid+y} 8426then : 8427 printf %s "(cached) " >&6 8428else $as_nop 8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8430/* end confdefs.h. */ 8431int i; 8432int 8433main (void) 8434{ 8435 8436 ; 8437 return 0; 8438} 8439_ACEOF 8440if ac_fn_c_try_link "$LINENO" 8441then : 8442 eval $cacheid=yes 8443else $as_nop 8444 eval $cacheid=no 8445fi 8446rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8447 conftest$ac_exeext conftest.$ac_ext 8448fi 8449 8450 8451 CFLAGS="$xorg_testset_save_CFLAGS" 8452 8453 eval supported=\$$cacheid 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8455printf "%s\n" "$supported" >&6; } 8456 if test "$supported" = "yes" ; then 8457 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8458 found="yes" 8459 fi 8460 fi 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476xorg_testset_save_CFLAGS="$CFLAGS" 8477 8478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8482if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8483then : 8484 printf %s "(cached) " >&6 8485else $as_nop 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488int i; 8489_ACEOF 8490if ac_fn_c_try_compile "$LINENO" 8491then : 8492 xorg_cv_cc_flag_unknown_warning_option=yes 8493else $as_nop 8494 xorg_cv_cc_flag_unknown_warning_option=no 8495fi 8496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8497fi 8498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8499printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8501 CFLAGS="$xorg_testset_save_CFLAGS" 8502fi 8503 8504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8507 fi 8508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8510printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8511if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8512then : 8513 printf %s "(cached) " >&6 8514else $as_nop 8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8516/* end confdefs.h. */ 8517int i; 8518_ACEOF 8519if ac_fn_c_try_compile "$LINENO" 8520then : 8521 xorg_cv_cc_flag_unused_command_line_argument=yes 8522else $as_nop 8523 xorg_cv_cc_flag_unused_command_line_argument=no 8524fi 8525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8526fi 8527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8528printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8530 CFLAGS="$xorg_testset_save_CFLAGS" 8531fi 8532 8533found="no" 8534 8535 if test $found = "no" ; then 8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8538 fi 8539 8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8542 fi 8543 8544 CFLAGS="$CFLAGS -Werror=write-strings" 8545 8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8547printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8548 cacheid=xorg_cv_cc_flag__Werror_write_strings 8549 if eval test \${$cacheid+y} 8550then : 8551 printf %s "(cached) " >&6 8552else $as_nop 8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8554/* end confdefs.h. */ 8555int i; 8556int 8557main (void) 8558{ 8559 8560 ; 8561 return 0; 8562} 8563_ACEOF 8564if ac_fn_c_try_link "$LINENO" 8565then : 8566 eval $cacheid=yes 8567else $as_nop 8568 eval $cacheid=no 8569fi 8570rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8571 conftest$ac_exeext conftest.$ac_ext 8572fi 8573 8574 8575 CFLAGS="$xorg_testset_save_CFLAGS" 8576 8577 eval supported=\$$cacheid 8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8579printf "%s\n" "$supported" >&6; } 8580 if test "$supported" = "yes" ; then 8581 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8582 found="yes" 8583 fi 8584 fi 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600xorg_testset_save_CFLAGS="$CFLAGS" 8601 8602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8605printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8606if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8607then : 8608 printf %s "(cached) " >&6 8609else $as_nop 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613_ACEOF 8614if ac_fn_c_try_compile "$LINENO" 8615then : 8616 xorg_cv_cc_flag_unknown_warning_option=yes 8617else $as_nop 8618 xorg_cv_cc_flag_unknown_warning_option=no 8619fi 8620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8621fi 8622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8623printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8625 CFLAGS="$xorg_testset_save_CFLAGS" 8626fi 8627 8628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8631 fi 8632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8634printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8635if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8636then : 8637 printf %s "(cached) " >&6 8638else $as_nop 8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8640/* end confdefs.h. */ 8641int i; 8642_ACEOF 8643if ac_fn_c_try_compile "$LINENO" 8644then : 8645 xorg_cv_cc_flag_unused_command_line_argument=yes 8646else $as_nop 8647 xorg_cv_cc_flag_unused_command_line_argument=no 8648fi 8649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8650fi 8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8652printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8654 CFLAGS="$xorg_testset_save_CFLAGS" 8655fi 8656 8657found="no" 8658 8659 if test $found = "no" ; then 8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8662 fi 8663 8664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8666 fi 8667 8668 CFLAGS="$CFLAGS -Werror=address" 8669 8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8671printf %s "checking if $CC supports -Werror=address... " >&6; } 8672 cacheid=xorg_cv_cc_flag__Werror_address 8673 if eval test \${$cacheid+y} 8674then : 8675 printf %s "(cached) " >&6 8676else $as_nop 8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8678/* end confdefs.h. */ 8679int i; 8680int 8681main (void) 8682{ 8683 8684 ; 8685 return 0; 8686} 8687_ACEOF 8688if ac_fn_c_try_link "$LINENO" 8689then : 8690 eval $cacheid=yes 8691else $as_nop 8692 eval $cacheid=no 8693fi 8694rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8695 conftest$ac_exeext conftest.$ac_ext 8696fi 8697 8698 8699 CFLAGS="$xorg_testset_save_CFLAGS" 8700 8701 eval supported=\$$cacheid 8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8703printf "%s\n" "$supported" >&6; } 8704 if test "$supported" = "yes" ; then 8705 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8706 found="yes" 8707 fi 8708 fi 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724xorg_testset_save_CFLAGS="$CFLAGS" 8725 8726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8729printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8730if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8731then : 8732 printf %s "(cached) " >&6 8733else $as_nop 8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8735/* end confdefs.h. */ 8736int i; 8737_ACEOF 8738if ac_fn_c_try_compile "$LINENO" 8739then : 8740 xorg_cv_cc_flag_unknown_warning_option=yes 8741else $as_nop 8742 xorg_cv_cc_flag_unknown_warning_option=no 8743fi 8744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8745fi 8746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8747printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8749 CFLAGS="$xorg_testset_save_CFLAGS" 8750fi 8751 8752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8755 fi 8756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8758printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8759if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8760then : 8761 printf %s "(cached) " >&6 8762else $as_nop 8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8764/* end confdefs.h. */ 8765int i; 8766_ACEOF 8767if ac_fn_c_try_compile "$LINENO" 8768then : 8769 xorg_cv_cc_flag_unused_command_line_argument=yes 8770else $as_nop 8771 xorg_cv_cc_flag_unused_command_line_argument=no 8772fi 8773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8774fi 8775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8776printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8778 CFLAGS="$xorg_testset_save_CFLAGS" 8779fi 8780 8781found="no" 8782 8783 if test $found = "no" ; then 8784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8786 fi 8787 8788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8790 fi 8791 8792 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8793 8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8795printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8796 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8797 if eval test \${$cacheid+y} 8798then : 8799 printf %s "(cached) " >&6 8800else $as_nop 8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8802/* end confdefs.h. */ 8803int i; 8804int 8805main (void) 8806{ 8807 8808 ; 8809 return 0; 8810} 8811_ACEOF 8812if ac_fn_c_try_link "$LINENO" 8813then : 8814 eval $cacheid=yes 8815else $as_nop 8816 eval $cacheid=no 8817fi 8818rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8819 conftest$ac_exeext conftest.$ac_ext 8820fi 8821 8822 8823 CFLAGS="$xorg_testset_save_CFLAGS" 8824 8825 eval supported=\$$cacheid 8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8827printf "%s\n" "$supported" >&6; } 8828 if test "$supported" = "yes" ; then 8829 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8830 found="yes" 8831 fi 8832 fi 8833 8834 if test $found = "no" ; then 8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8837 fi 8838 8839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8841 fi 8842 8843 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8844 8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8846printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8847 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8848 if eval test \${$cacheid+y} 8849then : 8850 printf %s "(cached) " >&6 8851else $as_nop 8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8853/* end confdefs.h. */ 8854int i; 8855int 8856main (void) 8857{ 8858 8859 ; 8860 return 0; 8861} 8862_ACEOF 8863if ac_fn_c_try_link "$LINENO" 8864then : 8865 eval $cacheid=yes 8866else $as_nop 8867 eval $cacheid=no 8868fi 8869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8870 conftest$ac_exeext conftest.$ac_ext 8871fi 8872 8873 8874 CFLAGS="$xorg_testset_save_CFLAGS" 8875 8876 eval supported=\$$cacheid 8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8878printf "%s\n" "$supported" >&6; } 8879 if test "$supported" = "yes" ; then 8880 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8881 found="yes" 8882 fi 8883 fi 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899xorg_testset_save_CFLAGS="$CFLAGS" 8900 8901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8904printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8905if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8906then : 8907 printf %s "(cached) " >&6 8908else $as_nop 8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8910/* end confdefs.h. */ 8911int i; 8912_ACEOF 8913if ac_fn_c_try_compile "$LINENO" 8914then : 8915 xorg_cv_cc_flag_unknown_warning_option=yes 8916else $as_nop 8917 xorg_cv_cc_flag_unknown_warning_option=no 8918fi 8919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8920fi 8921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8924 CFLAGS="$xorg_testset_save_CFLAGS" 8925fi 8926 8927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8930 fi 8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8934if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8935then : 8936 printf %s "(cached) " >&6 8937else $as_nop 8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8939/* end confdefs.h. */ 8940int i; 8941_ACEOF 8942if ac_fn_c_try_compile "$LINENO" 8943then : 8944 xorg_cv_cc_flag_unused_command_line_argument=yes 8945else $as_nop 8946 xorg_cv_cc_flag_unused_command_line_argument=no 8947fi 8948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8949fi 8950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8953 CFLAGS="$xorg_testset_save_CFLAGS" 8954fi 8955 8956found="no" 8957 8958 if test $found = "no" ; then 8959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8961 fi 8962 8963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8965 fi 8966 8967 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8968 8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8970printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8971 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8972 if eval test \${$cacheid+y} 8973then : 8974 printf %s "(cached) " >&6 8975else $as_nop 8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8977/* end confdefs.h. */ 8978int i; 8979int 8980main (void) 8981{ 8982 8983 ; 8984 return 0; 8985} 8986_ACEOF 8987if ac_fn_c_try_link "$LINENO" 8988then : 8989 eval $cacheid=yes 8990else $as_nop 8991 eval $cacheid=no 8992fi 8993rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8994 conftest$ac_exeext conftest.$ac_ext 8995fi 8996 8997 8998 CFLAGS="$xorg_testset_save_CFLAGS" 8999 9000 eval supported=\$$cacheid 9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9002printf "%s\n" "$supported" >&6; } 9003 if test "$supported" = "yes" ; then 9004 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9005 found="yes" 9006 fi 9007 fi 9008 9009 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9010else 9011{ 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 9012printf "%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;} 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026xorg_testset_save_CFLAGS="$CFLAGS" 9027 9028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9032if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9033then : 9034 printf %s "(cached) " >&6 9035else $as_nop 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037/* end confdefs.h. */ 9038int i; 9039_ACEOF 9040if ac_fn_c_try_compile "$LINENO" 9041then : 9042 xorg_cv_cc_flag_unknown_warning_option=yes 9043else $as_nop 9044 xorg_cv_cc_flag_unknown_warning_option=no 9045fi 9046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9047fi 9048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9051 CFLAGS="$xorg_testset_save_CFLAGS" 9052fi 9053 9054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9057 fi 9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9061if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9062then : 9063 printf %s "(cached) " >&6 9064else $as_nop 9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9066/* end confdefs.h. */ 9067int i; 9068_ACEOF 9069if ac_fn_c_try_compile "$LINENO" 9070then : 9071 xorg_cv_cc_flag_unused_command_line_argument=yes 9072else $as_nop 9073 xorg_cv_cc_flag_unused_command_line_argument=no 9074fi 9075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9076fi 9077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9080 CFLAGS="$xorg_testset_save_CFLAGS" 9081fi 9082 9083found="no" 9084 9085 if test $found = "no" ; then 9086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9088 fi 9089 9090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9092 fi 9093 9094 CFLAGS="$CFLAGS -Wimplicit" 9095 9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9097printf %s "checking if $CC supports -Wimplicit... " >&6; } 9098 cacheid=xorg_cv_cc_flag__Wimplicit 9099 if eval test \${$cacheid+y} 9100then : 9101 printf %s "(cached) " >&6 9102else $as_nop 9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9104/* end confdefs.h. */ 9105int i; 9106int 9107main (void) 9108{ 9109 9110 ; 9111 return 0; 9112} 9113_ACEOF 9114if ac_fn_c_try_link "$LINENO" 9115then : 9116 eval $cacheid=yes 9117else $as_nop 9118 eval $cacheid=no 9119fi 9120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9121 conftest$ac_exeext conftest.$ac_ext 9122fi 9123 9124 9125 CFLAGS="$xorg_testset_save_CFLAGS" 9126 9127 eval supported=\$$cacheid 9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9129printf "%s\n" "$supported" >&6; } 9130 if test "$supported" = "yes" ; then 9131 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9132 found="yes" 9133 fi 9134 fi 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150xorg_testset_save_CFLAGS="$CFLAGS" 9151 9152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9156if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9157then : 9158 printf %s "(cached) " >&6 9159else $as_nop 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161/* end confdefs.h. */ 9162int i; 9163_ACEOF 9164if ac_fn_c_try_compile "$LINENO" 9165then : 9166 xorg_cv_cc_flag_unknown_warning_option=yes 9167else $as_nop 9168 xorg_cv_cc_flag_unknown_warning_option=no 9169fi 9170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9171fi 9172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9175 CFLAGS="$xorg_testset_save_CFLAGS" 9176fi 9177 9178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9181 fi 9182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9185if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9186then : 9187 printf %s "(cached) " >&6 9188else $as_nop 9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9190/* end confdefs.h. */ 9191int i; 9192_ACEOF 9193if ac_fn_c_try_compile "$LINENO" 9194then : 9195 xorg_cv_cc_flag_unused_command_line_argument=yes 9196else $as_nop 9197 xorg_cv_cc_flag_unused_command_line_argument=no 9198fi 9199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9200fi 9201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9204 CFLAGS="$xorg_testset_save_CFLAGS" 9205fi 9206 9207found="no" 9208 9209 if test $found = "no" ; then 9210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9212 fi 9213 9214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9216 fi 9217 9218 CFLAGS="$CFLAGS -Wnonnull" 9219 9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9221printf %s "checking if $CC supports -Wnonnull... " >&6; } 9222 cacheid=xorg_cv_cc_flag__Wnonnull 9223 if eval test \${$cacheid+y} 9224then : 9225 printf %s "(cached) " >&6 9226else $as_nop 9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9228/* end confdefs.h. */ 9229int i; 9230int 9231main (void) 9232{ 9233 9234 ; 9235 return 0; 9236} 9237_ACEOF 9238if ac_fn_c_try_link "$LINENO" 9239then : 9240 eval $cacheid=yes 9241else $as_nop 9242 eval $cacheid=no 9243fi 9244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9245 conftest$ac_exeext conftest.$ac_ext 9246fi 9247 9248 9249 CFLAGS="$xorg_testset_save_CFLAGS" 9250 9251 eval supported=\$$cacheid 9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9253printf "%s\n" "$supported" >&6; } 9254 if test "$supported" = "yes" ; then 9255 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9256 found="yes" 9257 fi 9258 fi 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274xorg_testset_save_CFLAGS="$CFLAGS" 9275 9276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9280if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9281then : 9282 printf %s "(cached) " >&6 9283else $as_nop 9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9285/* end confdefs.h. */ 9286int i; 9287_ACEOF 9288if ac_fn_c_try_compile "$LINENO" 9289then : 9290 xorg_cv_cc_flag_unknown_warning_option=yes 9291else $as_nop 9292 xorg_cv_cc_flag_unknown_warning_option=no 9293fi 9294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9295fi 9296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9299 CFLAGS="$xorg_testset_save_CFLAGS" 9300fi 9301 9302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9305 fi 9306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9309if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9310then : 9311 printf %s "(cached) " >&6 9312else $as_nop 9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9314/* end confdefs.h. */ 9315int i; 9316_ACEOF 9317if ac_fn_c_try_compile "$LINENO" 9318then : 9319 xorg_cv_cc_flag_unused_command_line_argument=yes 9320else $as_nop 9321 xorg_cv_cc_flag_unused_command_line_argument=no 9322fi 9323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9324fi 9325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9328 CFLAGS="$xorg_testset_save_CFLAGS" 9329fi 9330 9331found="no" 9332 9333 if test $found = "no" ; then 9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9336 fi 9337 9338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9340 fi 9341 9342 CFLAGS="$CFLAGS -Winit-self" 9343 9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9345printf %s "checking if $CC supports -Winit-self... " >&6; } 9346 cacheid=xorg_cv_cc_flag__Winit_self 9347 if eval test \${$cacheid+y} 9348then : 9349 printf %s "(cached) " >&6 9350else $as_nop 9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352/* end confdefs.h. */ 9353int i; 9354int 9355main (void) 9356{ 9357 9358 ; 9359 return 0; 9360} 9361_ACEOF 9362if ac_fn_c_try_link "$LINENO" 9363then : 9364 eval $cacheid=yes 9365else $as_nop 9366 eval $cacheid=no 9367fi 9368rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9369 conftest$ac_exeext conftest.$ac_ext 9370fi 9371 9372 9373 CFLAGS="$xorg_testset_save_CFLAGS" 9374 9375 eval supported=\$$cacheid 9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9377printf "%s\n" "$supported" >&6; } 9378 if test "$supported" = "yes" ; then 9379 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9380 found="yes" 9381 fi 9382 fi 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398xorg_testset_save_CFLAGS="$CFLAGS" 9399 9400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9404if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9405then : 9406 printf %s "(cached) " >&6 9407else $as_nop 9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409/* end confdefs.h. */ 9410int i; 9411_ACEOF 9412if ac_fn_c_try_compile "$LINENO" 9413then : 9414 xorg_cv_cc_flag_unknown_warning_option=yes 9415else $as_nop 9416 xorg_cv_cc_flag_unknown_warning_option=no 9417fi 9418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9419fi 9420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9423 CFLAGS="$xorg_testset_save_CFLAGS" 9424fi 9425 9426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9429 fi 9430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9433if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9434then : 9435 printf %s "(cached) " >&6 9436else $as_nop 9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9438/* end confdefs.h. */ 9439int i; 9440_ACEOF 9441if ac_fn_c_try_compile "$LINENO" 9442then : 9443 xorg_cv_cc_flag_unused_command_line_argument=yes 9444else $as_nop 9445 xorg_cv_cc_flag_unused_command_line_argument=no 9446fi 9447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9448fi 9449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9452 CFLAGS="$xorg_testset_save_CFLAGS" 9453fi 9454 9455found="no" 9456 9457 if test $found = "no" ; then 9458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9460 fi 9461 9462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9464 fi 9465 9466 CFLAGS="$CFLAGS -Wmain" 9467 9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9469printf %s "checking if $CC supports -Wmain... " >&6; } 9470 cacheid=xorg_cv_cc_flag__Wmain 9471 if eval test \${$cacheid+y} 9472then : 9473 printf %s "(cached) " >&6 9474else $as_nop 9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476/* end confdefs.h. */ 9477int i; 9478int 9479main (void) 9480{ 9481 9482 ; 9483 return 0; 9484} 9485_ACEOF 9486if ac_fn_c_try_link "$LINENO" 9487then : 9488 eval $cacheid=yes 9489else $as_nop 9490 eval $cacheid=no 9491fi 9492rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9493 conftest$ac_exeext conftest.$ac_ext 9494fi 9495 9496 9497 CFLAGS="$xorg_testset_save_CFLAGS" 9498 9499 eval supported=\$$cacheid 9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9501printf "%s\n" "$supported" >&6; } 9502 if test "$supported" = "yes" ; then 9503 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9504 found="yes" 9505 fi 9506 fi 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522xorg_testset_save_CFLAGS="$CFLAGS" 9523 9524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9528if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9529then : 9530 printf %s "(cached) " >&6 9531else $as_nop 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534int i; 9535_ACEOF 9536if ac_fn_c_try_compile "$LINENO" 9537then : 9538 xorg_cv_cc_flag_unknown_warning_option=yes 9539else $as_nop 9540 xorg_cv_cc_flag_unknown_warning_option=no 9541fi 9542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9543fi 9544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9547 CFLAGS="$xorg_testset_save_CFLAGS" 9548fi 9549 9550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9553 fi 9554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9557if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9558then : 9559 printf %s "(cached) " >&6 9560else $as_nop 9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9562/* end confdefs.h. */ 9563int i; 9564_ACEOF 9565if ac_fn_c_try_compile "$LINENO" 9566then : 9567 xorg_cv_cc_flag_unused_command_line_argument=yes 9568else $as_nop 9569 xorg_cv_cc_flag_unused_command_line_argument=no 9570fi 9571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9572fi 9573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9576 CFLAGS="$xorg_testset_save_CFLAGS" 9577fi 9578 9579found="no" 9580 9581 if test $found = "no" ; then 9582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9584 fi 9585 9586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9588 fi 9589 9590 CFLAGS="$CFLAGS -Wmissing-braces" 9591 9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9593printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9594 cacheid=xorg_cv_cc_flag__Wmissing_braces 9595 if eval test \${$cacheid+y} 9596then : 9597 printf %s "(cached) " >&6 9598else $as_nop 9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9600/* end confdefs.h. */ 9601int i; 9602int 9603main (void) 9604{ 9605 9606 ; 9607 return 0; 9608} 9609_ACEOF 9610if ac_fn_c_try_link "$LINENO" 9611then : 9612 eval $cacheid=yes 9613else $as_nop 9614 eval $cacheid=no 9615fi 9616rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9617 conftest$ac_exeext conftest.$ac_ext 9618fi 9619 9620 9621 CFLAGS="$xorg_testset_save_CFLAGS" 9622 9623 eval supported=\$$cacheid 9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9625printf "%s\n" "$supported" >&6; } 9626 if test "$supported" = "yes" ; then 9627 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9628 found="yes" 9629 fi 9630 fi 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646xorg_testset_save_CFLAGS="$CFLAGS" 9647 9648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9651printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9652if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9653then : 9654 printf %s "(cached) " >&6 9655else $as_nop 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657/* end confdefs.h. */ 9658int i; 9659_ACEOF 9660if ac_fn_c_try_compile "$LINENO" 9661then : 9662 xorg_cv_cc_flag_unknown_warning_option=yes 9663else $as_nop 9664 xorg_cv_cc_flag_unknown_warning_option=no 9665fi 9666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9667fi 9668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9669printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9671 CFLAGS="$xorg_testset_save_CFLAGS" 9672fi 9673 9674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9677 fi 9678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9680printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9681if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9682then : 9683 printf %s "(cached) " >&6 9684else $as_nop 9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9686/* end confdefs.h. */ 9687int i; 9688_ACEOF 9689if ac_fn_c_try_compile "$LINENO" 9690then : 9691 xorg_cv_cc_flag_unused_command_line_argument=yes 9692else $as_nop 9693 xorg_cv_cc_flag_unused_command_line_argument=no 9694fi 9695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9696fi 9697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9698printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9700 CFLAGS="$xorg_testset_save_CFLAGS" 9701fi 9702 9703found="no" 9704 9705 if test $found = "no" ; then 9706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9708 fi 9709 9710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9712 fi 9713 9714 CFLAGS="$CFLAGS -Wsequence-point" 9715 9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9717printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9718 cacheid=xorg_cv_cc_flag__Wsequence_point 9719 if eval test \${$cacheid+y} 9720then : 9721 printf %s "(cached) " >&6 9722else $as_nop 9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9724/* end confdefs.h. */ 9725int i; 9726int 9727main (void) 9728{ 9729 9730 ; 9731 return 0; 9732} 9733_ACEOF 9734if ac_fn_c_try_link "$LINENO" 9735then : 9736 eval $cacheid=yes 9737else $as_nop 9738 eval $cacheid=no 9739fi 9740rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9741 conftest$ac_exeext conftest.$ac_ext 9742fi 9743 9744 9745 CFLAGS="$xorg_testset_save_CFLAGS" 9746 9747 eval supported=\$$cacheid 9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9749printf "%s\n" "$supported" >&6; } 9750 if test "$supported" = "yes" ; then 9751 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9752 found="yes" 9753 fi 9754 fi 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770xorg_testset_save_CFLAGS="$CFLAGS" 9771 9772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9775printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9776if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9777then : 9778 printf %s "(cached) " >&6 9779else $as_nop 9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9781/* end confdefs.h. */ 9782int i; 9783_ACEOF 9784if ac_fn_c_try_compile "$LINENO" 9785then : 9786 xorg_cv_cc_flag_unknown_warning_option=yes 9787else $as_nop 9788 xorg_cv_cc_flag_unknown_warning_option=no 9789fi 9790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9791fi 9792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9793printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9795 CFLAGS="$xorg_testset_save_CFLAGS" 9796fi 9797 9798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9801 fi 9802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9804printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9805if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9806then : 9807 printf %s "(cached) " >&6 9808else $as_nop 9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9810/* end confdefs.h. */ 9811int i; 9812_ACEOF 9813if ac_fn_c_try_compile "$LINENO" 9814then : 9815 xorg_cv_cc_flag_unused_command_line_argument=yes 9816else $as_nop 9817 xorg_cv_cc_flag_unused_command_line_argument=no 9818fi 9819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9820fi 9821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9824 CFLAGS="$xorg_testset_save_CFLAGS" 9825fi 9826 9827found="no" 9828 9829 if test $found = "no" ; then 9830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9832 fi 9833 9834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9836 fi 9837 9838 CFLAGS="$CFLAGS -Wreturn-type" 9839 9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9841printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9842 cacheid=xorg_cv_cc_flag__Wreturn_type 9843 if eval test \${$cacheid+y} 9844then : 9845 printf %s "(cached) " >&6 9846else $as_nop 9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9848/* end confdefs.h. */ 9849int i; 9850int 9851main (void) 9852{ 9853 9854 ; 9855 return 0; 9856} 9857_ACEOF 9858if ac_fn_c_try_link "$LINENO" 9859then : 9860 eval $cacheid=yes 9861else $as_nop 9862 eval $cacheid=no 9863fi 9864rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9865 conftest$ac_exeext conftest.$ac_ext 9866fi 9867 9868 9869 CFLAGS="$xorg_testset_save_CFLAGS" 9870 9871 eval supported=\$$cacheid 9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9873printf "%s\n" "$supported" >&6; } 9874 if test "$supported" = "yes" ; then 9875 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9876 found="yes" 9877 fi 9878 fi 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894xorg_testset_save_CFLAGS="$CFLAGS" 9895 9896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9899printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9900if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9901then : 9902 printf %s "(cached) " >&6 9903else $as_nop 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905/* end confdefs.h. */ 9906int i; 9907_ACEOF 9908if ac_fn_c_try_compile "$LINENO" 9909then : 9910 xorg_cv_cc_flag_unknown_warning_option=yes 9911else $as_nop 9912 xorg_cv_cc_flag_unknown_warning_option=no 9913fi 9914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9915fi 9916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9917printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9919 CFLAGS="$xorg_testset_save_CFLAGS" 9920fi 9921 9922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9925 fi 9926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9928printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9929if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9930then : 9931 printf %s "(cached) " >&6 9932else $as_nop 9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9934/* end confdefs.h. */ 9935int i; 9936_ACEOF 9937if ac_fn_c_try_compile "$LINENO" 9938then : 9939 xorg_cv_cc_flag_unused_command_line_argument=yes 9940else $as_nop 9941 xorg_cv_cc_flag_unused_command_line_argument=no 9942fi 9943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9944fi 9945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9946printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9948 CFLAGS="$xorg_testset_save_CFLAGS" 9949fi 9950 9951found="no" 9952 9953 if test $found = "no" ; then 9954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9956 fi 9957 9958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9960 fi 9961 9962 CFLAGS="$CFLAGS -Wtrigraphs" 9963 9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9965printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9966 cacheid=xorg_cv_cc_flag__Wtrigraphs 9967 if eval test \${$cacheid+y} 9968then : 9969 printf %s "(cached) " >&6 9970else $as_nop 9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9972/* end confdefs.h. */ 9973int i; 9974int 9975main (void) 9976{ 9977 9978 ; 9979 return 0; 9980} 9981_ACEOF 9982if ac_fn_c_try_link "$LINENO" 9983then : 9984 eval $cacheid=yes 9985else $as_nop 9986 eval $cacheid=no 9987fi 9988rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9989 conftest$ac_exeext conftest.$ac_ext 9990fi 9991 9992 9993 CFLAGS="$xorg_testset_save_CFLAGS" 9994 9995 eval supported=\$$cacheid 9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9997printf "%s\n" "$supported" >&6; } 9998 if test "$supported" = "yes" ; then 9999 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10000 found="yes" 10001 fi 10002 fi 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018xorg_testset_save_CFLAGS="$CFLAGS" 10019 10020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10023printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10024if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10025then : 10026 printf %s "(cached) " >&6 10027else $as_nop 10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10029/* end confdefs.h. */ 10030int i; 10031_ACEOF 10032if ac_fn_c_try_compile "$LINENO" 10033then : 10034 xorg_cv_cc_flag_unknown_warning_option=yes 10035else $as_nop 10036 xorg_cv_cc_flag_unknown_warning_option=no 10037fi 10038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10039fi 10040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10041printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10043 CFLAGS="$xorg_testset_save_CFLAGS" 10044fi 10045 10046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10049 fi 10050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10052printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10053if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10054then : 10055 printf %s "(cached) " >&6 10056else $as_nop 10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10058/* end confdefs.h. */ 10059int i; 10060_ACEOF 10061if ac_fn_c_try_compile "$LINENO" 10062then : 10063 xorg_cv_cc_flag_unused_command_line_argument=yes 10064else $as_nop 10065 xorg_cv_cc_flag_unused_command_line_argument=no 10066fi 10067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10068fi 10069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10070printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10072 CFLAGS="$xorg_testset_save_CFLAGS" 10073fi 10074 10075found="no" 10076 10077 if test $found = "no" ; then 10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10080 fi 10081 10082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10084 fi 10085 10086 CFLAGS="$CFLAGS -Warray-bounds" 10087 10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10089printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10090 cacheid=xorg_cv_cc_flag__Warray_bounds 10091 if eval test \${$cacheid+y} 10092then : 10093 printf %s "(cached) " >&6 10094else $as_nop 10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10096/* end confdefs.h. */ 10097int i; 10098int 10099main (void) 10100{ 10101 10102 ; 10103 return 0; 10104} 10105_ACEOF 10106if ac_fn_c_try_link "$LINENO" 10107then : 10108 eval $cacheid=yes 10109else $as_nop 10110 eval $cacheid=no 10111fi 10112rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10113 conftest$ac_exeext conftest.$ac_ext 10114fi 10115 10116 10117 CFLAGS="$xorg_testset_save_CFLAGS" 10118 10119 eval supported=\$$cacheid 10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10121printf "%s\n" "$supported" >&6; } 10122 if test "$supported" = "yes" ; then 10123 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10124 found="yes" 10125 fi 10126 fi 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142xorg_testset_save_CFLAGS="$CFLAGS" 10143 10144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10147printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10148if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10149then : 10150 printf %s "(cached) " >&6 10151else $as_nop 10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10153/* end confdefs.h. */ 10154int i; 10155_ACEOF 10156if ac_fn_c_try_compile "$LINENO" 10157then : 10158 xorg_cv_cc_flag_unknown_warning_option=yes 10159else $as_nop 10160 xorg_cv_cc_flag_unknown_warning_option=no 10161fi 10162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10163fi 10164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10167 CFLAGS="$xorg_testset_save_CFLAGS" 10168fi 10169 10170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10173 fi 10174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10177if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10178then : 10179 printf %s "(cached) " >&6 10180else $as_nop 10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10182/* end confdefs.h. */ 10183int i; 10184_ACEOF 10185if ac_fn_c_try_compile "$LINENO" 10186then : 10187 xorg_cv_cc_flag_unused_command_line_argument=yes 10188else $as_nop 10189 xorg_cv_cc_flag_unused_command_line_argument=no 10190fi 10191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10192fi 10193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10194printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10196 CFLAGS="$xorg_testset_save_CFLAGS" 10197fi 10198 10199found="no" 10200 10201 if test $found = "no" ; then 10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10204 fi 10205 10206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10208 fi 10209 10210 CFLAGS="$CFLAGS -Wwrite-strings" 10211 10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10213printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10214 cacheid=xorg_cv_cc_flag__Wwrite_strings 10215 if eval test \${$cacheid+y} 10216then : 10217 printf %s "(cached) " >&6 10218else $as_nop 10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220/* end confdefs.h. */ 10221int i; 10222int 10223main (void) 10224{ 10225 10226 ; 10227 return 0; 10228} 10229_ACEOF 10230if ac_fn_c_try_link "$LINENO" 10231then : 10232 eval $cacheid=yes 10233else $as_nop 10234 eval $cacheid=no 10235fi 10236rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10237 conftest$ac_exeext conftest.$ac_ext 10238fi 10239 10240 10241 CFLAGS="$xorg_testset_save_CFLAGS" 10242 10243 eval supported=\$$cacheid 10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10245printf "%s\n" "$supported" >&6; } 10246 if test "$supported" = "yes" ; then 10247 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10248 found="yes" 10249 fi 10250 fi 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266xorg_testset_save_CFLAGS="$CFLAGS" 10267 10268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10272if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10273then : 10274 printf %s "(cached) " >&6 10275else $as_nop 10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10277/* end confdefs.h. */ 10278int i; 10279_ACEOF 10280if ac_fn_c_try_compile "$LINENO" 10281then : 10282 xorg_cv_cc_flag_unknown_warning_option=yes 10283else $as_nop 10284 xorg_cv_cc_flag_unknown_warning_option=no 10285fi 10286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10287fi 10288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10289printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10291 CFLAGS="$xorg_testset_save_CFLAGS" 10292fi 10293 10294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10297 fi 10298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10300printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10301if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10302then : 10303 printf %s "(cached) " >&6 10304else $as_nop 10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10306/* end confdefs.h. */ 10307int i; 10308_ACEOF 10309if ac_fn_c_try_compile "$LINENO" 10310then : 10311 xorg_cv_cc_flag_unused_command_line_argument=yes 10312else $as_nop 10313 xorg_cv_cc_flag_unused_command_line_argument=no 10314fi 10315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10316fi 10317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10320 CFLAGS="$xorg_testset_save_CFLAGS" 10321fi 10322 10323found="no" 10324 10325 if test $found = "no" ; then 10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 fi 10329 10330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10332 fi 10333 10334 CFLAGS="$CFLAGS -Waddress" 10335 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10337printf %s "checking if $CC supports -Waddress... " >&6; } 10338 cacheid=xorg_cv_cc_flag__Waddress 10339 if eval test \${$cacheid+y} 10340then : 10341 printf %s "(cached) " >&6 10342else $as_nop 10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344/* end confdefs.h. */ 10345int i; 10346int 10347main (void) 10348{ 10349 10350 ; 10351 return 0; 10352} 10353_ACEOF 10354if ac_fn_c_try_link "$LINENO" 10355then : 10356 eval $cacheid=yes 10357else $as_nop 10358 eval $cacheid=no 10359fi 10360rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10361 conftest$ac_exeext conftest.$ac_ext 10362fi 10363 10364 10365 CFLAGS="$xorg_testset_save_CFLAGS" 10366 10367 eval supported=\$$cacheid 10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10369printf "%s\n" "$supported" >&6; } 10370 if test "$supported" = "yes" ; then 10371 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10372 found="yes" 10373 fi 10374 fi 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390xorg_testset_save_CFLAGS="$CFLAGS" 10391 10392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10395printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10396if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10397then : 10398 printf %s "(cached) " >&6 10399else $as_nop 10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10401/* end confdefs.h. */ 10402int i; 10403_ACEOF 10404if ac_fn_c_try_compile "$LINENO" 10405then : 10406 xorg_cv_cc_flag_unknown_warning_option=yes 10407else $as_nop 10408 xorg_cv_cc_flag_unknown_warning_option=no 10409fi 10410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10411fi 10412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10415 CFLAGS="$xorg_testset_save_CFLAGS" 10416fi 10417 10418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10421 fi 10422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10425if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10426then : 10427 printf %s "(cached) " >&6 10428else $as_nop 10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10430/* end confdefs.h. */ 10431int i; 10432_ACEOF 10433if ac_fn_c_try_compile "$LINENO" 10434then : 10435 xorg_cv_cc_flag_unused_command_line_argument=yes 10436else $as_nop 10437 xorg_cv_cc_flag_unused_command_line_argument=no 10438fi 10439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10440fi 10441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10442printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10444 CFLAGS="$xorg_testset_save_CFLAGS" 10445fi 10446 10447found="no" 10448 10449 if test $found = "no" ; then 10450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10452 fi 10453 10454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10456 fi 10457 10458 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10459 10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10461printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10462 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10463 if eval test \${$cacheid+y} 10464then : 10465 printf %s "(cached) " >&6 10466else $as_nop 10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10468/* end confdefs.h. */ 10469int i; 10470int 10471main (void) 10472{ 10473 10474 ; 10475 return 0; 10476} 10477_ACEOF 10478if ac_fn_c_try_link "$LINENO" 10479then : 10480 eval $cacheid=yes 10481else $as_nop 10482 eval $cacheid=no 10483fi 10484rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10485 conftest$ac_exeext conftest.$ac_ext 10486fi 10487 10488 10489 CFLAGS="$xorg_testset_save_CFLAGS" 10490 10491 eval supported=\$$cacheid 10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10493printf "%s\n" "$supported" >&6; } 10494 if test "$supported" = "yes" ; then 10495 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10496 found="yes" 10497 fi 10498 fi 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514xorg_testset_save_CFLAGS="$CFLAGS" 10515 10516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10519printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10520if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10521then : 10522 printf %s "(cached) " >&6 10523else $as_nop 10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10525/* end confdefs.h. */ 10526int i; 10527_ACEOF 10528if ac_fn_c_try_compile "$LINENO" 10529then : 10530 xorg_cv_cc_flag_unknown_warning_option=yes 10531else $as_nop 10532 xorg_cv_cc_flag_unknown_warning_option=no 10533fi 10534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10535fi 10536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10537printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10539 CFLAGS="$xorg_testset_save_CFLAGS" 10540fi 10541 10542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10545 fi 10546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10548printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10549if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10550then : 10551 printf %s "(cached) " >&6 10552else $as_nop 10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10554/* end confdefs.h. */ 10555int i; 10556_ACEOF 10557if ac_fn_c_try_compile "$LINENO" 10558then : 10559 xorg_cv_cc_flag_unused_command_line_argument=yes 10560else $as_nop 10561 xorg_cv_cc_flag_unused_command_line_argument=no 10562fi 10563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10564fi 10565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10566printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10568 CFLAGS="$xorg_testset_save_CFLAGS" 10569fi 10570 10571found="no" 10572 10573 if test $found = "no" ; then 10574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10576 fi 10577 10578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10580 fi 10581 10582 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10583 10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10585printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10586 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10587 if eval test \${$cacheid+y} 10588then : 10589 printf %s "(cached) " >&6 10590else $as_nop 10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10592/* end confdefs.h. */ 10593int i; 10594int 10595main (void) 10596{ 10597 10598 ; 10599 return 0; 10600} 10601_ACEOF 10602if ac_fn_c_try_link "$LINENO" 10603then : 10604 eval $cacheid=yes 10605else $as_nop 10606 eval $cacheid=no 10607fi 10608rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10609 conftest$ac_exeext conftest.$ac_ext 10610fi 10611 10612 10613 CFLAGS="$xorg_testset_save_CFLAGS" 10614 10615 eval supported=\$$cacheid 10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10617printf "%s\n" "$supported" >&6; } 10618 if test "$supported" = "yes" ; then 10619 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10620 found="yes" 10621 fi 10622 fi 10623 10624 10625fi 10626 10627 10628 10629 10630 10631 10632 10633 CWARNFLAGS="$BASE_CFLAGS" 10634 if test "x$GCC" = xyes ; then 10635 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10636 fi 10637 10638 10639 10640 10641 10642 10643 10644 10645# Check whether --enable-strict-compilation was given. 10646if test ${enable_strict_compilation+y} 10647then : 10648 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10649else $as_nop 10650 STRICT_COMPILE=no 10651fi 10652 10653 10654 10655 10656 10657 10658STRICT_CFLAGS="" 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672xorg_testset_save_CFLAGS="$CFLAGS" 10673 10674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10678if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10679then : 10680 printf %s "(cached) " >&6 10681else $as_nop 10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10683/* end confdefs.h. */ 10684int i; 10685_ACEOF 10686if ac_fn_c_try_compile "$LINENO" 10687then : 10688 xorg_cv_cc_flag_unknown_warning_option=yes 10689else $as_nop 10690 xorg_cv_cc_flag_unknown_warning_option=no 10691fi 10692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10693fi 10694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10697 CFLAGS="$xorg_testset_save_CFLAGS" 10698fi 10699 10700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10703 fi 10704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10707if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10708then : 10709 printf %s "(cached) " >&6 10710else $as_nop 10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10712/* end confdefs.h. */ 10713int i; 10714_ACEOF 10715if ac_fn_c_try_compile "$LINENO" 10716then : 10717 xorg_cv_cc_flag_unused_command_line_argument=yes 10718else $as_nop 10719 xorg_cv_cc_flag_unused_command_line_argument=no 10720fi 10721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10722fi 10723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10726 CFLAGS="$xorg_testset_save_CFLAGS" 10727fi 10728 10729found="no" 10730 10731 if test $found = "no" ; then 10732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10734 fi 10735 10736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10738 fi 10739 10740 CFLAGS="$CFLAGS -pedantic" 10741 10742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10743printf %s "checking if $CC supports -pedantic... " >&6; } 10744 cacheid=xorg_cv_cc_flag__pedantic 10745 if eval test \${$cacheid+y} 10746then : 10747 printf %s "(cached) " >&6 10748else $as_nop 10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10750/* end confdefs.h. */ 10751int i; 10752int 10753main (void) 10754{ 10755 10756 ; 10757 return 0; 10758} 10759_ACEOF 10760if ac_fn_c_try_link "$LINENO" 10761then : 10762 eval $cacheid=yes 10763else $as_nop 10764 eval $cacheid=no 10765fi 10766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10767 conftest$ac_exeext conftest.$ac_ext 10768fi 10769 10770 10771 CFLAGS="$xorg_testset_save_CFLAGS" 10772 10773 eval supported=\$$cacheid 10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10775printf "%s\n" "$supported" >&6; } 10776 if test "$supported" = "yes" ; then 10777 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10778 found="yes" 10779 fi 10780 fi 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796xorg_testset_save_CFLAGS="$CFLAGS" 10797 10798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10802if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10803then : 10804 printf %s "(cached) " >&6 10805else $as_nop 10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10807/* end confdefs.h. */ 10808int i; 10809_ACEOF 10810if ac_fn_c_try_compile "$LINENO" 10811then : 10812 xorg_cv_cc_flag_unknown_warning_option=yes 10813else $as_nop 10814 xorg_cv_cc_flag_unknown_warning_option=no 10815fi 10816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10817fi 10818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10821 CFLAGS="$xorg_testset_save_CFLAGS" 10822fi 10823 10824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10827 fi 10828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10831if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10832then : 10833 printf %s "(cached) " >&6 10834else $as_nop 10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10836/* end confdefs.h. */ 10837int i; 10838_ACEOF 10839if ac_fn_c_try_compile "$LINENO" 10840then : 10841 xorg_cv_cc_flag_unused_command_line_argument=yes 10842else $as_nop 10843 xorg_cv_cc_flag_unused_command_line_argument=no 10844fi 10845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10846fi 10847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10850 CFLAGS="$xorg_testset_save_CFLAGS" 10851fi 10852 10853found="no" 10854 10855 if test $found = "no" ; then 10856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10858 fi 10859 10860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10862 fi 10863 10864 CFLAGS="$CFLAGS -Werror" 10865 10866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10867printf %s "checking if $CC supports -Werror... " >&6; } 10868 cacheid=xorg_cv_cc_flag__Werror 10869 if eval test \${$cacheid+y} 10870then : 10871 printf %s "(cached) " >&6 10872else $as_nop 10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10874/* end confdefs.h. */ 10875int i; 10876int 10877main (void) 10878{ 10879 10880 ; 10881 return 0; 10882} 10883_ACEOF 10884if ac_fn_c_try_link "$LINENO" 10885then : 10886 eval $cacheid=yes 10887else $as_nop 10888 eval $cacheid=no 10889fi 10890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10891 conftest$ac_exeext conftest.$ac_ext 10892fi 10893 10894 10895 CFLAGS="$xorg_testset_save_CFLAGS" 10896 10897 eval supported=\$$cacheid 10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10899printf "%s\n" "$supported" >&6; } 10900 if test "$supported" = "yes" ; then 10901 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10902 found="yes" 10903 fi 10904 fi 10905 10906 if test $found = "no" ; then 10907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10909 fi 10910 10911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10913 fi 10914 10915 CFLAGS="$CFLAGS -errwarn" 10916 10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10918printf %s "checking if $CC supports -errwarn... " >&6; } 10919 cacheid=xorg_cv_cc_flag__errwarn 10920 if eval test \${$cacheid+y} 10921then : 10922 printf %s "(cached) " >&6 10923else $as_nop 10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10925/* end confdefs.h. */ 10926int i; 10927int 10928main (void) 10929{ 10930 10931 ; 10932 return 0; 10933} 10934_ACEOF 10935if ac_fn_c_try_link "$LINENO" 10936then : 10937 eval $cacheid=yes 10938else $as_nop 10939 eval $cacheid=no 10940fi 10941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10942 conftest$ac_exeext conftest.$ac_ext 10943fi 10944 10945 10946 CFLAGS="$xorg_testset_save_CFLAGS" 10947 10948 eval supported=\$$cacheid 10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10950printf "%s\n" "$supported" >&6; } 10951 if test "$supported" = "yes" ; then 10952 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10953 found="yes" 10954 fi 10955 fi 10956 10957 10958 10959# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10960# activate it with -Werror, so we add it here explicitly. 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974xorg_testset_save_CFLAGS="$CFLAGS" 10975 10976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10980if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10981then : 10982 printf %s "(cached) " >&6 10983else $as_nop 10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10985/* end confdefs.h. */ 10986int i; 10987_ACEOF 10988if ac_fn_c_try_compile "$LINENO" 10989then : 10990 xorg_cv_cc_flag_unknown_warning_option=yes 10991else $as_nop 10992 xorg_cv_cc_flag_unknown_warning_option=no 10993fi 10994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10995fi 10996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10999 CFLAGS="$xorg_testset_save_CFLAGS" 11000fi 11001 11002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11005 fi 11006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11009if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11010then : 11011 printf %s "(cached) " >&6 11012else $as_nop 11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11014/* end confdefs.h. */ 11015int i; 11016_ACEOF 11017if ac_fn_c_try_compile "$LINENO" 11018then : 11019 xorg_cv_cc_flag_unused_command_line_argument=yes 11020else $as_nop 11021 xorg_cv_cc_flag_unused_command_line_argument=no 11022fi 11023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11024fi 11025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11028 CFLAGS="$xorg_testset_save_CFLAGS" 11029fi 11030 11031found="no" 11032 11033 if test $found = "no" ; then 11034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11036 fi 11037 11038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11040 fi 11041 11042 CFLAGS="$CFLAGS -Werror=attributes" 11043 11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11045printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11046 cacheid=xorg_cv_cc_flag__Werror_attributes 11047 if eval test \${$cacheid+y} 11048then : 11049 printf %s "(cached) " >&6 11050else $as_nop 11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11052/* end confdefs.h. */ 11053int i; 11054int 11055main (void) 11056{ 11057 11058 ; 11059 return 0; 11060} 11061_ACEOF 11062if ac_fn_c_try_link "$LINENO" 11063then : 11064 eval $cacheid=yes 11065else $as_nop 11066 eval $cacheid=no 11067fi 11068rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11069 conftest$ac_exeext conftest.$ac_ext 11070fi 11071 11072 11073 CFLAGS="$xorg_testset_save_CFLAGS" 11074 11075 eval supported=\$$cacheid 11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11077printf "%s\n" "$supported" >&6; } 11078 if test "$supported" = "yes" ; then 11079 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11080 found="yes" 11081 fi 11082 fi 11083 11084 11085 11086if test "x$STRICT_COMPILE" = "xyes"; then 11087 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11088 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11089fi 11090 11091 11092 11093 11094 11095 11096cat >>confdefs.h <<_ACEOF 11097#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11098_ACEOF 11099 11100 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11101 if test "x$PVM" = "x"; then 11102 PVM="0" 11103 fi 11104 11105printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11106 11107 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11108 if test "x$PVP" = "x"; then 11109 PVP="0" 11110 fi 11111 11112printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11113 11114 11115 11116CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11117mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11118|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11119touch \$(top_srcdir)/ChangeLog; \ 11120echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11121 11122 11123 11124 11125macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11126INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11127mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11128|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11129touch \$(top_srcdir)/INSTALL; \ 11130echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11131 11132 11133 11134 11135 11136 11137case $host_os in 11138 solaris*) 11139 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11140 # check for a man page file found in later versions that use 11141 # traditional section numbers instead 11142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11143printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11144if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11145then : 11146 printf %s "(cached) " >&6 11147else $as_nop 11148 test "$cross_compiling" = yes && 11149 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11150if test -r "/usr/share/man/man7/attributes.7"; then 11151 ac_cv_file__usr_share_man_man7_attributes_7=yes 11152else 11153 ac_cv_file__usr_share_man_man7_attributes_7=no 11154fi 11155fi 11156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11157printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11158if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11159then : 11160 SYSV_MAN_SECTIONS=false 11161else $as_nop 11162 SYSV_MAN_SECTIONS=true 11163fi 11164 11165 ;; 11166 *) SYSV_MAN_SECTIONS=false ;; 11167esac 11168 11169if test x$APP_MAN_SUFFIX = x ; then 11170 APP_MAN_SUFFIX=1 11171fi 11172if test x$APP_MAN_DIR = x ; then 11173 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11174fi 11175 11176if test x$LIB_MAN_SUFFIX = x ; then 11177 LIB_MAN_SUFFIX=3 11178fi 11179if test x$LIB_MAN_DIR = x ; then 11180 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11181fi 11182 11183if test x$FILE_MAN_SUFFIX = x ; then 11184 case $SYSV_MAN_SECTIONS in 11185 true) FILE_MAN_SUFFIX=4 ;; 11186 *) FILE_MAN_SUFFIX=5 ;; 11187 esac 11188fi 11189if test x$FILE_MAN_DIR = x ; then 11190 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11191fi 11192 11193if test x$MISC_MAN_SUFFIX = x ; then 11194 case $SYSV_MAN_SECTIONS in 11195 true) MISC_MAN_SUFFIX=5 ;; 11196 *) MISC_MAN_SUFFIX=7 ;; 11197 esac 11198fi 11199if test x$MISC_MAN_DIR = x ; then 11200 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11201fi 11202 11203if test x$DRIVER_MAN_SUFFIX = x ; then 11204 case $SYSV_MAN_SECTIONS in 11205 true) DRIVER_MAN_SUFFIX=7 ;; 11206 *) DRIVER_MAN_SUFFIX=4 ;; 11207 esac 11208fi 11209if test x$DRIVER_MAN_DIR = x ; then 11210 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11211fi 11212 11213if test x$ADMIN_MAN_SUFFIX = x ; then 11214 case $SYSV_MAN_SECTIONS in 11215 true) ADMIN_MAN_SUFFIX=1m ;; 11216 *) ADMIN_MAN_SUFFIX=8 ;; 11217 esac 11218fi 11219if test x$ADMIN_MAN_DIR = x ; then 11220 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11221fi 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237XORG_MAN_PAGE="X Version 11" 11238 11239MAN_SUBSTS="\ 11240 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11241 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11242 -e 's|__xservername__|Xorg|g' \ 11243 -e 's|__xconfigfile__|xorg.conf|g' \ 11244 -e 's|__projectroot__|\$(prefix)|g' \ 11245 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11246 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11247 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11248 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11249 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11250 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11251 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11252 11253 11254 11255# Check whether --enable-silent-rules was given. 11256if test ${enable_silent_rules+y} 11257then : 11258 enableval=$enable_silent_rules; 11259fi 11260 11261case $enable_silent_rules in # ((( 11262 yes) AM_DEFAULT_VERBOSITY=0;; 11263 no) AM_DEFAULT_VERBOSITY=1;; 11264 *) AM_DEFAULT_VERBOSITY=0;; 11265esac 11266am_make=${MAKE-make} 11267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11268printf %s "checking whether $am_make supports nested variables... " >&6; } 11269if test ${am_cv_make_support_nested_variables+y} 11270then : 11271 printf %s "(cached) " >&6 11272else $as_nop 11273 if printf "%s\n" 'TRUE=$(BAR$(V)) 11274BAR0=false 11275BAR1=true 11276V=1 11277am__doit: 11278 @$(TRUE) 11279.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11280 am_cv_make_support_nested_variables=yes 11281else 11282 am_cv_make_support_nested_variables=no 11283fi 11284fi 11285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11286printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11287if test $am_cv_make_support_nested_variables = yes; then 11288 AM_V='$(V)' 11289 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11290else 11291 AM_V=$AM_DEFAULT_VERBOSITY 11292 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11293fi 11294AM_BACKSLASH='\' 11295 11296 11297 11298ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11299if test "x$ac_cv_func_asprintf" = xyes 11300then : 11301 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11302 11303fi 11304 11305 11306# Checks for pkg-config packages 11307 11308pkg_failed=no 11309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBPRINT" >&5 11310printf %s "checking for XKBPRINT... " >&6; } 11311 11312if test -n "$XKBPRINT_CFLAGS"; then 11313 pkg_cv_XKBPRINT_CFLAGS="$XKBPRINT_CFLAGS" 11314 elif test -n "$PKG_CONFIG"; then 11315 if test -n "$PKG_CONFIG" && \ 11316 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5 11317 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5 11318 ac_status=$? 11319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11320 test $ac_status = 0; }; then 11321 pkg_cv_XKBPRINT_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11 xproto >= 7.0.17" 2>/dev/null` 11322 test "x$?" != "x0" && pkg_failed=yes 11323else 11324 pkg_failed=yes 11325fi 11326 else 11327 pkg_failed=untried 11328fi 11329if test -n "$XKBPRINT_LIBS"; then 11330 pkg_cv_XKBPRINT_LIBS="$XKBPRINT_LIBS" 11331 elif test -n "$PKG_CONFIG"; then 11332 if test -n "$PKG_CONFIG" && \ 11333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5 11334 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5 11335 ac_status=$? 11336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11337 test $ac_status = 0; }; then 11338 pkg_cv_XKBPRINT_LIBS=`$PKG_CONFIG --libs "xkbfile x11 xproto >= 7.0.17" 2>/dev/null` 11339 test "x$?" != "x0" && pkg_failed=yes 11340else 11341 pkg_failed=yes 11342fi 11343 else 11344 pkg_failed=untried 11345fi 11346 11347 11348 11349if test $pkg_failed = yes; then 11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11351printf "%s\n" "no" >&6; } 11352 11353if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11354 _pkg_short_errors_supported=yes 11355else 11356 _pkg_short_errors_supported=no 11357fi 11358 if test $_pkg_short_errors_supported = yes; then 11359 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1` 11360 else 11361 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1` 11362 fi 11363 # Put the nasty error message in config.log where it belongs 11364 echo "$XKBPRINT_PKG_ERRORS" >&5 11365 11366 as_fn_error $? "Package requirements (xkbfile x11 xproto >= 7.0.17) were not met: 11367 11368$XKBPRINT_PKG_ERRORS 11369 11370Consider adjusting the PKG_CONFIG_PATH environment variable if you 11371installed software in a non-standard prefix. 11372 11373Alternatively, you may set the environment variables XKBPRINT_CFLAGS 11374and XKBPRINT_LIBS to avoid the need to call pkg-config. 11375See the pkg-config man page for more details." "$LINENO" 5 11376elif test $pkg_failed = untried; then 11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11378printf "%s\n" "no" >&6; } 11379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11380printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11381as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11382is in your PATH or set the PKG_CONFIG environment variable to the full 11383path to pkg-config. 11384 11385Alternatively, you may set the environment variables XKBPRINT_CFLAGS 11386and XKBPRINT_LIBS to avoid the need to call pkg-config. 11387See the pkg-config man page for more details. 11388 11389To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11390See \`config.log' for more details" "$LINENO" 5; } 11391else 11392 XKBPRINT_CFLAGS=$pkg_cv_XKBPRINT_CFLAGS 11393 XKBPRINT_LIBS=$pkg_cv_XKBPRINT_LIBS 11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11395printf "%s\n" "yes" >&6; } 11396 11397fi 11398 11399ac_config_files="$ac_config_files Makefile man/Makefile" 11400 11401cat >confcache <<\_ACEOF 11402# This file is a shell script that caches the results of configure 11403# tests run on this system so they can be shared between configure 11404# scripts and configure runs, see configure's option --config-cache. 11405# It is not useful on other systems. If it contains results you don't 11406# want to keep, you may remove or edit it. 11407# 11408# config.status only pays attention to the cache file if you give it 11409# the --recheck option to rerun configure. 11410# 11411# `ac_cv_env_foo' variables (set or unset) will be overridden when 11412# loading this file, other *unset* `ac_cv_foo' will be assigned the 11413# following values. 11414 11415_ACEOF 11416 11417# The following way of writing the cache mishandles newlines in values, 11418# but we know of no workaround that is simple, portable, and efficient. 11419# So, we kill variables containing newlines. 11420# Ultrix sh set writes to stderr and can't be redirected directly, 11421# and sets the high bit in the cache file unless we assign to the vars. 11422( 11423 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11424 eval ac_val=\$$ac_var 11425 case $ac_val in #( 11426 *${as_nl}*) 11427 case $ac_var in #( 11428 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11429printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11430 esac 11431 case $ac_var in #( 11432 _ | IFS | as_nl) ;; #( 11433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11434 *) { eval $ac_var=; unset $ac_var;} ;; 11435 esac ;; 11436 esac 11437 done 11438 11439 (set) 2>&1 | 11440 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11441 *${as_nl}ac_space=\ *) 11442 # `set' does not quote correctly, so add quotes: double-quote 11443 # substitution turns \\\\ into \\, and sed turns \\ into \. 11444 sed -n \ 11445 "s/'/'\\\\''/g; 11446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11447 ;; #( 11448 *) 11449 # `set' quotes correctly as required by POSIX, so do not add quotes. 11450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11451 ;; 11452 esac | 11453 sort 11454) | 11455 sed ' 11456 /^ac_cv_env_/b end 11457 t clear 11458 :clear 11459 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11460 t end 11461 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11462 :end' >>confcache 11463if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11464 if test -w "$cache_file"; then 11465 if test "x$cache_file" != "x/dev/null"; then 11466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11467printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11468 if test ! -f "$cache_file" || test -h "$cache_file"; then 11469 cat confcache >"$cache_file" 11470 else 11471 case $cache_file in #( 11472 */* | ?:*) 11473 mv -f confcache "$cache_file"$$ && 11474 mv -f "$cache_file"$$ "$cache_file" ;; #( 11475 *) 11476 mv -f confcache "$cache_file" ;; 11477 esac 11478 fi 11479 fi 11480 else 11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11482printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11483 fi 11484fi 11485rm -f confcache 11486 11487test "x$prefix" = xNONE && prefix=$ac_default_prefix 11488# Let make expand exec_prefix. 11489test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11490 11491DEFS=-DHAVE_CONFIG_H 11492 11493ac_libobjs= 11494ac_ltlibobjs= 11495U= 11496for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11497 # 1. Remove the extension, and $U if already installed. 11498 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11499 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11500 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11501 # will be set to the directory where LIBOBJS objects are built. 11502 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11503 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11504done 11505LIBOBJS=$ac_libobjs 11506 11507LTLIBOBJS=$ac_ltlibobjs 11508 11509 11510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11511printf %s "checking that generated files are newer than configure... " >&6; } 11512 if test -n "$am_sleep_pid"; then 11513 # Hide warnings about reused PIDs. 11514 wait $am_sleep_pid 2>/dev/null 11515 fi 11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11517printf "%s\n" "done" >&6; } 11518if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11519 as_fn_error $? "conditional \"AMDEP\" was never defined. 11520Usually this means the macro was only invoked conditionally." "$LINENO" 5 11521fi 11522if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11523 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11524Usually this means the macro was only invoked conditionally." "$LINENO" 5 11525fi 11526 if test -n "$EXEEXT"; then 11527 am__EXEEXT_TRUE= 11528 am__EXEEXT_FALSE='#' 11529else 11530 am__EXEEXT_TRUE='#' 11531 am__EXEEXT_FALSE= 11532fi 11533 11534 11535: "${CONFIG_STATUS=./config.status}" 11536ac_write_fail=0 11537ac_clean_files_save=$ac_clean_files 11538ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11540printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11541as_write_fail=0 11542cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11543#! $SHELL 11544# Generated by $as_me. 11545# Run this file to recreate the current configuration. 11546# Compiler output produced by configure, useful for debugging 11547# configure, is in config.log if it exists. 11548 11549debug=false 11550ac_cs_recheck=false 11551ac_cs_silent=false 11552 11553SHELL=\${CONFIG_SHELL-$SHELL} 11554export SHELL 11555_ASEOF 11556cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11557## -------------------- ## 11558## M4sh Initialization. ## 11559## -------------------- ## 11560 11561# Be more Bourne compatible 11562DUALCASE=1; export DUALCASE # for MKS sh 11563as_nop=: 11564if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11565then : 11566 emulate sh 11567 NULLCMD=: 11568 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11569 # is contrary to our usage. Disable this feature. 11570 alias -g '${1+"$@"}'='"$@"' 11571 setopt NO_GLOB_SUBST 11572else $as_nop 11573 case `(set -o) 2>/dev/null` in #( 11574 *posix*) : 11575 set -o posix ;; #( 11576 *) : 11577 ;; 11578esac 11579fi 11580 11581 11582 11583# Reset variables that may have inherited troublesome values from 11584# the environment. 11585 11586# IFS needs to be set, to space, tab, and newline, in precisely that order. 11587# (If _AS_PATH_WALK were called with IFS unset, it would have the 11588# side effect of setting IFS to empty, thus disabling word splitting.) 11589# Quoting is to prevent editors from complaining about space-tab. 11590as_nl=' 11591' 11592export as_nl 11593IFS=" "" $as_nl" 11594 11595PS1='$ ' 11596PS2='> ' 11597PS4='+ ' 11598 11599# Ensure predictable behavior from utilities with locale-dependent output. 11600LC_ALL=C 11601export LC_ALL 11602LANGUAGE=C 11603export LANGUAGE 11604 11605# We cannot yet rely on "unset" to work, but we need these variables 11606# to be unset--not just set to an empty or harmless value--now, to 11607# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11608# also avoids known problems related to "unset" and subshell syntax 11609# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11610for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11611do eval test \${$as_var+y} \ 11612 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11613done 11614 11615# Ensure that fds 0, 1, and 2 are open. 11616if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11617if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11618if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11619 11620# The user is always right. 11621if ${PATH_SEPARATOR+false} :; then 11622 PATH_SEPARATOR=: 11623 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11624 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11625 PATH_SEPARATOR=';' 11626 } 11627fi 11628 11629 11630# Find who we are. Look in the path if we contain no directory separator. 11631as_myself= 11632case $0 in #(( 11633 *[\\/]* ) as_myself=$0 ;; 11634 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11635for as_dir in $PATH 11636do 11637 IFS=$as_save_IFS 11638 case $as_dir in #((( 11639 '') as_dir=./ ;; 11640 */) ;; 11641 *) as_dir=$as_dir/ ;; 11642 esac 11643 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11644 done 11645IFS=$as_save_IFS 11646 11647 ;; 11648esac 11649# We did not find ourselves, most probably we were run as `sh COMMAND' 11650# in which case we are not to be found in the path. 11651if test "x$as_myself" = x; then 11652 as_myself=$0 11653fi 11654if test ! -f "$as_myself"; then 11655 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11656 exit 1 11657fi 11658 11659 11660 11661# as_fn_error STATUS ERROR [LINENO LOG_FD] 11662# ---------------------------------------- 11663# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11664# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11665# script with STATUS, using 1 if that was 0. 11666as_fn_error () 11667{ 11668 as_status=$1; test $as_status -eq 0 && as_status=1 11669 if test "$4"; then 11670 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11672 fi 11673 printf "%s\n" "$as_me: error: $2" >&2 11674 as_fn_exit $as_status 11675} # as_fn_error 11676 11677 11678 11679# as_fn_set_status STATUS 11680# ----------------------- 11681# Set $? to STATUS, without forking. 11682as_fn_set_status () 11683{ 11684 return $1 11685} # as_fn_set_status 11686 11687# as_fn_exit STATUS 11688# ----------------- 11689# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11690as_fn_exit () 11691{ 11692 set +e 11693 as_fn_set_status $1 11694 exit $1 11695} # as_fn_exit 11696 11697# as_fn_unset VAR 11698# --------------- 11699# Portably unset VAR. 11700as_fn_unset () 11701{ 11702 { eval $1=; unset $1;} 11703} 11704as_unset=as_fn_unset 11705 11706# as_fn_append VAR VALUE 11707# ---------------------- 11708# Append the text in VALUE to the end of the definition contained in VAR. Take 11709# advantage of any shell optimizations that allow amortized linear growth over 11710# repeated appends, instead of the typical quadratic growth present in naive 11711# implementations. 11712if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11713then : 11714 eval 'as_fn_append () 11715 { 11716 eval $1+=\$2 11717 }' 11718else $as_nop 11719 as_fn_append () 11720 { 11721 eval $1=\$$1\$2 11722 } 11723fi # as_fn_append 11724 11725# as_fn_arith ARG... 11726# ------------------ 11727# Perform arithmetic evaluation on the ARGs, and store the result in the 11728# global $as_val. Take advantage of shells that can avoid forks. The arguments 11729# must be portable across $(()) and expr. 11730if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11731then : 11732 eval 'as_fn_arith () 11733 { 11734 as_val=$(( $* )) 11735 }' 11736else $as_nop 11737 as_fn_arith () 11738 { 11739 as_val=`expr "$@" || test $? -eq 1` 11740 } 11741fi # as_fn_arith 11742 11743 11744if expr a : '\(a\)' >/dev/null 2>&1 && 11745 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11746 as_expr=expr 11747else 11748 as_expr=false 11749fi 11750 11751if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11752 as_basename=basename 11753else 11754 as_basename=false 11755fi 11756 11757if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11758 as_dirname=dirname 11759else 11760 as_dirname=false 11761fi 11762 11763as_me=`$as_basename -- "$0" || 11764$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11765 X"$0" : 'X\(//\)$' \| \ 11766 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11767printf "%s\n" X/"$0" | 11768 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11769 s//\1/ 11770 q 11771 } 11772 /^X\/\(\/\/\)$/{ 11773 s//\1/ 11774 q 11775 } 11776 /^X\/\(\/\).*/{ 11777 s//\1/ 11778 q 11779 } 11780 s/.*/./; q'` 11781 11782# Avoid depending upon Character Ranges. 11783as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11784as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11785as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11786as_cr_digits='0123456789' 11787as_cr_alnum=$as_cr_Letters$as_cr_digits 11788 11789 11790# Determine whether it's possible to make 'echo' print without a newline. 11791# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11792# for compatibility with existing Makefiles. 11793ECHO_C= ECHO_N= ECHO_T= 11794case `echo -n x` in #((((( 11795-n*) 11796 case `echo 'xy\c'` in 11797 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11798 xy) ECHO_C='\c';; 11799 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11800 ECHO_T=' ';; 11801 esac;; 11802*) 11803 ECHO_N='-n';; 11804esac 11805 11806# For backward compatibility with old third-party macros, we provide 11807# the shell variables $as_echo and $as_echo_n. New code should use 11808# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11809as_echo='printf %s\n' 11810as_echo_n='printf %s' 11811 11812rm -f conf$$ conf$$.exe conf$$.file 11813if test -d conf$$.dir; then 11814 rm -f conf$$.dir/conf$$.file 11815else 11816 rm -f conf$$.dir 11817 mkdir conf$$.dir 2>/dev/null 11818fi 11819if (echo >conf$$.file) 2>/dev/null; then 11820 if ln -s conf$$.file conf$$ 2>/dev/null; then 11821 as_ln_s='ln -s' 11822 # ... but there are two gotchas: 11823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11825 # In both cases, we have to default to `cp -pR'. 11826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11827 as_ln_s='cp -pR' 11828 elif ln conf$$.file conf$$ 2>/dev/null; then 11829 as_ln_s=ln 11830 else 11831 as_ln_s='cp -pR' 11832 fi 11833else 11834 as_ln_s='cp -pR' 11835fi 11836rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11837rmdir conf$$.dir 2>/dev/null 11838 11839 11840# as_fn_mkdir_p 11841# ------------- 11842# Create "$as_dir" as a directory, including parents if necessary. 11843as_fn_mkdir_p () 11844{ 11845 11846 case $as_dir in #( 11847 -*) as_dir=./$as_dir;; 11848 esac 11849 test -d "$as_dir" || eval $as_mkdir_p || { 11850 as_dirs= 11851 while :; do 11852 case $as_dir in #( 11853 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11854 *) as_qdir=$as_dir;; 11855 esac 11856 as_dirs="'$as_qdir' $as_dirs" 11857 as_dir=`$as_dirname -- "$as_dir" || 11858$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11859 X"$as_dir" : 'X\(//\)[^/]' \| \ 11860 X"$as_dir" : 'X\(//\)$' \| \ 11861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11862printf "%s\n" X"$as_dir" | 11863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11864 s//\1/ 11865 q 11866 } 11867 /^X\(\/\/\)[^/].*/{ 11868 s//\1/ 11869 q 11870 } 11871 /^X\(\/\/\)$/{ 11872 s//\1/ 11873 q 11874 } 11875 /^X\(\/\).*/{ 11876 s//\1/ 11877 q 11878 } 11879 s/.*/./; q'` 11880 test -d "$as_dir" && break 11881 done 11882 test -z "$as_dirs" || eval "mkdir $as_dirs" 11883 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11884 11885 11886} # as_fn_mkdir_p 11887if mkdir -p . 2>/dev/null; then 11888 as_mkdir_p='mkdir -p "$as_dir"' 11889else 11890 test -d ./-p && rmdir ./-p 11891 as_mkdir_p=false 11892fi 11893 11894 11895# as_fn_executable_p FILE 11896# ----------------------- 11897# Test if FILE is an executable regular file. 11898as_fn_executable_p () 11899{ 11900 test -f "$1" && test -x "$1" 11901} # as_fn_executable_p 11902as_test_x='test -x' 11903as_executable_p=as_fn_executable_p 11904 11905# Sed expression to map a string onto a valid CPP name. 11906as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11907 11908# Sed expression to map a string onto a valid variable name. 11909as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11910 11911 11912exec 6>&1 11913## ----------------------------------- ## 11914## Main body of $CONFIG_STATUS script. ## 11915## ----------------------------------- ## 11916_ASEOF 11917test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11918 11919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11920# Save the log message, to keep $0 and so on meaningful, and to 11921# report actual input values of CONFIG_FILES etc. instead of their 11922# values after options handling. 11923ac_log=" 11924This file was extended by xkbprint $as_me 1.0.6, which was 11925generated by GNU Autoconf 2.71. Invocation command line was 11926 11927 CONFIG_FILES = $CONFIG_FILES 11928 CONFIG_HEADERS = $CONFIG_HEADERS 11929 CONFIG_LINKS = $CONFIG_LINKS 11930 CONFIG_COMMANDS = $CONFIG_COMMANDS 11931 $ $0 $@ 11932 11933on `(hostname || uname -n) 2>/dev/null | sed 1q` 11934" 11935 11936_ACEOF 11937 11938case $ac_config_files in *" 11939"*) set x $ac_config_files; shift; ac_config_files=$*;; 11940esac 11941 11942case $ac_config_headers in *" 11943"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11944esac 11945 11946 11947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11948# Files that config.status was made for. 11949config_files="$ac_config_files" 11950config_headers="$ac_config_headers" 11951config_commands="$ac_config_commands" 11952 11953_ACEOF 11954 11955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11956ac_cs_usage="\ 11957\`$as_me' instantiates files and other configuration actions 11958from templates according to the current configuration. Unless the files 11959and actions are specified as TAGs, all are instantiated by default. 11960 11961Usage: $0 [OPTION]... [TAG]... 11962 11963 -h, --help print this help, then exit 11964 -V, --version print version number and configuration settings, then exit 11965 --config print configuration, then exit 11966 -q, --quiet, --silent 11967 do not print progress messages 11968 -d, --debug don't remove temporary files 11969 --recheck update $as_me by reconfiguring in the same conditions 11970 --file=FILE[:TEMPLATE] 11971 instantiate the configuration file FILE 11972 --header=FILE[:TEMPLATE] 11973 instantiate the configuration header FILE 11974 11975Configuration files: 11976$config_files 11977 11978Configuration headers: 11979$config_headers 11980 11981Configuration commands: 11982$config_commands 11983 11984Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>." 11985 11986_ACEOF 11987ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11988ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11990ac_cs_config='$ac_cs_config_escaped' 11991ac_cs_version="\\ 11992xkbprint config.status 1.0.6 11993configured by $0, generated by GNU Autoconf 2.71, 11994 with options \\"\$ac_cs_config\\" 11995 11996Copyright (C) 2021 Free Software Foundation, Inc. 11997This config.status script is free software; the Free Software Foundation 11998gives unlimited permission to copy, distribute and modify it." 11999 12000ac_pwd='$ac_pwd' 12001srcdir='$srcdir' 12002INSTALL='$INSTALL' 12003MKDIR_P='$MKDIR_P' 12004AWK='$AWK' 12005test -n "\$AWK" || AWK=awk 12006_ACEOF 12007 12008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12009# The default lists apply if the user does not specify any file. 12010ac_need_defaults=: 12011while test $# != 0 12012do 12013 case $1 in 12014 --*=?*) 12015 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12016 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12017 ac_shift=: 12018 ;; 12019 --*=) 12020 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12021 ac_optarg= 12022 ac_shift=: 12023 ;; 12024 *) 12025 ac_option=$1 12026 ac_optarg=$2 12027 ac_shift=shift 12028 ;; 12029 esac 12030 12031 case $ac_option in 12032 # Handling of the options. 12033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12034 ac_cs_recheck=: ;; 12035 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12036 printf "%s\n" "$ac_cs_version"; exit ;; 12037 --config | --confi | --conf | --con | --co | --c ) 12038 printf "%s\n" "$ac_cs_config"; exit ;; 12039 --debug | --debu | --deb | --de | --d | -d ) 12040 debug=: ;; 12041 --file | --fil | --fi | --f ) 12042 $ac_shift 12043 case $ac_optarg in 12044 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12045 '') as_fn_error $? "missing file argument" ;; 12046 esac 12047 as_fn_append CONFIG_FILES " '$ac_optarg'" 12048 ac_need_defaults=false;; 12049 --header | --heade | --head | --hea ) 12050 $ac_shift 12051 case $ac_optarg in 12052 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12053 esac 12054 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12055 ac_need_defaults=false;; 12056 --he | --h) 12057 # Conflict between --help and --header 12058 as_fn_error $? "ambiguous option: \`$1' 12059Try \`$0 --help' for more information.";; 12060 --help | --hel | -h ) 12061 printf "%s\n" "$ac_cs_usage"; exit ;; 12062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12063 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12064 ac_cs_silent=: ;; 12065 12066 # This is an error. 12067 -*) as_fn_error $? "unrecognized option: \`$1' 12068Try \`$0 --help' for more information." ;; 12069 12070 *) as_fn_append ac_config_targets " $1" 12071 ac_need_defaults=false ;; 12072 12073 esac 12074 shift 12075done 12076 12077ac_configure_extra_args= 12078 12079if $ac_cs_silent; then 12080 exec 6>/dev/null 12081 ac_configure_extra_args="$ac_configure_extra_args --silent" 12082fi 12083 12084_ACEOF 12085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12086if \$ac_cs_recheck; then 12087 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12088 shift 12089 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12090 CONFIG_SHELL='$SHELL' 12091 export CONFIG_SHELL 12092 exec "\$@" 12093fi 12094 12095_ACEOF 12096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12097exec 5>>config.log 12098{ 12099 echo 12100 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12101## Running $as_me. ## 12102_ASBOX 12103 printf "%s\n" "$ac_log" 12104} >&5 12105 12106_ACEOF 12107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12108# 12109# INIT-COMMANDS 12110# 12111AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12112 12113_ACEOF 12114 12115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12116 12117# Handling of arguments. 12118for ac_config_target in $ac_config_targets 12119do 12120 case $ac_config_target in 12121 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12123 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12124 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12125 12126 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12127 esac 12128done 12129 12130 12131# If the user did not use the arguments to specify the items to instantiate, 12132# then the envvar interface is used. Set only those that are not. 12133# We use the long form for the default assignment because of an extremely 12134# bizarre bug on SunOS 4.1.3. 12135if $ac_need_defaults; then 12136 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12137 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12138 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12139fi 12140 12141# Have a temporary directory for convenience. Make it in the build tree 12142# simply because there is no reason against having it here, and in addition, 12143# creating and moving files from /tmp can sometimes cause problems. 12144# Hook for its removal unless debugging. 12145# Note that there is a small window in which the directory will not be cleaned: 12146# after its creation but before its name has been assigned to `$tmp'. 12147$debug || 12148{ 12149 tmp= ac_tmp= 12150 trap 'exit_status=$? 12151 : "${ac_tmp:=$tmp}" 12152 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12153' 0 12154 trap 'as_fn_exit 1' 1 2 13 15 12155} 12156# Create a (secure) tmp directory for tmp files. 12157 12158{ 12159 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12160 test -d "$tmp" 12161} || 12162{ 12163 tmp=./conf$$-$RANDOM 12164 (umask 077 && mkdir "$tmp") 12165} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12166ac_tmp=$tmp 12167 12168# Set up the scripts for CONFIG_FILES section. 12169# No need to generate them if there are no CONFIG_FILES. 12170# This happens for instance with `./config.status config.h'. 12171if test -n "$CONFIG_FILES"; then 12172 12173 12174ac_cr=`echo X | tr X '\015'` 12175# On cygwin, bash can eat \r inside `` if the user requested igncr. 12176# But we know of no other shell where ac_cr would be empty at this 12177# point, so we can use a bashism as a fallback. 12178if test "x$ac_cr" = x; then 12179 eval ac_cr=\$\'\\r\' 12180fi 12181ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12182if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12183 ac_cs_awk_cr='\\r' 12184else 12185 ac_cs_awk_cr=$ac_cr 12186fi 12187 12188echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12189_ACEOF 12190 12191 12192{ 12193 echo "cat >conf$$subs.awk <<_ACEOF" && 12194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12195 echo "_ACEOF" 12196} >conf$$subs.sh || 12197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12198ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12199ac_delim='%!_!# ' 12200for ac_last_try in false false false false false :; do 12201 . ./conf$$subs.sh || 12202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12203 12204 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12205 if test $ac_delim_n = $ac_delim_num; then 12206 break 12207 elif $ac_last_try; then 12208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12209 else 12210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12211 fi 12212done 12213rm -f conf$$subs.sh 12214 12215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12216cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12217_ACEOF 12218sed -n ' 12219h 12220s/^/S["/; s/!.*/"]=/ 12221p 12222g 12223s/^[^!]*!// 12224:repl 12225t repl 12226s/'"$ac_delim"'$// 12227t delim 12228:nl 12229h 12230s/\(.\{148\}\)..*/\1/ 12231t more1 12232s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12233p 12234n 12235b repl 12236:more1 12237s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12238p 12239g 12240s/.\{148\}// 12241t nl 12242:delim 12243h 12244s/\(.\{148\}\)..*/\1/ 12245t more2 12246s/["\\]/\\&/g; s/^/"/; s/$/"/ 12247p 12248b 12249:more2 12250s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12251p 12252g 12253s/.\{148\}// 12254t delim 12255' <conf$$subs.awk | sed ' 12256/^[^""]/{ 12257 N 12258 s/\n// 12259} 12260' >>$CONFIG_STATUS || ac_write_fail=1 12261rm -f conf$$subs.awk 12262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12263_ACAWK 12264cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12265 for (key in S) S_is_set[key] = 1 12266 FS = "" 12267 12268} 12269{ 12270 line = $ 0 12271 nfields = split(line, field, "@") 12272 substed = 0 12273 len = length(field[1]) 12274 for (i = 2; i < nfields; i++) { 12275 key = field[i] 12276 keylen = length(key) 12277 if (S_is_set[key]) { 12278 value = S[key] 12279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12280 len += length(value) + length(field[++i]) 12281 substed = 1 12282 } else 12283 len += 1 + keylen 12284 } 12285 12286 print line 12287} 12288 12289_ACAWK 12290_ACEOF 12291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12292if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12293 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12294else 12295 cat 12296fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12297 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12298_ACEOF 12299 12300# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12301# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12302# trailing colons and then remove the whole line if VPATH becomes empty 12303# (actually we leave an empty line to preserve line numbers). 12304if test "x$srcdir" = x.; then 12305 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12306h 12307s/// 12308s/^/:/ 12309s/[ ]*$/:/ 12310s/:\$(srcdir):/:/g 12311s/:\${srcdir}:/:/g 12312s/:@srcdir@:/:/g 12313s/^:*// 12314s/:*$// 12315x 12316s/\(=[ ]*\).*/\1/ 12317G 12318s/\n// 12319s/^[^=]*=[ ]*$// 12320}' 12321fi 12322 12323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12324fi # test -n "$CONFIG_FILES" 12325 12326# Set up the scripts for CONFIG_HEADERS section. 12327# No need to generate them if there are no CONFIG_HEADERS. 12328# This happens for instance with `./config.status Makefile'. 12329if test -n "$CONFIG_HEADERS"; then 12330cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12331BEGIN { 12332_ACEOF 12333 12334# Transform confdefs.h into an awk script `defines.awk', embedded as 12335# here-document in config.status, that substitutes the proper values into 12336# config.h.in to produce config.h. 12337 12338# Create a delimiter string that does not exist in confdefs.h, to ease 12339# handling of long lines. 12340ac_delim='%!_!# ' 12341for ac_last_try in false false :; do 12342 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12343 if test -z "$ac_tt"; then 12344 break 12345 elif $ac_last_try; then 12346 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12347 else 12348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12349 fi 12350done 12351 12352# For the awk script, D is an array of macro values keyed by name, 12353# likewise P contains macro parameters if any. Preserve backslash 12354# newline sequences. 12355 12356ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12357sed -n ' 12358s/.\{148\}/&'"$ac_delim"'/g 12359t rset 12360:rset 12361s/^[ ]*#[ ]*define[ ][ ]*/ / 12362t def 12363d 12364:def 12365s/\\$// 12366t bsnl 12367s/["\\]/\\&/g 12368s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12369D["\1"]=" \3"/p 12370s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12371d 12372:bsnl 12373s/["\\]/\\&/g 12374s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12375D["\1"]=" \3\\\\\\n"\\/p 12376t cont 12377s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12378t cont 12379d 12380:cont 12381n 12382s/.\{148\}/&'"$ac_delim"'/g 12383t clear 12384:clear 12385s/\\$// 12386t bsnlc 12387s/["\\]/\\&/g; s/^/"/; s/$/"/p 12388d 12389:bsnlc 12390s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12391b cont 12392' <confdefs.h | sed ' 12393s/'"$ac_delim"'/"\\\ 12394"/g' >>$CONFIG_STATUS || ac_write_fail=1 12395 12396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12397 for (key in D) D_is_set[key] = 1 12398 FS = "" 12399} 12400/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12401 line = \$ 0 12402 split(line, arg, " ") 12403 if (arg[1] == "#") { 12404 defundef = arg[2] 12405 mac1 = arg[3] 12406 } else { 12407 defundef = substr(arg[1], 2) 12408 mac1 = arg[2] 12409 } 12410 split(mac1, mac2, "(") #) 12411 macro = mac2[1] 12412 prefix = substr(line, 1, index(line, defundef) - 1) 12413 if (D_is_set[macro]) { 12414 # Preserve the white space surrounding the "#". 12415 print prefix "define", macro P[macro] D[macro] 12416 next 12417 } else { 12418 # Replace #undef with comments. This is necessary, for example, 12419 # in the case of _POSIX_SOURCE, which is predefined and required 12420 # on some systems where configure will not decide to define it. 12421 if (defundef == "undef") { 12422 print "/*", prefix defundef, macro, "*/" 12423 next 12424 } 12425 } 12426} 12427{ print } 12428_ACAWK 12429_ACEOF 12430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12431 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12432fi # test -n "$CONFIG_HEADERS" 12433 12434 12435eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12436shift 12437for ac_tag 12438do 12439 case $ac_tag in 12440 :[FHLC]) ac_mode=$ac_tag; continue;; 12441 esac 12442 case $ac_mode$ac_tag in 12443 :[FHL]*:*);; 12444 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12445 :[FH]-) ac_tag=-:-;; 12446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12447 esac 12448 ac_save_IFS=$IFS 12449 IFS=: 12450 set x $ac_tag 12451 IFS=$ac_save_IFS 12452 shift 12453 ac_file=$1 12454 shift 12455 12456 case $ac_mode in 12457 :L) ac_source=$1;; 12458 :[FH]) 12459 ac_file_inputs= 12460 for ac_f 12461 do 12462 case $ac_f in 12463 -) ac_f="$ac_tmp/stdin";; 12464 *) # Look for the file first in the build tree, then in the source tree 12465 # (if the path is not absolute). The absolute path cannot be DOS-style, 12466 # because $ac_f cannot contain `:'. 12467 test -f "$ac_f" || 12468 case $ac_f in 12469 [\\/$]*) false;; 12470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12471 esac || 12472 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12473 esac 12474 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12475 as_fn_append ac_file_inputs " '$ac_f'" 12476 done 12477 12478 # Let's still pretend it is `configure' which instantiates (i.e., don't 12479 # use $as_me), people would be surprised to read: 12480 # /* config.h. Generated by config.status. */ 12481 configure_input='Generated from '` 12482 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12483 `' by configure.' 12484 if test x"$ac_file" != x-; then 12485 configure_input="$ac_file. $configure_input" 12486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12487printf "%s\n" "$as_me: creating $ac_file" >&6;} 12488 fi 12489 # Neutralize special characters interpreted by sed in replacement strings. 12490 case $configure_input in #( 12491 *\&* | *\|* | *\\* ) 12492 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12493 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12494 *) ac_sed_conf_input=$configure_input;; 12495 esac 12496 12497 case $ac_tag in 12498 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12500 esac 12501 ;; 12502 esac 12503 12504 ac_dir=`$as_dirname -- "$ac_file" || 12505$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12506 X"$ac_file" : 'X\(//\)[^/]' \| \ 12507 X"$ac_file" : 'X\(//\)$' \| \ 12508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12509printf "%s\n" X"$ac_file" | 12510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12511 s//\1/ 12512 q 12513 } 12514 /^X\(\/\/\)[^/].*/{ 12515 s//\1/ 12516 q 12517 } 12518 /^X\(\/\/\)$/{ 12519 s//\1/ 12520 q 12521 } 12522 /^X\(\/\).*/{ 12523 s//\1/ 12524 q 12525 } 12526 s/.*/./; q'` 12527 as_dir="$ac_dir"; as_fn_mkdir_p 12528 ac_builddir=. 12529 12530case "$ac_dir" in 12531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12532*) 12533 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12534 # A ".." for each directory in $ac_dir_suffix. 12535 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12536 case $ac_top_builddir_sub in 12537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12539 esac ;; 12540esac 12541ac_abs_top_builddir=$ac_pwd 12542ac_abs_builddir=$ac_pwd$ac_dir_suffix 12543# for backward compatibility: 12544ac_top_builddir=$ac_top_build_prefix 12545 12546case $srcdir in 12547 .) # We are building in place. 12548 ac_srcdir=. 12549 ac_top_srcdir=$ac_top_builddir_sub 12550 ac_abs_top_srcdir=$ac_pwd ;; 12551 [\\/]* | ?:[\\/]* ) # Absolute name. 12552 ac_srcdir=$srcdir$ac_dir_suffix; 12553 ac_top_srcdir=$srcdir 12554 ac_abs_top_srcdir=$srcdir ;; 12555 *) # Relative name. 12556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12557 ac_top_srcdir=$ac_top_build_prefix$srcdir 12558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12559esac 12560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12561 12562 12563 case $ac_mode in 12564 :F) 12565 # 12566 # CONFIG_FILE 12567 # 12568 12569 case $INSTALL in 12570 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12571 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12572 esac 12573 ac_MKDIR_P=$MKDIR_P 12574 case $MKDIR_P in 12575 [\\/$]* | ?:[\\/]* ) ;; 12576 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12577 esac 12578_ACEOF 12579 12580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12581# If the template does not know about datarootdir, expand it. 12582# FIXME: This hack should be removed a few years after 2.60. 12583ac_datarootdir_hack=; ac_datarootdir_seen= 12584ac_sed_dataroot=' 12585/datarootdir/ { 12586 p 12587 q 12588} 12589/@datadir@/p 12590/@docdir@/p 12591/@infodir@/p 12592/@localedir@/p 12593/@mandir@/p' 12594case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12595*datarootdir*) ac_datarootdir_seen=yes;; 12596*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12598printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12599_ACEOF 12600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12601 ac_datarootdir_hack=' 12602 s&@datadir@&$datadir&g 12603 s&@docdir@&$docdir&g 12604 s&@infodir@&$infodir&g 12605 s&@localedir@&$localedir&g 12606 s&@mandir@&$mandir&g 12607 s&\\\${datarootdir}&$datarootdir&g' ;; 12608esac 12609_ACEOF 12610 12611# Neutralize VPATH when `$srcdir' = `.'. 12612# Shell code in configure.ac might set extrasub. 12613# FIXME: do we really want to maintain this feature? 12614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12615ac_sed_extra="$ac_vpsub 12616$extrasub 12617_ACEOF 12618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12619:t 12620/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12621s|@configure_input@|$ac_sed_conf_input|;t t 12622s&@top_builddir@&$ac_top_builddir_sub&;t t 12623s&@top_build_prefix@&$ac_top_build_prefix&;t t 12624s&@srcdir@&$ac_srcdir&;t t 12625s&@abs_srcdir@&$ac_abs_srcdir&;t t 12626s&@top_srcdir@&$ac_top_srcdir&;t t 12627s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12628s&@builddir@&$ac_builddir&;t t 12629s&@abs_builddir@&$ac_abs_builddir&;t t 12630s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12631s&@INSTALL@&$ac_INSTALL&;t t 12632s&@MKDIR_P@&$ac_MKDIR_P&;t t 12633$ac_datarootdir_hack 12634" 12635eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12636 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12637 12638test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12639 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12641 "$ac_tmp/out"`; test -z "$ac_out"; } && 12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12643which seems to be undefined. Please make sure it is defined" >&5 12644printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12645which seems to be undefined. Please make sure it is defined" >&2;} 12646 12647 rm -f "$ac_tmp/stdin" 12648 case $ac_file in 12649 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12650 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12651 esac \ 12652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12653 ;; 12654 :H) 12655 # 12656 # CONFIG_HEADER 12657 # 12658 if test x"$ac_file" != x-; then 12659 { 12660 printf "%s\n" "/* $configure_input */" >&1 \ 12661 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12662 } >"$ac_tmp/config.h" \ 12663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12664 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12666printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12667 else 12668 rm -f "$ac_file" 12669 mv "$ac_tmp/config.h" "$ac_file" \ 12670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12671 fi 12672 else 12673 printf "%s\n" "/* $configure_input */" >&1 \ 12674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12675 || as_fn_error $? "could not create -" "$LINENO" 5 12676 fi 12677# Compute "$ac_file"'s index in $config_headers. 12678_am_arg="$ac_file" 12679_am_stamp_count=1 12680for _am_header in $config_headers :; do 12681 case $_am_header in 12682 $_am_arg | $_am_arg:* ) 12683 break ;; 12684 * ) 12685 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12686 esac 12687done 12688echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12689$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12690 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12691 X"$_am_arg" : 'X\(//\)$' \| \ 12692 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12693printf "%s\n" X"$_am_arg" | 12694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12695 s//\1/ 12696 q 12697 } 12698 /^X\(\/\/\)[^/].*/{ 12699 s//\1/ 12700 q 12701 } 12702 /^X\(\/\/\)$/{ 12703 s//\1/ 12704 q 12705 } 12706 /^X\(\/\).*/{ 12707 s//\1/ 12708 q 12709 } 12710 s/.*/./; q'`/stamp-h$_am_stamp_count 12711 ;; 12712 12713 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12714printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12715 ;; 12716 esac 12717 12718 12719 case $ac_file$ac_mode in 12720 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12721 # Older Autoconf quotes --file arguments for eval, but not when files 12722 # are listed without --file. Let's play safe and only enable the eval 12723 # if we detect the quoting. 12724 # TODO: see whether this extra hack can be removed once we start 12725 # requiring Autoconf 2.70 or later. 12726 case $CONFIG_FILES in #( 12727 *\'*) : 12728 eval set x "$CONFIG_FILES" ;; #( 12729 *) : 12730 set x $CONFIG_FILES ;; #( 12731 *) : 12732 ;; 12733esac 12734 shift 12735 # Used to flag and report bootstrapping failures. 12736 am_rc=0 12737 for am_mf 12738 do 12739 # Strip MF so we end up with the name of the file. 12740 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12741 # Check whether this is an Automake generated Makefile which includes 12742 # dependency-tracking related rules and includes. 12743 # Grep'ing the whole file directly is not great: AIX grep has a line 12744 # limit of 2048, but all sed's we know have understand at least 4000. 12745 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12746 || continue 12747 am_dirpart=`$as_dirname -- "$am_mf" || 12748$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12749 X"$am_mf" : 'X\(//\)[^/]' \| \ 12750 X"$am_mf" : 'X\(//\)$' \| \ 12751 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12752printf "%s\n" X"$am_mf" | 12753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12754 s//\1/ 12755 q 12756 } 12757 /^X\(\/\/\)[^/].*/{ 12758 s//\1/ 12759 q 12760 } 12761 /^X\(\/\/\)$/{ 12762 s//\1/ 12763 q 12764 } 12765 /^X\(\/\).*/{ 12766 s//\1/ 12767 q 12768 } 12769 s/.*/./; q'` 12770 am_filepart=`$as_basename -- "$am_mf" || 12771$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12772 X"$am_mf" : 'X\(//\)$' \| \ 12773 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12774printf "%s\n" X/"$am_mf" | 12775 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12776 s//\1/ 12777 q 12778 } 12779 /^X\/\(\/\/\)$/{ 12780 s//\1/ 12781 q 12782 } 12783 /^X\/\(\/\).*/{ 12784 s//\1/ 12785 q 12786 } 12787 s/.*/./; q'` 12788 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12789 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12790 | $MAKE -f - am--depfiles" >&5 12791 (cd "$am_dirpart" \ 12792 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12793 | $MAKE -f - am--depfiles) >&5 2>&5 12794 ac_status=$? 12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12796 (exit $ac_status); } || am_rc=$? 12797 done 12798 if test $am_rc -ne 0; then 12799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12800printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12801as_fn_error $? "Something went wrong bootstrapping makefile fragments 12802 for automatic dependency tracking. If GNU make was not used, consider 12803 re-running the configure script with MAKE=\"gmake\" (or whatever is 12804 necessary). You can also try re-running configure with the 12805 '--disable-dependency-tracking' option to at least be able to build 12806 the package (albeit without support for automatic dependency tracking). 12807See \`config.log' for more details" "$LINENO" 5; } 12808 fi 12809 { am_dirpart=; unset am_dirpart;} 12810 { am_filepart=; unset am_filepart;} 12811 { am_mf=; unset am_mf;} 12812 { am_rc=; unset am_rc;} 12813 rm -f conftest-deps.mk 12814} 12815 ;; 12816 12817 esac 12818done # for ac_tag 12819 12820 12821as_fn_exit 0 12822_ACEOF 12823ac_clean_files=$ac_clean_files_save 12824 12825test $ac_write_fail = 0 || 12826 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12827 12828 12829# configure is writing to config.log, and then calls config.status. 12830# config.status does its own redirection, appending to config.log. 12831# Unfortunately, on DOS this fails, as config.log is still kept open 12832# by configure, so config.status won't be able to write to it; its 12833# output is simply discarded. So we exec the FD to /dev/null, 12834# effectively closing config.log, so it can be properly (re)opened and 12835# appended to by config.status. When coming back to configure, we 12836# need to make the FD available again. 12837if test "$no_create" != yes; then 12838 ac_cs_success=: 12839 ac_config_status_args= 12840 test "$silent" = yes && 12841 ac_config_status_args="$ac_config_status_args --quiet" 12842 exec 5>/dev/null 12843 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12844 exec 5>>config.log 12845 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12846 # would make configure fail if this is the last instruction. 12847 $ac_cs_success || as_fn_exit 1 12848fi 12849if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12851printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12852fi 12853 12854 12855