1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xkbprint 1.0.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='xkbprint' 607PACKAGE_TARNAME='xkbprint' 608PACKAGE_VERSION='1.0.7' 609PACKAGE_STRING='xkbprint 1.0.7' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646enable_year2038=no 647ac_subst_vars='am__EXEEXT_FALSE 648am__EXEEXT_TRUE 649LTLIBOBJS 650LIBOBJS 651XKBPRINT_LIBS 652XKBPRINT_CFLAGS 653MAN_SUBSTS 654XORG_MAN_PAGE 655ADMIN_MAN_DIR 656DRIVER_MAN_DIR 657MISC_MAN_DIR 658FILE_MAN_DIR 659LIB_MAN_DIR 660APP_MAN_DIR 661ADMIN_MAN_SUFFIX 662DRIVER_MAN_SUFFIX 663MISC_MAN_SUFFIX 664FILE_MAN_SUFFIX 665LIB_MAN_SUFFIX 666APP_MAN_SUFFIX 667SED 668host_os 669host_vendor 670host_cpu 671host 672build_os 673build_vendor 674build_cpu 675build 676INSTALL_CMD 677PKG_CONFIG_LIBDIR 678PKG_CONFIG_PATH 679PKG_CONFIG 680CHANGELOG_CMD 681STRICT_CFLAGS 682CWARNFLAGS 683BASE_CFLAGS 684am__xargs_n 685am__rm_f_notfound 686AM_BACKSLASH 687AM_DEFAULT_VERBOSITY 688AM_DEFAULT_V 689AM_V 690CSCOPE 691ETAGS 692CTAGS 693am__fastdepCC_FALSE 694am__fastdepCC_TRUE 695CCDEPMODE 696am__nodep 697AMDEPBACKSLASH 698AMDEP_FALSE 699AMDEP_TRUE 700am__include 701DEPDIR 702am__untar 703am__tar 704AMTAR 705am__leading_dot 706SET_MAKE 707AWK 708mkdir_p 709MKDIR_P 710INSTALL_STRIP_PROGRAM 711STRIP 712install_sh 713MAKEINFO 714AUTOHEADER 715AUTOMAKE 716AUTOCONF 717ACLOCAL 718VERSION 719PACKAGE 720CYGPATH_W 721am__isrc 722INSTALL_DATA 723INSTALL_SCRIPT 724INSTALL_PROGRAM 725OBJEXT 726EXEEXT 727ac_ct_CC 728CPPFLAGS 729LDFLAGS 730CFLAGS 731CC 732target_alias 733host_alias 734build_alias 735LIBS 736ECHO_T 737ECHO_N 738ECHO_C 739DEFS 740mandir 741localedir 742libdir 743psdir 744pdfdir 745dvidir 746htmldir 747infodir 748docdir 749oldincludedir 750includedir 751runstatedir 752localstatedir 753sharedstatedir 754sysconfdir 755datadir 756datarootdir 757libexecdir 758sbindir 759bindir 760program_transform_name 761prefix 762exec_prefix 763PACKAGE_URL 764PACKAGE_BUGREPORT 765PACKAGE_STRING 766PACKAGE_VERSION 767PACKAGE_TARNAME 768PACKAGE_NAME 769PATH_SEPARATOR 770SHELL 771am__quote' 772ac_subst_files='' 773ac_user_opts=' 774enable_option_checking 775enable_dependency_tracking 776enable_silent_rules 777enable_selective_werror 778enable_strict_compilation 779enable_largefile 780enable_year2038 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790PKG_CONFIG 791PKG_CONFIG_PATH 792PKG_CONFIG_LIBDIR 793XKBPRINT_CFLAGS 794XKBPRINT_LIBS' 795 796 797# Initialize some variables set by options. 798ac_init_help= 799ac_init_version=false 800ac_unrecognized_opts= 801ac_unrecognized_sep= 802# The variables have the same names as the options, with 803# dashes changed to underlines. 804cache_file=/dev/null 805exec_prefix=NONE 806no_create= 807no_recursion= 808prefix=NONE 809program_prefix=NONE 810program_suffix=NONE 811program_transform_name=s,x,x, 812silent= 813site= 814srcdir= 815verbose= 816x_includes=NONE 817x_libraries=NONE 818 819# Installation directory options. 820# These are left unexpanded so users can "make install exec_prefix=/foo" 821# and all the variables that are supposed to be based on exec_prefix 822# by default will actually change. 823# Use braces instead of parens because sh, perl, etc. also accept them. 824# (The list follows the same order as the GNU Coding Standards.) 825bindir='${exec_prefix}/bin' 826sbindir='${exec_prefix}/sbin' 827libexecdir='${exec_prefix}/libexec' 828datarootdir='${prefix}/share' 829datadir='${datarootdir}' 830sysconfdir='${prefix}/etc' 831sharedstatedir='${prefix}/com' 832localstatedir='${prefix}/var' 833runstatedir='${localstatedir}/run' 834includedir='${prefix}/include' 835oldincludedir='/usr/include' 836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 837infodir='${datarootdir}/info' 838htmldir='${docdir}' 839dvidir='${docdir}' 840pdfdir='${docdir}' 841psdir='${docdir}' 842libdir='${exec_prefix}/lib' 843localedir='${datarootdir}/locale' 844mandir='${datarootdir}/man' 845 846ac_prev= 847ac_dashdash= 848for ac_option 849do 850 # If the previous option needs an argument, assign it. 851 if test -n "$ac_prev"; then 852 eval $ac_prev=\$ac_option 853 ac_prev= 854 continue 855 fi 856 857 case $ac_option in 858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 859 *=) ac_optarg= ;; 860 *) ac_optarg=yes ;; 861 esac 862 863 case $ac_dashdash$ac_option in 864 --) 865 ac_dashdash=yes ;; 866 867 -bindir | --bindir | --bindi | --bind | --bin | --bi) 868 ac_prev=bindir ;; 869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 870 bindir=$ac_optarg ;; 871 872 -build | --build | --buil | --bui | --bu) 873 ac_prev=build_alias ;; 874 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 875 build_alias=$ac_optarg ;; 876 877 -cache-file | --cache-file | --cache-fil | --cache-fi \ 878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 879 ac_prev=cache_file ;; 880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 882 cache_file=$ac_optarg ;; 883 884 --config-cache | -C) 885 cache_file=config.cache ;; 886 887 -datadir | --datadir | --datadi | --datad) 888 ac_prev=datadir ;; 889 -datadir=* | --datadir=* | --datadi=* | --datad=*) 890 datadir=$ac_optarg ;; 891 892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 893 | --dataroo | --dataro | --datar) 894 ac_prev=datarootdir ;; 895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 897 datarootdir=$ac_optarg ;; 898 899 -disable-* | --disable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: '$ac_useropt'" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908"enable_$ac_useropt" 909"*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=no ;; 914 915 -docdir | --docdir | --docdi | --doc | --do) 916 ac_prev=docdir ;; 917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 918 docdir=$ac_optarg ;; 919 920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 921 ac_prev=dvidir ;; 922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 923 dvidir=$ac_optarg ;; 924 925 -enable-* | --enable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: '$ac_useropt'" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934"enable_$ac_useropt" 935"*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=\$ac_optarg ;; 940 941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 943 | --exec | --exe | --ex) 944 ac_prev=exec_prefix ;; 945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 947 | --exec=* | --exe=* | --ex=*) 948 exec_prefix=$ac_optarg ;; 949 950 -gas | --gas | --ga | --g) 951 # Obsolete; use --with-gas. 952 with_gas=yes ;; 953 954 -help | --help | --hel | --he | -h) 955 ac_init_help=long ;; 956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 957 ac_init_help=recursive ;; 958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 959 ac_init_help=short ;; 960 961 -host | --host | --hos | --ho) 962 ac_prev=host_alias ;; 963 -host=* | --host=* | --hos=* | --ho=*) 964 host_alias=$ac_optarg ;; 965 966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 967 ac_prev=htmldir ;; 968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 969 | --ht=*) 970 htmldir=$ac_optarg ;; 971 972 -includedir | --includedir | --includedi | --included | --include \ 973 | --includ | --inclu | --incl | --inc) 974 ac_prev=includedir ;; 975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 976 | --includ=* | --inclu=* | --incl=* | --inc=*) 977 includedir=$ac_optarg ;; 978 979 -infodir | --infodir | --infodi | --infod | --info | --inf) 980 ac_prev=infodir ;; 981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 982 infodir=$ac_optarg ;; 983 984 -libdir | --libdir | --libdi | --libd) 985 ac_prev=libdir ;; 986 -libdir=* | --libdir=* | --libdi=* | --libd=*) 987 libdir=$ac_optarg ;; 988 989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 990 | --libexe | --libex | --libe) 991 ac_prev=libexecdir ;; 992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 993 | --libexe=* | --libex=* | --libe=*) 994 libexecdir=$ac_optarg ;; 995 996 -localedir | --localedir | --localedi | --localed | --locale) 997 ac_prev=localedir ;; 998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 999 localedir=$ac_optarg ;; 1000 1001 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1002 | --localstate | --localstat | --localsta | --localst | --locals) 1003 ac_prev=localstatedir ;; 1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1006 localstatedir=$ac_optarg ;; 1007 1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1009 ac_prev=mandir ;; 1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1011 mandir=$ac_optarg ;; 1012 1013 -nfp | --nfp | --nf) 1014 # Obsolete; use --without-fp. 1015 with_fp=no ;; 1016 1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1018 | --no-cr | --no-c | -n) 1019 no_create=yes ;; 1020 1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1023 no_recursion=yes ;; 1024 1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1027 | --oldin | --oldi | --old | --ol | --o) 1028 ac_prev=oldincludedir ;; 1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1032 oldincludedir=$ac_optarg ;; 1033 1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1035 ac_prev=prefix ;; 1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1037 prefix=$ac_optarg ;; 1038 1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1040 | --program-pre | --program-pr | --program-p) 1041 ac_prev=program_prefix ;; 1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1044 program_prefix=$ac_optarg ;; 1045 1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1047 | --program-suf | --program-su | --program-s) 1048 ac_prev=program_suffix ;; 1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1051 program_suffix=$ac_optarg ;; 1052 1053 -program-transform-name | --program-transform-name \ 1054 | --program-transform-nam | --program-transform-na \ 1055 | --program-transform-n | --program-transform- \ 1056 | --program-transform | --program-transfor \ 1057 | --program-transfo | --program-transf \ 1058 | --program-trans | --program-tran \ 1059 | --progr-tra | --program-tr | --program-t) 1060 ac_prev=program_transform_name ;; 1061 -program-transform-name=* | --program-transform-name=* \ 1062 | --program-transform-nam=* | --program-transform-na=* \ 1063 | --program-transform-n=* | --program-transform-=* \ 1064 | --program-transform=* | --program-transfor=* \ 1065 | --program-transfo=* | --program-transf=* \ 1066 | --program-trans=* | --program-tran=* \ 1067 | --progr-tra=* | --program-tr=* | --program-t=*) 1068 program_transform_name=$ac_optarg ;; 1069 1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1071 ac_prev=pdfdir ;; 1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1073 pdfdir=$ac_optarg ;; 1074 1075 -psdir | --psdir | --psdi | --psd | --ps) 1076 ac_prev=psdir ;; 1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1078 psdir=$ac_optarg ;; 1079 1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1081 | -silent | --silent | --silen | --sile | --sil) 1082 silent=yes ;; 1083 1084 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1085 | --runstate | --runstat | --runsta | --runst | --runs \ 1086 | --run | --ru | --r) 1087 ac_prev=runstatedir ;; 1088 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1089 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1090 | --run=* | --ru=* | --r=*) 1091 runstatedir=$ac_optarg ;; 1092 1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1094 ac_prev=sbindir ;; 1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1096 | --sbi=* | --sb=*) 1097 sbindir=$ac_optarg ;; 1098 1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1101 | --sharedst | --shareds | --shared | --share | --shar \ 1102 | --sha | --sh) 1103 ac_prev=sharedstatedir ;; 1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1107 | --sha=* | --sh=*) 1108 sharedstatedir=$ac_optarg ;; 1109 1110 -site | --site | --sit) 1111 ac_prev=site ;; 1112 -site=* | --site=* | --sit=*) 1113 site=$ac_optarg ;; 1114 1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1116 ac_prev=srcdir ;; 1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1118 srcdir=$ac_optarg ;; 1119 1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1121 | --syscon | --sysco | --sysc | --sys | --sy) 1122 ac_prev=sysconfdir ;; 1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1125 sysconfdir=$ac_optarg ;; 1126 1127 -target | --target | --targe | --targ | --tar | --ta | --t) 1128 ac_prev=target_alias ;; 1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1130 target_alias=$ac_optarg ;; 1131 1132 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1133 verbose=yes ;; 1134 1135 -version | --version | --versio | --versi | --vers | -V) 1136 ac_init_version=: ;; 1137 1138 -with-* | --with-*) 1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1140 # Reject names that are not valid shell variable names. 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1142 as_fn_error $? "invalid package name: '$ac_useropt'" 1143 ac_useropt_orig=$ac_useropt 1144 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1145 case $ac_user_opts in 1146 *" 1147"with_$ac_useropt" 1148"*) ;; 1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1150 ac_unrecognized_sep=', ';; 1151 esac 1152 eval with_$ac_useropt=\$ac_optarg ;; 1153 1154 -without-* | --without-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid package name: '$ac_useropt'" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163"with_$ac_useropt" 1164"*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval with_$ac_useropt=no ;; 1169 1170 --x) 1171 # Obsolete; use --with-x. 1172 with_x=yes ;; 1173 1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1175 | --x-incl | --x-inc | --x-in | --x-i) 1176 ac_prev=x_includes ;; 1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1179 x_includes=$ac_optarg ;; 1180 1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1183 ac_prev=x_libraries ;; 1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1186 x_libraries=$ac_optarg ;; 1187 1188 -*) as_fn_error $? "unrecognized option: '$ac_option' 1189Try '$0 --help' for more information" 1190 ;; 1191 1192 *=*) 1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1194 # Reject names that are not valid shell variable names. 1195 case $ac_envvar in #( 1196 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1197 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1198 esac 1199 eval $ac_envvar=\$ac_optarg 1200 export $ac_envvar ;; 1201 1202 *) 1203 # FIXME: should be removed in autoconf 3.0. 1204 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1206 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1208 ;; 1209 1210 esac 1211done 1212 1213if test -n "$ac_prev"; then 1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1215 as_fn_error $? "missing argument to $ac_option" 1216fi 1217 1218if test -n "$ac_unrecognized_opts"; then 1219 case $enable_option_checking in 1220 no) ;; 1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1222 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1223 esac 1224fi 1225 1226# Check all directory arguments for consistency. 1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1228 datadir sysconfdir sharedstatedir localstatedir includedir \ 1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1230 libdir localedir mandir runstatedir 1231do 1232 eval ac_val=\$$ac_var 1233 # Remove trailing slashes. 1234 case $ac_val in 1235 */ ) 1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1237 eval $ac_var=\$ac_val;; 1238 esac 1239 # Be sure to have absolute directory names. 1240 case $ac_val in 1241 [\\/$]* | ?:[\\/]* ) continue;; 1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1243 esac 1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1245done 1246 1247# There might be people who depend on the old broken behavior: '$host' 1248# used to hold the argument of --host etc. 1249# FIXME: To remove some day. 1250build=$build_alias 1251host=$host_alias 1252target=$target_alias 1253 1254# FIXME: To remove some day. 1255if test "x$host_alias" != x; then 1256 if test "x$build_alias" = x; then 1257 cross_compiling=maybe 1258 elif test "x$build_alias" != "x$host_alias"; then 1259 cross_compiling=yes 1260 fi 1261fi 1262 1263ac_tool_prefix= 1264test -n "$host_alias" && ac_tool_prefix=$host_alias- 1265 1266test "$silent" = yes && exec 6>/dev/null 1267 1268 1269ac_pwd=`pwd` && test -n "$ac_pwd" && 1270ac_ls_di=`ls -di .` && 1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1272 as_fn_error $? "working directory cannot be determined" 1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1274 as_fn_error $? "pwd does not report name of working directory" 1275 1276 1277# Find the source files, if location was not specified. 1278if test -z "$srcdir"; then 1279 ac_srcdir_defaulted=yes 1280 # Try the directory containing this script, then the parent directory. 1281 ac_confdir=`$as_dirname -- "$as_myself" || 1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1283 X"$as_myself" : 'X\(//\)[^/]' \| \ 1284 X"$as_myself" : 'X\(//\)$' \| \ 1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1286printf "%s\n" X"$as_myself" | 1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)[^/].*/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\).*/{ 1300 s//\1/ 1301 q 1302 } 1303 s/.*/./; q'` 1304 srcdir=$ac_confdir 1305 if test ! -r "$srcdir/$ac_unique_file"; then 1306 srcdir=.. 1307 fi 1308else 1309 ac_srcdir_defaulted=no 1310fi 1311if test ! -r "$srcdir/$ac_unique_file"; then 1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1314fi 1315ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1316ac_abs_confdir=`( 1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1318 pwd)` 1319# When building in place, set srcdir=. 1320if test "$ac_abs_confdir" = "$ac_pwd"; then 1321 srcdir=. 1322fi 1323# Remove unnecessary trailing slashes from srcdir. 1324# Double slashes in file names in object file debugging info 1325# mess up M-x gdb in Emacs. 1326case $srcdir in 1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1328esac 1329for ac_var in $ac_precious_vars; do 1330 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_env_${ac_var}_value=\$${ac_var} 1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1334done 1335 1336# 1337# Report the --help message. 1338# 1339if test "$ac_init_help" = "long"; then 1340 # Omit some internal or obsolete options to make the list less imposing. 1341 # This message is too long to be a string in the A/UX 3.1 sh. 1342 cat <<_ACEOF 1343'configure' configures xkbprint 1.0.7 to adapt to many kinds of systems. 1344 1345Usage: $0 [OPTION]... [VAR=VALUE]... 1346 1347To assign environment variables (e.g., CC, CFLAGS...), specify them as 1348VAR=VALUE. See below for descriptions of some of the useful variables. 1349 1350Defaults for the options are specified in brackets. 1351 1352Configuration: 1353 -h, --help display this help and exit 1354 --help=short display options specific to this package 1355 --help=recursive display the short help of all the included packages 1356 -V, --version display version information and exit 1357 -q, --quiet, --silent do not print 'checking ...' messages 1358 --cache-file=FILE cache test results in FILE [disabled] 1359 -C, --config-cache alias for '--cache-file=config.cache' 1360 -n, --no-create do not create output files 1361 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1362 1363Installation directories: 1364 --prefix=PREFIX install architecture-independent files in PREFIX 1365 [$ac_default_prefix] 1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1367 [PREFIX] 1368 1369By default, 'make install' will install all the files in 1370'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1371an installation prefix other than '$ac_default_prefix' using '--prefix', 1372for instance '--prefix=\$HOME'. 1373 1374For better control, use the options below. 1375 1376Fine tuning of the installation directories: 1377 --bindir=DIR user executables [EPREFIX/bin] 1378 --sbindir=DIR system admin executables [EPREFIX/sbin] 1379 --libexecdir=DIR program executables [EPREFIX/libexec] 1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1383 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1384 --libdir=DIR object code libraries [EPREFIX/lib] 1385 --includedir=DIR C header files [PREFIX/include] 1386 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1389 --infodir=DIR info documentation [DATAROOTDIR/info] 1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1391 --mandir=DIR man documentation [DATAROOTDIR/man] 1392 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbprint] 1393 --htmldir=DIR html documentation [DOCDIR] 1394 --dvidir=DIR dvi documentation [DOCDIR] 1395 --pdfdir=DIR pdf documentation [DOCDIR] 1396 --psdir=DIR ps documentation [DOCDIR] 1397_ACEOF 1398 1399 cat <<\_ACEOF 1400 1401Program names: 1402 --program-prefix=PREFIX prepend PREFIX to installed program names 1403 --program-suffix=SUFFIX append SUFFIX to installed program names 1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1405 1406System types: 1407 --build=BUILD configure for building on BUILD [guessed] 1408 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1409_ACEOF 1410fi 1411 1412if test -n "$ac_init_help"; then 1413 case $ac_init_help in 1414 short | recursive ) echo "Configuration of xkbprint 1.0.7:";; 1415 esac 1416 cat <<\_ACEOF 1417 1418Optional Features: 1419 --disable-option-checking ignore unrecognized --enable/--with options 1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1422 --enable-dependency-tracking 1423 do not reject slow dependency extractors 1424 --disable-dependency-tracking 1425 speeds up one-time build 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --disable-selective-werror 1429 Turn off selective compiler errors. (default: 1430 enabled) 1431 --enable-strict-compilation 1432 Enable all warnings from compiler and make them 1433 errors (default: disabled) 1434 --disable-largefile omit support for large files 1435 --enable-year2038 support timestamps after 2038 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.7 1523generated by GNU Autoconf 2.72 1524 1525Copyright (C) 2023 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 case e in #( 1565 e) printf "%s\n" "$as_me: failed program was:" >&5 1566sed 's/^/| /' conftest.$ac_ext >&5 1567 1568 ac_retval=1 ;; 1569esac 1570fi 1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1572 as_fn_set_status $ac_retval 1573 1574} # ac_fn_c_try_compile 1575 1576# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1577# ------------------------------------------------------- 1578# Tests whether HEADER exists and can be compiled using the include files in 1579# INCLUDES, setting the cache variable VAR accordingly. 1580ac_fn_c_check_header_compile () 1581{ 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1584printf %s "checking for $2... " >&6; } 1585if eval test \${$3+y} 1586then : 1587 printf %s "(cached) " >&6 1588else case e in #( 1589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1590/* end confdefs.h. */ 1591$4 1592#include <$2> 1593_ACEOF 1594if ac_fn_c_try_compile "$LINENO" 1595then : 1596 eval "$3=yes" 1597else case e in #( 1598 e) eval "$3=no" ;; 1599esac 1600fi 1601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1602esac 1603fi 1604eval ac_res=\$$3 1605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1606printf "%s\n" "$ac_res" >&6; } 1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1608 1609} # ac_fn_c_check_header_compile 1610 1611# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1612# ------------------------------------------------------------------ 1613# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1614# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1615ac_fn_check_decl () 1616{ 1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1618 as_decl_name=`echo $2|sed 's/ *(.*//'` 1619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1620printf %s "checking whether $as_decl_name is declared... " >&6; } 1621if eval test \${$3+y} 1622then : 1623 printf %s "(cached) " >&6 1624else case e in #( 1625 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1626 eval ac_save_FLAGS=\$$6 1627 as_fn_append $6 " $5" 1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1629/* end confdefs.h. */ 1630$4 1631int 1632main (void) 1633{ 1634#ifndef $as_decl_name 1635#ifdef __cplusplus 1636 (void) $as_decl_use; 1637#else 1638 (void) $as_decl_name; 1639#endif 1640#endif 1641 1642 ; 1643 return 0; 1644} 1645_ACEOF 1646if ac_fn_c_try_compile "$LINENO" 1647then : 1648 eval "$3=yes" 1649else case e in #( 1650 e) eval "$3=no" ;; 1651esac 1652fi 1653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1654 eval $6=\$ac_save_FLAGS 1655 ;; 1656esac 1657fi 1658eval ac_res=\$$3 1659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1660printf "%s\n" "$ac_res" >&6; } 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 1663} # ac_fn_check_decl 1664 1665# ac_fn_c_try_link LINENO 1666# ----------------------- 1667# Try to link conftest.$ac_ext, and return whether this succeeded. 1668ac_fn_c_try_link () 1669{ 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1672 if { { ac_try="$ac_link" 1673case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676esac 1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678printf "%s\n" "$ac_try_echo"; } >&5 1679 (eval "$ac_link") 2>conftest.err 1680 ac_status=$? 1681 if test -s conftest.err; then 1682 grep -v '^ *+' conftest.err >conftest.er1 1683 cat conftest.er1 >&5 1684 mv -f conftest.er1 conftest.err 1685 fi 1686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1687 test $ac_status = 0; } && { 1688 test -z "$ac_c_werror_flag" || 1689 test ! -s conftest.err 1690 } && test -s conftest$ac_exeext && { 1691 test "$cross_compiling" = yes || 1692 test -x conftest$ac_exeext 1693 } 1694then : 1695 ac_retval=0 1696else case e in #( 1697 e) printf "%s\n" "$as_me: failed program was:" >&5 1698sed 's/^/| /' conftest.$ac_ext >&5 1699 1700 ac_retval=1 ;; 1701esac 1702fi 1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1705 # interfere with the next link command; also delete a directory that is 1706 # left behind by Apple's compiler. We do this before executing the actions. 1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_link 1712 1713# ac_fn_c_check_func LINENO FUNC VAR 1714# ---------------------------------- 1715# Tests whether FUNC exists, setting the cache variable VAR accordingly 1716ac_fn_c_check_func () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1720printf %s "checking for $2... " >&6; } 1721if eval test \${$3+y} 1722then : 1723 printf %s "(cached) " >&6 1724else case e in #( 1725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1726/* end confdefs.h. */ 1727/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1729#define $2 innocuous_$2 1730 1731/* System header to define __stub macros and hopefully few prototypes, 1732 which can conflict with char $2 (void); below. */ 1733 1734#include <limits.h> 1735#undef $2 1736 1737/* Override any GCC internal prototype to avoid an error. 1738 Use char because int might match the return type of a GCC 1739 builtin and then its argument prototype would still apply. */ 1740#ifdef __cplusplus 1741extern "C" 1742#endif 1743char $2 (void); 1744/* The GNU C library defines this for functions which it implements 1745 to always fail with ENOSYS. Some functions are actually named 1746 something starting with __ and the normal name is an alias. */ 1747#if defined __stub_$2 || defined __stub___$2 1748choke me 1749#endif 1750 1751int 1752main (void) 1753{ 1754return $2 (); 1755 ; 1756 return 0; 1757} 1758_ACEOF 1759if ac_fn_c_try_link "$LINENO" 1760then : 1761 eval "$3=yes" 1762else case e in #( 1763 e) eval "$3=no" ;; 1764esac 1765fi 1766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1767 conftest$ac_exeext conftest.$ac_ext ;; 1768esac 1769fi 1770eval ac_res=\$$3 1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1772printf "%s\n" "$ac_res" >&6; } 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 1775} # ac_fn_c_check_func 1776ac_configure_args_raw= 1777for ac_arg 1778do 1779 case $ac_arg in 1780 *\'*) 1781 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1782 esac 1783 as_fn_append ac_configure_args_raw " '$ac_arg'" 1784done 1785 1786case $ac_configure_args_raw in 1787 *$as_nl*) 1788 ac_safe_unquote= ;; 1789 *) 1790 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1791 ac_unsafe_a="$ac_unsafe_z#~" 1792 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1793 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1794esac 1795 1796cat >config.log <<_ACEOF 1797This file contains any messages produced by compilers while 1798running configure, to aid debugging if configure makes a mistake. 1799 1800It was created by xkbprint $as_me 1.0.7, which was 1801generated by GNU Autoconf 2.72. Invocation command line was 1802 1803 $ $0$ac_configure_args_raw 1804 1805_ACEOF 1806exec 5>>config.log 1807{ 1808cat <<_ASUNAME 1809## --------- ## 1810## Platform. ## 1811## --------- ## 1812 1813hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1814uname -m = `(uname -m) 2>/dev/null || echo unknown` 1815uname -r = `(uname -r) 2>/dev/null || echo unknown` 1816uname -s = `(uname -s) 2>/dev/null || echo unknown` 1817uname -v = `(uname -v) 2>/dev/null || echo unknown` 1818 1819/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1820/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1821 1822/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1823/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1824/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1825/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1826/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1827/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1828/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1829 1830_ASUNAME 1831 1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1833for as_dir in $PATH 1834do 1835 IFS=$as_save_IFS 1836 case $as_dir in #((( 1837 '') as_dir=./ ;; 1838 */) ;; 1839 *) as_dir=$as_dir/ ;; 1840 esac 1841 printf "%s\n" "PATH: $as_dir" 1842 done 1843IFS=$as_save_IFS 1844 1845} >&5 1846 1847cat >&5 <<_ACEOF 1848 1849 1850## ----------- ## 1851## Core tests. ## 1852## ----------- ## 1853 1854_ACEOF 1855 1856 1857# Keep a trace of the command line. 1858# Strip out --no-create and --no-recursion so they do not pile up. 1859# Strip out --silent because we don't want to record it for future runs. 1860# Also quote any args containing shell meta-characters. 1861# Make two passes to allow for proper duplicate-argument suppression. 1862ac_configure_args= 1863ac_configure_args0= 1864ac_configure_args1= 1865ac_must_keep_next=false 1866for ac_pass in 1 2 1867do 1868 for ac_arg 1869 do 1870 case $ac_arg in 1871 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1873 | -silent | --silent | --silen | --sile | --sil) 1874 continue ;; 1875 *\'*) 1876 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1877 esac 1878 case $ac_pass in 1879 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1880 2) 1881 as_fn_append ac_configure_args1 " '$ac_arg'" 1882 if test $ac_must_keep_next = true; then 1883 ac_must_keep_next=false # Got value, back to normal. 1884 else 1885 case $ac_arg in 1886 *=* | --config-cache | -C | -disable-* | --disable-* \ 1887 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1888 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1889 | -with-* | --with-* | -without-* | --without-* | --x) 1890 case "$ac_configure_args0 " in 1891 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1892 esac 1893 ;; 1894 -* ) ac_must_keep_next=true ;; 1895 esac 1896 fi 1897 as_fn_append ac_configure_args " '$ac_arg'" 1898 ;; 1899 esac 1900 done 1901done 1902{ ac_configure_args0=; unset ac_configure_args0;} 1903{ ac_configure_args1=; unset ac_configure_args1;} 1904 1905# When interrupted or exit'd, cleanup temporary files, and complete 1906# config.log. We remove comments because anyway the quotes in there 1907# would cause problems or look ugly. 1908# WARNING: Use '\'' to represent an apostrophe within the trap. 1909# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1910trap 'exit_status=$? 1911 # Sanitize IFS. 1912 IFS=" "" $as_nl" 1913 # Save into config.log some information that might help in debugging. 1914 { 1915 echo 1916 1917 printf "%s\n" "## ---------------- ## 1918## Cache variables. ## 1919## ---------------- ##" 1920 echo 1921 # The following way of writing the cache mishandles newlines in values, 1922( 1923 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1924 eval ac_val=\$$ac_var 1925 case $ac_val in #( 1926 *${as_nl}*) 1927 case $ac_var in #( 1928 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1929printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1930 esac 1931 case $ac_var in #( 1932 _ | IFS | as_nl) ;; #( 1933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1934 *) { eval $ac_var=; unset $ac_var;} ;; 1935 esac ;; 1936 esac 1937 done 1938 (set) 2>&1 | 1939 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1940 *${as_nl}ac_space=\ *) 1941 sed -n \ 1942 "s/'\''/'\''\\\\'\'''\''/g; 1943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1944 ;; #( 1945 *) 1946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1947 ;; 1948 esac | 1949 sort 1950) 1951 echo 1952 1953 printf "%s\n" "## ----------------- ## 1954## Output variables. ## 1955## ----------------- ##" 1956 echo 1957 for ac_var in $ac_subst_vars 1958 do 1959 eval ac_val=\$$ac_var 1960 case $ac_val in 1961 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1962 esac 1963 printf "%s\n" "$ac_var='\''$ac_val'\''" 1964 done | sort 1965 echo 1966 1967 if test -n "$ac_subst_files"; then 1968 printf "%s\n" "## ------------------- ## 1969## File substitutions. ## 1970## ------------------- ##" 1971 echo 1972 for ac_var in $ac_subst_files 1973 do 1974 eval ac_val=\$$ac_var 1975 case $ac_val in 1976 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1977 esac 1978 printf "%s\n" "$ac_var='\''$ac_val'\''" 1979 done | sort 1980 echo 1981 fi 1982 1983 if test -s confdefs.h; then 1984 printf "%s\n" "## ----------- ## 1985## confdefs.h. ## 1986## ----------- ##" 1987 echo 1988 cat confdefs.h 1989 echo 1990 fi 1991 test "$ac_signal" != 0 && 1992 printf "%s\n" "$as_me: caught signal $ac_signal" 1993 printf "%s\n" "$as_me: exit $exit_status" 1994 } >&5 1995 rm -f core *.core core.conftest.* && 1996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1997 exit $exit_status 1998' 0 1999for ac_signal in 1 2 13 15; do 2000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2001done 2002ac_signal=0 2003 2004# confdefs.h avoids OS command line length limits that DEFS can exceed. 2005rm -f -r conftest* confdefs.h 2006 2007printf "%s\n" "/* confdefs.h */" > confdefs.h 2008 2009# Predefined preprocessor variables. 2010 2011printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2012 2013printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2014 2015printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2016 2017printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2018 2019printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2020 2021printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2022 2023 2024# Let the site file select an alternate cache file if it wants to. 2025# Prefer an explicitly selected file to automatically selected ones. 2026if test -n "$CONFIG_SITE"; then 2027 ac_site_files="$CONFIG_SITE" 2028elif test "x$prefix" != xNONE; then 2029 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2030else 2031 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2032fi 2033 2034for ac_site_file in $ac_site_files 2035do 2036 case $ac_site_file in #( 2037 */*) : 2038 ;; #( 2039 *) : 2040 ac_site_file=./$ac_site_file ;; 2041esac 2042 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2044printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2045 sed 's/^/| /' "$ac_site_file" >&5 2046 . "$ac_site_file" \ 2047 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2048printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2049as_fn_error $? "failed to load site script $ac_site_file 2050See 'config.log' for more details" "$LINENO" 5; } 2051 fi 2052done 2053 2054if test -r "$cache_file"; then 2055 # Some versions of bash will fail to source /dev/null (special files 2056 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2057 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2059printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2060 case $cache_file in 2061 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2062 *) . "./$cache_file";; 2063 esac 2064 fi 2065else 2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2067printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2068 >$cache_file 2069fi 2070 2071as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2072# Test code for whether the C compiler supports C89 (global declarations) 2073ac_c_conftest_c89_globals=' 2074/* Does the compiler advertise C89 conformance? 2075 Do not test the value of __STDC__, because some compilers set it to 0 2076 while being otherwise adequately conformant. */ 2077#if !defined __STDC__ 2078# error "Compiler does not advertise C89 conformance" 2079#endif 2080 2081#include <stddef.h> 2082#include <stdarg.h> 2083struct stat; 2084/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2085struct buf { int x; }; 2086struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2087static char *e (char **p, int i) 2088{ 2089 return p[i]; 2090} 2091static char *f (char * (*g) (char **, int), char **p, ...) 2092{ 2093 char *s; 2094 va_list v; 2095 va_start (v,p); 2096 s = g (p, va_arg (v,int)); 2097 va_end (v); 2098 return s; 2099} 2100 2101/* C89 style stringification. */ 2102#define noexpand_stringify(a) #a 2103const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2104 2105/* C89 style token pasting. Exercises some of the corner cases that 2106 e.g. old MSVC gets wrong, but not very hard. */ 2107#define noexpand_concat(a,b) a##b 2108#define expand_concat(a,b) noexpand_concat(a,b) 2109extern int vA; 2110extern int vbee; 2111#define aye A 2112#define bee B 2113int *pvA = &expand_concat(v,aye); 2114int *pvbee = &noexpand_concat(v,bee); 2115 2116/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2117 function prototypes and stuff, but not \xHH hex character constants. 2118 These do not provoke an error unfortunately, instead are silently treated 2119 as an "x". The following induces an error, until -std is added to get 2120 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2121 array size at least. It is necessary to write \x00 == 0 to get something 2122 that is true only with -std. */ 2123int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2124 2125/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2126 inside strings and character constants. */ 2127#define FOO(x) '\''x'\'' 2128int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2129 2130int test (int i, double x); 2131struct s1 {int (*f) (int a);}; 2132struct s2 {int (*f) (double a);}; 2133int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2134 int, int);' 2135 2136# Test code for whether the C compiler supports C89 (body of main). 2137ac_c_conftest_c89_main=' 2138ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2139' 2140 2141# Test code for whether the C compiler supports C99 (global declarations) 2142ac_c_conftest_c99_globals=' 2143/* Does the compiler advertise C99 conformance? */ 2144#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2145# error "Compiler does not advertise C99 conformance" 2146#endif 2147 2148// See if C++-style comments work. 2149 2150#include <stdbool.h> 2151extern int puts (const char *); 2152extern int printf (const char *, ...); 2153extern int dprintf (int, const char *, ...); 2154extern void *malloc (size_t); 2155extern void free (void *); 2156 2157// Check varargs macros. These examples are taken from C99 6.10.3.5. 2158// dprintf is used instead of fprintf to avoid needing to declare 2159// FILE and stderr. 2160#define debug(...) dprintf (2, __VA_ARGS__) 2161#define showlist(...) puts (#__VA_ARGS__) 2162#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2163static void 2164test_varargs_macros (void) 2165{ 2166 int x = 1234; 2167 int y = 5678; 2168 debug ("Flag"); 2169 debug ("X = %d\n", x); 2170 showlist (The first, second, and third items.); 2171 report (x>y, "x is %d but y is %d", x, y); 2172} 2173 2174// Check long long types. 2175#define BIG64 18446744073709551615ull 2176#define BIG32 4294967295ul 2177#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2178#if !BIG_OK 2179 #error "your preprocessor is broken" 2180#endif 2181#if BIG_OK 2182#else 2183 #error "your preprocessor is broken" 2184#endif 2185static long long int bignum = -9223372036854775807LL; 2186static unsigned long long int ubignum = BIG64; 2187 2188struct incomplete_array 2189{ 2190 int datasize; 2191 double data[]; 2192}; 2193 2194struct named_init { 2195 int number; 2196 const wchar_t *name; 2197 double average; 2198}; 2199 2200typedef const char *ccp; 2201 2202static inline int 2203test_restrict (ccp restrict text) 2204{ 2205 // Iterate through items via the restricted pointer. 2206 // Also check for declarations in for loops. 2207 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2208 continue; 2209 return 0; 2210} 2211 2212// Check varargs and va_copy. 2213static bool 2214test_varargs (const char *format, ...) 2215{ 2216 va_list args; 2217 va_start (args, format); 2218 va_list args_copy; 2219 va_copy (args_copy, args); 2220 2221 const char *str = ""; 2222 int number = 0; 2223 float fnumber = 0; 2224 2225 while (*format) 2226 { 2227 switch (*format++) 2228 { 2229 case '\''s'\'': // string 2230 str = va_arg (args_copy, const char *); 2231 break; 2232 case '\''d'\'': // int 2233 number = va_arg (args_copy, int); 2234 break; 2235 case '\''f'\'': // float 2236 fnumber = va_arg (args_copy, double); 2237 break; 2238 default: 2239 break; 2240 } 2241 } 2242 va_end (args_copy); 2243 va_end (args); 2244 2245 return *str && number && fnumber; 2246} 2247' 2248 2249# Test code for whether the C compiler supports C99 (body of main). 2250ac_c_conftest_c99_main=' 2251 // Check bool. 2252 _Bool success = false; 2253 success |= (argc != 0); 2254 2255 // Check restrict. 2256 if (test_restrict ("String literal") == 0) 2257 success = true; 2258 char *restrict newvar = "Another string"; 2259 2260 // Check varargs. 2261 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2262 test_varargs_macros (); 2263 2264 // Check flexible array members. 2265 struct incomplete_array *ia = 2266 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2267 ia->datasize = 10; 2268 for (int i = 0; i < ia->datasize; ++i) 2269 ia->data[i] = i * 1.234; 2270 // Work around memory leak warnings. 2271 free (ia); 2272 2273 // Check named initializers. 2274 struct named_init ni = { 2275 .number = 34, 2276 .name = L"Test wide string", 2277 .average = 543.34343, 2278 }; 2279 2280 ni.number = 58; 2281 2282 int dynamic_array[ni.number]; 2283 dynamic_array[0] = argv[0][0]; 2284 dynamic_array[ni.number - 1] = 543; 2285 2286 // work around unused variable warnings 2287 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2288 || dynamic_array[ni.number - 1] != 543); 2289' 2290 2291# Test code for whether the C compiler supports C11 (global declarations) 2292ac_c_conftest_c11_globals=' 2293/* Does the compiler advertise C11 conformance? */ 2294#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2295# error "Compiler does not advertise C11 conformance" 2296#endif 2297 2298// Check _Alignas. 2299char _Alignas (double) aligned_as_double; 2300char _Alignas (0) no_special_alignment; 2301extern char aligned_as_int; 2302char _Alignas (0) _Alignas (int) aligned_as_int; 2303 2304// Check _Alignof. 2305enum 2306{ 2307 int_alignment = _Alignof (int), 2308 int_array_alignment = _Alignof (int[100]), 2309 char_alignment = _Alignof (char) 2310}; 2311_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2312 2313// Check _Noreturn. 2314int _Noreturn does_not_return (void) { for (;;) continue; } 2315 2316// Check _Static_assert. 2317struct test_static_assert 2318{ 2319 int x; 2320 _Static_assert (sizeof (int) <= sizeof (long int), 2321 "_Static_assert does not work in struct"); 2322 long int y; 2323}; 2324 2325// Check UTF-8 literals. 2326#define u8 syntax error! 2327char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2328 2329// Check duplicate typedefs. 2330typedef long *long_ptr; 2331typedef long int *long_ptr; 2332typedef long_ptr long_ptr; 2333 2334// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2335struct anonymous 2336{ 2337 union { 2338 struct { int i; int j; }; 2339 struct { int k; long int l; } w; 2340 }; 2341 int m; 2342} v1; 2343' 2344 2345# Test code for whether the C compiler supports C11 (body of main). 2346ac_c_conftest_c11_main=' 2347 _Static_assert ((offsetof (struct anonymous, i) 2348 == offsetof (struct anonymous, w.k)), 2349 "Anonymous union alignment botch"); 2350 v1.i = 2; 2351 v1.w.k = 5; 2352 ok |= v1.i != 5; 2353' 2354 2355# Test code for whether the C compiler supports C11 (complete). 2356ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2357${ac_c_conftest_c99_globals} 2358${ac_c_conftest_c11_globals} 2359 2360int 2361main (int argc, char **argv) 2362{ 2363 int ok = 0; 2364 ${ac_c_conftest_c89_main} 2365 ${ac_c_conftest_c99_main} 2366 ${ac_c_conftest_c11_main} 2367 return ok; 2368} 2369" 2370 2371# Test code for whether the C compiler supports C99 (complete). 2372ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2373${ac_c_conftest_c99_globals} 2374 2375int 2376main (int argc, char **argv) 2377{ 2378 int ok = 0; 2379 ${ac_c_conftest_c89_main} 2380 ${ac_c_conftest_c99_main} 2381 return ok; 2382} 2383" 2384 2385# Test code for whether the C compiler supports C89 (complete). 2386ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2387 2388int 2389main (int argc, char **argv) 2390{ 2391 int ok = 0; 2392 ${ac_c_conftest_c89_main} 2393 return ok; 2394} 2395" 2396 2397as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2398as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2399as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2400as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2401as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2402as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2403as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2404as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2405as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2406as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2407 2408# Auxiliary files required by this configure script. 2409ac_aux_files="config.guess config.sub missing install-sh compile" 2410 2411# Locations in which to look for auxiliary files. 2412ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2413 2414# Search for a directory containing all of the required auxiliary files, 2415# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2416# If we don't find one directory that contains all the files we need, 2417# we report the set of missing files from the *first* directory in 2418# $ac_aux_dir_candidates and give up. 2419ac_missing_aux_files="" 2420ac_first_candidate=: 2421printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2423as_found=false 2424for as_dir in $ac_aux_dir_candidates 2425do 2426 IFS=$as_save_IFS 2427 case $as_dir in #((( 2428 '') as_dir=./ ;; 2429 */) ;; 2430 *) as_dir=$as_dir/ ;; 2431 esac 2432 as_found=: 2433 2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2435 ac_aux_dir_found=yes 2436 ac_install_sh= 2437 for ac_aux in $ac_aux_files 2438 do 2439 # As a special case, if "install-sh" is required, that requirement 2440 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2441 # and $ac_install_sh is set appropriately for whichever one is found. 2442 if test x"$ac_aux" = x"install-sh" 2443 then 2444 if test -f "${as_dir}install-sh"; then 2445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2446 ac_install_sh="${as_dir}install-sh -c" 2447 elif test -f "${as_dir}install.sh"; then 2448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2449 ac_install_sh="${as_dir}install.sh -c" 2450 elif test -f "${as_dir}shtool"; then 2451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2452 ac_install_sh="${as_dir}shtool install -c" 2453 else 2454 ac_aux_dir_found=no 2455 if $ac_first_candidate; then 2456 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2457 else 2458 break 2459 fi 2460 fi 2461 else 2462 if test -f "${as_dir}${ac_aux}"; then 2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2464 else 2465 ac_aux_dir_found=no 2466 if $ac_first_candidate; then 2467 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2468 else 2469 break 2470 fi 2471 fi 2472 fi 2473 done 2474 if test "$ac_aux_dir_found" = yes; then 2475 ac_aux_dir="$as_dir" 2476 break 2477 fi 2478 ac_first_candidate=false 2479 2480 as_found=false 2481done 2482IFS=$as_save_IFS 2483if $as_found 2484then : 2485 2486else case e in #( 2487 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2488esac 2489fi 2490 2491 2492# These three variables are undocumented and unsupported, 2493# and are intended to be withdrawn in a future Autoconf release. 2494# They can cause serious problems if a builder's source tree is in a directory 2495# whose full name contains unusual characters. 2496if test -f "${ac_aux_dir}config.guess"; then 2497 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2498fi 2499if test -f "${ac_aux_dir}config.sub"; then 2500 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2501fi 2502if test -f "$ac_aux_dir/configure"; then 2503 ac_configure="$SHELL ${ac_aux_dir}configure" 2504fi 2505 2506# Check that the precious variables saved in the cache have kept the same 2507# value. 2508ac_cache_corrupted=false 2509for ac_var in $ac_precious_vars; do 2510 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2511 eval ac_new_set=\$ac_env_${ac_var}_set 2512 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2513 eval ac_new_val=\$ac_env_${ac_var}_value 2514 case $ac_old_set,$ac_new_set in 2515 set,) 2516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2517printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2518 ac_cache_corrupted=: ;; 2519 ,set) 2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2521printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2522 ac_cache_corrupted=: ;; 2523 ,);; 2524 *) 2525 if test "x$ac_old_val" != "x$ac_new_val"; then 2526 # differences in whitespace do not lead to failure. 2527 ac_old_val_w=`echo x $ac_old_val` 2528 ac_new_val_w=`echo x $ac_new_val` 2529 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2531printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2532 ac_cache_corrupted=: 2533 else 2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2535printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2536 eval $ac_var=\$ac_old_val 2537 fi 2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2539printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2541printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2542 fi;; 2543 esac 2544 # Pass precious variables to config.status. 2545 if test "$ac_new_set" = set; then 2546 case $ac_new_val in 2547 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2548 *) ac_arg=$ac_var=$ac_new_val ;; 2549 esac 2550 case " $ac_configure_args " in 2551 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2552 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2553 esac 2554 fi 2555done 2556if $ac_cache_corrupted; then 2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2558printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2560printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2561 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2562 and start over" "$LINENO" 5 2563fi 2564## -------------------- ## 2565## Main body of script. ## 2566## -------------------- ## 2567 2568ac_ext=c 2569ac_cpp='$CPP $CPPFLAGS' 2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2572ac_compiler_gnu=$ac_cv_c_compiler_gnu 2573 2574 2575 2576ac_config_headers="$ac_config_headers config.h" 2577 2578# Needed for asprintf on GNU libc 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590# Expand $ac_aux_dir to an absolute path. 2591am_aux_dir=`cd "$ac_aux_dir" && pwd` 2592 2593ac_ext=c 2594ac_cpp='$CPP $CPPFLAGS' 2595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2597ac_compiler_gnu=$ac_cv_c_compiler_gnu 2598if test -n "$ac_tool_prefix"; then 2599 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2600set dummy ${ac_tool_prefix}gcc; ac_word=$2 2601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2602printf %s "checking for $ac_word... " >&6; } 2603if test ${ac_cv_prog_CC+y} 2604then : 2605 printf %s "(cached) " >&6 2606else case e in #( 2607 e) if test -n "$CC"; then 2608 ac_cv_prog_CC="$CC" # Let the user override the test. 2609else 2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2611for as_dir in $PATH 2612do 2613 IFS=$as_save_IFS 2614 case $as_dir in #((( 2615 '') as_dir=./ ;; 2616 */) ;; 2617 *) as_dir=$as_dir/ ;; 2618 esac 2619 for ac_exec_ext in '' $ac_executable_extensions; do 2620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2621 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2623 break 2 2624 fi 2625done 2626 done 2627IFS=$as_save_IFS 2628 2629fi ;; 2630esac 2631fi 2632CC=$ac_cv_prog_CC 2633if test -n "$CC"; then 2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2635printf "%s\n" "$CC" >&6; } 2636else 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2638printf "%s\n" "no" >&6; } 2639fi 2640 2641 2642fi 2643if test -z "$ac_cv_prog_CC"; then 2644 ac_ct_CC=$CC 2645 # Extract the first word of "gcc", so it can be a program name with args. 2646set dummy gcc; ac_word=$2 2647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2648printf %s "checking for $ac_word... " >&6; } 2649if test ${ac_cv_prog_ac_ct_CC+y} 2650then : 2651 printf %s "(cached) " >&6 2652else case e in #( 2653 e) if test -n "$ac_ct_CC"; then 2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2655else 2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH 2658do 2659 IFS=$as_save_IFS 2660 case $as_dir in #((( 2661 '') as_dir=./ ;; 2662 */) ;; 2663 *) as_dir=$as_dir/ ;; 2664 esac 2665 for ac_exec_ext in '' $ac_executable_extensions; do 2666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2667 ac_cv_prog_ac_ct_CC="gcc" 2668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2669 break 2 2670 fi 2671done 2672 done 2673IFS=$as_save_IFS 2674 2675fi ;; 2676esac 2677fi 2678ac_ct_CC=$ac_cv_prog_ac_ct_CC 2679if test -n "$ac_ct_CC"; then 2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2681printf "%s\n" "$ac_ct_CC" >&6; } 2682else 2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2684printf "%s\n" "no" >&6; } 2685fi 2686 2687 if test "x$ac_ct_CC" = x; then 2688 CC="" 2689 else 2690 case $cross_compiling:$ac_tool_warned in 2691yes:) 2692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2693printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2694ac_tool_warned=yes ;; 2695esac 2696 CC=$ac_ct_CC 2697 fi 2698else 2699 CC="$ac_cv_prog_CC" 2700fi 2701 2702if test -z "$CC"; then 2703 if test -n "$ac_tool_prefix"; then 2704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2705set dummy ${ac_tool_prefix}cc; ac_word=$2 2706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2707printf %s "checking for $ac_word... " >&6; } 2708if test ${ac_cv_prog_CC+y} 2709then : 2710 printf %s "(cached) " >&6 2711else case e in #( 2712 e) if test -n "$CC"; then 2713 ac_cv_prog_CC="$CC" # Let the user override the test. 2714else 2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2716for as_dir in $PATH 2717do 2718 IFS=$as_save_IFS 2719 case $as_dir in #((( 2720 '') as_dir=./ ;; 2721 */) ;; 2722 *) as_dir=$as_dir/ ;; 2723 esac 2724 for ac_exec_ext in '' $ac_executable_extensions; do 2725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2726 ac_cv_prog_CC="${ac_tool_prefix}cc" 2727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2728 break 2 2729 fi 2730done 2731 done 2732IFS=$as_save_IFS 2733 2734fi ;; 2735esac 2736fi 2737CC=$ac_cv_prog_CC 2738if test -n "$CC"; then 2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2740printf "%s\n" "$CC" >&6; } 2741else 2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2743printf "%s\n" "no" >&6; } 2744fi 2745 2746 2747 fi 2748fi 2749if test -z "$CC"; then 2750 # Extract the first word of "cc", so it can be a program name with args. 2751set dummy cc; ac_word=$2 2752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2753printf %s "checking for $ac_word... " >&6; } 2754if test ${ac_cv_prog_CC+y} 2755then : 2756 printf %s "(cached) " >&6 2757else case e in #( 2758 e) if test -n "$CC"; then 2759 ac_cv_prog_CC="$CC" # Let the user override the test. 2760else 2761 ac_prog_rejected=no 2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763for as_dir in $PATH 2764do 2765 IFS=$as_save_IFS 2766 case $as_dir in #((( 2767 '') as_dir=./ ;; 2768 */) ;; 2769 *) as_dir=$as_dir/ ;; 2770 esac 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2773 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2774 ac_prog_rejected=yes 2775 continue 2776 fi 2777 ac_cv_prog_CC="cc" 2778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2779 break 2 2780 fi 2781done 2782 done 2783IFS=$as_save_IFS 2784 2785if test $ac_prog_rejected = yes; then 2786 # We found a bogon in the path, so make sure we never use it. 2787 set dummy $ac_cv_prog_CC 2788 shift 2789 if test $# != 0; then 2790 # We chose a different compiler from the bogus one. 2791 # However, it has the same basename, so the bogon will be chosen 2792 # first if we set CC to just the basename; use the full file name. 2793 shift 2794 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2795 fi 2796fi 2797fi ;; 2798esac 2799fi 2800CC=$ac_cv_prog_CC 2801if test -n "$CC"; then 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2803printf "%s\n" "$CC" >&6; } 2804else 2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806printf "%s\n" "no" >&6; } 2807fi 2808 2809 2810fi 2811if test -z "$CC"; then 2812 if test -n "$ac_tool_prefix"; then 2813 for ac_prog in cl.exe 2814 do 2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2816set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2818printf %s "checking for $ac_word... " >&6; } 2819if test ${ac_cv_prog_CC+y} 2820then : 2821 printf %s "(cached) " >&6 2822else case e in #( 2823 e) if test -n "$CC"; then 2824 ac_cv_prog_CC="$CC" # Let the user override the test. 2825else 2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2827for as_dir in $PATH 2828do 2829 IFS=$as_save_IFS 2830 case $as_dir in #((( 2831 '') as_dir=./ ;; 2832 */) ;; 2833 *) as_dir=$as_dir/ ;; 2834 esac 2835 for ac_exec_ext in '' $ac_executable_extensions; do 2836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2839 break 2 2840 fi 2841done 2842 done 2843IFS=$as_save_IFS 2844 2845fi ;; 2846esac 2847fi 2848CC=$ac_cv_prog_CC 2849if test -n "$CC"; then 2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2851printf "%s\n" "$CC" >&6; } 2852else 2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854printf "%s\n" "no" >&6; } 2855fi 2856 2857 2858 test -n "$CC" && break 2859 done 2860fi 2861if test -z "$CC"; then 2862 ac_ct_CC=$CC 2863 for ac_prog in cl.exe 2864do 2865 # Extract the first word of "$ac_prog", so it can be a program name with args. 2866set dummy $ac_prog; ac_word=$2 2867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2868printf %s "checking for $ac_word... " >&6; } 2869if test ${ac_cv_prog_ac_ct_CC+y} 2870then : 2871 printf %s "(cached) " >&6 2872else case e in #( 2873 e) if test -n "$ac_ct_CC"; then 2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2875else 2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877for as_dir in $PATH 2878do 2879 IFS=$as_save_IFS 2880 case $as_dir in #((( 2881 '') as_dir=./ ;; 2882 */) ;; 2883 *) as_dir=$as_dir/ ;; 2884 esac 2885 for ac_exec_ext in '' $ac_executable_extensions; do 2886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2887 ac_cv_prog_ac_ct_CC="$ac_prog" 2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2889 break 2 2890 fi 2891done 2892 done 2893IFS=$as_save_IFS 2894 2895fi ;; 2896esac 2897fi 2898ac_ct_CC=$ac_cv_prog_ac_ct_CC 2899if test -n "$ac_ct_CC"; then 2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2901printf "%s\n" "$ac_ct_CC" >&6; } 2902else 2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904printf "%s\n" "no" >&6; } 2905fi 2906 2907 2908 test -n "$ac_ct_CC" && break 2909done 2910 2911 if test "x$ac_ct_CC" = x; then 2912 CC="" 2913 else 2914 case $cross_compiling:$ac_tool_warned in 2915yes:) 2916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2918ac_tool_warned=yes ;; 2919esac 2920 CC=$ac_ct_CC 2921 fi 2922fi 2923 2924fi 2925if test -z "$CC"; then 2926 if test -n "$ac_tool_prefix"; then 2927 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2928set dummy ${ac_tool_prefix}clang; ac_word=$2 2929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930printf %s "checking for $ac_word... " >&6; } 2931if test ${ac_cv_prog_CC+y} 2932then : 2933 printf %s "(cached) " >&6 2934else case e in #( 2935 e) if test -n "$CC"; then 2936 ac_cv_prog_CC="$CC" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 case $as_dir in #((( 2943 '') as_dir=./ ;; 2944 */) ;; 2945 *) as_dir=$as_dir/ ;; 2946 esac 2947 for ac_exec_ext in '' $ac_executable_extensions; do 2948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2949 ac_cv_prog_CC="${ac_tool_prefix}clang" 2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2951 break 2 2952 fi 2953done 2954 done 2955IFS=$as_save_IFS 2956 2957fi ;; 2958esac 2959fi 2960CC=$ac_cv_prog_CC 2961if test -n "$CC"; then 2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2963printf "%s\n" "$CC" >&6; } 2964else 2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2966printf "%s\n" "no" >&6; } 2967fi 2968 2969 2970fi 2971if test -z "$ac_cv_prog_CC"; then 2972 ac_ct_CC=$CC 2973 # Extract the first word of "clang", so it can be a program name with args. 2974set dummy clang; ac_word=$2 2975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2976printf %s "checking for $ac_word... " >&6; } 2977if test ${ac_cv_prog_ac_ct_CC+y} 2978then : 2979 printf %s "(cached) " >&6 2980else case e in #( 2981 e) if test -n "$ac_ct_CC"; then 2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2983else 2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2985for as_dir in $PATH 2986do 2987 IFS=$as_save_IFS 2988 case $as_dir in #((( 2989 '') as_dir=./ ;; 2990 */) ;; 2991 *) as_dir=$as_dir/ ;; 2992 esac 2993 for ac_exec_ext in '' $ac_executable_extensions; do 2994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2995 ac_cv_prog_ac_ct_CC="clang" 2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2997 break 2 2998 fi 2999done 3000 done 3001IFS=$as_save_IFS 3002 3003fi ;; 3004esac 3005fi 3006ac_ct_CC=$ac_cv_prog_ac_ct_CC 3007if test -n "$ac_ct_CC"; then 3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3009printf "%s\n" "$ac_ct_CC" >&6; } 3010else 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3012printf "%s\n" "no" >&6; } 3013fi 3014 3015 if test "x$ac_ct_CC" = x; then 3016 CC="" 3017 else 3018 case $cross_compiling:$ac_tool_warned in 3019yes:) 3020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3021printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3022ac_tool_warned=yes ;; 3023esac 3024 CC=$ac_ct_CC 3025 fi 3026else 3027 CC="$ac_cv_prog_CC" 3028fi 3029 3030fi 3031 3032 3033test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3034printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3035as_fn_error $? "no acceptable C compiler found in \$PATH 3036See 'config.log' for more details" "$LINENO" 5; } 3037 3038# Provide some information about the compiler. 3039printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3040set X $ac_compile 3041ac_compiler=$2 3042for ac_option in --version -v -V -qversion -version; do 3043 { { ac_try="$ac_compiler $ac_option >&5" 3044case "(($ac_try" in 3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3046 *) ac_try_echo=$ac_try;; 3047esac 3048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3049printf "%s\n" "$ac_try_echo"; } >&5 3050 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3051 ac_status=$? 3052 if test -s conftest.err; then 3053 sed '10a\ 3054... rest of stderr output deleted ... 3055 10q' conftest.err >conftest.er1 3056 cat conftest.er1 >&5 3057 fi 3058 rm -f conftest.er1 conftest.err 3059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3060 test $ac_status = 0; } 3061done 3062 3063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3064/* end confdefs.h. */ 3065 3066int 3067main (void) 3068{ 3069 3070 ; 3071 return 0; 3072} 3073_ACEOF 3074ac_clean_files_save=$ac_clean_files 3075ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3076# Try to create an executable without -o first, disregard a.out. 3077# It will help us diagnose broken compilers, and finding out an intuition 3078# of exeext. 3079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3080printf %s "checking whether the C compiler works... " >&6; } 3081ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3082 3083# The possible output files: 3084ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3085 3086ac_rmfiles= 3087for ac_file in $ac_files 3088do 3089 case $ac_file in 3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3091 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3092 esac 3093done 3094rm -f $ac_rmfiles 3095 3096if { { ac_try="$ac_link_default" 3097case "(($ac_try" in 3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3099 *) ac_try_echo=$ac_try;; 3100esac 3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3102printf "%s\n" "$ac_try_echo"; } >&5 3103 (eval "$ac_link_default") 2>&5 3104 ac_status=$? 3105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3106 test $ac_status = 0; } 3107then : 3108 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3109# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3110# in a Makefile. We should not override ac_cv_exeext if it was cached, 3111# so that the user can short-circuit this test for compilers unknown to 3112# Autoconf. 3113for ac_file in $ac_files '' 3114do 3115 test -f "$ac_file" || continue 3116 case $ac_file in 3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3118 ;; 3119 [ab].out ) 3120 # We found the default executable, but exeext='' is most 3121 # certainly right. 3122 break;; 3123 *.* ) 3124 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3125 then :; else 3126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3127 fi 3128 # We set ac_cv_exeext here because the later test for it is not 3129 # safe: cross compilers may not add the suffix if given an '-o' 3130 # argument, so we may need to know it at that point already. 3131 # Even if this section looks crufty: it has the advantage of 3132 # actually working. 3133 break;; 3134 * ) 3135 break;; 3136 esac 3137done 3138test "$ac_cv_exeext" = no && ac_cv_exeext= 3139 3140else case e in #( 3141 e) ac_file='' ;; 3142esac 3143fi 3144if test -z "$ac_file" 3145then : 3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3147printf "%s\n" "no" >&6; } 3148printf "%s\n" "$as_me: failed program was:" >&5 3149sed 's/^/| /' conftest.$ac_ext >&5 3150 3151{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3152printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3153as_fn_error 77 "C compiler cannot create executables 3154See 'config.log' for more details" "$LINENO" 5; } 3155else case e in #( 3156 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3157printf "%s\n" "yes" >&6; } ;; 3158esac 3159fi 3160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3161printf %s "checking for C compiler default output file name... " >&6; } 3162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3163printf "%s\n" "$ac_file" >&6; } 3164ac_exeext=$ac_cv_exeext 3165 3166rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3167ac_clean_files=$ac_clean_files_save 3168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3169printf %s "checking for suffix of executables... " >&6; } 3170if { { ac_try="$ac_link" 3171case "(($ac_try" in 3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3173 *) ac_try_echo=$ac_try;; 3174esac 3175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3176printf "%s\n" "$ac_try_echo"; } >&5 3177 (eval "$ac_link") 2>&5 3178 ac_status=$? 3179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3180 test $ac_status = 0; } 3181then : 3182 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3183# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3184# work properly (i.e., refer to 'conftest.exe'), while it won't with 3185# 'rm'. 3186for ac_file in conftest.exe conftest conftest.*; do 3187 test -f "$ac_file" || continue 3188 case $ac_file in 3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3190 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3191 break;; 3192 * ) break;; 3193 esac 3194done 3195else case e in #( 3196 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3197printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3198as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3199See 'config.log' for more details" "$LINENO" 5; } ;; 3200esac 3201fi 3202rm -f conftest conftest$ac_cv_exeext 3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3204printf "%s\n" "$ac_cv_exeext" >&6; } 3205 3206rm -f conftest.$ac_ext 3207EXEEXT=$ac_cv_exeext 3208ac_exeext=$EXEEXT 3209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3210/* end confdefs.h. */ 3211#include <stdio.h> 3212int 3213main (void) 3214{ 3215FILE *f = fopen ("conftest.out", "w"); 3216 if (!f) 3217 return 1; 3218 return ferror (f) || fclose (f) != 0; 3219 3220 ; 3221 return 0; 3222} 3223_ACEOF 3224ac_clean_files="$ac_clean_files conftest.out" 3225# Check that the compiler produces executables we can run. If not, either 3226# the compiler is broken, or we cross compile. 3227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3228printf %s "checking whether we are cross compiling... " >&6; } 3229if test "$cross_compiling" != yes; then 3230 { { ac_try="$ac_link" 3231case "(($ac_try" in 3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3233 *) ac_try_echo=$ac_try;; 3234esac 3235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3236printf "%s\n" "$ac_try_echo"; } >&5 3237 (eval "$ac_link") 2>&5 3238 ac_status=$? 3239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3240 test $ac_status = 0; } 3241 if { ac_try='./conftest$ac_cv_exeext' 3242 { { case "(($ac_try" in 3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3244 *) ac_try_echo=$ac_try;; 3245esac 3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3247printf "%s\n" "$ac_try_echo"; } >&5 3248 (eval "$ac_try") 2>&5 3249 ac_status=$? 3250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3251 test $ac_status = 0; }; }; then 3252 cross_compiling=no 3253 else 3254 if test "$cross_compiling" = maybe; then 3255 cross_compiling=yes 3256 else 3257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3258printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3259as_fn_error 77 "cannot run C compiled programs. 3260If you meant to cross compile, use '--host'. 3261See 'config.log' for more details" "$LINENO" 5; } 3262 fi 3263 fi 3264fi 3265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3266printf "%s\n" "$cross_compiling" >&6; } 3267 3268rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3269 conftest.o conftest.obj conftest.out 3270ac_clean_files=$ac_clean_files_save 3271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3272printf %s "checking for suffix of object files... " >&6; } 3273if test ${ac_cv_objext+y} 3274then : 3275 printf %s "(cached) " >&6 3276else case e in #( 3277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3278/* end confdefs.h. */ 3279 3280int 3281main (void) 3282{ 3283 3284 ; 3285 return 0; 3286} 3287_ACEOF 3288rm -f conftest.o conftest.obj 3289if { { ac_try="$ac_compile" 3290case "(($ac_try" in 3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3292 *) ac_try_echo=$ac_try;; 3293esac 3294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3295printf "%s\n" "$ac_try_echo"; } >&5 3296 (eval "$ac_compile") 2>&5 3297 ac_status=$? 3298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3299 test $ac_status = 0; } 3300then : 3301 for ac_file in conftest.o conftest.obj conftest.*; do 3302 test -f "$ac_file" || continue; 3303 case $ac_file in 3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3306 break;; 3307 esac 3308done 3309else case e in #( 3310 e) printf "%s\n" "$as_me: failed program was:" >&5 3311sed 's/^/| /' conftest.$ac_ext >&5 3312 3313{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3314printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3315as_fn_error $? "cannot compute suffix of object files: cannot compile 3316See 'config.log' for more details" "$LINENO" 5; } ;; 3317esac 3318fi 3319rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3320esac 3321fi 3322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3323printf "%s\n" "$ac_cv_objext" >&6; } 3324OBJEXT=$ac_cv_objext 3325ac_objext=$OBJEXT 3326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3327printf %s "checking whether the compiler supports GNU C... " >&6; } 3328if test ${ac_cv_c_compiler_gnu+y} 3329then : 3330 printf %s "(cached) " >&6 3331else case e in #( 3332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3333/* end confdefs.h. */ 3334 3335int 3336main (void) 3337{ 3338#ifndef __GNUC__ 3339 choke me 3340#endif 3341 3342 ; 3343 return 0; 3344} 3345_ACEOF 3346if ac_fn_c_try_compile "$LINENO" 3347then : 3348 ac_compiler_gnu=yes 3349else case e in #( 3350 e) ac_compiler_gnu=no ;; 3351esac 3352fi 3353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3354ac_cv_c_compiler_gnu=$ac_compiler_gnu 3355 ;; 3356esac 3357fi 3358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3359printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3360ac_compiler_gnu=$ac_cv_c_compiler_gnu 3361 3362if test $ac_compiler_gnu = yes; then 3363 GCC=yes 3364else 3365 GCC= 3366fi 3367ac_test_CFLAGS=${CFLAGS+y} 3368ac_save_CFLAGS=$CFLAGS 3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3370printf %s "checking whether $CC accepts -g... " >&6; } 3371if test ${ac_cv_prog_cc_g+y} 3372then : 3373 printf %s "(cached) " >&6 3374else case e in #( 3375 e) ac_save_c_werror_flag=$ac_c_werror_flag 3376 ac_c_werror_flag=yes 3377 ac_cv_prog_cc_g=no 3378 CFLAGS="-g" 3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3380/* end confdefs.h. */ 3381 3382int 3383main (void) 3384{ 3385 3386 ; 3387 return 0; 3388} 3389_ACEOF 3390if ac_fn_c_try_compile "$LINENO" 3391then : 3392 ac_cv_prog_cc_g=yes 3393else case e in #( 3394 e) CFLAGS="" 3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3396/* end confdefs.h. */ 3397 3398int 3399main (void) 3400{ 3401 3402 ; 3403 return 0; 3404} 3405_ACEOF 3406if ac_fn_c_try_compile "$LINENO" 3407then : 3408 3409else case e in #( 3410 e) ac_c_werror_flag=$ac_save_c_werror_flag 3411 CFLAGS="-g" 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413/* end confdefs.h. */ 3414 3415int 3416main (void) 3417{ 3418 3419 ; 3420 return 0; 3421} 3422_ACEOF 3423if ac_fn_c_try_compile "$LINENO" 3424then : 3425 ac_cv_prog_cc_g=yes 3426fi 3427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3428esac 3429fi 3430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3431esac 3432fi 3433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3434 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3435esac 3436fi 3437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3438printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3439if test $ac_test_CFLAGS; then 3440 CFLAGS=$ac_save_CFLAGS 3441elif test $ac_cv_prog_cc_g = yes; then 3442 if test "$GCC" = yes; then 3443 CFLAGS="-g -O2" 3444 else 3445 CFLAGS="-g" 3446 fi 3447else 3448 if test "$GCC" = yes; then 3449 CFLAGS="-O2" 3450 else 3451 CFLAGS= 3452 fi 3453fi 3454ac_prog_cc_stdc=no 3455if test x$ac_prog_cc_stdc = xno 3456then : 3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3458printf %s "checking for $CC option to enable C11 features... " >&6; } 3459if test ${ac_cv_prog_cc_c11+y} 3460then : 3461 printf %s "(cached) " >&6 3462else case e in #( 3463 e) ac_cv_prog_cc_c11=no 3464ac_save_CC=$CC 3465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466/* end confdefs.h. */ 3467$ac_c_conftest_c11_program 3468_ACEOF 3469for ac_arg in '' -std=gnu11 3470do 3471 CC="$ac_save_CC $ac_arg" 3472 if ac_fn_c_try_compile "$LINENO" 3473then : 3474 ac_cv_prog_cc_c11=$ac_arg 3475fi 3476rm -f core conftest.err conftest.$ac_objext conftest.beam 3477 test "x$ac_cv_prog_cc_c11" != "xno" && break 3478done 3479rm -f conftest.$ac_ext 3480CC=$ac_save_CC ;; 3481esac 3482fi 3483 3484if test "x$ac_cv_prog_cc_c11" = xno 3485then : 3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3487printf "%s\n" "unsupported" >&6; } 3488else case e in #( 3489 e) if test "x$ac_cv_prog_cc_c11" = x 3490then : 3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3492printf "%s\n" "none needed" >&6; } 3493else case e in #( 3494 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3495printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3496 CC="$CC $ac_cv_prog_cc_c11" ;; 3497esac 3498fi 3499 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3500 ac_prog_cc_stdc=c11 ;; 3501esac 3502fi 3503fi 3504if test x$ac_prog_cc_stdc = xno 3505then : 3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3507printf %s "checking for $CC option to enable C99 features... " >&6; } 3508if test ${ac_cv_prog_cc_c99+y} 3509then : 3510 printf %s "(cached) " >&6 3511else case e in #( 3512 e) ac_cv_prog_cc_c99=no 3513ac_save_CC=$CC 3514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3515/* end confdefs.h. */ 3516$ac_c_conftest_c99_program 3517_ACEOF 3518for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3519do 3520 CC="$ac_save_CC $ac_arg" 3521 if ac_fn_c_try_compile "$LINENO" 3522then : 3523 ac_cv_prog_cc_c99=$ac_arg 3524fi 3525rm -f core conftest.err conftest.$ac_objext conftest.beam 3526 test "x$ac_cv_prog_cc_c99" != "xno" && break 3527done 3528rm -f conftest.$ac_ext 3529CC=$ac_save_CC ;; 3530esac 3531fi 3532 3533if test "x$ac_cv_prog_cc_c99" = xno 3534then : 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3536printf "%s\n" "unsupported" >&6; } 3537else case e in #( 3538 e) if test "x$ac_cv_prog_cc_c99" = x 3539then : 3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3541printf "%s\n" "none needed" >&6; } 3542else case e in #( 3543 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3544printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3545 CC="$CC $ac_cv_prog_cc_c99" ;; 3546esac 3547fi 3548 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3549 ac_prog_cc_stdc=c99 ;; 3550esac 3551fi 3552fi 3553if test x$ac_prog_cc_stdc = xno 3554then : 3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3556printf %s "checking for $CC option to enable C89 features... " >&6; } 3557if test ${ac_cv_prog_cc_c89+y} 3558then : 3559 printf %s "(cached) " >&6 3560else case e in #( 3561 e) ac_cv_prog_cc_c89=no 3562ac_save_CC=$CC 3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565$ac_c_conftest_c89_program 3566_ACEOF 3567for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3568do 3569 CC="$ac_save_CC $ac_arg" 3570 if ac_fn_c_try_compile "$LINENO" 3571then : 3572 ac_cv_prog_cc_c89=$ac_arg 3573fi 3574rm -f core conftest.err conftest.$ac_objext conftest.beam 3575 test "x$ac_cv_prog_cc_c89" != "xno" && break 3576done 3577rm -f conftest.$ac_ext 3578CC=$ac_save_CC ;; 3579esac 3580fi 3581 3582if test "x$ac_cv_prog_cc_c89" = xno 3583then : 3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3585printf "%s\n" "unsupported" >&6; } 3586else case e in #( 3587 e) if test "x$ac_cv_prog_cc_c89" = x 3588then : 3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3590printf "%s\n" "none needed" >&6; } 3591else case e in #( 3592 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3593printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3594 CC="$CC $ac_cv_prog_cc_c89" ;; 3595esac 3596fi 3597 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3598 ac_prog_cc_stdc=c89 ;; 3599esac 3600fi 3601fi 3602 3603ac_ext=c 3604ac_cpp='$CPP $CPPFLAGS' 3605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3607ac_compiler_gnu=$ac_cv_c_compiler_gnu 3608 3609 3610 ac_ext=c 3611ac_cpp='$CPP $CPPFLAGS' 3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3614ac_compiler_gnu=$ac_cv_c_compiler_gnu 3615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3616printf %s "checking whether $CC understands -c and -o together... " >&6; } 3617if test ${am_cv_prog_cc_c_o+y} 3618then : 3619 printf %s "(cached) " >&6 3620else case e in #( 3621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622/* end confdefs.h. */ 3623 3624int 3625main (void) 3626{ 3627 3628 ; 3629 return 0; 3630} 3631_ACEOF 3632 # Make sure it works both with $CC and with simple cc. 3633 # Following AC_PROG_CC_C_O, we do the test twice because some 3634 # compilers refuse to overwrite an existing .o file with -o, 3635 # though they will create one. 3636 am_cv_prog_cc_c_o=yes 3637 for am_i in 1 2; do 3638 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3639 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3640 ac_status=$? 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); } \ 3643 && test -f conftest2.$ac_objext; then 3644 : OK 3645 else 3646 am_cv_prog_cc_c_o=no 3647 break 3648 fi 3649 done 3650 rm -f core conftest* 3651 unset am_i ;; 3652esac 3653fi 3654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3655printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3656if test "$am_cv_prog_cc_c_o" != yes; then 3657 # Losing compiler, so override with the script. 3658 # FIXME: It is wrong to rewrite CC. 3659 # But if we don't then we get into trouble of one sort or another. 3660 # A longer-term fix would be to have automake use am__CC in this case, 3661 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3662 CC="$am_aux_dir/compile $CC" 3663fi 3664ac_ext=c 3665ac_cpp='$CPP $CPPFLAGS' 3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3668ac_compiler_gnu=$ac_cv_c_compiler_gnu 3669 3670 3671 3672ac_header= ac_cache= 3673for ac_item in $ac_header_c_list 3674do 3675 if test $ac_cache; then 3676 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3677 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3678 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3679 fi 3680 ac_header= ac_cache= 3681 elif test $ac_header; then 3682 ac_cache=$ac_item 3683 else 3684 ac_header=$ac_item 3685 fi 3686done 3687 3688 3689 3690 3691 3692 3693 3694 3695if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3696then : 3697 3698printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3699 3700fi 3701 3702 3703 3704 3705 3706 3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3708printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3709if test ${ac_cv_safe_to_define___extensions__+y} 3710then : 3711 printf %s "(cached) " >&6 3712else case e in #( 3713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714/* end confdefs.h. */ 3715 3716# define __EXTENSIONS__ 1 3717 $ac_includes_default 3718int 3719main (void) 3720{ 3721 3722 ; 3723 return 0; 3724} 3725_ACEOF 3726if ac_fn_c_try_compile "$LINENO" 3727then : 3728 ac_cv_safe_to_define___extensions__=yes 3729else case e in #( 3730 e) ac_cv_safe_to_define___extensions__=no ;; 3731esac 3732fi 3733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3734esac 3735fi 3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3737printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3738 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3740printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3741if test ${ac_cv_should_define__xopen_source+y} 3742then : 3743 printf %s "(cached) " >&6 3744else case e in #( 3745 e) ac_cv_should_define__xopen_source=no 3746 if test $ac_cv_header_wchar_h = yes 3747then : 3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3749/* end confdefs.h. */ 3750 3751 #include <wchar.h> 3752 mbstate_t x; 3753int 3754main (void) 3755{ 3756 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761if ac_fn_c_try_compile "$LINENO" 3762then : 3763 3764else case e in #( 3765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766/* end confdefs.h. */ 3767 3768 #define _XOPEN_SOURCE 500 3769 #include <wchar.h> 3770 mbstate_t x; 3771int 3772main (void) 3773{ 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779if ac_fn_c_try_compile "$LINENO" 3780then : 3781 ac_cv_should_define__xopen_source=yes 3782fi 3783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3784esac 3785fi 3786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3787fi ;; 3788esac 3789fi 3790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3791printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3792 3793 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3794 3795 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3796 3797 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3798 3799 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3800 3801 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3802 3803 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3804 3805 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3806 3807 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3808 3809 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3810 3811 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3812 3813 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3814 3815 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3816 3817 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3818 3819 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3820 3821 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3822 3823 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3824 3825 if test $ac_cv_header_minix_config_h = yes 3826then : 3827 MINIX=yes 3828 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3829 3830 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3831 3832 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3833 3834else case e in #( 3835 e) MINIX= ;; 3836esac 3837fi 3838 if test $ac_cv_safe_to_define___extensions__ = yes 3839then : 3840 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3841 3842fi 3843 if test $ac_cv_should_define__xopen_source = yes 3844then : 3845 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3846 3847fi 3848 3849 3850# Initialize Automake 3851am__api_version='1.17' 3852 3853 3854 # Find a good install program. We prefer a C program (faster), 3855# so one script is as good as another. But avoid the broken or 3856# incompatible versions: 3857# SysV /etc/install, /usr/sbin/install 3858# SunOS /usr/etc/install 3859# IRIX /sbin/install 3860# AIX /bin/install 3861# AmigaOS /C/install, which installs bootblocks on floppy discs 3862# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3863# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3864# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3865# OS/2's system install, which has a completely different semantic 3866# ./install, which can be erroneously created by make from ./install.sh. 3867# Reject install programs that cannot install multiple files. 3868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3869printf %s "checking for a BSD-compatible install... " >&6; } 3870if test -z "$INSTALL"; then 3871if test ${ac_cv_path_install+y} 3872then : 3873 printf %s "(cached) " >&6 3874else case e in #( 3875 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3876for as_dir in $PATH 3877do 3878 IFS=$as_save_IFS 3879 case $as_dir in #((( 3880 '') as_dir=./ ;; 3881 */) ;; 3882 *) as_dir=$as_dir/ ;; 3883 esac 3884 # Account for fact that we put trailing slashes in our PATH walk. 3885case $as_dir in #(( 3886 ./ | /[cC]/* | \ 3887 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3888 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3889 /usr/ucb/* ) ;; 3890 *) 3891 # OSF1 and SCO ODT 3.0 have their own names for install. 3892 # Don't use installbsd from OSF since it installs stuff as root 3893 # by default. 3894 for ac_prog in ginstall scoinst install; do 3895 for ac_exec_ext in '' $ac_executable_extensions; do 3896 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3897 if test $ac_prog = install && 3898 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3899 # AIX install. It has an incompatible calling convention. 3900 : 3901 elif test $ac_prog = install && 3902 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3903 # program-specific install script used by HP pwplus--don't use. 3904 : 3905 else 3906 rm -rf conftest.one conftest.two conftest.dir 3907 echo one > conftest.one 3908 echo two > conftest.two 3909 mkdir conftest.dir 3910 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3911 test -s conftest.one && test -s conftest.two && 3912 test -s conftest.dir/conftest.one && 3913 test -s conftest.dir/conftest.two 3914 then 3915 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3916 break 3 3917 fi 3918 fi 3919 fi 3920 done 3921 done 3922 ;; 3923esac 3924 3925 done 3926IFS=$as_save_IFS 3927 3928rm -rf conftest.one conftest.two conftest.dir 3929 ;; 3930esac 3931fi 3932 if test ${ac_cv_path_install+y}; then 3933 INSTALL=$ac_cv_path_install 3934 else 3935 # As a last resort, use the slow shell script. Don't cache a 3936 # value for INSTALL within a source directory, because that will 3937 # break other packages using the cache if that directory is 3938 # removed, or if the value is a relative name. 3939 INSTALL=$ac_install_sh 3940 fi 3941fi 3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3943printf "%s\n" "$INSTALL" >&6; } 3944 3945# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3946# It thinks the first close brace ends the variable substitution. 3947test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3948 3949test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3950 3951test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3952 3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 3954printf %s "checking whether sleep supports fractional seconds... " >&6; } 3955if test ${am_cv_sleep_fractional_seconds+y} 3956then : 3957 printf %s "(cached) " >&6 3958else case e in #( 3959 e) if sleep 0.001 2>/dev/null 3960then : 3961 am_cv_sleep_fractional_seconds=yes 3962else case e in #( 3963 e) am_cv_sleep_fractional_seconds=no ;; 3964esac 3965fi 3966 ;; 3967esac 3968fi 3969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 3970printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 3971 3972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 3973printf %s "checking filesystem timestamp resolution... " >&6; } 3974if test ${am_cv_filesystem_timestamp_resolution+y} 3975then : 3976 printf %s "(cached) " >&6 3977else case e in #( 3978 e) # Default to the worst case. 3979am_cv_filesystem_timestamp_resolution=2 3980 3981# Only try to go finer than 1 sec if sleep can do it. 3982# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3983# - 1 sec is not much of a win compared to 2 sec, and 3984# - it takes 2 seconds to perform the test whether 1 sec works. 3985# 3986# Instead, just use the default 2s on platforms that have 1s resolution, 3987# accept the extra 1s delay when using $sleep in the Automake tests, in 3988# exchange for not incurring the 2s delay for running the test for all 3989# packages. 3990# 3991am_try_resolutions= 3992if test "$am_cv_sleep_fractional_seconds" = yes; then 3993 # Even a millisecond often causes a bunch of false positives, 3994 # so just try a hundredth of a second. The time saved between .001 and 3995 # .01 is not terribly consequential. 3996 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3997fi 3998 3999# In order to catch current-generation FAT out, we must *modify* files 4000# that already exist; the *creation* timestamp is finer. Use names 4001# that make ls -t sort them differently when they have equal 4002# timestamps than when they have distinct timestamps, keeping 4003# in mind that ls -t prints the *newest* file first. 4004rm -f conftest.ts? 4005: > conftest.ts1 4006: > conftest.ts2 4007: > conftest.ts3 4008 4009# Make sure ls -t actually works. Do 'set' in a subshell so we don't 4010# clobber the current shell's arguments. (Outer-level square brackets 4011# are removed by m4; they're present so that m4 does not expand 4012# <dollar><star>; be careful, easy to get confused.) 4013if ( 4014 set X `ls -t conftest.ts[12]` && 4015 { 4016 test "$*" != "X conftest.ts1 conftest.ts2" || 4017 test "$*" != "X conftest.ts2 conftest.ts1"; 4018 } 4019); then :; else 4020 # If neither matched, then we have a broken ls. This can happen 4021 # if, for instance, CONFIG_SHELL is bash and it inherits a 4022 # broken ls alias from the environment. This has actually 4023 # happened. Such a system could not be considered "sane". 4024 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4026printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4027as_fn_error $? "ls -t produces unexpected output. 4028Make sure there is not a broken ls alias in your environment. 4029See 'config.log' for more details" "$LINENO" 5; } 4030fi 4031 4032for am_try_res in $am_try_resolutions; do 4033 # Any one fine-grained sleep might happen to cross the boundary 4034 # between two values of a coarser actual resolution, but if we do 4035 # two fine-grained sleeps in a row, at least one of them will fall 4036 # entirely within a coarse interval. 4037 echo alpha > conftest.ts1 4038 sleep $am_try_res 4039 echo beta > conftest.ts2 4040 sleep $am_try_res 4041 echo gamma > conftest.ts3 4042 4043 # We assume that 'ls -t' will make use of high-resolution 4044 # timestamps if the operating system supports them at all. 4045 if (set X `ls -t conftest.ts?` && 4046 test "$2" = conftest.ts3 && 4047 test "$3" = conftest.ts2 && 4048 test "$4" = conftest.ts1); then 4049 # 4050 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4051 # because we don't need to test make. 4052 make_ok=true 4053 if test $am_try_res != 1; then 4054 # But if we've succeeded so far with a subsecond resolution, we 4055 # have one more thing to check: make. It can happen that 4056 # everything else supports the subsecond mtimes, but make doesn't; 4057 # notably on macOS, which ships make 3.81 from 2006 (the last one 4058 # released under GPLv2). https://bugs.gnu.org/68808 4059 # 4060 # We test $MAKE if it is defined in the environment, else "make". 4061 # It might get overridden later, but our hope is that in practice 4062 # it does not matter: it is the system "make" which is (by far) 4063 # the most likely to be broken, whereas if the user overrides it, 4064 # probably they did so with a better, or at least not worse, make. 4065 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4066 # 4067 # Create a Makefile (real tab character here): 4068 rm -f conftest.mk 4069 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4070 echo ' touch conftest.ts2' >>conftest.mk 4071 # 4072 # Now, running 4073 # touch conftest.ts1; touch conftest.ts2; make 4074 # should touch ts1 because ts2 is newer. This could happen by luck, 4075 # but most often, it will fail if make's support is insufficient. So 4076 # test for several consecutive successes. 4077 # 4078 # (We reuse conftest.ts[12] because we still want to modify existing 4079 # files, not create new ones, per above.) 4080 n=0 4081 make=${MAKE-make} 4082 until test $n -eq 3; do 4083 echo one > conftest.ts1 4084 sleep $am_try_res 4085 echo two > conftest.ts2 # ts2 should now be newer than ts1 4086 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4087 make_ok=false 4088 break # out of $n loop 4089 fi 4090 n=`expr $n + 1` 4091 done 4092 fi 4093 # 4094 if $make_ok; then 4095 # Everything we know to check worked out, so call this resolution good. 4096 am_cv_filesystem_timestamp_resolution=$am_try_res 4097 break # out of $am_try_res loop 4098 fi 4099 # Otherwise, we'll go on to check the next resolution. 4100 fi 4101done 4102rm -f conftest.ts? 4103# (end _am_filesystem_timestamp_resolution) 4104 ;; 4105esac 4106fi 4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4108printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4109 4110# This check should not be cached, as it may vary across builds of 4111# different projects. 4112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4113printf %s "checking whether build environment is sane... " >&6; } 4114# Reject unsafe characters in $srcdir or the absolute working directory 4115# name. Accept space and tab only in the latter. 4116am_lf=' 4117' 4118case `pwd` in 4119 *[\\\"\#\$\&\'\`$am_lf]*) 4120 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4121esac 4122case $srcdir in 4123 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4124 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4125esac 4126 4127# Do 'set' in a subshell so we don't clobber the current shell's 4128# arguments. Must try -L first in case configure is actually a 4129# symlink; some systems play weird games with the mod time of symlinks 4130# (eg FreeBSD returns the mod time of the symlink's containing 4131# directory). 4132am_build_env_is_sane=no 4133am_has_slept=no 4134rm -f conftest.file 4135for am_try in 1 2; do 4136 echo "timestamp, slept: $am_has_slept" > conftest.file 4137 if ( 4138 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4139 if test "$*" = "X"; then 4140 # -L didn't work. 4141 set X `ls -t "$srcdir/configure" conftest.file` 4142 fi 4143 test "$2" = conftest.file 4144 ); then 4145 am_build_env_is_sane=yes 4146 break 4147 fi 4148 # Just in case. 4149 sleep "$am_cv_filesystem_timestamp_resolution" 4150 am_has_slept=yes 4151done 4152 4153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4154printf "%s\n" "$am_build_env_is_sane" >&6; } 4155if test "$am_build_env_is_sane" = no; then 4156 as_fn_error $? "newly created file is older than distributed files! 4157Check your system clock" "$LINENO" 5 4158fi 4159 4160# If we didn't sleep, we still need to ensure time stamps of config.status and 4161# generated files are strictly newer. 4162am_sleep_pid= 4163if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4164then : 4165 4166else case e in #( 4167 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4168 am_sleep_pid=$! 4169 ;; 4170esac 4171fi 4172 4173rm -f conftest.file 4174 4175test "$program_prefix" != NONE && 4176 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4177# Use a double $ so make ignores it. 4178test "$program_suffix" != NONE && 4179 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4180# Double any \ or $. 4181# By default was 's,x,x', remove it if useless. 4182ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4183program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4184 4185 4186 if test x"${MISSING+set}" != xset; then 4187 MISSING="\${SHELL} '$am_aux_dir/missing'" 4188fi 4189# Use eval to expand $SHELL 4190if eval "$MISSING --is-lightweight"; then 4191 am_missing_run="$MISSING " 4192else 4193 am_missing_run= 4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4195printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4196fi 4197 4198if test x"${install_sh+set}" != xset; then 4199 case $am_aux_dir in 4200 *\ * | *\ *) 4201 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4202 *) 4203 install_sh="\${SHELL} $am_aux_dir/install-sh" 4204 esac 4205fi 4206 4207# Installed binaries are usually stripped using 'strip' when the user 4208# run "make install-strip". However 'strip' might not be the right 4209# tool to use in cross-compilation environments, therefore Automake 4210# will honor the 'STRIP' environment variable to overrule this program. 4211if test "$cross_compiling" != no; then 4212 if test -n "$ac_tool_prefix"; then 4213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4214set dummy ${ac_tool_prefix}strip; ac_word=$2 4215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4216printf %s "checking for $ac_word... " >&6; } 4217if test ${ac_cv_prog_STRIP+y} 4218then : 4219 printf %s "(cached) " >&6 4220else case e in #( 4221 e) if test -n "$STRIP"; then 4222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4223else 4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4225for as_dir in $PATH 4226do 4227 IFS=$as_save_IFS 4228 case $as_dir in #((( 4229 '') as_dir=./ ;; 4230 */) ;; 4231 *) as_dir=$as_dir/ ;; 4232 esac 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4235 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4237 break 2 4238 fi 4239done 4240 done 4241IFS=$as_save_IFS 4242 4243fi ;; 4244esac 4245fi 4246STRIP=$ac_cv_prog_STRIP 4247if test -n "$STRIP"; then 4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4249printf "%s\n" "$STRIP" >&6; } 4250else 4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4252printf "%s\n" "no" >&6; } 4253fi 4254 4255 4256fi 4257if test -z "$ac_cv_prog_STRIP"; then 4258 ac_ct_STRIP=$STRIP 4259 # Extract the first word of "strip", so it can be a program name with args. 4260set dummy strip; ac_word=$2 4261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4262printf %s "checking for $ac_word... " >&6; } 4263if test ${ac_cv_prog_ac_ct_STRIP+y} 4264then : 4265 printf %s "(cached) " >&6 4266else case e in #( 4267 e) if test -n "$ac_ct_STRIP"; then 4268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4269else 4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4271for as_dir in $PATH 4272do 4273 IFS=$as_save_IFS 4274 case $as_dir in #((( 4275 '') as_dir=./ ;; 4276 */) ;; 4277 *) as_dir=$as_dir/ ;; 4278 esac 4279 for ac_exec_ext in '' $ac_executable_extensions; do 4280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4281 ac_cv_prog_ac_ct_STRIP="strip" 4282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4283 break 2 4284 fi 4285done 4286 done 4287IFS=$as_save_IFS 4288 4289fi ;; 4290esac 4291fi 4292ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4293if test -n "$ac_ct_STRIP"; then 4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4295printf "%s\n" "$ac_ct_STRIP" >&6; } 4296else 4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4298printf "%s\n" "no" >&6; } 4299fi 4300 4301 if test "x$ac_ct_STRIP" = x; then 4302 STRIP=":" 4303 else 4304 case $cross_compiling:$ac_tool_warned in 4305yes:) 4306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4307printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4308ac_tool_warned=yes ;; 4309esac 4310 STRIP=$ac_ct_STRIP 4311 fi 4312else 4313 STRIP="$ac_cv_prog_STRIP" 4314fi 4315 4316fi 4317INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4318 4319 4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4321printf %s "checking for a race-free mkdir -p... " >&6; } 4322if test -z "$MKDIR_P"; then 4323 if test ${ac_cv_path_mkdir+y} 4324then : 4325 printf %s "(cached) " >&6 4326else case e in #( 4327 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4328for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4329do 4330 IFS=$as_save_IFS 4331 case $as_dir in #((( 4332 '') as_dir=./ ;; 4333 */) ;; 4334 *) as_dir=$as_dir/ ;; 4335 esac 4336 for ac_prog in mkdir gmkdir; do 4337 for ac_exec_ext in '' $ac_executable_extensions; do 4338 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4339 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4340 'mkdir ('*'coreutils) '* | \ 4341 *'BusyBox '* | \ 4342 'mkdir (fileutils) '4.1*) 4343 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4344 break 3;; 4345 esac 4346 done 4347 done 4348 done 4349IFS=$as_save_IFS 4350 ;; 4351esac 4352fi 4353 4354 test -d ./--version && rmdir ./--version 4355 if test ${ac_cv_path_mkdir+y}; then 4356 MKDIR_P="$ac_cv_path_mkdir -p" 4357 else 4358 # As a last resort, use plain mkdir -p, 4359 # in the hope it doesn't have the bugs of ancient mkdir. 4360 MKDIR_P='mkdir -p' 4361 fi 4362fi 4363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4364printf "%s\n" "$MKDIR_P" >&6; } 4365 4366for ac_prog in gawk mawk nawk awk 4367do 4368 # Extract the first word of "$ac_prog", so it can be a program name with args. 4369set dummy $ac_prog; ac_word=$2 4370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4371printf %s "checking for $ac_word... " >&6; } 4372if test ${ac_cv_prog_AWK+y} 4373then : 4374 printf %s "(cached) " >&6 4375else case e in #( 4376 e) if test -n "$AWK"; then 4377 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4378else 4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4380for as_dir in $PATH 4381do 4382 IFS=$as_save_IFS 4383 case $as_dir in #((( 4384 '') as_dir=./ ;; 4385 */) ;; 4386 *) as_dir=$as_dir/ ;; 4387 esac 4388 for ac_exec_ext in '' $ac_executable_extensions; do 4389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4390 ac_cv_prog_AWK="$ac_prog" 4391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4392 break 2 4393 fi 4394done 4395 done 4396IFS=$as_save_IFS 4397 4398fi ;; 4399esac 4400fi 4401AWK=$ac_cv_prog_AWK 4402if test -n "$AWK"; then 4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4404printf "%s\n" "$AWK" >&6; } 4405else 4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4407printf "%s\n" "no" >&6; } 4408fi 4409 4410 4411 test -n "$AWK" && break 4412done 4413 4414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4415printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4416set x ${MAKE-make} 4417ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4418if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4419then : 4420 printf %s "(cached) " >&6 4421else case e in #( 4422 e) cat >conftest.make <<\_ACEOF 4423SHELL = /bin/sh 4424all: 4425 @echo '@@@%%%=$(MAKE)=@@@%%%' 4426_ACEOF 4427# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4428case `${MAKE-make} -f conftest.make 2>/dev/null` in 4429 *@@@%%%=?*=@@@%%%*) 4430 eval ac_cv_prog_make_${ac_make}_set=yes;; 4431 *) 4432 eval ac_cv_prog_make_${ac_make}_set=no;; 4433esac 4434rm -f conftest.make ;; 4435esac 4436fi 4437if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4439printf "%s\n" "yes" >&6; } 4440 SET_MAKE= 4441else 4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4443printf "%s\n" "no" >&6; } 4444 SET_MAKE="MAKE=${MAKE-make}" 4445fi 4446 4447rm -rf .tst 2>/dev/null 4448mkdir .tst 2>/dev/null 4449if test -d .tst; then 4450 am__leading_dot=. 4451else 4452 am__leading_dot=_ 4453fi 4454rmdir .tst 2>/dev/null 4455 4456DEPDIR="${am__leading_dot}deps" 4457 4458ac_config_commands="$ac_config_commands depfiles" 4459 4460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4461printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4462cat > confinc.mk << 'END' 4463am__doit: 4464 @echo this is the am__doit target >confinc.out 4465.PHONY: am__doit 4466END 4467am__include="#" 4468am__quote= 4469# BSD make does it like this. 4470echo '.include "confinc.mk" # ignored' > confmf.BSD 4471# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4472echo 'include confinc.mk # ignored' > confmf.GNU 4473_am_result=no 4474for s in GNU BSD; do 4475 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4476 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4477 ac_status=$? 4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4479 (exit $ac_status); } 4480 case $?:`cat confinc.out 2>/dev/null` in #( 4481 '0:this is the am__doit target') : 4482 case $s in #( 4483 BSD) : 4484 am__include='.include' am__quote='"' ;; #( 4485 *) : 4486 am__include='include' am__quote='' ;; 4487esac ;; #( 4488 *) : 4489 ;; 4490esac 4491 if test "$am__include" != "#"; then 4492 _am_result="yes ($s style)" 4493 break 4494 fi 4495done 4496rm -f confinc.* confmf.* 4497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4498printf "%s\n" "${_am_result}" >&6; } 4499 4500# Check whether --enable-dependency-tracking was given. 4501if test ${enable_dependency_tracking+y} 4502then : 4503 enableval=$enable_dependency_tracking; 4504fi 4505 4506if test "x$enable_dependency_tracking" != xno; then 4507 am_depcomp="$ac_aux_dir/depcomp" 4508 AMDEPBACKSLASH='\' 4509 am__nodep='_no' 4510fi 4511 if test "x$enable_dependency_tracking" != xno; then 4512 AMDEP_TRUE= 4513 AMDEP_FALSE='#' 4514else 4515 AMDEP_TRUE='#' 4516 AMDEP_FALSE= 4517fi 4518 4519 4520AM_DEFAULT_VERBOSITY=1 4521# Check whether --enable-silent-rules was given. 4522if test ${enable_silent_rules+y} 4523then : 4524 enableval=$enable_silent_rules; 4525fi 4526 4527am_make=${MAKE-make} 4528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4529printf %s "checking whether $am_make supports nested variables... " >&6; } 4530if test ${am_cv_make_support_nested_variables+y} 4531then : 4532 printf %s "(cached) " >&6 4533else case e in #( 4534 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4535BAR0=false 4536BAR1=true 4537V=1 4538am__doit: 4539 @$(TRUE) 4540.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4541 am_cv_make_support_nested_variables=yes 4542else 4543 am_cv_make_support_nested_variables=no 4544fi ;; 4545esac 4546fi 4547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4548printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4549AM_BACKSLASH='\' 4550 4551am__rm_f_notfound= 4552if (rm -f && rm -fr && rm -rf) 2>/dev/null 4553then : 4554 4555else case e in #( 4556 e) am__rm_f_notfound='""' ;; 4557esac 4558fi 4559 4560 4561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4562printf %s "checking xargs -n works... " >&6; } 4563if test ${am_cv_xargs_n_works+y} 4564then : 4565 printf %s "(cached) " >&6 4566else case e in #( 4567 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 45683" 4569then : 4570 am_cv_xargs_n_works=yes 4571else case e in #( 4572 e) am_cv_xargs_n_works=no ;; 4573esac 4574fi ;; 4575esac 4576fi 4577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4578printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4579if test "$am_cv_xargs_n_works" = yes 4580then : 4581 am__xargs_n='xargs -n' 4582else case e in #( 4583 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4584 ;; 4585esac 4586fi 4587 4588if test "`cd $srcdir && pwd`" != "`pwd`"; then 4589 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4590 # is not polluted with repeated "-I." 4591 am__isrc=' -I$(srcdir)' 4592 # test to see if srcdir already configured 4593 if test -f $srcdir/config.status; then 4594 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4595 fi 4596fi 4597 4598# test whether we have cygpath 4599if test -z "$CYGPATH_W"; then 4600 if (cygpath --version) >/dev/null 2>/dev/null; then 4601 CYGPATH_W='cygpath -w' 4602 else 4603 CYGPATH_W=echo 4604 fi 4605fi 4606 4607 4608# Define the identity of the package. 4609 PACKAGE='xkbprint' 4610 VERSION='1.0.7' 4611 4612 4613printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4614 4615 4616printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4617 4618# Some tools Automake needs. 4619 4620ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4621 4622 4623AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4624 4625 4626AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4627 4628 4629AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4630 4631 4632MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4633 4634# For better backward compatibility. To be removed once Automake 1.9.x 4635# dies out for good. For more background, see: 4636# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4637# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4638mkdir_p='$(MKDIR_P)' 4639 4640# We need awk for the "check" target (and possibly the TAP driver). The 4641# system "awk" is bad on some platforms. 4642# Always define AMTAR for backward compatibility. Yes, it's still used 4643# in the wild :-( We should find a proper way to deprecate it ... 4644AMTAR='$${TAR-tar}' 4645 4646 4647# We'll loop over all known methods to create a tar archive until one works. 4648_am_tools='gnutar pax cpio none' 4649 4650am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4651 4652 4653 4654 4655 4656depcc="$CC" am_compiler_list= 4657 4658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4659printf %s "checking dependency style of $depcc... " >&6; } 4660if test ${am_cv_CC_dependencies_compiler_type+y} 4661then : 4662 printf %s "(cached) " >&6 4663else case e in #( 4664 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4665 # We make a subdir and do the tests there. Otherwise we can end up 4666 # making bogus files that we don't know about and never remove. For 4667 # instance it was reported that on HP-UX the gcc test will end up 4668 # making a dummy file named 'D' -- because '-MD' means "put the output 4669 # in D". 4670 rm -rf conftest.dir 4671 mkdir conftest.dir 4672 # Copy depcomp to subdir because otherwise we won't find it if we're 4673 # using a relative directory. 4674 cp "$am_depcomp" conftest.dir 4675 cd conftest.dir 4676 # We will build objects and dependencies in a subdirectory because 4677 # it helps to detect inapplicable dependency modes. For instance 4678 # both Tru64's cc and ICC support -MD to output dependencies as a 4679 # side effect of compilation, but ICC will put the dependencies in 4680 # the current directory while Tru64 will put them in the object 4681 # directory. 4682 mkdir sub 4683 4684 am_cv_CC_dependencies_compiler_type=none 4685 if test "$am_compiler_list" = ""; then 4686 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4687 fi 4688 am__universal=false 4689 case " $depcc " in #( 4690 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4691 esac 4692 4693 for depmode in $am_compiler_list; do 4694 # Setup a source with many dependencies, because some compilers 4695 # like to wrap large dependency lists on column 80 (with \), and 4696 # we should not choose a depcomp mode which is confused by this. 4697 # 4698 # We need to recreate these files for each test, as the compiler may 4699 # overwrite some of them when testing with obscure command lines. 4700 # This happens at least with the AIX C compiler. 4701 : > sub/conftest.c 4702 for i in 1 2 3 4 5 6; do 4703 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4704 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4705 # Solaris 10 /bin/sh. 4706 echo '/* dummy */' > sub/conftst$i.h 4707 done 4708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4709 4710 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4711 # mode. It turns out that the SunPro C++ compiler does not properly 4712 # handle '-M -o', and we need to detect this. Also, some Intel 4713 # versions had trouble with output in subdirs. 4714 am__obj=sub/conftest.${OBJEXT-o} 4715 am__minus_obj="-o $am__obj" 4716 case $depmode in 4717 gcc) 4718 # This depmode causes a compiler race in universal mode. 4719 test "$am__universal" = false || continue 4720 ;; 4721 nosideeffect) 4722 # After this tag, mechanisms are not by side-effect, so they'll 4723 # only be used when explicitly requested. 4724 if test "x$enable_dependency_tracking" = xyes; then 4725 continue 4726 else 4727 break 4728 fi 4729 ;; 4730 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4731 # This compiler won't grok '-c -o', but also, the minuso test has 4732 # not run yet. These depmodes are late enough in the game, and 4733 # so weak that their functioning should not be impacted. 4734 am__obj=conftest.${OBJEXT-o} 4735 am__minus_obj= 4736 ;; 4737 none) break ;; 4738 esac 4739 if depmode=$depmode \ 4740 source=sub/conftest.c object=$am__obj \ 4741 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4742 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4743 >/dev/null 2>conftest.err && 4744 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4745 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4746 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4747 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4748 # icc doesn't choke on unknown options, it will just issue warnings 4749 # or remarks (even with -Werror). So we grep stderr for any message 4750 # that says an option was ignored or not supported. 4751 # When given -MP, icc 7.0 and 7.1 complain thus: 4752 # icc: Command line warning: ignoring option '-M'; no argument required 4753 # The diagnosis changed in icc 8.0: 4754 # icc: Command line remark: option '-MP' not supported 4755 if (grep 'ignoring option' conftest.err || 4756 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4757 am_cv_CC_dependencies_compiler_type=$depmode 4758 break 4759 fi 4760 fi 4761 done 4762 4763 cd .. 4764 rm -rf conftest.dir 4765else 4766 am_cv_CC_dependencies_compiler_type=none 4767fi 4768 ;; 4769esac 4770fi 4771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4772printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4773CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4774 4775 if 4776 test "x$enable_dependency_tracking" != xno \ 4777 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4778 am__fastdepCC_TRUE= 4779 am__fastdepCC_FALSE='#' 4780else 4781 am__fastdepCC_TRUE='#' 4782 am__fastdepCC_FALSE= 4783fi 4784 4785 4786# Variables for tags utilities; see am/tags.am 4787if test -z "$CTAGS"; then 4788 CTAGS=ctags 4789fi 4790 4791if test -z "$ETAGS"; then 4792 ETAGS=etags 4793fi 4794 4795if test -z "$CSCOPE"; then 4796 CSCOPE=cscope 4797fi 4798 4799 4800 4801 4802 4803 4804 4805 4806# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4819printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4820if test ${ac_cv_c_undeclared_builtin_options+y} 4821then : 4822 printf %s "(cached) " >&6 4823else case e in #( 4824 e) ac_save_CFLAGS=$CFLAGS 4825 ac_cv_c_undeclared_builtin_options='cannot detect' 4826 for ac_arg in '' -fno-builtin; do 4827 CFLAGS="$ac_save_CFLAGS $ac_arg" 4828 # This test program should *not* compile successfully. 4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4830/* end confdefs.h. */ 4831 4832int 4833main (void) 4834{ 4835(void) strchr; 4836 ; 4837 return 0; 4838} 4839_ACEOF 4840if ac_fn_c_try_compile "$LINENO" 4841then : 4842 4843else case e in #( 4844 e) # This test program should compile successfully. 4845 # No library function is consistently available on 4846 # freestanding implementations, so test against a dummy 4847 # declaration. Include always-available headers on the 4848 # off chance that they somehow elicit warnings. 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4850/* end confdefs.h. */ 4851#include <float.h> 4852#include <limits.h> 4853#include <stdarg.h> 4854#include <stddef.h> 4855extern void ac_decl (int, char *); 4856 4857int 4858main (void) 4859{ 4860(void) ac_decl (0, (char *) 0); 4861 (void) ac_decl; 4862 4863 ; 4864 return 0; 4865} 4866_ACEOF 4867if ac_fn_c_try_compile "$LINENO" 4868then : 4869 if test x"$ac_arg" = x 4870then : 4871 ac_cv_c_undeclared_builtin_options='none needed' 4872else case e in #( 4873 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4874esac 4875fi 4876 break 4877fi 4878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4879esac 4880fi 4881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4882 done 4883 CFLAGS=$ac_save_CFLAGS 4884 ;; 4885esac 4886fi 4887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4888printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4889 case $ac_cv_c_undeclared_builtin_options in #( 4890 'cannot detect') : 4891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4892printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4893as_fn_error $? "cannot make $CC report undeclared builtins 4894See 'config.log' for more details" "$LINENO" 5; } ;; #( 4895 'none needed') : 4896 ac_c_undeclared_builtin_options='' ;; #( 4897 *) : 4898 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4899esac 4900 4901 4902 4903 4904 4905ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4906if test "x$ac_cv_have_decl___clang__" = xyes 4907then : 4908 CLANGCC="yes" 4909else case e in #( 4910 e) CLANGCC="no" ;; 4911esac 4912fi 4913ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4914if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4915then : 4916 INTELCC="yes" 4917else case e in #( 4918 e) INTELCC="no" ;; 4919esac 4920fi 4921ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4922if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4923then : 4924 SUNCC="yes" 4925else case e in #( 4926 e) SUNCC="no" ;; 4927esac 4928fi 4929 4930 4931 4932 4933 4934 4935 4936 4937if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4938 if test -n "$ac_tool_prefix"; then 4939 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4940set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4942printf %s "checking for $ac_word... " >&6; } 4943if test ${ac_cv_path_PKG_CONFIG+y} 4944then : 4945 printf %s "(cached) " >&6 4946else case e in #( 4947 e) case $PKG_CONFIG in 4948 [\\/]* | ?:[\\/]*) 4949 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4950 ;; 4951 *) 4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953for as_dir in $PATH 4954do 4955 IFS=$as_save_IFS 4956 case $as_dir in #((( 4957 '') as_dir=./ ;; 4958 */) ;; 4959 *) as_dir=$as_dir/ ;; 4960 esac 4961 for ac_exec_ext in '' $ac_executable_extensions; do 4962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4963 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4965 break 2 4966 fi 4967done 4968 done 4969IFS=$as_save_IFS 4970 4971 ;; 4972esac ;; 4973esac 4974fi 4975PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4976if test -n "$PKG_CONFIG"; then 4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4978printf "%s\n" "$PKG_CONFIG" >&6; } 4979else 4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4981printf "%s\n" "no" >&6; } 4982fi 4983 4984 4985fi 4986if test -z "$ac_cv_path_PKG_CONFIG"; then 4987 ac_pt_PKG_CONFIG=$PKG_CONFIG 4988 # Extract the first word of "pkg-config", so it can be a program name with args. 4989set dummy pkg-config; ac_word=$2 4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4991printf %s "checking for $ac_word... " >&6; } 4992if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4993then : 4994 printf %s "(cached) " >&6 4995else case e in #( 4996 e) case $ac_pt_PKG_CONFIG in 4997 [\\/]* | ?:[\\/]*) 4998 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4999 ;; 5000 *) 5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5002for as_dir in $PATH 5003do 5004 IFS=$as_save_IFS 5005 case $as_dir in #((( 5006 '') as_dir=./ ;; 5007 */) ;; 5008 *) as_dir=$as_dir/ ;; 5009 esac 5010 for ac_exec_ext in '' $ac_executable_extensions; do 5011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5012 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5014 break 2 5015 fi 5016done 5017 done 5018IFS=$as_save_IFS 5019 5020 ;; 5021esac ;; 5022esac 5023fi 5024ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5025if test -n "$ac_pt_PKG_CONFIG"; then 5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5027printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5028else 5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030printf "%s\n" "no" >&6; } 5031fi 5032 5033 if test "x$ac_pt_PKG_CONFIG" = x; then 5034 PKG_CONFIG="" 5035 else 5036 case $cross_compiling:$ac_tool_warned in 5037yes:) 5038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5039printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5040ac_tool_warned=yes ;; 5041esac 5042 PKG_CONFIG=$ac_pt_PKG_CONFIG 5043 fi 5044else 5045 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5046fi 5047 5048fi 5049if test -n "$PKG_CONFIG"; then 5050 _pkg_min_version=0.9.0 5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5052printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5053 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5055printf "%s\n" "yes" >&6; } 5056 else 5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5058printf "%s\n" "no" >&6; } 5059 PKG_CONFIG="" 5060 fi 5061fi 5062 5063 5064 # Make sure we can run config.sub. 5065$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5066 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5067 5068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5069printf %s "checking build system type... " >&6; } 5070if test ${ac_cv_build+y} 5071then : 5072 printf %s "(cached) " >&6 5073else case e in #( 5074 e) ac_build_alias=$build_alias 5075test "x$ac_build_alias" = x && 5076 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5077test "x$ac_build_alias" = x && 5078 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5079ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5080 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5081 ;; 5082esac 5083fi 5084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5085printf "%s\n" "$ac_cv_build" >&6; } 5086case $ac_cv_build in 5087*-*-*) ;; 5088*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5089esac 5090build=$ac_cv_build 5091ac_save_IFS=$IFS; IFS='-' 5092set x $ac_cv_build 5093shift 5094build_cpu=$1 5095build_vendor=$2 5096shift; shift 5097# Remember, the first character of IFS is used to create $*, 5098# except with old shells: 5099build_os=$* 5100IFS=$ac_save_IFS 5101case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5102 5103 5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5105printf %s "checking host system type... " >&6; } 5106if test ${ac_cv_host+y} 5107then : 5108 printf %s "(cached) " >&6 5109else case e in #( 5110 e) if test "x$host_alias" = x; then 5111 ac_cv_host=$ac_cv_build 5112else 5113 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5114 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5115fi 5116 ;; 5117esac 5118fi 5119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5120printf "%s\n" "$ac_cv_host" >&6; } 5121case $ac_cv_host in 5122*-*-*) ;; 5123*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5124esac 5125host=$ac_cv_host 5126ac_save_IFS=$IFS; IFS='-' 5127set x $ac_cv_host 5128shift 5129host_cpu=$1 5130host_vendor=$2 5131shift; shift 5132# Remember, the first character of IFS is used to create $*, 5133# except with old shells: 5134host_os=$* 5135IFS=$ac_save_IFS 5136case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5137 5138 5139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5140printf %s "checking for a sed that does not truncate output... " >&6; } 5141if test ${ac_cv_path_SED+y} 5142then : 5143 printf %s "(cached) " >&6 5144else case e in #( 5145 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5146 for ac_i in 1 2 3 4 5 6 7; do 5147 ac_script="$ac_script$as_nl$ac_script" 5148 done 5149 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5150 { ac_script=; unset ac_script;} 5151 if test -z "$SED"; then 5152 ac_path_SED_found=false 5153 # Loop through the user's path and test for each of PROGNAME-LIST 5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5155for as_dir in $PATH 5156do 5157 IFS=$as_save_IFS 5158 case $as_dir in #((( 5159 '') as_dir=./ ;; 5160 */) ;; 5161 *) as_dir=$as_dir/ ;; 5162 esac 5163 for ac_prog in sed gsed 5164 do 5165 for ac_exec_ext in '' $ac_executable_extensions; do 5166 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5167 as_fn_executable_p "$ac_path_SED" || continue 5168# Check for GNU ac_path_SED and select it if it is found. 5169 # Check for GNU $ac_path_SED 5170case `"$ac_path_SED" --version 2>&1` in #( 5171*GNU*) 5172 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5173#( 5174*) 5175 ac_count=0 5176 printf %s 0123456789 >"conftest.in" 5177 while : 5178 do 5179 cat "conftest.in" "conftest.in" >"conftest.tmp" 5180 mv "conftest.tmp" "conftest.in" 5181 cp "conftest.in" "conftest.nl" 5182 printf "%s\n" '' >> "conftest.nl" 5183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5185 as_fn_arith $ac_count + 1 && ac_count=$as_val 5186 if test $ac_count -gt ${ac_path_SED_max-0}; then 5187 # Best one so far, save it but keep looking for a better one 5188 ac_cv_path_SED="$ac_path_SED" 5189 ac_path_SED_max=$ac_count 5190 fi 5191 # 10*(2^10) chars as input seems more than enough 5192 test $ac_count -gt 10 && break 5193 done 5194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5195esac 5196 5197 $ac_path_SED_found && break 3 5198 done 5199 done 5200 done 5201IFS=$as_save_IFS 5202 if test -z "$ac_cv_path_SED"; then 5203 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5204 fi 5205else 5206 ac_cv_path_SED=$SED 5207fi 5208 ;; 5209esac 5210fi 5211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5212printf "%s\n" "$ac_cv_path_SED" >&6; } 5213 SED="$ac_cv_path_SED" 5214 rm -f conftest.sed 5215 5216 5217 5218 5219 5220 5221# Check whether --enable-selective-werror was given. 5222if test ${enable_selective_werror+y} 5223then : 5224 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5225else case e in #( 5226 e) SELECTIVE_WERROR=yes ;; 5227esac 5228fi 5229 5230 5231 5232 5233 5234# -v is too short to test reliably with XORG_TESTSET_CFLAG 5235if test "x$SUNCC" = "xyes"; then 5236 BASE_CFLAGS="-v" 5237else 5238 BASE_CFLAGS="" 5239fi 5240 5241# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255xorg_testset_save_CFLAGS="$CFLAGS" 5256 5257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5260printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5261if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5262then : 5263 printf %s "(cached) " >&6 5264else case e in #( 5265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5266/* end confdefs.h. */ 5267int i; 5268_ACEOF 5269if ac_fn_c_try_compile "$LINENO" 5270then : 5271 xorg_cv_cc_flag_unknown_warning_option=yes 5272else case e in #( 5273 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5274esac 5275fi 5276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5277esac 5278fi 5279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5282 CFLAGS="$xorg_testset_save_CFLAGS" 5283fi 5284 5285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5288 fi 5289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5292if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5293then : 5294 printf %s "(cached) " >&6 5295else case e in #( 5296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5297/* end confdefs.h. */ 5298int i; 5299_ACEOF 5300if ac_fn_c_try_compile "$LINENO" 5301then : 5302 xorg_cv_cc_flag_unused_command_line_argument=yes 5303else case e in #( 5304 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5305esac 5306fi 5307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5308esac 5309fi 5310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5313 CFLAGS="$xorg_testset_save_CFLAGS" 5314fi 5315 5316found="no" 5317 5318 if test $found = "no" ; then 5319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5321 fi 5322 5323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5325 fi 5326 5327 CFLAGS="$CFLAGS -Wall" 5328 5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5330printf %s "checking if $CC supports -Wall... " >&6; } 5331 cacheid=xorg_cv_cc_flag__Wall 5332 if eval test \${$cacheid+y} 5333then : 5334 printf %s "(cached) " >&6 5335else case e in #( 5336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5337/* end confdefs.h. */ 5338int i; 5339int 5340main (void) 5341{ 5342 5343 ; 5344 return 0; 5345} 5346_ACEOF 5347if ac_fn_c_try_link "$LINENO" 5348then : 5349 eval $cacheid=yes 5350else case e in #( 5351 e) eval $cacheid=no ;; 5352esac 5353fi 5354rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5355 conftest$ac_exeext conftest.$ac_ext ;; 5356esac 5357fi 5358 5359 5360 CFLAGS="$xorg_testset_save_CFLAGS" 5361 5362 eval supported=\$$cacheid 5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5364printf "%s\n" "$supported" >&6; } 5365 if test "$supported" = "yes" ; then 5366 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5367 found="yes" 5368 fi 5369 fi 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385xorg_testset_save_CFLAGS="$CFLAGS" 5386 5387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5391if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5392then : 5393 printf %s "(cached) " >&6 5394else case e in #( 5395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5396/* end confdefs.h. */ 5397int i; 5398_ACEOF 5399if ac_fn_c_try_compile "$LINENO" 5400then : 5401 xorg_cv_cc_flag_unknown_warning_option=yes 5402else case e in #( 5403 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5404esac 5405fi 5406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5407esac 5408fi 5409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5410printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5412 CFLAGS="$xorg_testset_save_CFLAGS" 5413fi 5414 5415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5418 fi 5419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5421printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5422if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5423then : 5424 printf %s "(cached) " >&6 5425else case e in #( 5426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5427/* end confdefs.h. */ 5428int i; 5429_ACEOF 5430if ac_fn_c_try_compile "$LINENO" 5431then : 5432 xorg_cv_cc_flag_unused_command_line_argument=yes 5433else case e in #( 5434 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5435esac 5436fi 5437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5438esac 5439fi 5440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5443 CFLAGS="$xorg_testset_save_CFLAGS" 5444fi 5445 5446found="no" 5447 5448 if test $found = "no" ; then 5449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 fi 5452 5453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5455 fi 5456 5457 CFLAGS="$CFLAGS -Wpointer-arith" 5458 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5460printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5461 cacheid=xorg_cv_cc_flag__Wpointer_arith 5462 if eval test \${$cacheid+y} 5463then : 5464 printf %s "(cached) " >&6 5465else case e in #( 5466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467/* end confdefs.h. */ 5468int i; 5469int 5470main (void) 5471{ 5472 5473 ; 5474 return 0; 5475} 5476_ACEOF 5477if ac_fn_c_try_link "$LINENO" 5478then : 5479 eval $cacheid=yes 5480else case e in #( 5481 e) eval $cacheid=no ;; 5482esac 5483fi 5484rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5485 conftest$ac_exeext conftest.$ac_ext ;; 5486esac 5487fi 5488 5489 5490 CFLAGS="$xorg_testset_save_CFLAGS" 5491 5492 eval supported=\$$cacheid 5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5494printf "%s\n" "$supported" >&6; } 5495 if test "$supported" = "yes" ; then 5496 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5497 found="yes" 5498 fi 5499 fi 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515xorg_testset_save_CFLAGS="$CFLAGS" 5516 5517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5520printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5521if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5522then : 5523 printf %s "(cached) " >&6 5524else case e in #( 5525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5526/* end confdefs.h. */ 5527int i; 5528_ACEOF 5529if ac_fn_c_try_compile "$LINENO" 5530then : 5531 xorg_cv_cc_flag_unknown_warning_option=yes 5532else case e in #( 5533 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5534esac 5535fi 5536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5537esac 5538fi 5539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5540printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5542 CFLAGS="$xorg_testset_save_CFLAGS" 5543fi 5544 5545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 fi 5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5551printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5552if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5553then : 5554 printf %s "(cached) " >&6 5555else case e in #( 5556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557/* end confdefs.h. */ 5558int i; 5559_ACEOF 5560if ac_fn_c_try_compile "$LINENO" 5561then : 5562 xorg_cv_cc_flag_unused_command_line_argument=yes 5563else case e in #( 5564 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5565esac 5566fi 5567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5568esac 5569fi 5570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5571printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5573 CFLAGS="$xorg_testset_save_CFLAGS" 5574fi 5575 5576found="no" 5577 5578 if test $found = "no" ; then 5579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5581 fi 5582 5583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5585 fi 5586 5587 CFLAGS="$CFLAGS -Wmissing-declarations" 5588 5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5590printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5591 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5592 if eval test \${$cacheid+y} 5593then : 5594 printf %s "(cached) " >&6 5595else case e in #( 5596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5597/* end confdefs.h. */ 5598int i; 5599int 5600main (void) 5601{ 5602 5603 ; 5604 return 0; 5605} 5606_ACEOF 5607if ac_fn_c_try_link "$LINENO" 5608then : 5609 eval $cacheid=yes 5610else case e in #( 5611 e) eval $cacheid=no ;; 5612esac 5613fi 5614rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5615 conftest$ac_exeext conftest.$ac_ext ;; 5616esac 5617fi 5618 5619 5620 CFLAGS="$xorg_testset_save_CFLAGS" 5621 5622 eval supported=\$$cacheid 5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5624printf "%s\n" "$supported" >&6; } 5625 if test "$supported" = "yes" ; then 5626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5627 found="yes" 5628 fi 5629 fi 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645xorg_testset_save_CFLAGS="$CFLAGS" 5646 5647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5651if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5652then : 5653 printf %s "(cached) " >&6 5654else case e in #( 5655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5656/* end confdefs.h. */ 5657int i; 5658_ACEOF 5659if ac_fn_c_try_compile "$LINENO" 5660then : 5661 xorg_cv_cc_flag_unknown_warning_option=yes 5662else case e in #( 5663 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5664esac 5665fi 5666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5667esac 5668fi 5669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5670printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5672 CFLAGS="$xorg_testset_save_CFLAGS" 5673fi 5674 5675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5678 fi 5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5681printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5682if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5683then : 5684 printf %s "(cached) " >&6 5685else case e in #( 5686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688int i; 5689_ACEOF 5690if ac_fn_c_try_compile "$LINENO" 5691then : 5692 xorg_cv_cc_flag_unused_command_line_argument=yes 5693else case e in #( 5694 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5695esac 5696fi 5697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5698esac 5699fi 5700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5703 CFLAGS="$xorg_testset_save_CFLAGS" 5704fi 5705 5706found="no" 5707 5708 if test $found = "no" ; then 5709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5711 fi 5712 5713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5715 fi 5716 5717 CFLAGS="$CFLAGS -Wformat=2" 5718 5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5720printf %s "checking if $CC supports -Wformat=2... " >&6; } 5721 cacheid=xorg_cv_cc_flag__Wformat_2 5722 if eval test \${$cacheid+y} 5723then : 5724 printf %s "(cached) " >&6 5725else case e in #( 5726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5727/* end confdefs.h. */ 5728int i; 5729int 5730main (void) 5731{ 5732 5733 ; 5734 return 0; 5735} 5736_ACEOF 5737if ac_fn_c_try_link "$LINENO" 5738then : 5739 eval $cacheid=yes 5740else case e in #( 5741 e) eval $cacheid=no ;; 5742esac 5743fi 5744rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5745 conftest$ac_exeext conftest.$ac_ext ;; 5746esac 5747fi 5748 5749 5750 CFLAGS="$xorg_testset_save_CFLAGS" 5751 5752 eval supported=\$$cacheid 5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5754printf "%s\n" "$supported" >&6; } 5755 if test "$supported" = "yes" ; then 5756 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5757 found="yes" 5758 fi 5759 fi 5760 5761 if test $found = "no" ; then 5762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5764 fi 5765 5766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5768 fi 5769 5770 CFLAGS="$CFLAGS -Wformat" 5771 5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5773printf %s "checking if $CC supports -Wformat... " >&6; } 5774 cacheid=xorg_cv_cc_flag__Wformat 5775 if eval test \${$cacheid+y} 5776then : 5777 printf %s "(cached) " >&6 5778else case e in #( 5779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5780/* end confdefs.h. */ 5781int i; 5782int 5783main (void) 5784{ 5785 5786 ; 5787 return 0; 5788} 5789_ACEOF 5790if ac_fn_c_try_link "$LINENO" 5791then : 5792 eval $cacheid=yes 5793else case e in #( 5794 e) eval $cacheid=no ;; 5795esac 5796fi 5797rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5798 conftest$ac_exeext conftest.$ac_ext ;; 5799esac 5800fi 5801 5802 5803 CFLAGS="$xorg_testset_save_CFLAGS" 5804 5805 eval supported=\$$cacheid 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5807printf "%s\n" "$supported" >&6; } 5808 if test "$supported" = "yes" ; then 5809 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5810 found="yes" 5811 fi 5812 fi 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830xorg_testset_save_CFLAGS="$CFLAGS" 5831 5832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5836if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5837then : 5838 printf %s "(cached) " >&6 5839else case e in #( 5840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842int i; 5843_ACEOF 5844if ac_fn_c_try_compile "$LINENO" 5845then : 5846 xorg_cv_cc_flag_unknown_warning_option=yes 5847else case e in #( 5848 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5849esac 5850fi 5851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5852esac 5853fi 5854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5857 CFLAGS="$xorg_testset_save_CFLAGS" 5858fi 5859 5860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5863 fi 5864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5867if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5868then : 5869 printf %s "(cached) " >&6 5870else case e in #( 5871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5872/* end confdefs.h. */ 5873int i; 5874_ACEOF 5875if ac_fn_c_try_compile "$LINENO" 5876then : 5877 xorg_cv_cc_flag_unused_command_line_argument=yes 5878else case e in #( 5879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5880esac 5881fi 5882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5883esac 5884fi 5885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5888 CFLAGS="$xorg_testset_save_CFLAGS" 5889fi 5890 5891found="no" 5892 5893 if test $found = "no" ; then 5894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5896 fi 5897 5898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5900 fi 5901 5902 CFLAGS="$CFLAGS -Wstrict-prototypes" 5903 5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5905printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5906 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5907 if eval test \${$cacheid+y} 5908then : 5909 printf %s "(cached) " >&6 5910else case e in #( 5911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912/* end confdefs.h. */ 5913int i; 5914int 5915main (void) 5916{ 5917 5918 ; 5919 return 0; 5920} 5921_ACEOF 5922if ac_fn_c_try_link "$LINENO" 5923then : 5924 eval $cacheid=yes 5925else case e in #( 5926 e) eval $cacheid=no ;; 5927esac 5928fi 5929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5930 conftest$ac_exeext conftest.$ac_ext ;; 5931esac 5932fi 5933 5934 5935 CFLAGS="$xorg_testset_save_CFLAGS" 5936 5937 eval supported=\$$cacheid 5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5939printf "%s\n" "$supported" >&6; } 5940 if test "$supported" = "yes" ; then 5941 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5942 found="yes" 5943 fi 5944 fi 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960xorg_testset_save_CFLAGS="$CFLAGS" 5961 5962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5966if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5967then : 5968 printf %s "(cached) " >&6 5969else case e in #( 5970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5971/* end confdefs.h. */ 5972int i; 5973_ACEOF 5974if ac_fn_c_try_compile "$LINENO" 5975then : 5976 xorg_cv_cc_flag_unknown_warning_option=yes 5977else case e in #( 5978 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5979esac 5980fi 5981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5982esac 5983fi 5984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5987 CFLAGS="$xorg_testset_save_CFLAGS" 5988fi 5989 5990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5993 fi 5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5997if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5998then : 5999 printf %s "(cached) " >&6 6000else case e in #( 6001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6002/* end confdefs.h. */ 6003int i; 6004_ACEOF 6005if ac_fn_c_try_compile "$LINENO" 6006then : 6007 xorg_cv_cc_flag_unused_command_line_argument=yes 6008else case e in #( 6009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6010esac 6011fi 6012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6013esac 6014fi 6015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6018 CFLAGS="$xorg_testset_save_CFLAGS" 6019fi 6020 6021found="no" 6022 6023 if test $found = "no" ; then 6024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6026 fi 6027 6028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6030 fi 6031 6032 CFLAGS="$CFLAGS -Wmissing-prototypes" 6033 6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6035printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6036 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6037 if eval test \${$cacheid+y} 6038then : 6039 printf %s "(cached) " >&6 6040else case e in #( 6041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6042/* end confdefs.h. */ 6043int i; 6044int 6045main (void) 6046{ 6047 6048 ; 6049 return 0; 6050} 6051_ACEOF 6052if ac_fn_c_try_link "$LINENO" 6053then : 6054 eval $cacheid=yes 6055else case e in #( 6056 e) eval $cacheid=no ;; 6057esac 6058fi 6059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6060 conftest$ac_exeext conftest.$ac_ext ;; 6061esac 6062fi 6063 6064 6065 CFLAGS="$xorg_testset_save_CFLAGS" 6066 6067 eval supported=\$$cacheid 6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6069printf "%s\n" "$supported" >&6; } 6070 if test "$supported" = "yes" ; then 6071 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6072 found="yes" 6073 fi 6074 fi 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090xorg_testset_save_CFLAGS="$CFLAGS" 6091 6092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6097then : 6098 printf %s "(cached) " >&6 6099else case e in #( 6100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6101/* end confdefs.h. */ 6102int i; 6103_ACEOF 6104if ac_fn_c_try_compile "$LINENO" 6105then : 6106 xorg_cv_cc_flag_unknown_warning_option=yes 6107else case e in #( 6108 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6109esac 6110fi 6111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6112esac 6113fi 6114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6117 CFLAGS="$xorg_testset_save_CFLAGS" 6118fi 6119 6120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6123 fi 6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6127if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6128then : 6129 printf %s "(cached) " >&6 6130else case e in #( 6131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6132/* end confdefs.h. */ 6133int i; 6134_ACEOF 6135if ac_fn_c_try_compile "$LINENO" 6136then : 6137 xorg_cv_cc_flag_unused_command_line_argument=yes 6138else case e in #( 6139 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6140esac 6141fi 6142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6143esac 6144fi 6145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6148 CFLAGS="$xorg_testset_save_CFLAGS" 6149fi 6150 6151found="no" 6152 6153 if test $found = "no" ; then 6154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6156 fi 6157 6158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6160 fi 6161 6162 CFLAGS="$CFLAGS -Wnested-externs" 6163 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6165printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6166 cacheid=xorg_cv_cc_flag__Wnested_externs 6167 if eval test \${$cacheid+y} 6168then : 6169 printf %s "(cached) " >&6 6170else case e in #( 6171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6172/* end confdefs.h. */ 6173int i; 6174int 6175main (void) 6176{ 6177 6178 ; 6179 return 0; 6180} 6181_ACEOF 6182if ac_fn_c_try_link "$LINENO" 6183then : 6184 eval $cacheid=yes 6185else case e in #( 6186 e) eval $cacheid=no ;; 6187esac 6188fi 6189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6190 conftest$ac_exeext conftest.$ac_ext ;; 6191esac 6192fi 6193 6194 6195 CFLAGS="$xorg_testset_save_CFLAGS" 6196 6197 eval supported=\$$cacheid 6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6199printf "%s\n" "$supported" >&6; } 6200 if test "$supported" = "yes" ; then 6201 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6202 found="yes" 6203 fi 6204 fi 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220xorg_testset_save_CFLAGS="$CFLAGS" 6221 6222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6226if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6227then : 6228 printf %s "(cached) " >&6 6229else case e in #( 6230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6231/* end confdefs.h. */ 6232int i; 6233_ACEOF 6234if ac_fn_c_try_compile "$LINENO" 6235then : 6236 xorg_cv_cc_flag_unknown_warning_option=yes 6237else case e in #( 6238 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6239esac 6240fi 6241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6242esac 6243fi 6244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6247 CFLAGS="$xorg_testset_save_CFLAGS" 6248fi 6249 6250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6253 fi 6254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6257if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6258then : 6259 printf %s "(cached) " >&6 6260else case e in #( 6261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6262/* end confdefs.h. */ 6263int i; 6264_ACEOF 6265if ac_fn_c_try_compile "$LINENO" 6266then : 6267 xorg_cv_cc_flag_unused_command_line_argument=yes 6268else case e in #( 6269 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6270esac 6271fi 6272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6273esac 6274fi 6275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6278 CFLAGS="$xorg_testset_save_CFLAGS" 6279fi 6280 6281found="no" 6282 6283 if test $found = "no" ; then 6284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6286 fi 6287 6288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6290 fi 6291 6292 CFLAGS="$CFLAGS -Wbad-function-cast" 6293 6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6295printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6296 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6297 if eval test \${$cacheid+y} 6298then : 6299 printf %s "(cached) " >&6 6300else case e in #( 6301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6302/* end confdefs.h. */ 6303int i; 6304int 6305main (void) 6306{ 6307 6308 ; 6309 return 0; 6310} 6311_ACEOF 6312if ac_fn_c_try_link "$LINENO" 6313then : 6314 eval $cacheid=yes 6315else case e in #( 6316 e) eval $cacheid=no ;; 6317esac 6318fi 6319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6320 conftest$ac_exeext conftest.$ac_ext ;; 6321esac 6322fi 6323 6324 6325 CFLAGS="$xorg_testset_save_CFLAGS" 6326 6327 eval supported=\$$cacheid 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6329printf "%s\n" "$supported" >&6; } 6330 if test "$supported" = "yes" ; then 6331 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6332 found="yes" 6333 fi 6334 fi 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350xorg_testset_save_CFLAGS="$CFLAGS" 6351 6352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6355printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6356if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6357then : 6358 printf %s "(cached) " >&6 6359else case e in #( 6360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6361/* end confdefs.h. */ 6362int i; 6363_ACEOF 6364if ac_fn_c_try_compile "$LINENO" 6365then : 6366 xorg_cv_cc_flag_unknown_warning_option=yes 6367else case e in #( 6368 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6369esac 6370fi 6371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6372esac 6373fi 6374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6375printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6377 CFLAGS="$xorg_testset_save_CFLAGS" 6378fi 6379 6380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6383 fi 6384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6386printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6387if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6388then : 6389 printf %s "(cached) " >&6 6390else case e in #( 6391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6392/* end confdefs.h. */ 6393int i; 6394_ACEOF 6395if ac_fn_c_try_compile "$LINENO" 6396then : 6397 xorg_cv_cc_flag_unused_command_line_argument=yes 6398else case e in #( 6399 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6400esac 6401fi 6402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6403esac 6404fi 6405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6408 CFLAGS="$xorg_testset_save_CFLAGS" 6409fi 6410 6411found="no" 6412 6413 if test $found = "no" ; then 6414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6416 fi 6417 6418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6420 fi 6421 6422 CFLAGS="$CFLAGS -Wold-style-definition" 6423 6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6425printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6426 cacheid=xorg_cv_cc_flag__Wold_style_definition 6427 if eval test \${$cacheid+y} 6428then : 6429 printf %s "(cached) " >&6 6430else case e in #( 6431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6432/* end confdefs.h. */ 6433int i; 6434int 6435main (void) 6436{ 6437 6438 ; 6439 return 0; 6440} 6441_ACEOF 6442if ac_fn_c_try_link "$LINENO" 6443then : 6444 eval $cacheid=yes 6445else case e in #( 6446 e) eval $cacheid=no ;; 6447esac 6448fi 6449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6450 conftest$ac_exeext conftest.$ac_ext ;; 6451esac 6452fi 6453 6454 6455 CFLAGS="$xorg_testset_save_CFLAGS" 6456 6457 eval supported=\$$cacheid 6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6459printf "%s\n" "$supported" >&6; } 6460 if test "$supported" = "yes" ; then 6461 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6462 found="yes" 6463 fi 6464 fi 6465 6466 if test $found = "no" ; then 6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6469 fi 6470 6471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6473 fi 6474 6475 CFLAGS="$CFLAGS -fd" 6476 6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6478printf %s "checking if $CC supports -fd... " >&6; } 6479 cacheid=xorg_cv_cc_flag__fd 6480 if eval test \${$cacheid+y} 6481then : 6482 printf %s "(cached) " >&6 6483else case e in #( 6484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6485/* end confdefs.h. */ 6486int i; 6487int 6488main (void) 6489{ 6490 6491 ; 6492 return 0; 6493} 6494_ACEOF 6495if ac_fn_c_try_link "$LINENO" 6496then : 6497 eval $cacheid=yes 6498else case e in #( 6499 e) eval $cacheid=no ;; 6500esac 6501fi 6502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6503 conftest$ac_exeext conftest.$ac_ext ;; 6504esac 6505fi 6506 6507 6508 CFLAGS="$xorg_testset_save_CFLAGS" 6509 6510 eval supported=\$$cacheid 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6512printf "%s\n" "$supported" >&6; } 6513 if test "$supported" = "yes" ; then 6514 BASE_CFLAGS="$BASE_CFLAGS -fd" 6515 found="yes" 6516 fi 6517 fi 6518 6519 6520 6521 6522 6523# This chunk adds additional warnings that could catch undesired effects. 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537xorg_testset_save_CFLAGS="$CFLAGS" 6538 6539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6543if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6544then : 6545 printf %s "(cached) " >&6 6546else case e in #( 6547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6548/* end confdefs.h. */ 6549int i; 6550_ACEOF 6551if ac_fn_c_try_compile "$LINENO" 6552then : 6553 xorg_cv_cc_flag_unknown_warning_option=yes 6554else case e in #( 6555 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6556esac 6557fi 6558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6559esac 6560fi 6561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6562printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6564 CFLAGS="$xorg_testset_save_CFLAGS" 6565fi 6566 6567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6570 fi 6571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6573printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6574if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6575then : 6576 printf %s "(cached) " >&6 6577else case e in #( 6578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580int i; 6581_ACEOF 6582if ac_fn_c_try_compile "$LINENO" 6583then : 6584 xorg_cv_cc_flag_unused_command_line_argument=yes 6585else case e in #( 6586 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6587esac 6588fi 6589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6590esac 6591fi 6592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6593printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6595 CFLAGS="$xorg_testset_save_CFLAGS" 6596fi 6597 6598found="no" 6599 6600 if test $found = "no" ; then 6601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6603 fi 6604 6605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6607 fi 6608 6609 CFLAGS="$CFLAGS -Wunused" 6610 6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6612printf %s "checking if $CC supports -Wunused... " >&6; } 6613 cacheid=xorg_cv_cc_flag__Wunused 6614 if eval test \${$cacheid+y} 6615then : 6616 printf %s "(cached) " >&6 6617else case e in #( 6618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6619/* end confdefs.h. */ 6620int i; 6621int 6622main (void) 6623{ 6624 6625 ; 6626 return 0; 6627} 6628_ACEOF 6629if ac_fn_c_try_link "$LINENO" 6630then : 6631 eval $cacheid=yes 6632else case e in #( 6633 e) eval $cacheid=no ;; 6634esac 6635fi 6636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6637 conftest$ac_exeext conftest.$ac_ext ;; 6638esac 6639fi 6640 6641 6642 CFLAGS="$xorg_testset_save_CFLAGS" 6643 6644 eval supported=\$$cacheid 6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6646printf "%s\n" "$supported" >&6; } 6647 if test "$supported" = "yes" ; then 6648 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6649 found="yes" 6650 fi 6651 fi 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667xorg_testset_save_CFLAGS="$CFLAGS" 6668 6669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6673if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6674then : 6675 printf %s "(cached) " >&6 6676else case e in #( 6677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6678/* end confdefs.h. */ 6679int i; 6680_ACEOF 6681if ac_fn_c_try_compile "$LINENO" 6682then : 6683 xorg_cv_cc_flag_unknown_warning_option=yes 6684else case e in #( 6685 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6686esac 6687fi 6688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6689esac 6690fi 6691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6694 CFLAGS="$xorg_testset_save_CFLAGS" 6695fi 6696 6697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6700 fi 6701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6704if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6705then : 6706 printf %s "(cached) " >&6 6707else case e in #( 6708 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6709/* end confdefs.h. */ 6710int i; 6711_ACEOF 6712if ac_fn_c_try_compile "$LINENO" 6713then : 6714 xorg_cv_cc_flag_unused_command_line_argument=yes 6715else case e in #( 6716 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6717esac 6718fi 6719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6720esac 6721fi 6722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6725 CFLAGS="$xorg_testset_save_CFLAGS" 6726fi 6727 6728found="no" 6729 6730 if test $found = "no" ; then 6731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6733 fi 6734 6735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6737 fi 6738 6739 CFLAGS="$CFLAGS -Wuninitialized" 6740 6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6742printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6743 cacheid=xorg_cv_cc_flag__Wuninitialized 6744 if eval test \${$cacheid+y} 6745then : 6746 printf %s "(cached) " >&6 6747else case e in #( 6748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6749/* end confdefs.h. */ 6750int i; 6751int 6752main (void) 6753{ 6754 6755 ; 6756 return 0; 6757} 6758_ACEOF 6759if ac_fn_c_try_link "$LINENO" 6760then : 6761 eval $cacheid=yes 6762else case e in #( 6763 e) eval $cacheid=no ;; 6764esac 6765fi 6766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6767 conftest$ac_exeext conftest.$ac_ext ;; 6768esac 6769fi 6770 6771 6772 CFLAGS="$xorg_testset_save_CFLAGS" 6773 6774 eval supported=\$$cacheid 6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6776printf "%s\n" "$supported" >&6; } 6777 if test "$supported" = "yes" ; then 6778 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6779 found="yes" 6780 fi 6781 fi 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797xorg_testset_save_CFLAGS="$CFLAGS" 6798 6799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6802printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6803if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6804then : 6805 printf %s "(cached) " >&6 6806else case e in #( 6807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6808/* end confdefs.h. */ 6809int i; 6810_ACEOF 6811if ac_fn_c_try_compile "$LINENO" 6812then : 6813 xorg_cv_cc_flag_unknown_warning_option=yes 6814else case e in #( 6815 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6816esac 6817fi 6818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6819esac 6820fi 6821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6822printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6824 CFLAGS="$xorg_testset_save_CFLAGS" 6825fi 6826 6827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6830 fi 6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6833printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6834if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6835then : 6836 printf %s "(cached) " >&6 6837else case e in #( 6838 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6839/* end confdefs.h. */ 6840int i; 6841_ACEOF 6842if ac_fn_c_try_compile "$LINENO" 6843then : 6844 xorg_cv_cc_flag_unused_command_line_argument=yes 6845else case e in #( 6846 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6847esac 6848fi 6849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6850esac 6851fi 6852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6853printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6855 CFLAGS="$xorg_testset_save_CFLAGS" 6856fi 6857 6858found="no" 6859 6860 if test $found = "no" ; then 6861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6863 fi 6864 6865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6867 fi 6868 6869 CFLAGS="$CFLAGS -Wshadow" 6870 6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6872printf %s "checking if $CC supports -Wshadow... " >&6; } 6873 cacheid=xorg_cv_cc_flag__Wshadow 6874 if eval test \${$cacheid+y} 6875then : 6876 printf %s "(cached) " >&6 6877else case e in #( 6878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6879/* end confdefs.h. */ 6880int i; 6881int 6882main (void) 6883{ 6884 6885 ; 6886 return 0; 6887} 6888_ACEOF 6889if ac_fn_c_try_link "$LINENO" 6890then : 6891 eval $cacheid=yes 6892else case e in #( 6893 e) eval $cacheid=no ;; 6894esac 6895fi 6896rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6897 conftest$ac_exeext conftest.$ac_ext ;; 6898esac 6899fi 6900 6901 6902 CFLAGS="$xorg_testset_save_CFLAGS" 6903 6904 eval supported=\$$cacheid 6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6906printf "%s\n" "$supported" >&6; } 6907 if test "$supported" = "yes" ; then 6908 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6909 found="yes" 6910 fi 6911 fi 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927xorg_testset_save_CFLAGS="$CFLAGS" 6928 6929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6932printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6933if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6934then : 6935 printf %s "(cached) " >&6 6936else case e in #( 6937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938/* end confdefs.h. */ 6939int i; 6940_ACEOF 6941if ac_fn_c_try_compile "$LINENO" 6942then : 6943 xorg_cv_cc_flag_unknown_warning_option=yes 6944else case e in #( 6945 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6946esac 6947fi 6948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6949esac 6950fi 6951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6952printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6954 CFLAGS="$xorg_testset_save_CFLAGS" 6955fi 6956 6957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6960 fi 6961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6963printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6964if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6965then : 6966 printf %s "(cached) " >&6 6967else case e in #( 6968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6969/* end confdefs.h. */ 6970int i; 6971_ACEOF 6972if ac_fn_c_try_compile "$LINENO" 6973then : 6974 xorg_cv_cc_flag_unused_command_line_argument=yes 6975else case e in #( 6976 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6977esac 6978fi 6979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6980esac 6981fi 6982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986fi 6987 6988found="no" 6989 6990 if test $found = "no" ; then 6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6993 fi 6994 6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6997 fi 6998 6999 CFLAGS="$CFLAGS -Wmissing-noreturn" 7000 7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7002printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7003 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7004 if eval test \${$cacheid+y} 7005then : 7006 printf %s "(cached) " >&6 7007else case e in #( 7008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7009/* end confdefs.h. */ 7010int i; 7011int 7012main (void) 7013{ 7014 7015 ; 7016 return 0; 7017} 7018_ACEOF 7019if ac_fn_c_try_link "$LINENO" 7020then : 7021 eval $cacheid=yes 7022else case e in #( 7023 e) eval $cacheid=no ;; 7024esac 7025fi 7026rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7027 conftest$ac_exeext conftest.$ac_ext ;; 7028esac 7029fi 7030 7031 7032 CFLAGS="$xorg_testset_save_CFLAGS" 7033 7034 eval supported=\$$cacheid 7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7036printf "%s\n" "$supported" >&6; } 7037 if test "$supported" = "yes" ; then 7038 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7039 found="yes" 7040 fi 7041 fi 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057xorg_testset_save_CFLAGS="$CFLAGS" 7058 7059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7062printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7063if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7064then : 7065 printf %s "(cached) " >&6 7066else case e in #( 7067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7068/* end confdefs.h. */ 7069int i; 7070_ACEOF 7071if ac_fn_c_try_compile "$LINENO" 7072then : 7073 xorg_cv_cc_flag_unknown_warning_option=yes 7074else case e in #( 7075 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7076esac 7077fi 7078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7079esac 7080fi 7081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7084 CFLAGS="$xorg_testset_save_CFLAGS" 7085fi 7086 7087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7090 fi 7091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7094if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7095then : 7096 printf %s "(cached) " >&6 7097else case e in #( 7098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7099/* end confdefs.h. */ 7100int i; 7101_ACEOF 7102if ac_fn_c_try_compile "$LINENO" 7103then : 7104 xorg_cv_cc_flag_unused_command_line_argument=yes 7105else case e in #( 7106 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7107esac 7108fi 7109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7110esac 7111fi 7112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7115 CFLAGS="$xorg_testset_save_CFLAGS" 7116fi 7117 7118found="no" 7119 7120 if test $found = "no" ; then 7121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7123 fi 7124 7125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7127 fi 7128 7129 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7130 7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7132printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7133 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7134 if eval test \${$cacheid+y} 7135then : 7136 printf %s "(cached) " >&6 7137else case e in #( 7138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7139/* end confdefs.h. */ 7140int i; 7141int 7142main (void) 7143{ 7144 7145 ; 7146 return 0; 7147} 7148_ACEOF 7149if ac_fn_c_try_link "$LINENO" 7150then : 7151 eval $cacheid=yes 7152else case e in #( 7153 e) eval $cacheid=no ;; 7154esac 7155fi 7156rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7157 conftest$ac_exeext conftest.$ac_ext ;; 7158esac 7159fi 7160 7161 7162 CFLAGS="$xorg_testset_save_CFLAGS" 7163 7164 eval supported=\$$cacheid 7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7166printf "%s\n" "$supported" >&6; } 7167 if test "$supported" = "yes" ; then 7168 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7169 found="yes" 7170 fi 7171 fi 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187xorg_testset_save_CFLAGS="$CFLAGS" 7188 7189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7193if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7194then : 7195 printf %s "(cached) " >&6 7196else case e in #( 7197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7198/* end confdefs.h. */ 7199int i; 7200_ACEOF 7201if ac_fn_c_try_compile "$LINENO" 7202then : 7203 xorg_cv_cc_flag_unknown_warning_option=yes 7204else case e in #( 7205 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7206esac 7207fi 7208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7209esac 7210fi 7211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7212printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7214 CFLAGS="$xorg_testset_save_CFLAGS" 7215fi 7216 7217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7220 fi 7221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7223printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7224if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7225then : 7226 printf %s "(cached) " >&6 7227else case e in #( 7228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7229/* end confdefs.h. */ 7230int i; 7231_ACEOF 7232if ac_fn_c_try_compile "$LINENO" 7233then : 7234 xorg_cv_cc_flag_unused_command_line_argument=yes 7235else case e in #( 7236 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7237esac 7238fi 7239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7240esac 7241fi 7242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7245 CFLAGS="$xorg_testset_save_CFLAGS" 7246fi 7247 7248found="no" 7249 7250 if test $found = "no" ; then 7251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7253 fi 7254 7255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7257 fi 7258 7259 CFLAGS="$CFLAGS -Wredundant-decls" 7260 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7262printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7263 cacheid=xorg_cv_cc_flag__Wredundant_decls 7264 if eval test \${$cacheid+y} 7265then : 7266 printf %s "(cached) " >&6 7267else case e in #( 7268 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269/* end confdefs.h. */ 7270int i; 7271int 7272main (void) 7273{ 7274 7275 ; 7276 return 0; 7277} 7278_ACEOF 7279if ac_fn_c_try_link "$LINENO" 7280then : 7281 eval $cacheid=yes 7282else case e in #( 7283 e) eval $cacheid=no ;; 7284esac 7285fi 7286rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7287 conftest$ac_exeext conftest.$ac_ext ;; 7288esac 7289fi 7290 7291 7292 CFLAGS="$xorg_testset_save_CFLAGS" 7293 7294 eval supported=\$$cacheid 7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7296printf "%s\n" "$supported" >&6; } 7297 if test "$supported" = "yes" ; then 7298 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7299 found="yes" 7300 fi 7301 fi 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317xorg_testset_save_CFLAGS="$CFLAGS" 7318 7319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7322printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7323if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7324then : 7325 printf %s "(cached) " >&6 7326else case e in #( 7327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329int i; 7330_ACEOF 7331if ac_fn_c_try_compile "$LINENO" 7332then : 7333 xorg_cv_cc_flag_unknown_warning_option=yes 7334else case e in #( 7335 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7336esac 7337fi 7338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7339esac 7340fi 7341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7344 CFLAGS="$xorg_testset_save_CFLAGS" 7345fi 7346 7347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7350 fi 7351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7354if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7355then : 7356 printf %s "(cached) " >&6 7357else case e in #( 7358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7359/* end confdefs.h. */ 7360int i; 7361_ACEOF 7362if ac_fn_c_try_compile "$LINENO" 7363then : 7364 xorg_cv_cc_flag_unused_command_line_argument=yes 7365else case e in #( 7366 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7367esac 7368fi 7369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7370esac 7371fi 7372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7373printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7375 CFLAGS="$xorg_testset_save_CFLAGS" 7376fi 7377 7378found="no" 7379 7380 if test $found = "no" ; then 7381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7383 fi 7384 7385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7387 fi 7388 7389 CFLAGS="$CFLAGS -Wlogical-op" 7390 7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7392printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7393 cacheid=xorg_cv_cc_flag__Wlogical_op 7394 if eval test \${$cacheid+y} 7395then : 7396 printf %s "(cached) " >&6 7397else case e in #( 7398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7399/* end confdefs.h. */ 7400int i; 7401int 7402main (void) 7403{ 7404 7405 ; 7406 return 0; 7407} 7408_ACEOF 7409if ac_fn_c_try_link "$LINENO" 7410then : 7411 eval $cacheid=yes 7412else case e in #( 7413 e) eval $cacheid=no ;; 7414esac 7415fi 7416rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7417 conftest$ac_exeext conftest.$ac_ext ;; 7418esac 7419fi 7420 7421 7422 CFLAGS="$xorg_testset_save_CFLAGS" 7423 7424 eval supported=\$$cacheid 7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7426printf "%s\n" "$supported" >&6; } 7427 if test "$supported" = "yes" ; then 7428 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7429 found="yes" 7430 fi 7431 fi 7432 7433 7434 7435# These are currently disabled because they are noisy. They will be enabled 7436# in the future once the codebase is sufficiently modernized to silence 7437# them. For now, I don't want them to drown out the other warnings. 7438# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7439# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7440# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7441 7442# Turn some warnings into errors, so we don't accidentally get successful builds 7443# when there are problems that should be fixed. 7444 7445if test "x$SELECTIVE_WERROR" = "xyes" ; then 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459xorg_testset_save_CFLAGS="$CFLAGS" 7460 7461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7465if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7466then : 7467 printf %s "(cached) " >&6 7468else case e in #( 7469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470/* end confdefs.h. */ 7471int i; 7472_ACEOF 7473if ac_fn_c_try_compile "$LINENO" 7474then : 7475 xorg_cv_cc_flag_unknown_warning_option=yes 7476else case e in #( 7477 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7478esac 7479fi 7480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7481esac 7482fi 7483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7486 CFLAGS="$xorg_testset_save_CFLAGS" 7487fi 7488 7489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7492 fi 7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7496if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7497then : 7498 printf %s "(cached) " >&6 7499else case e in #( 7500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501/* end confdefs.h. */ 7502int i; 7503_ACEOF 7504if ac_fn_c_try_compile "$LINENO" 7505then : 7506 xorg_cv_cc_flag_unused_command_line_argument=yes 7507else case e in #( 7508 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7509esac 7510fi 7511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7512esac 7513fi 7514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7517 CFLAGS="$xorg_testset_save_CFLAGS" 7518fi 7519 7520found="no" 7521 7522 if test $found = "no" ; then 7523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7525 fi 7526 7527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7529 fi 7530 7531 CFLAGS="$CFLAGS -Werror=implicit" 7532 7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7534printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7535 cacheid=xorg_cv_cc_flag__Werror_implicit 7536 if eval test \${$cacheid+y} 7537then : 7538 printf %s "(cached) " >&6 7539else case e in #( 7540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7541/* end confdefs.h. */ 7542int i; 7543int 7544main (void) 7545{ 7546 7547 ; 7548 return 0; 7549} 7550_ACEOF 7551if ac_fn_c_try_link "$LINENO" 7552then : 7553 eval $cacheid=yes 7554else case e in #( 7555 e) eval $cacheid=no ;; 7556esac 7557fi 7558rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7559 conftest$ac_exeext conftest.$ac_ext ;; 7560esac 7561fi 7562 7563 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565 7566 eval supported=\$$cacheid 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7568printf "%s\n" "$supported" >&6; } 7569 if test "$supported" = "yes" ; then 7570 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7571 found="yes" 7572 fi 7573 fi 7574 7575 if test $found = "no" ; then 7576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7578 fi 7579 7580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7582 fi 7583 7584 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7585 7586 { 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 7587printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7588 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7589 if eval test \${$cacheid+y} 7590then : 7591 printf %s "(cached) " >&6 7592else case e in #( 7593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7594/* end confdefs.h. */ 7595int i; 7596int 7597main (void) 7598{ 7599 7600 ; 7601 return 0; 7602} 7603_ACEOF 7604if ac_fn_c_try_link "$LINENO" 7605then : 7606 eval $cacheid=yes 7607else case e in #( 7608 e) eval $cacheid=no ;; 7609esac 7610fi 7611rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7612 conftest$ac_exeext conftest.$ac_ext ;; 7613esac 7614fi 7615 7616 7617 CFLAGS="$xorg_testset_save_CFLAGS" 7618 7619 eval supported=\$$cacheid 7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7621printf "%s\n" "$supported" >&6; } 7622 if test "$supported" = "yes" ; then 7623 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7624 found="yes" 7625 fi 7626 fi 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642xorg_testset_save_CFLAGS="$CFLAGS" 7643 7644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7648if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7649then : 7650 printf %s "(cached) " >&6 7651else case e in #( 7652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653/* end confdefs.h. */ 7654int i; 7655_ACEOF 7656if ac_fn_c_try_compile "$LINENO" 7657then : 7658 xorg_cv_cc_flag_unknown_warning_option=yes 7659else case e in #( 7660 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7661esac 7662fi 7663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7664esac 7665fi 7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7667printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7669 CFLAGS="$xorg_testset_save_CFLAGS" 7670fi 7671 7672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7675 fi 7676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7678printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7679if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7680then : 7681 printf %s "(cached) " >&6 7682else case e in #( 7683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7684/* end confdefs.h. */ 7685int i; 7686_ACEOF 7687if ac_fn_c_try_compile "$LINENO" 7688then : 7689 xorg_cv_cc_flag_unused_command_line_argument=yes 7690else case e in #( 7691 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7692esac 7693fi 7694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7695esac 7696fi 7697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7698printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7700 CFLAGS="$xorg_testset_save_CFLAGS" 7701fi 7702 7703found="no" 7704 7705 if test $found = "no" ; then 7706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7708 fi 7709 7710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7712 fi 7713 7714 CFLAGS="$CFLAGS -Werror=nonnull" 7715 7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7717printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7718 cacheid=xorg_cv_cc_flag__Werror_nonnull 7719 if eval test \${$cacheid+y} 7720then : 7721 printf %s "(cached) " >&6 7722else case e in #( 7723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725int i; 7726int 7727main (void) 7728{ 7729 7730 ; 7731 return 0; 7732} 7733_ACEOF 7734if ac_fn_c_try_link "$LINENO" 7735then : 7736 eval $cacheid=yes 7737else case e in #( 7738 e) eval $cacheid=no ;; 7739esac 7740fi 7741rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7742 conftest$ac_exeext conftest.$ac_ext ;; 7743esac 7744fi 7745 7746 7747 CFLAGS="$xorg_testset_save_CFLAGS" 7748 7749 eval supported=\$$cacheid 7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7751printf "%s\n" "$supported" >&6; } 7752 if test "$supported" = "yes" ; then 7753 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7754 found="yes" 7755 fi 7756 fi 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772xorg_testset_save_CFLAGS="$CFLAGS" 7773 7774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7778if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7779then : 7780 printf %s "(cached) " >&6 7781else case e in #( 7782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7783/* end confdefs.h. */ 7784int i; 7785_ACEOF 7786if ac_fn_c_try_compile "$LINENO" 7787then : 7788 xorg_cv_cc_flag_unknown_warning_option=yes 7789else case e in #( 7790 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7791esac 7792fi 7793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7794esac 7795fi 7796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7799 CFLAGS="$xorg_testset_save_CFLAGS" 7800fi 7801 7802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7805 fi 7806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7809if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7810then : 7811 printf %s "(cached) " >&6 7812else case e in #( 7813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7814/* end confdefs.h. */ 7815int i; 7816_ACEOF 7817if ac_fn_c_try_compile "$LINENO" 7818then : 7819 xorg_cv_cc_flag_unused_command_line_argument=yes 7820else case e in #( 7821 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7822esac 7823fi 7824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7825esac 7826fi 7827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7828printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7830 CFLAGS="$xorg_testset_save_CFLAGS" 7831fi 7832 7833found="no" 7834 7835 if test $found = "no" ; then 7836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7838 fi 7839 7840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7842 fi 7843 7844 CFLAGS="$CFLAGS -Werror=init-self" 7845 7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7847printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7848 cacheid=xorg_cv_cc_flag__Werror_init_self 7849 if eval test \${$cacheid+y} 7850then : 7851 printf %s "(cached) " >&6 7852else case e in #( 7853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855int i; 7856int 7857main (void) 7858{ 7859 7860 ; 7861 return 0; 7862} 7863_ACEOF 7864if ac_fn_c_try_link "$LINENO" 7865then : 7866 eval $cacheid=yes 7867else case e in #( 7868 e) eval $cacheid=no ;; 7869esac 7870fi 7871rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7872 conftest$ac_exeext conftest.$ac_ext ;; 7873esac 7874fi 7875 7876 7877 CFLAGS="$xorg_testset_save_CFLAGS" 7878 7879 eval supported=\$$cacheid 7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7881printf "%s\n" "$supported" >&6; } 7882 if test "$supported" = "yes" ; then 7883 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7884 found="yes" 7885 fi 7886 fi 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902xorg_testset_save_CFLAGS="$CFLAGS" 7903 7904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7908if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7909then : 7910 printf %s "(cached) " >&6 7911else case e in #( 7912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913/* end confdefs.h. */ 7914int i; 7915_ACEOF 7916if ac_fn_c_try_compile "$LINENO" 7917then : 7918 xorg_cv_cc_flag_unknown_warning_option=yes 7919else case e in #( 7920 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7921esac 7922fi 7923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7924esac 7925fi 7926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7927printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7929 CFLAGS="$xorg_testset_save_CFLAGS" 7930fi 7931 7932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7935 fi 7936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7938printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7939if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7940then : 7941 printf %s "(cached) " >&6 7942else case e in #( 7943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946_ACEOF 7947if ac_fn_c_try_compile "$LINENO" 7948then : 7949 xorg_cv_cc_flag_unused_command_line_argument=yes 7950else case e in #( 7951 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7952esac 7953fi 7954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7955esac 7956fi 7957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7958printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7960 CFLAGS="$xorg_testset_save_CFLAGS" 7961fi 7962 7963found="no" 7964 7965 if test $found = "no" ; then 7966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7968 fi 7969 7970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7972 fi 7973 7974 CFLAGS="$CFLAGS -Werror=main" 7975 7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7977printf %s "checking if $CC supports -Werror=main... " >&6; } 7978 cacheid=xorg_cv_cc_flag__Werror_main 7979 if eval test \${$cacheid+y} 7980then : 7981 printf %s "(cached) " >&6 7982else case e in #( 7983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7984/* end confdefs.h. */ 7985int i; 7986int 7987main (void) 7988{ 7989 7990 ; 7991 return 0; 7992} 7993_ACEOF 7994if ac_fn_c_try_link "$LINENO" 7995then : 7996 eval $cacheid=yes 7997else case e in #( 7998 e) eval $cacheid=no ;; 7999esac 8000fi 8001rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8002 conftest$ac_exeext conftest.$ac_ext ;; 8003esac 8004fi 8005 8006 8007 CFLAGS="$xorg_testset_save_CFLAGS" 8008 8009 eval supported=\$$cacheid 8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8011printf "%s\n" "$supported" >&6; } 8012 if test "$supported" = "yes" ; then 8013 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8014 found="yes" 8015 fi 8016 fi 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032xorg_testset_save_CFLAGS="$CFLAGS" 8033 8034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8038if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8039then : 8040 printf %s "(cached) " >&6 8041else case e in #( 8042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8043/* end confdefs.h. */ 8044int i; 8045_ACEOF 8046if ac_fn_c_try_compile "$LINENO" 8047then : 8048 xorg_cv_cc_flag_unknown_warning_option=yes 8049else case e in #( 8050 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8051esac 8052fi 8053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8054esac 8055fi 8056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8059 CFLAGS="$xorg_testset_save_CFLAGS" 8060fi 8061 8062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8065 fi 8066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8069if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8070then : 8071 printf %s "(cached) " >&6 8072else case e in #( 8073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8074/* end confdefs.h. */ 8075int i; 8076_ACEOF 8077if ac_fn_c_try_compile "$LINENO" 8078then : 8079 xorg_cv_cc_flag_unused_command_line_argument=yes 8080else case e in #( 8081 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8082esac 8083fi 8084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8085esac 8086fi 8087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8090 CFLAGS="$xorg_testset_save_CFLAGS" 8091fi 8092 8093found="no" 8094 8095 if test $found = "no" ; then 8096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8098 fi 8099 8100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8102 fi 8103 8104 CFLAGS="$CFLAGS -Werror=missing-braces" 8105 8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8107printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8108 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8109 if eval test \${$cacheid+y} 8110then : 8111 printf %s "(cached) " >&6 8112else case e in #( 8113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8114/* end confdefs.h. */ 8115int i; 8116int 8117main (void) 8118{ 8119 8120 ; 8121 return 0; 8122} 8123_ACEOF 8124if ac_fn_c_try_link "$LINENO" 8125then : 8126 eval $cacheid=yes 8127else case e in #( 8128 e) eval $cacheid=no ;; 8129esac 8130fi 8131rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8132 conftest$ac_exeext conftest.$ac_ext ;; 8133esac 8134fi 8135 8136 8137 CFLAGS="$xorg_testset_save_CFLAGS" 8138 8139 eval supported=\$$cacheid 8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8141printf "%s\n" "$supported" >&6; } 8142 if test "$supported" = "yes" ; then 8143 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8144 found="yes" 8145 fi 8146 fi 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162xorg_testset_save_CFLAGS="$CFLAGS" 8163 8164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8167printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8168if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8169then : 8170 printf %s "(cached) " >&6 8171else case e in #( 8172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173/* end confdefs.h. */ 8174int i; 8175_ACEOF 8176if ac_fn_c_try_compile "$LINENO" 8177then : 8178 xorg_cv_cc_flag_unknown_warning_option=yes 8179else case e in #( 8180 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8181esac 8182fi 8183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8184esac 8185fi 8186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8189 CFLAGS="$xorg_testset_save_CFLAGS" 8190fi 8191 8192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8195 fi 8196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8199if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8200then : 8201 printf %s "(cached) " >&6 8202else case e in #( 8203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204/* end confdefs.h. */ 8205int i; 8206_ACEOF 8207if ac_fn_c_try_compile "$LINENO" 8208then : 8209 xorg_cv_cc_flag_unused_command_line_argument=yes 8210else case e in #( 8211 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8212esac 8213fi 8214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8215esac 8216fi 8217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8220 CFLAGS="$xorg_testset_save_CFLAGS" 8221fi 8222 8223found="no" 8224 8225 if test $found = "no" ; then 8226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8228 fi 8229 8230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8232 fi 8233 8234 CFLAGS="$CFLAGS -Werror=sequence-point" 8235 8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8237printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8238 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8239 if eval test \${$cacheid+y} 8240then : 8241 printf %s "(cached) " >&6 8242else case e in #( 8243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8244/* end confdefs.h. */ 8245int i; 8246int 8247main (void) 8248{ 8249 8250 ; 8251 return 0; 8252} 8253_ACEOF 8254if ac_fn_c_try_link "$LINENO" 8255then : 8256 eval $cacheid=yes 8257else case e in #( 8258 e) eval $cacheid=no ;; 8259esac 8260fi 8261rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8262 conftest$ac_exeext conftest.$ac_ext ;; 8263esac 8264fi 8265 8266 8267 CFLAGS="$xorg_testset_save_CFLAGS" 8268 8269 eval supported=\$$cacheid 8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8271printf "%s\n" "$supported" >&6; } 8272 if test "$supported" = "yes" ; then 8273 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8274 found="yes" 8275 fi 8276 fi 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292xorg_testset_save_CFLAGS="$CFLAGS" 8293 8294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8297printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8298if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8299then : 8300 printf %s "(cached) " >&6 8301else case e in #( 8302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8303/* end confdefs.h. */ 8304int i; 8305_ACEOF 8306if ac_fn_c_try_compile "$LINENO" 8307then : 8308 xorg_cv_cc_flag_unknown_warning_option=yes 8309else case e in #( 8310 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8311esac 8312fi 8313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8314esac 8315fi 8316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8319 CFLAGS="$xorg_testset_save_CFLAGS" 8320fi 8321 8322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8325 fi 8326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8329if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8330then : 8331 printf %s "(cached) " >&6 8332else case e in #( 8333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8334/* end confdefs.h. */ 8335int i; 8336_ACEOF 8337if ac_fn_c_try_compile "$LINENO" 8338then : 8339 xorg_cv_cc_flag_unused_command_line_argument=yes 8340else case e in #( 8341 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8342esac 8343fi 8344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8345esac 8346fi 8347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8350 CFLAGS="$xorg_testset_save_CFLAGS" 8351fi 8352 8353found="no" 8354 8355 if test $found = "no" ; then 8356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8358 fi 8359 8360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8362 fi 8363 8364 CFLAGS="$CFLAGS -Werror=return-type" 8365 8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8367printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8368 cacheid=xorg_cv_cc_flag__Werror_return_type 8369 if eval test \${$cacheid+y} 8370then : 8371 printf %s "(cached) " >&6 8372else case e in #( 8373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8374/* end confdefs.h. */ 8375int i; 8376int 8377main (void) 8378{ 8379 8380 ; 8381 return 0; 8382} 8383_ACEOF 8384if ac_fn_c_try_link "$LINENO" 8385then : 8386 eval $cacheid=yes 8387else case e in #( 8388 e) eval $cacheid=no ;; 8389esac 8390fi 8391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8392 conftest$ac_exeext conftest.$ac_ext ;; 8393esac 8394fi 8395 8396 8397 CFLAGS="$xorg_testset_save_CFLAGS" 8398 8399 eval supported=\$$cacheid 8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8401printf "%s\n" "$supported" >&6; } 8402 if test "$supported" = "yes" ; then 8403 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8404 found="yes" 8405 fi 8406 fi 8407 8408 if test $found = "no" ; then 8409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8411 fi 8412 8413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8415 fi 8416 8417 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8418 8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8420printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8421 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8422 if eval test \${$cacheid+y} 8423then : 8424 printf %s "(cached) " >&6 8425else case e in #( 8426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8427/* end confdefs.h. */ 8428int i; 8429int 8430main (void) 8431{ 8432 8433 ; 8434 return 0; 8435} 8436_ACEOF 8437if ac_fn_c_try_link "$LINENO" 8438then : 8439 eval $cacheid=yes 8440else case e in #( 8441 e) eval $cacheid=no ;; 8442esac 8443fi 8444rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8445 conftest$ac_exeext conftest.$ac_ext ;; 8446esac 8447fi 8448 8449 8450 CFLAGS="$xorg_testset_save_CFLAGS" 8451 8452 eval supported=\$$cacheid 8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8454printf "%s\n" "$supported" >&6; } 8455 if test "$supported" = "yes" ; then 8456 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8457 found="yes" 8458 fi 8459 fi 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475xorg_testset_save_CFLAGS="$CFLAGS" 8476 8477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8481if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8482then : 8483 printf %s "(cached) " >&6 8484else case e in #( 8485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8486/* end confdefs.h. */ 8487int i; 8488_ACEOF 8489if ac_fn_c_try_compile "$LINENO" 8490then : 8491 xorg_cv_cc_flag_unknown_warning_option=yes 8492else case e in #( 8493 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8494esac 8495fi 8496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8497esac 8498fi 8499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8500printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8502 CFLAGS="$xorg_testset_save_CFLAGS" 8503fi 8504 8505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8508 fi 8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8511printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8512if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8513then : 8514 printf %s "(cached) " >&6 8515else case e in #( 8516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8517/* end confdefs.h. */ 8518int i; 8519_ACEOF 8520if ac_fn_c_try_compile "$LINENO" 8521then : 8522 xorg_cv_cc_flag_unused_command_line_argument=yes 8523else case e in #( 8524 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8525esac 8526fi 8527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8528esac 8529fi 8530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8533 CFLAGS="$xorg_testset_save_CFLAGS" 8534fi 8535 8536found="no" 8537 8538 if test $found = "no" ; then 8539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8541 fi 8542 8543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8545 fi 8546 8547 CFLAGS="$CFLAGS -Werror=trigraphs" 8548 8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8550printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8551 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8552 if eval test \${$cacheid+y} 8553then : 8554 printf %s "(cached) " >&6 8555else case e in #( 8556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8557/* end confdefs.h. */ 8558int i; 8559int 8560main (void) 8561{ 8562 8563 ; 8564 return 0; 8565} 8566_ACEOF 8567if ac_fn_c_try_link "$LINENO" 8568then : 8569 eval $cacheid=yes 8570else case e in #( 8571 e) eval $cacheid=no ;; 8572esac 8573fi 8574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8575 conftest$ac_exeext conftest.$ac_ext ;; 8576esac 8577fi 8578 8579 8580 CFLAGS="$xorg_testset_save_CFLAGS" 8581 8582 eval supported=\$$cacheid 8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8584printf "%s\n" "$supported" >&6; } 8585 if test "$supported" = "yes" ; then 8586 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8587 found="yes" 8588 fi 8589 fi 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605xorg_testset_save_CFLAGS="$CFLAGS" 8606 8607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8611if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8612then : 8613 printf %s "(cached) " >&6 8614else case e in #( 8615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8616/* end confdefs.h. */ 8617int i; 8618_ACEOF 8619if ac_fn_c_try_compile "$LINENO" 8620then : 8621 xorg_cv_cc_flag_unknown_warning_option=yes 8622else case e in #( 8623 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8624esac 8625fi 8626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8627esac 8628fi 8629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8632 CFLAGS="$xorg_testset_save_CFLAGS" 8633fi 8634 8635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8638 fi 8639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8642if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8643then : 8644 printf %s "(cached) " >&6 8645else case e in #( 8646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8647/* end confdefs.h. */ 8648int i; 8649_ACEOF 8650if ac_fn_c_try_compile "$LINENO" 8651then : 8652 xorg_cv_cc_flag_unused_command_line_argument=yes 8653else case e in #( 8654 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8655esac 8656fi 8657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8658esac 8659fi 8660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8663 CFLAGS="$xorg_testset_save_CFLAGS" 8664fi 8665 8666found="no" 8667 8668 if test $found = "no" ; then 8669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8671 fi 8672 8673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8675 fi 8676 8677 CFLAGS="$CFLAGS -Werror=array-bounds" 8678 8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8680printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8681 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8682 if eval test \${$cacheid+y} 8683then : 8684 printf %s "(cached) " >&6 8685else case e in #( 8686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8687/* end confdefs.h. */ 8688int i; 8689int 8690main (void) 8691{ 8692 8693 ; 8694 return 0; 8695} 8696_ACEOF 8697if ac_fn_c_try_link "$LINENO" 8698then : 8699 eval $cacheid=yes 8700else case e in #( 8701 e) eval $cacheid=no ;; 8702esac 8703fi 8704rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8705 conftest$ac_exeext conftest.$ac_ext ;; 8706esac 8707fi 8708 8709 8710 CFLAGS="$xorg_testset_save_CFLAGS" 8711 8712 eval supported=\$$cacheid 8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8714printf "%s\n" "$supported" >&6; } 8715 if test "$supported" = "yes" ; then 8716 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8717 found="yes" 8718 fi 8719 fi 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735xorg_testset_save_CFLAGS="$CFLAGS" 8736 8737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8740printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8741if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8742then : 8743 printf %s "(cached) " >&6 8744else case e in #( 8745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8746/* end confdefs.h. */ 8747int i; 8748_ACEOF 8749if ac_fn_c_try_compile "$LINENO" 8750then : 8751 xorg_cv_cc_flag_unknown_warning_option=yes 8752else case e in #( 8753 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8754esac 8755fi 8756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8757esac 8758fi 8759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8762 CFLAGS="$xorg_testset_save_CFLAGS" 8763fi 8764 8765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8768 fi 8769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8772if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8773then : 8774 printf %s "(cached) " >&6 8775else case e in #( 8776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8777/* end confdefs.h. */ 8778int i; 8779_ACEOF 8780if ac_fn_c_try_compile "$LINENO" 8781then : 8782 xorg_cv_cc_flag_unused_command_line_argument=yes 8783else case e in #( 8784 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8785esac 8786fi 8787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8788esac 8789fi 8790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8791printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8793 CFLAGS="$xorg_testset_save_CFLAGS" 8794fi 8795 8796found="no" 8797 8798 if test $found = "no" ; then 8799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8801 fi 8802 8803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8805 fi 8806 8807 CFLAGS="$CFLAGS -Werror=write-strings" 8808 8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8810printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8811 cacheid=xorg_cv_cc_flag__Werror_write_strings 8812 if eval test \${$cacheid+y} 8813then : 8814 printf %s "(cached) " >&6 8815else case e in #( 8816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8817/* end confdefs.h. */ 8818int i; 8819int 8820main (void) 8821{ 8822 8823 ; 8824 return 0; 8825} 8826_ACEOF 8827if ac_fn_c_try_link "$LINENO" 8828then : 8829 eval $cacheid=yes 8830else case e in #( 8831 e) eval $cacheid=no ;; 8832esac 8833fi 8834rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8835 conftest$ac_exeext conftest.$ac_ext ;; 8836esac 8837fi 8838 8839 8840 CFLAGS="$xorg_testset_save_CFLAGS" 8841 8842 eval supported=\$$cacheid 8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8844printf "%s\n" "$supported" >&6; } 8845 if test "$supported" = "yes" ; then 8846 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8847 found="yes" 8848 fi 8849 fi 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865xorg_testset_save_CFLAGS="$CFLAGS" 8866 8867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8870printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8871if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8872then : 8873 printf %s "(cached) " >&6 8874else case e in #( 8875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876/* end confdefs.h. */ 8877int i; 8878_ACEOF 8879if ac_fn_c_try_compile "$LINENO" 8880then : 8881 xorg_cv_cc_flag_unknown_warning_option=yes 8882else case e in #( 8883 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8884esac 8885fi 8886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8887esac 8888fi 8889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8890printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8892 CFLAGS="$xorg_testset_save_CFLAGS" 8893fi 8894 8895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8898 fi 8899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8901printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8902if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8903then : 8904 printf %s "(cached) " >&6 8905else case e in #( 8906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8907/* end confdefs.h. */ 8908int i; 8909_ACEOF 8910if ac_fn_c_try_compile "$LINENO" 8911then : 8912 xorg_cv_cc_flag_unused_command_line_argument=yes 8913else case e in #( 8914 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8915esac 8916fi 8917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8918esac 8919fi 8920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8921printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8923 CFLAGS="$xorg_testset_save_CFLAGS" 8924fi 8925 8926found="no" 8927 8928 if test $found = "no" ; then 8929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8931 fi 8932 8933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8935 fi 8936 8937 CFLAGS="$CFLAGS -Werror=address" 8938 8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8940printf %s "checking if $CC supports -Werror=address... " >&6; } 8941 cacheid=xorg_cv_cc_flag__Werror_address 8942 if eval test \${$cacheid+y} 8943then : 8944 printf %s "(cached) " >&6 8945else case e in #( 8946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8947/* end confdefs.h. */ 8948int i; 8949int 8950main (void) 8951{ 8952 8953 ; 8954 return 0; 8955} 8956_ACEOF 8957if ac_fn_c_try_link "$LINENO" 8958then : 8959 eval $cacheid=yes 8960else case e in #( 8961 e) eval $cacheid=no ;; 8962esac 8963fi 8964rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8965 conftest$ac_exeext conftest.$ac_ext ;; 8966esac 8967fi 8968 8969 8970 CFLAGS="$xorg_testset_save_CFLAGS" 8971 8972 eval supported=\$$cacheid 8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8974printf "%s\n" "$supported" >&6; } 8975 if test "$supported" = "yes" ; then 8976 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8977 found="yes" 8978 fi 8979 fi 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995xorg_testset_save_CFLAGS="$CFLAGS" 8996 8997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9000printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9001if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9002then : 9003 printf %s "(cached) " >&6 9004else case e in #( 9005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9006/* end confdefs.h. */ 9007int i; 9008_ACEOF 9009if ac_fn_c_try_compile "$LINENO" 9010then : 9011 xorg_cv_cc_flag_unknown_warning_option=yes 9012else case e in #( 9013 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9014esac 9015fi 9016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9017esac 9018fi 9019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9022 CFLAGS="$xorg_testset_save_CFLAGS" 9023fi 9024 9025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9028 fi 9029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9032if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9033then : 9034 printf %s "(cached) " >&6 9035else case e in #( 9036 e) 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_unused_command_line_argument=yes 9043else case e in #( 9044 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9045esac 9046fi 9047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9048esac 9049fi 9050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9051printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9053 CFLAGS="$xorg_testset_save_CFLAGS" 9054fi 9055 9056found="no" 9057 9058 if test $found = "no" ; then 9059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9061 fi 9062 9063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9065 fi 9066 9067 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9068 9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9070printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9071 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9072 if eval test \${$cacheid+y} 9073then : 9074 printf %s "(cached) " >&6 9075else case e in #( 9076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9077/* end confdefs.h. */ 9078int i; 9079int 9080main (void) 9081{ 9082 9083 ; 9084 return 0; 9085} 9086_ACEOF 9087if ac_fn_c_try_link "$LINENO" 9088then : 9089 eval $cacheid=yes 9090else case e in #( 9091 e) eval $cacheid=no ;; 9092esac 9093fi 9094rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9095 conftest$ac_exeext conftest.$ac_ext ;; 9096esac 9097fi 9098 9099 9100 CFLAGS="$xorg_testset_save_CFLAGS" 9101 9102 eval supported=\$$cacheid 9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9104printf "%s\n" "$supported" >&6; } 9105 if test "$supported" = "yes" ; then 9106 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9107 found="yes" 9108 fi 9109 fi 9110 9111 if test $found = "no" ; then 9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9114 fi 9115 9116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9118 fi 9119 9120 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9121 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9123printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9124 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9125 if eval test \${$cacheid+y} 9126then : 9127 printf %s "(cached) " >&6 9128else case e in #( 9129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131int i; 9132int 9133main (void) 9134{ 9135 9136 ; 9137 return 0; 9138} 9139_ACEOF 9140if ac_fn_c_try_link "$LINENO" 9141then : 9142 eval $cacheid=yes 9143else case e in #( 9144 e) eval $cacheid=no ;; 9145esac 9146fi 9147rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9148 conftest$ac_exeext conftest.$ac_ext ;; 9149esac 9150fi 9151 9152 9153 CFLAGS="$xorg_testset_save_CFLAGS" 9154 9155 eval supported=\$$cacheid 9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9157printf "%s\n" "$supported" >&6; } 9158 if test "$supported" = "yes" ; then 9159 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9160 found="yes" 9161 fi 9162 fi 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178xorg_testset_save_CFLAGS="$CFLAGS" 9179 9180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9183printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9184if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9185then : 9186 printf %s "(cached) " >&6 9187else case e in #( 9188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9189/* end confdefs.h. */ 9190int i; 9191_ACEOF 9192if ac_fn_c_try_compile "$LINENO" 9193then : 9194 xorg_cv_cc_flag_unknown_warning_option=yes 9195else case e in #( 9196 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9197esac 9198fi 9199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9200esac 9201fi 9202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9205 CFLAGS="$xorg_testset_save_CFLAGS" 9206fi 9207 9208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9211 fi 9212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9215if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9216then : 9217 printf %s "(cached) " >&6 9218else case e in #( 9219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9220/* end confdefs.h. */ 9221int i; 9222_ACEOF 9223if ac_fn_c_try_compile "$LINENO" 9224then : 9225 xorg_cv_cc_flag_unused_command_line_argument=yes 9226else case e in #( 9227 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9228esac 9229fi 9230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9231esac 9232fi 9233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9234printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9236 CFLAGS="$xorg_testset_save_CFLAGS" 9237fi 9238 9239found="no" 9240 9241 if test $found = "no" ; then 9242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9244 fi 9245 9246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9248 fi 9249 9250 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9251 9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9253printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9254 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9255 if eval test \${$cacheid+y} 9256then : 9257 printf %s "(cached) " >&6 9258else case e in #( 9259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9260/* end confdefs.h. */ 9261int i; 9262int 9263main (void) 9264{ 9265 9266 ; 9267 return 0; 9268} 9269_ACEOF 9270if ac_fn_c_try_link "$LINENO" 9271then : 9272 eval $cacheid=yes 9273else case e in #( 9274 e) eval $cacheid=no ;; 9275esac 9276fi 9277rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9278 conftest$ac_exeext conftest.$ac_ext ;; 9279esac 9280fi 9281 9282 9283 CFLAGS="$xorg_testset_save_CFLAGS" 9284 9285 eval supported=\$$cacheid 9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9287printf "%s\n" "$supported" >&6; } 9288 if test "$supported" = "yes" ; then 9289 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9290 found="yes" 9291 fi 9292 fi 9293 9294 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9295else 9296{ 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 9297printf "%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;} 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311xorg_testset_save_CFLAGS="$CFLAGS" 9312 9313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9317if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9318then : 9319 printf %s "(cached) " >&6 9320else case e in #( 9321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9322/* end confdefs.h. */ 9323int i; 9324_ACEOF 9325if ac_fn_c_try_compile "$LINENO" 9326then : 9327 xorg_cv_cc_flag_unknown_warning_option=yes 9328else case e in #( 9329 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9330esac 9331fi 9332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9333esac 9334fi 9335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9338 CFLAGS="$xorg_testset_save_CFLAGS" 9339fi 9340 9341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9344 fi 9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9348if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9349then : 9350 printf %s "(cached) " >&6 9351else case e in #( 9352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9353/* end confdefs.h. */ 9354int i; 9355_ACEOF 9356if ac_fn_c_try_compile "$LINENO" 9357then : 9358 xorg_cv_cc_flag_unused_command_line_argument=yes 9359else case e in #( 9360 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9361esac 9362fi 9363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9364esac 9365fi 9366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9369 CFLAGS="$xorg_testset_save_CFLAGS" 9370fi 9371 9372found="no" 9373 9374 if test $found = "no" ; then 9375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9377 fi 9378 9379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9381 fi 9382 9383 CFLAGS="$CFLAGS -Wimplicit" 9384 9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9386printf %s "checking if $CC supports -Wimplicit... " >&6; } 9387 cacheid=xorg_cv_cc_flag__Wimplicit 9388 if eval test \${$cacheid+y} 9389then : 9390 printf %s "(cached) " >&6 9391else case e in #( 9392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9393/* end confdefs.h. */ 9394int i; 9395int 9396main (void) 9397{ 9398 9399 ; 9400 return 0; 9401} 9402_ACEOF 9403if ac_fn_c_try_link "$LINENO" 9404then : 9405 eval $cacheid=yes 9406else case e in #( 9407 e) eval $cacheid=no ;; 9408esac 9409fi 9410rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9411 conftest$ac_exeext conftest.$ac_ext ;; 9412esac 9413fi 9414 9415 9416 CFLAGS="$xorg_testset_save_CFLAGS" 9417 9418 eval supported=\$$cacheid 9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9420printf "%s\n" "$supported" >&6; } 9421 if test "$supported" = "yes" ; then 9422 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9423 found="yes" 9424 fi 9425 fi 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441xorg_testset_save_CFLAGS="$CFLAGS" 9442 9443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9446printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9447if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9448then : 9449 printf %s "(cached) " >&6 9450else case e in #( 9451 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9452/* end confdefs.h. */ 9453int i; 9454_ACEOF 9455if ac_fn_c_try_compile "$LINENO" 9456then : 9457 xorg_cv_cc_flag_unknown_warning_option=yes 9458else case e in #( 9459 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9460esac 9461fi 9462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9463esac 9464fi 9465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9466printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9468 CFLAGS="$xorg_testset_save_CFLAGS" 9469fi 9470 9471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9474 fi 9475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9477printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9478if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9479then : 9480 printf %s "(cached) " >&6 9481else case e in #( 9482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9483/* end confdefs.h. */ 9484int i; 9485_ACEOF 9486if ac_fn_c_try_compile "$LINENO" 9487then : 9488 xorg_cv_cc_flag_unused_command_line_argument=yes 9489else case e in #( 9490 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9491esac 9492fi 9493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9494esac 9495fi 9496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9497printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9499 CFLAGS="$xorg_testset_save_CFLAGS" 9500fi 9501 9502found="no" 9503 9504 if test $found = "no" ; then 9505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9507 fi 9508 9509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9511 fi 9512 9513 CFLAGS="$CFLAGS -Wnonnull" 9514 9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9516printf %s "checking if $CC supports -Wnonnull... " >&6; } 9517 cacheid=xorg_cv_cc_flag__Wnonnull 9518 if eval test \${$cacheid+y} 9519then : 9520 printf %s "(cached) " >&6 9521else case e in #( 9522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523/* end confdefs.h. */ 9524int i; 9525int 9526main (void) 9527{ 9528 9529 ; 9530 return 0; 9531} 9532_ACEOF 9533if ac_fn_c_try_link "$LINENO" 9534then : 9535 eval $cacheid=yes 9536else case e in #( 9537 e) eval $cacheid=no ;; 9538esac 9539fi 9540rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9541 conftest$ac_exeext conftest.$ac_ext ;; 9542esac 9543fi 9544 9545 9546 CFLAGS="$xorg_testset_save_CFLAGS" 9547 9548 eval supported=\$$cacheid 9549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9550printf "%s\n" "$supported" >&6; } 9551 if test "$supported" = "yes" ; then 9552 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9553 found="yes" 9554 fi 9555 fi 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571xorg_testset_save_CFLAGS="$CFLAGS" 9572 9573if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9576printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9577if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9578then : 9579 printf %s "(cached) " >&6 9580else case e in #( 9581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9582/* end confdefs.h. */ 9583int i; 9584_ACEOF 9585if ac_fn_c_try_compile "$LINENO" 9586then : 9587 xorg_cv_cc_flag_unknown_warning_option=yes 9588else case e in #( 9589 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9590esac 9591fi 9592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9593esac 9594fi 9595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9596printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9598 CFLAGS="$xorg_testset_save_CFLAGS" 9599fi 9600 9601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9604 fi 9605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9607printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9608if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9609then : 9610 printf %s "(cached) " >&6 9611else case e in #( 9612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9613/* end confdefs.h. */ 9614int i; 9615_ACEOF 9616if ac_fn_c_try_compile "$LINENO" 9617then : 9618 xorg_cv_cc_flag_unused_command_line_argument=yes 9619else case e in #( 9620 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9621esac 9622fi 9623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9624esac 9625fi 9626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9627printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9629 CFLAGS="$xorg_testset_save_CFLAGS" 9630fi 9631 9632found="no" 9633 9634 if test $found = "no" ; then 9635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9637 fi 9638 9639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9641 fi 9642 9643 CFLAGS="$CFLAGS -Winit-self" 9644 9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9646printf %s "checking if $CC supports -Winit-self... " >&6; } 9647 cacheid=xorg_cv_cc_flag__Winit_self 9648 if eval test \${$cacheid+y} 9649then : 9650 printf %s "(cached) " >&6 9651else case e in #( 9652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9653/* end confdefs.h. */ 9654int i; 9655int 9656main (void) 9657{ 9658 9659 ; 9660 return 0; 9661} 9662_ACEOF 9663if ac_fn_c_try_link "$LINENO" 9664then : 9665 eval $cacheid=yes 9666else case e in #( 9667 e) eval $cacheid=no ;; 9668esac 9669fi 9670rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9671 conftest$ac_exeext conftest.$ac_ext ;; 9672esac 9673fi 9674 9675 9676 CFLAGS="$xorg_testset_save_CFLAGS" 9677 9678 eval supported=\$$cacheid 9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9680printf "%s\n" "$supported" >&6; } 9681 if test "$supported" = "yes" ; then 9682 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9683 found="yes" 9684 fi 9685 fi 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701xorg_testset_save_CFLAGS="$CFLAGS" 9702 9703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9706printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9707if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9708then : 9709 printf %s "(cached) " >&6 9710else case e in #( 9711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712/* end confdefs.h. */ 9713int i; 9714_ACEOF 9715if ac_fn_c_try_compile "$LINENO" 9716then : 9717 xorg_cv_cc_flag_unknown_warning_option=yes 9718else case e in #( 9719 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9720esac 9721fi 9722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9723esac 9724fi 9725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9728 CFLAGS="$xorg_testset_save_CFLAGS" 9729fi 9730 9731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9734 fi 9735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9738if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9739then : 9740 printf %s "(cached) " >&6 9741else case e in #( 9742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9743/* end confdefs.h. */ 9744int i; 9745_ACEOF 9746if ac_fn_c_try_compile "$LINENO" 9747then : 9748 xorg_cv_cc_flag_unused_command_line_argument=yes 9749else case e in #( 9750 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9751esac 9752fi 9753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9754esac 9755fi 9756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9757printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9759 CFLAGS="$xorg_testset_save_CFLAGS" 9760fi 9761 9762found="no" 9763 9764 if test $found = "no" ; then 9765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9767 fi 9768 9769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9771 fi 9772 9773 CFLAGS="$CFLAGS -Wmain" 9774 9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9776printf %s "checking if $CC supports -Wmain... " >&6; } 9777 cacheid=xorg_cv_cc_flag__Wmain 9778 if eval test \${$cacheid+y} 9779then : 9780 printf %s "(cached) " >&6 9781else case e in #( 9782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9783/* end confdefs.h. */ 9784int i; 9785int 9786main (void) 9787{ 9788 9789 ; 9790 return 0; 9791} 9792_ACEOF 9793if ac_fn_c_try_link "$LINENO" 9794then : 9795 eval $cacheid=yes 9796else case e in #( 9797 e) eval $cacheid=no ;; 9798esac 9799fi 9800rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9801 conftest$ac_exeext conftest.$ac_ext ;; 9802esac 9803fi 9804 9805 9806 CFLAGS="$xorg_testset_save_CFLAGS" 9807 9808 eval supported=\$$cacheid 9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9810printf "%s\n" "$supported" >&6; } 9811 if test "$supported" = "yes" ; then 9812 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9813 found="yes" 9814 fi 9815 fi 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831xorg_testset_save_CFLAGS="$CFLAGS" 9832 9833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9837if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9838then : 9839 printf %s "(cached) " >&6 9840else case e in #( 9841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9842/* end confdefs.h. */ 9843int i; 9844_ACEOF 9845if ac_fn_c_try_compile "$LINENO" 9846then : 9847 xorg_cv_cc_flag_unknown_warning_option=yes 9848else case e in #( 9849 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9850esac 9851fi 9852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9853esac 9854fi 9855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9858 CFLAGS="$xorg_testset_save_CFLAGS" 9859fi 9860 9861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9864 fi 9865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9868if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9869then : 9870 printf %s "(cached) " >&6 9871else case e in #( 9872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9873/* end confdefs.h. */ 9874int i; 9875_ACEOF 9876if ac_fn_c_try_compile "$LINENO" 9877then : 9878 xorg_cv_cc_flag_unused_command_line_argument=yes 9879else case e in #( 9880 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9881esac 9882fi 9883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9884esac 9885fi 9886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9889 CFLAGS="$xorg_testset_save_CFLAGS" 9890fi 9891 9892found="no" 9893 9894 if test $found = "no" ; then 9895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9897 fi 9898 9899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9901 fi 9902 9903 CFLAGS="$CFLAGS -Wmissing-braces" 9904 9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9906printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9907 cacheid=xorg_cv_cc_flag__Wmissing_braces 9908 if eval test \${$cacheid+y} 9909then : 9910 printf %s "(cached) " >&6 9911else case e in #( 9912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9913/* end confdefs.h. */ 9914int i; 9915int 9916main (void) 9917{ 9918 9919 ; 9920 return 0; 9921} 9922_ACEOF 9923if ac_fn_c_try_link "$LINENO" 9924then : 9925 eval $cacheid=yes 9926else case e in #( 9927 e) eval $cacheid=no ;; 9928esac 9929fi 9930rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9931 conftest$ac_exeext conftest.$ac_ext ;; 9932esac 9933fi 9934 9935 9936 CFLAGS="$xorg_testset_save_CFLAGS" 9937 9938 eval supported=\$$cacheid 9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9940printf "%s\n" "$supported" >&6; } 9941 if test "$supported" = "yes" ; then 9942 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9943 found="yes" 9944 fi 9945 fi 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961xorg_testset_save_CFLAGS="$CFLAGS" 9962 9963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9966printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9967if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9968then : 9969 printf %s "(cached) " >&6 9970else case e in #( 9971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9972/* end confdefs.h. */ 9973int i; 9974_ACEOF 9975if ac_fn_c_try_compile "$LINENO" 9976then : 9977 xorg_cv_cc_flag_unknown_warning_option=yes 9978else case e in #( 9979 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9980esac 9981fi 9982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9983esac 9984fi 9985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9988 CFLAGS="$xorg_testset_save_CFLAGS" 9989fi 9990 9991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9994 fi 9995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9998if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9999then : 10000 printf %s "(cached) " >&6 10001else case e in #( 10002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003/* end confdefs.h. */ 10004int i; 10005_ACEOF 10006if ac_fn_c_try_compile "$LINENO" 10007then : 10008 xorg_cv_cc_flag_unused_command_line_argument=yes 10009else case e in #( 10010 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10011esac 10012fi 10013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10014esac 10015fi 10016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10019 CFLAGS="$xorg_testset_save_CFLAGS" 10020fi 10021 10022found="no" 10023 10024 if test $found = "no" ; then 10025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10027 fi 10028 10029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10031 fi 10032 10033 CFLAGS="$CFLAGS -Wsequence-point" 10034 10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10036printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10037 cacheid=xorg_cv_cc_flag__Wsequence_point 10038 if eval test \${$cacheid+y} 10039then : 10040 printf %s "(cached) " >&6 10041else case e in #( 10042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10043/* end confdefs.h. */ 10044int i; 10045int 10046main (void) 10047{ 10048 10049 ; 10050 return 0; 10051} 10052_ACEOF 10053if ac_fn_c_try_link "$LINENO" 10054then : 10055 eval $cacheid=yes 10056else case e in #( 10057 e) eval $cacheid=no ;; 10058esac 10059fi 10060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10061 conftest$ac_exeext conftest.$ac_ext ;; 10062esac 10063fi 10064 10065 10066 CFLAGS="$xorg_testset_save_CFLAGS" 10067 10068 eval supported=\$$cacheid 10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10070printf "%s\n" "$supported" >&6; } 10071 if test "$supported" = "yes" ; then 10072 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10073 found="yes" 10074 fi 10075 fi 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091xorg_testset_save_CFLAGS="$CFLAGS" 10092 10093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10097if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10098then : 10099 printf %s "(cached) " >&6 10100else case e in #( 10101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10102/* end confdefs.h. */ 10103int i; 10104_ACEOF 10105if ac_fn_c_try_compile "$LINENO" 10106then : 10107 xorg_cv_cc_flag_unknown_warning_option=yes 10108else case e in #( 10109 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10110esac 10111fi 10112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10113esac 10114fi 10115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10116printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10118 CFLAGS="$xorg_testset_save_CFLAGS" 10119fi 10120 10121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10124 fi 10125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10127printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10128if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10129then : 10130 printf %s "(cached) " >&6 10131else case e in #( 10132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10133/* end confdefs.h. */ 10134int i; 10135_ACEOF 10136if ac_fn_c_try_compile "$LINENO" 10137then : 10138 xorg_cv_cc_flag_unused_command_line_argument=yes 10139else case e in #( 10140 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10141esac 10142fi 10143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10144esac 10145fi 10146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10147printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10149 CFLAGS="$xorg_testset_save_CFLAGS" 10150fi 10151 10152found="no" 10153 10154 if test $found = "no" ; then 10155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10157 fi 10158 10159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10161 fi 10162 10163 CFLAGS="$CFLAGS -Wreturn-type" 10164 10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10166printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10167 cacheid=xorg_cv_cc_flag__Wreturn_type 10168 if eval test \${$cacheid+y} 10169then : 10170 printf %s "(cached) " >&6 10171else case e in #( 10172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10173/* end confdefs.h. */ 10174int i; 10175int 10176main (void) 10177{ 10178 10179 ; 10180 return 0; 10181} 10182_ACEOF 10183if ac_fn_c_try_link "$LINENO" 10184then : 10185 eval $cacheid=yes 10186else case e in #( 10187 e) eval $cacheid=no ;; 10188esac 10189fi 10190rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10191 conftest$ac_exeext conftest.$ac_ext ;; 10192esac 10193fi 10194 10195 10196 CFLAGS="$xorg_testset_save_CFLAGS" 10197 10198 eval supported=\$$cacheid 10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10200printf "%s\n" "$supported" >&6; } 10201 if test "$supported" = "yes" ; then 10202 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10203 found="yes" 10204 fi 10205 fi 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221xorg_testset_save_CFLAGS="$CFLAGS" 10222 10223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10227if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10228then : 10229 printf %s "(cached) " >&6 10230else case e in #( 10231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10232/* end confdefs.h. */ 10233int i; 10234_ACEOF 10235if ac_fn_c_try_compile "$LINENO" 10236then : 10237 xorg_cv_cc_flag_unknown_warning_option=yes 10238else case e in #( 10239 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10240esac 10241fi 10242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10243esac 10244fi 10245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10246printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10248 CFLAGS="$xorg_testset_save_CFLAGS" 10249fi 10250 10251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10254 fi 10255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10257printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10258if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10259then : 10260 printf %s "(cached) " >&6 10261else case e in #( 10262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10263/* end confdefs.h. */ 10264int i; 10265_ACEOF 10266if ac_fn_c_try_compile "$LINENO" 10267then : 10268 xorg_cv_cc_flag_unused_command_line_argument=yes 10269else case e in #( 10270 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10271esac 10272fi 10273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10274esac 10275fi 10276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10279 CFLAGS="$xorg_testset_save_CFLAGS" 10280fi 10281 10282found="no" 10283 10284 if test $found = "no" ; then 10285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10287 fi 10288 10289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10291 fi 10292 10293 CFLAGS="$CFLAGS -Wtrigraphs" 10294 10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10296printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10297 cacheid=xorg_cv_cc_flag__Wtrigraphs 10298 if eval test \${$cacheid+y} 10299then : 10300 printf %s "(cached) " >&6 10301else case e in #( 10302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10303/* end confdefs.h. */ 10304int i; 10305int 10306main (void) 10307{ 10308 10309 ; 10310 return 0; 10311} 10312_ACEOF 10313if ac_fn_c_try_link "$LINENO" 10314then : 10315 eval $cacheid=yes 10316else case e in #( 10317 e) eval $cacheid=no ;; 10318esac 10319fi 10320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10321 conftest$ac_exeext conftest.$ac_ext ;; 10322esac 10323fi 10324 10325 10326 CFLAGS="$xorg_testset_save_CFLAGS" 10327 10328 eval supported=\$$cacheid 10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10330printf "%s\n" "$supported" >&6; } 10331 if test "$supported" = "yes" ; then 10332 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10333 found="yes" 10334 fi 10335 fi 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351xorg_testset_save_CFLAGS="$CFLAGS" 10352 10353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10356printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10357if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10358then : 10359 printf %s "(cached) " >&6 10360else case e in #( 10361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10362/* end confdefs.h. */ 10363int i; 10364_ACEOF 10365if ac_fn_c_try_compile "$LINENO" 10366then : 10367 xorg_cv_cc_flag_unknown_warning_option=yes 10368else case e in #( 10369 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10370esac 10371fi 10372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10373esac 10374fi 10375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10376printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10378 CFLAGS="$xorg_testset_save_CFLAGS" 10379fi 10380 10381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10384 fi 10385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10387printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10388if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10389then : 10390 printf %s "(cached) " >&6 10391else case e in #( 10392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10393/* end confdefs.h. */ 10394int i; 10395_ACEOF 10396if ac_fn_c_try_compile "$LINENO" 10397then : 10398 xorg_cv_cc_flag_unused_command_line_argument=yes 10399else case e in #( 10400 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10401esac 10402fi 10403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10404esac 10405fi 10406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10409 CFLAGS="$xorg_testset_save_CFLAGS" 10410fi 10411 10412found="no" 10413 10414 if test $found = "no" ; then 10415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10417 fi 10418 10419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10421 fi 10422 10423 CFLAGS="$CFLAGS -Warray-bounds" 10424 10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10426printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10427 cacheid=xorg_cv_cc_flag__Warray_bounds 10428 if eval test \${$cacheid+y} 10429then : 10430 printf %s "(cached) " >&6 10431else case e in #( 10432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10433/* end confdefs.h. */ 10434int i; 10435int 10436main (void) 10437{ 10438 10439 ; 10440 return 0; 10441} 10442_ACEOF 10443if ac_fn_c_try_link "$LINENO" 10444then : 10445 eval $cacheid=yes 10446else case e in #( 10447 e) eval $cacheid=no ;; 10448esac 10449fi 10450rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10451 conftest$ac_exeext conftest.$ac_ext ;; 10452esac 10453fi 10454 10455 10456 CFLAGS="$xorg_testset_save_CFLAGS" 10457 10458 eval supported=\$$cacheid 10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10460printf "%s\n" "$supported" >&6; } 10461 if test "$supported" = "yes" ; then 10462 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10463 found="yes" 10464 fi 10465 fi 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481xorg_testset_save_CFLAGS="$CFLAGS" 10482 10483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10487if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10488then : 10489 printf %s "(cached) " >&6 10490else case e in #( 10491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10492/* end confdefs.h. */ 10493int i; 10494_ACEOF 10495if ac_fn_c_try_compile "$LINENO" 10496then : 10497 xorg_cv_cc_flag_unknown_warning_option=yes 10498else case e in #( 10499 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10500esac 10501fi 10502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10503esac 10504fi 10505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10508 CFLAGS="$xorg_testset_save_CFLAGS" 10509fi 10510 10511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10514 fi 10515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10518if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10519then : 10520 printf %s "(cached) " >&6 10521else case e in #( 10522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10523/* end confdefs.h. */ 10524int i; 10525_ACEOF 10526if ac_fn_c_try_compile "$LINENO" 10527then : 10528 xorg_cv_cc_flag_unused_command_line_argument=yes 10529else case e in #( 10530 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10531esac 10532fi 10533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10534esac 10535fi 10536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10539 CFLAGS="$xorg_testset_save_CFLAGS" 10540fi 10541 10542found="no" 10543 10544 if test $found = "no" ; then 10545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10547 fi 10548 10549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10551 fi 10552 10553 CFLAGS="$CFLAGS -Wwrite-strings" 10554 10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10556printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10557 cacheid=xorg_cv_cc_flag__Wwrite_strings 10558 if eval test \${$cacheid+y} 10559then : 10560 printf %s "(cached) " >&6 10561else case e in #( 10562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10563/* end confdefs.h. */ 10564int i; 10565int 10566main (void) 10567{ 10568 10569 ; 10570 return 0; 10571} 10572_ACEOF 10573if ac_fn_c_try_link "$LINENO" 10574then : 10575 eval $cacheid=yes 10576else case e in #( 10577 e) eval $cacheid=no ;; 10578esac 10579fi 10580rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10581 conftest$ac_exeext conftest.$ac_ext ;; 10582esac 10583fi 10584 10585 10586 CFLAGS="$xorg_testset_save_CFLAGS" 10587 10588 eval supported=\$$cacheid 10589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10590printf "%s\n" "$supported" >&6; } 10591 if test "$supported" = "yes" ; then 10592 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10593 found="yes" 10594 fi 10595 fi 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611xorg_testset_save_CFLAGS="$CFLAGS" 10612 10613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10617if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10618then : 10619 printf %s "(cached) " >&6 10620else case e in #( 10621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10622/* end confdefs.h. */ 10623int i; 10624_ACEOF 10625if ac_fn_c_try_compile "$LINENO" 10626then : 10627 xorg_cv_cc_flag_unknown_warning_option=yes 10628else case e in #( 10629 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10630esac 10631fi 10632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10633esac 10634fi 10635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10638 CFLAGS="$xorg_testset_save_CFLAGS" 10639fi 10640 10641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10644 fi 10645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10649then : 10650 printf %s "(cached) " >&6 10651else case e in #( 10652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10653/* end confdefs.h. */ 10654int i; 10655_ACEOF 10656if ac_fn_c_try_compile "$LINENO" 10657then : 10658 xorg_cv_cc_flag_unused_command_line_argument=yes 10659else case e in #( 10660 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10661esac 10662fi 10663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10664esac 10665fi 10666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10667printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10669 CFLAGS="$xorg_testset_save_CFLAGS" 10670fi 10671 10672found="no" 10673 10674 if test $found = "no" ; then 10675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10677 fi 10678 10679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10681 fi 10682 10683 CFLAGS="$CFLAGS -Waddress" 10684 10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10686printf %s "checking if $CC supports -Waddress... " >&6; } 10687 cacheid=xorg_cv_cc_flag__Waddress 10688 if eval test \${$cacheid+y} 10689then : 10690 printf %s "(cached) " >&6 10691else case e in #( 10692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10693/* end confdefs.h. */ 10694int i; 10695int 10696main (void) 10697{ 10698 10699 ; 10700 return 0; 10701} 10702_ACEOF 10703if ac_fn_c_try_link "$LINENO" 10704then : 10705 eval $cacheid=yes 10706else case e in #( 10707 e) eval $cacheid=no ;; 10708esac 10709fi 10710rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10711 conftest$ac_exeext conftest.$ac_ext ;; 10712esac 10713fi 10714 10715 10716 CFLAGS="$xorg_testset_save_CFLAGS" 10717 10718 eval supported=\$$cacheid 10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10720printf "%s\n" "$supported" >&6; } 10721 if test "$supported" = "yes" ; then 10722 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10723 found="yes" 10724 fi 10725 fi 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741xorg_testset_save_CFLAGS="$CFLAGS" 10742 10743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10747if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10748then : 10749 printf %s "(cached) " >&6 10750else case e in #( 10751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10752/* end confdefs.h. */ 10753int i; 10754_ACEOF 10755if ac_fn_c_try_compile "$LINENO" 10756then : 10757 xorg_cv_cc_flag_unknown_warning_option=yes 10758else case e in #( 10759 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10760esac 10761fi 10762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10763esac 10764fi 10765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10768 CFLAGS="$xorg_testset_save_CFLAGS" 10769fi 10770 10771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10774 fi 10775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10778if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10779then : 10780 printf %s "(cached) " >&6 10781else case e in #( 10782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10783/* end confdefs.h. */ 10784int i; 10785_ACEOF 10786if ac_fn_c_try_compile "$LINENO" 10787then : 10788 xorg_cv_cc_flag_unused_command_line_argument=yes 10789else case e in #( 10790 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10791esac 10792fi 10793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10794esac 10795fi 10796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10799 CFLAGS="$xorg_testset_save_CFLAGS" 10800fi 10801 10802found="no" 10803 10804 if test $found = "no" ; then 10805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10807 fi 10808 10809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10811 fi 10812 10813 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10814 10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10816printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10817 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10818 if eval test \${$cacheid+y} 10819then : 10820 printf %s "(cached) " >&6 10821else case e in #( 10822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10823/* end confdefs.h. */ 10824int i; 10825int 10826main (void) 10827{ 10828 10829 ; 10830 return 0; 10831} 10832_ACEOF 10833if ac_fn_c_try_link "$LINENO" 10834then : 10835 eval $cacheid=yes 10836else case e in #( 10837 e) eval $cacheid=no ;; 10838esac 10839fi 10840rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10841 conftest$ac_exeext conftest.$ac_ext ;; 10842esac 10843fi 10844 10845 10846 CFLAGS="$xorg_testset_save_CFLAGS" 10847 10848 eval supported=\$$cacheid 10849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10850printf "%s\n" "$supported" >&6; } 10851 if test "$supported" = "yes" ; then 10852 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10853 found="yes" 10854 fi 10855 fi 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871xorg_testset_save_CFLAGS="$CFLAGS" 10872 10873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10877if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10878then : 10879 printf %s "(cached) " >&6 10880else case e in #( 10881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10882/* end confdefs.h. */ 10883int i; 10884_ACEOF 10885if ac_fn_c_try_compile "$LINENO" 10886then : 10887 xorg_cv_cc_flag_unknown_warning_option=yes 10888else case e in #( 10889 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10890esac 10891fi 10892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10893esac 10894fi 10895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10898 CFLAGS="$xorg_testset_save_CFLAGS" 10899fi 10900 10901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10904 fi 10905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10908if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10909then : 10910 printf %s "(cached) " >&6 10911else case e in #( 10912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913/* end confdefs.h. */ 10914int i; 10915_ACEOF 10916if ac_fn_c_try_compile "$LINENO" 10917then : 10918 xorg_cv_cc_flag_unused_command_line_argument=yes 10919else case e in #( 10920 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10921esac 10922fi 10923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10924esac 10925fi 10926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10927printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10929 CFLAGS="$xorg_testset_save_CFLAGS" 10930fi 10931 10932found="no" 10933 10934 if test $found = "no" ; then 10935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10937 fi 10938 10939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10941 fi 10942 10943 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10944 10945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10946printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10947 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10948 if eval test \${$cacheid+y} 10949then : 10950 printf %s "(cached) " >&6 10951else case e in #( 10952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10953/* end confdefs.h. */ 10954int i; 10955int 10956main (void) 10957{ 10958 10959 ; 10960 return 0; 10961} 10962_ACEOF 10963if ac_fn_c_try_link "$LINENO" 10964then : 10965 eval $cacheid=yes 10966else case e in #( 10967 e) eval $cacheid=no ;; 10968esac 10969fi 10970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10971 conftest$ac_exeext conftest.$ac_ext ;; 10972esac 10973fi 10974 10975 10976 CFLAGS="$xorg_testset_save_CFLAGS" 10977 10978 eval supported=\$$cacheid 10979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10980printf "%s\n" "$supported" >&6; } 10981 if test "$supported" = "yes" ; then 10982 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10983 found="yes" 10984 fi 10985 fi 10986 10987 10988fi 10989 10990 10991 10992 10993 10994 10995 10996 CWARNFLAGS="$BASE_CFLAGS" 10997 if test "x$GCC" = xyes ; then 10998 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10999 fi 11000 11001 11002 11003 11004 11005 11006 11007 11008# Check whether --enable-strict-compilation was given. 11009if test ${enable_strict_compilation+y} 11010then : 11011 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11012else case e in #( 11013 e) STRICT_COMPILE=no ;; 11014esac 11015fi 11016 11017 11018 11019 11020 11021 11022STRICT_CFLAGS="" 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036xorg_testset_save_CFLAGS="$CFLAGS" 11037 11038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11042if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11043then : 11044 printf %s "(cached) " >&6 11045else case e in #( 11046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11047/* end confdefs.h. */ 11048int i; 11049_ACEOF 11050if ac_fn_c_try_compile "$LINENO" 11051then : 11052 xorg_cv_cc_flag_unknown_warning_option=yes 11053else case e in #( 11054 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11055esac 11056fi 11057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11058esac 11059fi 11060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11061printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11063 CFLAGS="$xorg_testset_save_CFLAGS" 11064fi 11065 11066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11069 fi 11070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11072printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11073if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11074then : 11075 printf %s "(cached) " >&6 11076else case e in #( 11077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11078/* end confdefs.h. */ 11079int i; 11080_ACEOF 11081if ac_fn_c_try_compile "$LINENO" 11082then : 11083 xorg_cv_cc_flag_unused_command_line_argument=yes 11084else case e in #( 11085 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11086esac 11087fi 11088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11089esac 11090fi 11091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11092printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11094 CFLAGS="$xorg_testset_save_CFLAGS" 11095fi 11096 11097found="no" 11098 11099 if test $found = "no" ; then 11100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11102 fi 11103 11104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11106 fi 11107 11108 CFLAGS="$CFLAGS -pedantic" 11109 11110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11111printf %s "checking if $CC supports -pedantic... " >&6; } 11112 cacheid=xorg_cv_cc_flag__pedantic 11113 if eval test \${$cacheid+y} 11114then : 11115 printf %s "(cached) " >&6 11116else case e in #( 11117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11118/* end confdefs.h. */ 11119int i; 11120int 11121main (void) 11122{ 11123 11124 ; 11125 return 0; 11126} 11127_ACEOF 11128if ac_fn_c_try_link "$LINENO" 11129then : 11130 eval $cacheid=yes 11131else case e in #( 11132 e) eval $cacheid=no ;; 11133esac 11134fi 11135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11136 conftest$ac_exeext conftest.$ac_ext ;; 11137esac 11138fi 11139 11140 11141 CFLAGS="$xorg_testset_save_CFLAGS" 11142 11143 eval supported=\$$cacheid 11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11145printf "%s\n" "$supported" >&6; } 11146 if test "$supported" = "yes" ; then 11147 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11148 found="yes" 11149 fi 11150 fi 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166xorg_testset_save_CFLAGS="$CFLAGS" 11167 11168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11172if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11173then : 11174 printf %s "(cached) " >&6 11175else case e in #( 11176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11177/* end confdefs.h. */ 11178int i; 11179_ACEOF 11180if ac_fn_c_try_compile "$LINENO" 11181then : 11182 xorg_cv_cc_flag_unknown_warning_option=yes 11183else case e in #( 11184 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11185esac 11186fi 11187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11188esac 11189fi 11190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11191printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11193 CFLAGS="$xorg_testset_save_CFLAGS" 11194fi 11195 11196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11199 fi 11200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11202printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11203if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11204then : 11205 printf %s "(cached) " >&6 11206else case e in #( 11207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11208/* end confdefs.h. */ 11209int i; 11210_ACEOF 11211if ac_fn_c_try_compile "$LINENO" 11212then : 11213 xorg_cv_cc_flag_unused_command_line_argument=yes 11214else case e in #( 11215 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11216esac 11217fi 11218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11219esac 11220fi 11221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11224 CFLAGS="$xorg_testset_save_CFLAGS" 11225fi 11226 11227found="no" 11228 11229 if test $found = "no" ; then 11230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11232 fi 11233 11234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11236 fi 11237 11238 CFLAGS="$CFLAGS -Werror" 11239 11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11241printf %s "checking if $CC supports -Werror... " >&6; } 11242 cacheid=xorg_cv_cc_flag__Werror 11243 if eval test \${$cacheid+y} 11244then : 11245 printf %s "(cached) " >&6 11246else case e in #( 11247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11248/* end confdefs.h. */ 11249int i; 11250int 11251main (void) 11252{ 11253 11254 ; 11255 return 0; 11256} 11257_ACEOF 11258if ac_fn_c_try_link "$LINENO" 11259then : 11260 eval $cacheid=yes 11261else case e in #( 11262 e) eval $cacheid=no ;; 11263esac 11264fi 11265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11266 conftest$ac_exeext conftest.$ac_ext ;; 11267esac 11268fi 11269 11270 11271 CFLAGS="$xorg_testset_save_CFLAGS" 11272 11273 eval supported=\$$cacheid 11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11275printf "%s\n" "$supported" >&6; } 11276 if test "$supported" = "yes" ; then 11277 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11278 found="yes" 11279 fi 11280 fi 11281 11282 if test $found = "no" ; then 11283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11285 fi 11286 11287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11289 fi 11290 11291 CFLAGS="$CFLAGS -errwarn" 11292 11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11294printf %s "checking if $CC supports -errwarn... " >&6; } 11295 cacheid=xorg_cv_cc_flag__errwarn 11296 if eval test \${$cacheid+y} 11297then : 11298 printf %s "(cached) " >&6 11299else case e in #( 11300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11301/* end confdefs.h. */ 11302int i; 11303int 11304main (void) 11305{ 11306 11307 ; 11308 return 0; 11309} 11310_ACEOF 11311if ac_fn_c_try_link "$LINENO" 11312then : 11313 eval $cacheid=yes 11314else case e in #( 11315 e) eval $cacheid=no ;; 11316esac 11317fi 11318rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11319 conftest$ac_exeext conftest.$ac_ext ;; 11320esac 11321fi 11322 11323 11324 CFLAGS="$xorg_testset_save_CFLAGS" 11325 11326 eval supported=\$$cacheid 11327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11328printf "%s\n" "$supported" >&6; } 11329 if test "$supported" = "yes" ; then 11330 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11331 found="yes" 11332 fi 11333 fi 11334 11335 11336 11337# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11338# activate it with -Werror, so we add it here explicitly. 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352xorg_testset_save_CFLAGS="$CFLAGS" 11353 11354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11358if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11359then : 11360 printf %s "(cached) " >&6 11361else case e in #( 11362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11363/* end confdefs.h. */ 11364int i; 11365_ACEOF 11366if ac_fn_c_try_compile "$LINENO" 11367then : 11368 xorg_cv_cc_flag_unknown_warning_option=yes 11369else case e in #( 11370 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11371esac 11372fi 11373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11374esac 11375fi 11376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11379 CFLAGS="$xorg_testset_save_CFLAGS" 11380fi 11381 11382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11385 fi 11386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11389if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11390then : 11391 printf %s "(cached) " >&6 11392else case e in #( 11393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11394/* end confdefs.h. */ 11395int i; 11396_ACEOF 11397if ac_fn_c_try_compile "$LINENO" 11398then : 11399 xorg_cv_cc_flag_unused_command_line_argument=yes 11400else case e in #( 11401 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11402esac 11403fi 11404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11405esac 11406fi 11407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11410 CFLAGS="$xorg_testset_save_CFLAGS" 11411fi 11412 11413found="no" 11414 11415 if test $found = "no" ; then 11416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11418 fi 11419 11420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11422 fi 11423 11424 CFLAGS="$CFLAGS -Werror=attributes" 11425 11426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11427printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11428 cacheid=xorg_cv_cc_flag__Werror_attributes 11429 if eval test \${$cacheid+y} 11430then : 11431 printf %s "(cached) " >&6 11432else case e in #( 11433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11434/* end confdefs.h. */ 11435int i; 11436int 11437main (void) 11438{ 11439 11440 ; 11441 return 0; 11442} 11443_ACEOF 11444if ac_fn_c_try_link "$LINENO" 11445then : 11446 eval $cacheid=yes 11447else case e in #( 11448 e) eval $cacheid=no ;; 11449esac 11450fi 11451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11452 conftest$ac_exeext conftest.$ac_ext ;; 11453esac 11454fi 11455 11456 11457 CFLAGS="$xorg_testset_save_CFLAGS" 11458 11459 eval supported=\$$cacheid 11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11461printf "%s\n" "$supported" >&6; } 11462 if test "$supported" = "yes" ; then 11463 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11464 found="yes" 11465 fi 11466 fi 11467 11468 11469 11470if test "x$STRICT_COMPILE" = "xyes"; then 11471 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11472 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11473fi 11474 11475 11476 11477 11478 11479 11480 11481 11482cat >>confdefs.h <<_ACEOF 11483#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11484_ACEOF 11485 11486 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11487 if test "x$PVM" = "x"; then 11488 PVM="0" 11489 fi 11490 11491printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11492 11493 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11494 if test "x$PVP" = "x"; then 11495 PVP="0" 11496 fi 11497 11498printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11499 11500 11501 11502CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11503mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11504|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11505touch \$(top_srcdir)/ChangeLog; \ 11506echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11507 11508 11509 11510 11511macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11512INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11513mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11514|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11515touch \$(top_srcdir)/INSTALL; \ 11516echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11517 11518 11519 11520 11521 11522 11523case $host_os in 11524 solaris*) 11525 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11526 # check for a man page file found in later versions that use 11527 # traditional section numbers instead 11528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11529printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11530if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11531then : 11532 printf %s "(cached) " >&6 11533else case e in #( 11534 e) test "$cross_compiling" = yes && 11535 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11536if test -r "/usr/share/man/man7/attributes.7"; then 11537 ac_cv_file__usr_share_man_man7_attributes_7=yes 11538else 11539 ac_cv_file__usr_share_man_man7_attributes_7=no 11540fi ;; 11541esac 11542fi 11543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11544printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11545if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11546then : 11547 SYSV_MAN_SECTIONS=false 11548else case e in #( 11549 e) SYSV_MAN_SECTIONS=true ;; 11550esac 11551fi 11552 11553 ;; 11554 *) SYSV_MAN_SECTIONS=false ;; 11555esac 11556 11557if test x$APP_MAN_SUFFIX = x ; then 11558 APP_MAN_SUFFIX=1 11559fi 11560if test x$APP_MAN_DIR = x ; then 11561 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11562fi 11563 11564if test x$LIB_MAN_SUFFIX = x ; then 11565 LIB_MAN_SUFFIX=3 11566fi 11567if test x$LIB_MAN_DIR = x ; then 11568 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11569fi 11570 11571if test x$FILE_MAN_SUFFIX = x ; then 11572 case $SYSV_MAN_SECTIONS in 11573 true) FILE_MAN_SUFFIX=4 ;; 11574 *) FILE_MAN_SUFFIX=5 ;; 11575 esac 11576fi 11577if test x$FILE_MAN_DIR = x ; then 11578 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11579fi 11580 11581if test x$MISC_MAN_SUFFIX = x ; then 11582 case $SYSV_MAN_SECTIONS in 11583 true) MISC_MAN_SUFFIX=5 ;; 11584 *) MISC_MAN_SUFFIX=7 ;; 11585 esac 11586fi 11587if test x$MISC_MAN_DIR = x ; then 11588 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11589fi 11590 11591if test x$DRIVER_MAN_SUFFIX = x ; then 11592 case $SYSV_MAN_SECTIONS in 11593 true) DRIVER_MAN_SUFFIX=7 ;; 11594 *) DRIVER_MAN_SUFFIX=4 ;; 11595 esac 11596fi 11597if test x$DRIVER_MAN_DIR = x ; then 11598 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11599fi 11600 11601if test x$ADMIN_MAN_SUFFIX = x ; then 11602 case $SYSV_MAN_SECTIONS in 11603 true) ADMIN_MAN_SUFFIX=1m ;; 11604 *) ADMIN_MAN_SUFFIX=8 ;; 11605 esac 11606fi 11607if test x$ADMIN_MAN_DIR = x ; then 11608 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11609fi 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625XORG_MAN_PAGE="X Version 11" 11626 11627MAN_SUBSTS="\ 11628 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11629 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11630 -e 's|__xservername__|Xorg|g' \ 11631 -e 's|__xconfigfile__|xorg.conf|g' \ 11632 -e 's|__projectroot__|\$(prefix)|g' \ 11633 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11634 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11635 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11636 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11637 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11638 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11639 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11640 11641 11642 11643 11644AM_DEFAULT_VERBOSITY=0 11645 11646 11647 11648# Checks for library functions. 11649ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11650if test "x$ac_cv_func_asprintf" = xyes 11651then : 11652 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11653 11654fi 11655 11656 11657# Checks for typedefs, structures, and compiler characteristics. 11658# Check whether --enable-largefile was given. 11659if test ${enable_largefile+y} 11660then : 11661 enableval=$enable_largefile; 11662fi 11663if test "$enable_largefile,$enable_year2038" != no,no 11664then : 11665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11666printf %s "checking for $CC option to enable large file support... " >&6; } 11667if test ${ac_cv_sys_largefile_opts+y} 11668then : 11669 printf %s "(cached) " >&6 11670else case e in #( 11671 e) ac_save_CC="$CC" 11672 ac_opt_found=no 11673 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11674 if test x"$ac_opt" != x"none needed" 11675then : 11676 CC="$ac_save_CC $ac_opt" 11677fi 11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11679/* end confdefs.h. */ 11680#include <sys/types.h> 11681#ifndef FTYPE 11682# define FTYPE off_t 11683#endif 11684 /* Check that FTYPE can represent 2**63 - 1 correctly. 11685 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11686 since some C++ compilers masquerading as C compilers 11687 incorrectly reject 9223372036854775807. */ 11688#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11689 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11690 && LARGE_FTYPE % 2147483647 == 1) 11691 ? 1 : -1]; 11692int 11693main (void) 11694{ 11695 11696 ; 11697 return 0; 11698} 11699_ACEOF 11700if ac_fn_c_try_compile "$LINENO" 11701then : 11702 if test x"$ac_opt" = x"none needed" 11703then : 11704 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11705 CC="$CC -DFTYPE=ino_t" 11706 if ac_fn_c_try_compile "$LINENO" 11707then : 11708 11709else case e in #( 11710 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11711 if ac_fn_c_try_compile "$LINENO" 11712then : 11713 ac_opt='-D_FILE_OFFSET_BITS=64' 11714fi 11715rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11716esac 11717fi 11718rm -f core conftest.err conftest.$ac_objext conftest.beam 11719fi 11720 ac_cv_sys_largefile_opts=$ac_opt 11721 ac_opt_found=yes 11722fi 11723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11724 test $ac_opt_found = no || break 11725 done 11726 CC="$ac_save_CC" 11727 11728 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11729esac 11730fi 11731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11732printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11733 11734ac_have_largefile=yes 11735case $ac_cv_sys_largefile_opts in #( 11736 "none needed") : 11737 ;; #( 11738 "supported through gnulib") : 11739 ;; #( 11740 "support not detected") : 11741 ac_have_largefile=no ;; #( 11742 "-D_FILE_OFFSET_BITS=64") : 11743 11744printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11745 ;; #( 11746 "-D_LARGE_FILES=1") : 11747 11748printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11749 ;; #( 11750 "-n32") : 11751 CC="$CC -n32" ;; #( 11752 *) : 11753 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11754esac 11755 11756if test "$enable_year2038" != no 11757then : 11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11759printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11760if test ${ac_cv_sys_year2038_opts+y} 11761then : 11762 printf %s "(cached) " >&6 11763else case e in #( 11764 e) ac_save_CPPFLAGS="$CPPFLAGS" 11765 ac_opt_found=no 11766 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 11767 if test x"$ac_opt" != x"none needed" 11768then : 11769 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11770fi 11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11772/* end confdefs.h. */ 11773 11774 #include <time.h> 11775 /* Check that time_t can represent 2**32 - 1 correctly. */ 11776 #define LARGE_TIME_T \\ 11777 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11778 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11779 && LARGE_TIME_T % 65537 == 0) 11780 ? 1 : -1]; 11781 11782int 11783main (void) 11784{ 11785 11786 ; 11787 return 0; 11788} 11789_ACEOF 11790if ac_fn_c_try_compile "$LINENO" 11791then : 11792 ac_cv_sys_year2038_opts="$ac_opt" 11793 ac_opt_found=yes 11794fi 11795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11796 test $ac_opt_found = no || break 11797 done 11798 CPPFLAGS="$ac_save_CPPFLAGS" 11799 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11800esac 11801fi 11802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11803printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11804 11805ac_have_year2038=yes 11806case $ac_cv_sys_year2038_opts in #( 11807 "none needed") : 11808 ;; #( 11809 "support not detected") : 11810 ac_have_year2038=no ;; #( 11811 "-D_TIME_BITS=64") : 11812 11813printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11814 ;; #( 11815 "-D__MINGW_USE_VC2005_COMPAT") : 11816 11817printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11818 ;; #( 11819 "-U_USE_32_BIT_TIME_T"*) : 11820 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11821printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11822as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11823will stop working after mid-January 2038. Remove 11824_USE_32BIT_TIME_T from the compiler flags. 11825See 'config.log' for more details" "$LINENO" 5; } ;; #( 11826 *) : 11827 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11828esac 11829 11830fi 11831 11832fi 11833 11834# Checks for pkg-config packages 11835 11836pkg_failed=no 11837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBPRINT" >&5 11838printf %s "checking for XKBPRINT... " >&6; } 11839 11840if test -n "$XKBPRINT_CFLAGS"; then 11841 pkg_cv_XKBPRINT_CFLAGS="$XKBPRINT_CFLAGS" 11842 elif test -n "$PKG_CONFIG"; then 11843 if test -n "$PKG_CONFIG" && \ 11844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5 11845 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5 11846 ac_status=$? 11847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11848 test $ac_status = 0; }; then 11849 pkg_cv_XKBPRINT_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11 xproto >= 7.0.17" 2>/dev/null` 11850 test "x$?" != "x0" && pkg_failed=yes 11851else 11852 pkg_failed=yes 11853fi 11854 else 11855 pkg_failed=untried 11856fi 11857if test -n "$XKBPRINT_LIBS"; then 11858 pkg_cv_XKBPRINT_LIBS="$XKBPRINT_LIBS" 11859 elif test -n "$PKG_CONFIG"; then 11860 if test -n "$PKG_CONFIG" && \ 11861 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5 11862 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5 11863 ac_status=$? 11864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11865 test $ac_status = 0; }; then 11866 pkg_cv_XKBPRINT_LIBS=`$PKG_CONFIG --libs "xkbfile x11 xproto >= 7.0.17" 2>/dev/null` 11867 test "x$?" != "x0" && pkg_failed=yes 11868else 11869 pkg_failed=yes 11870fi 11871 else 11872 pkg_failed=untried 11873fi 11874 11875 11876 11877if test $pkg_failed = yes; then 11878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11879printf "%s\n" "no" >&6; } 11880 11881if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11882 _pkg_short_errors_supported=yes 11883else 11884 _pkg_short_errors_supported=no 11885fi 11886 if test $_pkg_short_errors_supported = yes; then 11887 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1` 11888 else 11889 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1` 11890 fi 11891 # Put the nasty error message in config.log where it belongs 11892 echo "$XKBPRINT_PKG_ERRORS" >&5 11893 11894 as_fn_error $? "Package requirements (xkbfile x11 xproto >= 7.0.17) were not met: 11895 11896$XKBPRINT_PKG_ERRORS 11897 11898Consider adjusting the PKG_CONFIG_PATH environment variable if you 11899installed software in a non-standard prefix. 11900 11901Alternatively, you may set the environment variables XKBPRINT_CFLAGS 11902and XKBPRINT_LIBS to avoid the need to call pkg-config. 11903See the pkg-config man page for more details." "$LINENO" 5 11904elif test $pkg_failed = untried; then 11905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11906printf "%s\n" "no" >&6; } 11907 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11908printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11909as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11910is in your PATH or set the PKG_CONFIG environment variable to the full 11911path to pkg-config. 11912 11913Alternatively, you may set the environment variables XKBPRINT_CFLAGS 11914and XKBPRINT_LIBS to avoid the need to call pkg-config. 11915See the pkg-config man page for more details. 11916 11917To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11918See 'config.log' for more details" "$LINENO" 5; } 11919else 11920 XKBPRINT_CFLAGS=$pkg_cv_XKBPRINT_CFLAGS 11921 XKBPRINT_LIBS=$pkg_cv_XKBPRINT_LIBS 11922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11923printf "%s\n" "yes" >&6; } 11924 11925fi 11926 11927ac_config_files="$ac_config_files Makefile man/Makefile" 11928 11929cat >confcache <<\_ACEOF 11930# This file is a shell script that caches the results of configure 11931# tests run on this system so they can be shared between configure 11932# scripts and configure runs, see configure's option --config-cache. 11933# It is not useful on other systems. If it contains results you don't 11934# want to keep, you may remove or edit it. 11935# 11936# config.status only pays attention to the cache file if you give it 11937# the --recheck option to rerun configure. 11938# 11939# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11940# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11941# following values. 11942 11943_ACEOF 11944 11945# The following way of writing the cache mishandles newlines in values, 11946# but we know of no workaround that is simple, portable, and efficient. 11947# So, we kill variables containing newlines. 11948# Ultrix sh set writes to stderr and can't be redirected directly, 11949# and sets the high bit in the cache file unless we assign to the vars. 11950( 11951 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11952 eval ac_val=\$$ac_var 11953 case $ac_val in #( 11954 *${as_nl}*) 11955 case $ac_var in #( 11956 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11957printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11958 esac 11959 case $ac_var in #( 11960 _ | IFS | as_nl) ;; #( 11961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11962 *) { eval $ac_var=; unset $ac_var;} ;; 11963 esac ;; 11964 esac 11965 done 11966 11967 (set) 2>&1 | 11968 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11969 *${as_nl}ac_space=\ *) 11970 # 'set' does not quote correctly, so add quotes: double-quote 11971 # substitution turns \\\\ into \\, and sed turns \\ into \. 11972 sed -n \ 11973 "s/'/'\\\\''/g; 11974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11975 ;; #( 11976 *) 11977 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11979 ;; 11980 esac | 11981 sort 11982) | 11983 sed ' 11984 /^ac_cv_env_/b end 11985 t clear 11986 :clear 11987 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11988 t end 11989 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11990 :end' >>confcache 11991if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11992 if test -w "$cache_file"; then 11993 if test "x$cache_file" != "x/dev/null"; then 11994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11995printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11996 if test ! -f "$cache_file" || test -h "$cache_file"; then 11997 cat confcache >"$cache_file" 11998 else 11999 case $cache_file in #( 12000 */* | ?:*) 12001 mv -f confcache "$cache_file"$$ && 12002 mv -f "$cache_file"$$ "$cache_file" ;; #( 12003 *) 12004 mv -f confcache "$cache_file" ;; 12005 esac 12006 fi 12007 fi 12008 else 12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12010printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12011 fi 12012fi 12013rm -f confcache 12014 12015test "x$prefix" = xNONE && prefix=$ac_default_prefix 12016# Let make expand exec_prefix. 12017test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12018 12019DEFS=-DHAVE_CONFIG_H 12020 12021ac_libobjs= 12022ac_ltlibobjs= 12023U= 12024for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12025 # 1. Remove the extension, and $U if already installed. 12026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12027 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12029 # will be set to the directory where LIBOBJS objects are built. 12030 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12031 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12032done 12033LIBOBJS=$ac_libobjs 12034 12035LTLIBOBJS=$ac_ltlibobjs 12036 12037 12038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12039printf %s "checking that generated files are newer than configure... " >&6; } 12040 if test -n "$am_sleep_pid"; then 12041 # Hide warnings about reused PIDs. 12042 wait $am_sleep_pid 2>/dev/null 12043 fi 12044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12045printf "%s\n" "done" >&6; } 12046if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12047 as_fn_error $? "conditional \"AMDEP\" was never defined. 12048Usually this means the macro was only invoked conditionally." "$LINENO" 5 12049fi 12050if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12051 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12052Usually this means the macro was only invoked conditionally." "$LINENO" 5 12053fi 12054case $enable_silent_rules in # ((( 12055 yes) AM_DEFAULT_VERBOSITY=0;; 12056 no) AM_DEFAULT_VERBOSITY=1;; 12057esac 12058if test $am_cv_make_support_nested_variables = yes; then 12059 AM_V='$(V)' 12060 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12061else 12062 AM_V=$AM_DEFAULT_VERBOSITY 12063 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12064fi 12065 12066 if test -n "$EXEEXT"; then 12067 am__EXEEXT_TRUE= 12068 am__EXEEXT_FALSE='#' 12069else 12070 am__EXEEXT_TRUE='#' 12071 am__EXEEXT_FALSE= 12072fi 12073 12074# Check whether --enable-year2038 was given. 12075if test ${enable_year2038+y} 12076then : 12077 enableval=$enable_year2038; 12078fi 12079 12080 12081: "${CONFIG_STATUS=./config.status}" 12082ac_write_fail=0 12083ac_clean_files_save=$ac_clean_files 12084ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12086printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12087as_write_fail=0 12088cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12089#! $SHELL 12090# Generated by $as_me. 12091# Run this file to recreate the current configuration. 12092# Compiler output produced by configure, useful for debugging 12093# configure, is in config.log if it exists. 12094 12095debug=false 12096ac_cs_recheck=false 12097ac_cs_silent=false 12098 12099SHELL=\${CONFIG_SHELL-$SHELL} 12100export SHELL 12101_ASEOF 12102cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12103## -------------------- ## 12104## M4sh Initialization. ## 12105## -------------------- ## 12106 12107# Be more Bourne compatible 12108DUALCASE=1; export DUALCASE # for MKS sh 12109if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12110then : 12111 emulate sh 12112 NULLCMD=: 12113 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12114 # is contrary to our usage. Disable this feature. 12115 alias -g '${1+"$@"}'='"$@"' 12116 setopt NO_GLOB_SUBST 12117else case e in #( 12118 e) case `(set -o) 2>/dev/null` in #( 12119 *posix*) : 12120 set -o posix ;; #( 12121 *) : 12122 ;; 12123esac ;; 12124esac 12125fi 12126 12127 12128 12129# Reset variables that may have inherited troublesome values from 12130# the environment. 12131 12132# IFS needs to be set, to space, tab, and newline, in precisely that order. 12133# (If _AS_PATH_WALK were called with IFS unset, it would have the 12134# side effect of setting IFS to empty, thus disabling word splitting.) 12135# Quoting is to prevent editors from complaining about space-tab. 12136as_nl=' 12137' 12138export as_nl 12139IFS=" "" $as_nl" 12140 12141PS1='$ ' 12142PS2='> ' 12143PS4='+ ' 12144 12145# Ensure predictable behavior from utilities with locale-dependent output. 12146LC_ALL=C 12147export LC_ALL 12148LANGUAGE=C 12149export LANGUAGE 12150 12151# We cannot yet rely on "unset" to work, but we need these variables 12152# to be unset--not just set to an empty or harmless value--now, to 12153# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12154# also avoids known problems related to "unset" and subshell syntax 12155# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12156for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12157do eval test \${$as_var+y} \ 12158 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12159done 12160 12161# Ensure that fds 0, 1, and 2 are open. 12162if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12163if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12164if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12165 12166# The user is always right. 12167if ${PATH_SEPARATOR+false} :; then 12168 PATH_SEPARATOR=: 12169 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12170 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12171 PATH_SEPARATOR=';' 12172 } 12173fi 12174 12175 12176# Find who we are. Look in the path if we contain no directory separator. 12177as_myself= 12178case $0 in #(( 12179 *[\\/]* ) as_myself=$0 ;; 12180 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12181for as_dir in $PATH 12182do 12183 IFS=$as_save_IFS 12184 case $as_dir in #((( 12185 '') as_dir=./ ;; 12186 */) ;; 12187 *) as_dir=$as_dir/ ;; 12188 esac 12189 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12190 done 12191IFS=$as_save_IFS 12192 12193 ;; 12194esac 12195# We did not find ourselves, most probably we were run as 'sh COMMAND' 12196# in which case we are not to be found in the path. 12197if test "x$as_myself" = x; then 12198 as_myself=$0 12199fi 12200if test ! -f "$as_myself"; then 12201 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12202 exit 1 12203fi 12204 12205 12206 12207# as_fn_error STATUS ERROR [LINENO LOG_FD] 12208# ---------------------------------------- 12209# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12210# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12211# script with STATUS, using 1 if that was 0. 12212as_fn_error () 12213{ 12214 as_status=$1; test $as_status -eq 0 && as_status=1 12215 if test "$4"; then 12216 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12218 fi 12219 printf "%s\n" "$as_me: error: $2" >&2 12220 as_fn_exit $as_status 12221} # as_fn_error 12222 12223 12224# as_fn_set_status STATUS 12225# ----------------------- 12226# Set $? to STATUS, without forking. 12227as_fn_set_status () 12228{ 12229 return $1 12230} # as_fn_set_status 12231 12232# as_fn_exit STATUS 12233# ----------------- 12234# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12235as_fn_exit () 12236{ 12237 set +e 12238 as_fn_set_status $1 12239 exit $1 12240} # as_fn_exit 12241 12242# as_fn_unset VAR 12243# --------------- 12244# Portably unset VAR. 12245as_fn_unset () 12246{ 12247 { eval $1=; unset $1;} 12248} 12249as_unset=as_fn_unset 12250 12251# as_fn_append VAR VALUE 12252# ---------------------- 12253# Append the text in VALUE to the end of the definition contained in VAR. Take 12254# advantage of any shell optimizations that allow amortized linear growth over 12255# repeated appends, instead of the typical quadratic growth present in naive 12256# implementations. 12257if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12258then : 12259 eval 'as_fn_append () 12260 { 12261 eval $1+=\$2 12262 }' 12263else case e in #( 12264 e) as_fn_append () 12265 { 12266 eval $1=\$$1\$2 12267 } ;; 12268esac 12269fi # as_fn_append 12270 12271# as_fn_arith ARG... 12272# ------------------ 12273# Perform arithmetic evaluation on the ARGs, and store the result in the 12274# global $as_val. Take advantage of shells that can avoid forks. The arguments 12275# must be portable across $(()) and expr. 12276if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12277then : 12278 eval 'as_fn_arith () 12279 { 12280 as_val=$(( $* )) 12281 }' 12282else case e in #( 12283 e) as_fn_arith () 12284 { 12285 as_val=`expr "$@" || test $? -eq 1` 12286 } ;; 12287esac 12288fi # as_fn_arith 12289 12290 12291if expr a : '\(a\)' >/dev/null 2>&1 && 12292 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12293 as_expr=expr 12294else 12295 as_expr=false 12296fi 12297 12298if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12299 as_basename=basename 12300else 12301 as_basename=false 12302fi 12303 12304if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12305 as_dirname=dirname 12306else 12307 as_dirname=false 12308fi 12309 12310as_me=`$as_basename -- "$0" || 12311$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12312 X"$0" : 'X\(//\)$' \| \ 12313 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12314printf "%s\n" X/"$0" | 12315 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12316 s//\1/ 12317 q 12318 } 12319 /^X\/\(\/\/\)$/{ 12320 s//\1/ 12321 q 12322 } 12323 /^X\/\(\/\).*/{ 12324 s//\1/ 12325 q 12326 } 12327 s/.*/./; q'` 12328 12329# Avoid depending upon Character Ranges. 12330as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12331as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12332as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12333as_cr_digits='0123456789' 12334as_cr_alnum=$as_cr_Letters$as_cr_digits 12335 12336 12337# Determine whether it's possible to make 'echo' print without a newline. 12338# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12339# for compatibility with existing Makefiles. 12340ECHO_C= ECHO_N= ECHO_T= 12341case `echo -n x` in #((((( 12342-n*) 12343 case `echo 'xy\c'` in 12344 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12345 xy) ECHO_C='\c';; 12346 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12347 ECHO_T=' ';; 12348 esac;; 12349*) 12350 ECHO_N='-n';; 12351esac 12352 12353# For backward compatibility with old third-party macros, we provide 12354# the shell variables $as_echo and $as_echo_n. New code should use 12355# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12356as_echo='printf %s\n' 12357as_echo_n='printf %s' 12358 12359rm -f conf$$ conf$$.exe conf$$.file 12360if test -d conf$$.dir; then 12361 rm -f conf$$.dir/conf$$.file 12362else 12363 rm -f conf$$.dir 12364 mkdir conf$$.dir 2>/dev/null 12365fi 12366if (echo >conf$$.file) 2>/dev/null; then 12367 if ln -s conf$$.file conf$$ 2>/dev/null; then 12368 as_ln_s='ln -s' 12369 # ... but there are two gotchas: 12370 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12371 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12372 # In both cases, we have to default to 'cp -pR'. 12373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12374 as_ln_s='cp -pR' 12375 elif ln conf$$.file conf$$ 2>/dev/null; then 12376 as_ln_s=ln 12377 else 12378 as_ln_s='cp -pR' 12379 fi 12380else 12381 as_ln_s='cp -pR' 12382fi 12383rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12384rmdir conf$$.dir 2>/dev/null 12385 12386 12387# as_fn_mkdir_p 12388# ------------- 12389# Create "$as_dir" as a directory, including parents if necessary. 12390as_fn_mkdir_p () 12391{ 12392 12393 case $as_dir in #( 12394 -*) as_dir=./$as_dir;; 12395 esac 12396 test -d "$as_dir" || eval $as_mkdir_p || { 12397 as_dirs= 12398 while :; do 12399 case $as_dir in #( 12400 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12401 *) as_qdir=$as_dir;; 12402 esac 12403 as_dirs="'$as_qdir' $as_dirs" 12404 as_dir=`$as_dirname -- "$as_dir" || 12405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12406 X"$as_dir" : 'X\(//\)[^/]' \| \ 12407 X"$as_dir" : 'X\(//\)$' \| \ 12408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12409printf "%s\n" X"$as_dir" | 12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12411 s//\1/ 12412 q 12413 } 12414 /^X\(\/\/\)[^/].*/{ 12415 s//\1/ 12416 q 12417 } 12418 /^X\(\/\/\)$/{ 12419 s//\1/ 12420 q 12421 } 12422 /^X\(\/\).*/{ 12423 s//\1/ 12424 q 12425 } 12426 s/.*/./; q'` 12427 test -d "$as_dir" && break 12428 done 12429 test -z "$as_dirs" || eval "mkdir $as_dirs" 12430 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12431 12432 12433} # as_fn_mkdir_p 12434if mkdir -p . 2>/dev/null; then 12435 as_mkdir_p='mkdir -p "$as_dir"' 12436else 12437 test -d ./-p && rmdir ./-p 12438 as_mkdir_p=false 12439fi 12440 12441 12442# as_fn_executable_p FILE 12443# ----------------------- 12444# Test if FILE is an executable regular file. 12445as_fn_executable_p () 12446{ 12447 test -f "$1" && test -x "$1" 12448} # as_fn_executable_p 12449as_test_x='test -x' 12450as_executable_p=as_fn_executable_p 12451 12452# Sed expression to map a string onto a valid CPP name. 12453as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12454as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12455 12456# Sed expression to map a string onto a valid variable name. 12457as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12458as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12459 12460 12461exec 6>&1 12462## ----------------------------------- ## 12463## Main body of $CONFIG_STATUS script. ## 12464## ----------------------------------- ## 12465_ASEOF 12466test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12467 12468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12469# Save the log message, to keep $0 and so on meaningful, and to 12470# report actual input values of CONFIG_FILES etc. instead of their 12471# values after options handling. 12472ac_log=" 12473This file was extended by xkbprint $as_me 1.0.7, which was 12474generated by GNU Autoconf 2.72. Invocation command line was 12475 12476 CONFIG_FILES = $CONFIG_FILES 12477 CONFIG_HEADERS = $CONFIG_HEADERS 12478 CONFIG_LINKS = $CONFIG_LINKS 12479 CONFIG_COMMANDS = $CONFIG_COMMANDS 12480 $ $0 $@ 12481 12482on `(hostname || uname -n) 2>/dev/null | sed 1q` 12483" 12484 12485_ACEOF 12486 12487case $ac_config_files in *" 12488"*) set x $ac_config_files; shift; ac_config_files=$*;; 12489esac 12490 12491case $ac_config_headers in *" 12492"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12493esac 12494 12495 12496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12497# Files that config.status was made for. 12498config_files="$ac_config_files" 12499config_headers="$ac_config_headers" 12500config_commands="$ac_config_commands" 12501 12502_ACEOF 12503 12504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12505ac_cs_usage="\ 12506'$as_me' instantiates files and other configuration actions 12507from templates according to the current configuration. Unless the files 12508and actions are specified as TAGs, all are instantiated by default. 12509 12510Usage: $0 [OPTION]... [TAG]... 12511 12512 -h, --help print this help, then exit 12513 -V, --version print version number and configuration settings, then exit 12514 --config print configuration, then exit 12515 -q, --quiet, --silent 12516 do not print progress messages 12517 -d, --debug don't remove temporary files 12518 --recheck update $as_me by reconfiguring in the same conditions 12519 --file=FILE[:TEMPLATE] 12520 instantiate the configuration file FILE 12521 --header=FILE[:TEMPLATE] 12522 instantiate the configuration header FILE 12523 12524Configuration files: 12525$config_files 12526 12527Configuration headers: 12528$config_headers 12529 12530Configuration commands: 12531$config_commands 12532 12533Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>." 12534 12535_ACEOF 12536ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12537ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12539ac_cs_config='$ac_cs_config_escaped' 12540ac_cs_version="\\ 12541xkbprint config.status 1.0.7 12542configured by $0, generated by GNU Autoconf 2.72, 12543 with options \\"\$ac_cs_config\\" 12544 12545Copyright (C) 2023 Free Software Foundation, Inc. 12546This config.status script is free software; the Free Software Foundation 12547gives unlimited permission to copy, distribute and modify it." 12548 12549ac_pwd='$ac_pwd' 12550srcdir='$srcdir' 12551INSTALL='$INSTALL' 12552MKDIR_P='$MKDIR_P' 12553AWK='$AWK' 12554test -n "\$AWK" || AWK=awk 12555_ACEOF 12556 12557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12558# The default lists apply if the user does not specify any file. 12559ac_need_defaults=: 12560while test $# != 0 12561do 12562 case $1 in 12563 --*=?*) 12564 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12565 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12566 ac_shift=: 12567 ;; 12568 --*=) 12569 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12570 ac_optarg= 12571 ac_shift=: 12572 ;; 12573 *) 12574 ac_option=$1 12575 ac_optarg=$2 12576 ac_shift=shift 12577 ;; 12578 esac 12579 12580 case $ac_option in 12581 # Handling of the options. 12582 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12583 ac_cs_recheck=: ;; 12584 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12585 printf "%s\n" "$ac_cs_version"; exit ;; 12586 --config | --confi | --conf | --con | --co | --c ) 12587 printf "%s\n" "$ac_cs_config"; exit ;; 12588 --debug | --debu | --deb | --de | --d | -d ) 12589 debug=: ;; 12590 --file | --fil | --fi | --f ) 12591 $ac_shift 12592 case $ac_optarg in 12593 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12594 '') as_fn_error $? "missing file argument" ;; 12595 esac 12596 as_fn_append CONFIG_FILES " '$ac_optarg'" 12597 ac_need_defaults=false;; 12598 --header | --heade | --head | --hea ) 12599 $ac_shift 12600 case $ac_optarg in 12601 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12602 esac 12603 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12604 ac_need_defaults=false;; 12605 --he | --h) 12606 # Conflict between --help and --header 12607 as_fn_error $? "ambiguous option: '$1' 12608Try '$0 --help' for more information.";; 12609 --help | --hel | -h ) 12610 printf "%s\n" "$ac_cs_usage"; exit ;; 12611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12612 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12613 ac_cs_silent=: ;; 12614 12615 # This is an error. 12616 -*) as_fn_error $? "unrecognized option: '$1' 12617Try '$0 --help' for more information." ;; 12618 12619 *) as_fn_append ac_config_targets " $1" 12620 ac_need_defaults=false ;; 12621 12622 esac 12623 shift 12624done 12625 12626ac_configure_extra_args= 12627 12628if $ac_cs_silent; then 12629 exec 6>/dev/null 12630 ac_configure_extra_args="$ac_configure_extra_args --silent" 12631fi 12632 12633_ACEOF 12634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12635if \$ac_cs_recheck; then 12636 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12637 shift 12638 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12639 CONFIG_SHELL='$SHELL' 12640 export CONFIG_SHELL 12641 exec "\$@" 12642fi 12643 12644_ACEOF 12645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12646exec 5>>config.log 12647{ 12648 echo 12649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12650## Running $as_me. ## 12651_ASBOX 12652 printf "%s\n" "$ac_log" 12653} >&5 12654 12655_ACEOF 12656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12657# 12658# INIT-COMMANDS 12659# 12660AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12661 12662_ACEOF 12663 12664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12665 12666# Handling of arguments. 12667for ac_config_target in $ac_config_targets 12668do 12669 case $ac_config_target in 12670 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12671 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12672 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12673 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12674 12675 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12676 esac 12677done 12678 12679 12680# If the user did not use the arguments to specify the items to instantiate, 12681# then the envvar interface is used. Set only those that are not. 12682# We use the long form for the default assignment because of an extremely 12683# bizarre bug on SunOS 4.1.3. 12684if $ac_need_defaults; then 12685 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12686 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12687 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12688fi 12689 12690# Have a temporary directory for convenience. Make it in the build tree 12691# simply because there is no reason against having it here, and in addition, 12692# creating and moving files from /tmp can sometimes cause problems. 12693# Hook for its removal unless debugging. 12694# Note that there is a small window in which the directory will not be cleaned: 12695# after its creation but before its name has been assigned to '$tmp'. 12696$debug || 12697{ 12698 tmp= ac_tmp= 12699 trap 'exit_status=$? 12700 : "${ac_tmp:=$tmp}" 12701 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12702' 0 12703 trap 'as_fn_exit 1' 1 2 13 15 12704} 12705# Create a (secure) tmp directory for tmp files. 12706 12707{ 12708 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12709 test -d "$tmp" 12710} || 12711{ 12712 tmp=./conf$$-$RANDOM 12713 (umask 077 && mkdir "$tmp") 12714} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12715ac_tmp=$tmp 12716 12717# Set up the scripts for CONFIG_FILES section. 12718# No need to generate them if there are no CONFIG_FILES. 12719# This happens for instance with './config.status config.h'. 12720if test -n "$CONFIG_FILES"; then 12721 12722 12723ac_cr=`echo X | tr X '\015'` 12724# On cygwin, bash can eat \r inside `` if the user requested igncr. 12725# But we know of no other shell where ac_cr would be empty at this 12726# point, so we can use a bashism as a fallback. 12727if test "x$ac_cr" = x; then 12728 eval ac_cr=\$\'\\r\' 12729fi 12730ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12731if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12732 ac_cs_awk_cr='\\r' 12733else 12734 ac_cs_awk_cr=$ac_cr 12735fi 12736 12737echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12738_ACEOF 12739 12740 12741{ 12742 echo "cat >conf$$subs.awk <<_ACEOF" && 12743 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12744 echo "_ACEOF" 12745} >conf$$subs.sh || 12746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12747ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12748ac_delim='%!_!# ' 12749for ac_last_try in false false false false false :; do 12750 . ./conf$$subs.sh || 12751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12752 12753 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12754 if test $ac_delim_n = $ac_delim_num; then 12755 break 12756 elif $ac_last_try; then 12757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12758 else 12759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12760 fi 12761done 12762rm -f conf$$subs.sh 12763 12764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12765cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12766_ACEOF 12767sed -n ' 12768h 12769s/^/S["/; s/!.*/"]=/ 12770p 12771g 12772s/^[^!]*!// 12773:repl 12774t repl 12775s/'"$ac_delim"'$// 12776t delim 12777:nl 12778h 12779s/\(.\{148\}\)..*/\1/ 12780t more1 12781s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12782p 12783n 12784b repl 12785:more1 12786s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12787p 12788g 12789s/.\{148\}// 12790t nl 12791:delim 12792h 12793s/\(.\{148\}\)..*/\1/ 12794t more2 12795s/["\\]/\\&/g; s/^/"/; s/$/"/ 12796p 12797b 12798:more2 12799s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12800p 12801g 12802s/.\{148\}// 12803t delim 12804' <conf$$subs.awk | sed ' 12805/^[^""]/{ 12806 N 12807 s/\n// 12808} 12809' >>$CONFIG_STATUS || ac_write_fail=1 12810rm -f conf$$subs.awk 12811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12812_ACAWK 12813cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12814 for (key in S) S_is_set[key] = 1 12815 FS = "" 12816 12817} 12818{ 12819 line = $ 0 12820 nfields = split(line, field, "@") 12821 substed = 0 12822 len = length(field[1]) 12823 for (i = 2; i < nfields; i++) { 12824 key = field[i] 12825 keylen = length(key) 12826 if (S_is_set[key]) { 12827 value = S[key] 12828 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12829 len += length(value) + length(field[++i]) 12830 substed = 1 12831 } else 12832 len += 1 + keylen 12833 } 12834 12835 print line 12836} 12837 12838_ACAWK 12839_ACEOF 12840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12841if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12842 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12843else 12844 cat 12845fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12846 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12847_ACEOF 12848 12849# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12850# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12851# trailing colons and then remove the whole line if VPATH becomes empty 12852# (actually we leave an empty line to preserve line numbers). 12853if test "x$srcdir" = x.; then 12854 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12855h 12856s/// 12857s/^/:/ 12858s/[ ]*$/:/ 12859s/:\$(srcdir):/:/g 12860s/:\${srcdir}:/:/g 12861s/:@srcdir@:/:/g 12862s/^:*// 12863s/:*$// 12864x 12865s/\(=[ ]*\).*/\1/ 12866G 12867s/\n// 12868s/^[^=]*=[ ]*$// 12869}' 12870fi 12871 12872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12873fi # test -n "$CONFIG_FILES" 12874 12875# Set up the scripts for CONFIG_HEADERS section. 12876# No need to generate them if there are no CONFIG_HEADERS. 12877# This happens for instance with './config.status Makefile'. 12878if test -n "$CONFIG_HEADERS"; then 12879cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12880BEGIN { 12881_ACEOF 12882 12883# Transform confdefs.h into an awk script 'defines.awk', embedded as 12884# here-document in config.status, that substitutes the proper values into 12885# config.h.in to produce config.h. 12886 12887# Create a delimiter string that does not exist in confdefs.h, to ease 12888# handling of long lines. 12889ac_delim='%!_!# ' 12890for ac_last_try in false false :; do 12891 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12892 if test -z "$ac_tt"; then 12893 break 12894 elif $ac_last_try; then 12895 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12896 else 12897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12898 fi 12899done 12900 12901# For the awk script, D is an array of macro values keyed by name, 12902# likewise P contains macro parameters if any. Preserve backslash 12903# newline sequences. 12904 12905ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12906sed -n ' 12907s/.\{148\}/&'"$ac_delim"'/g 12908t rset 12909:rset 12910s/^[ ]*#[ ]*define[ ][ ]*/ / 12911t def 12912d 12913:def 12914s/\\$// 12915t bsnl 12916s/["\\]/\\&/g 12917s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12918D["\1"]=" \3"/p 12919s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12920d 12921:bsnl 12922s/["\\]/\\&/g 12923s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12924D["\1"]=" \3\\\\\\n"\\/p 12925t cont 12926s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12927t cont 12928d 12929:cont 12930n 12931s/.\{148\}/&'"$ac_delim"'/g 12932t clear 12933:clear 12934s/\\$// 12935t bsnlc 12936s/["\\]/\\&/g; s/^/"/; s/$/"/p 12937d 12938:bsnlc 12939s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12940b cont 12941' <confdefs.h | sed ' 12942s/'"$ac_delim"'/"\\\ 12943"/g' >>$CONFIG_STATUS || ac_write_fail=1 12944 12945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12946 for (key in D) D_is_set[key] = 1 12947 FS = "" 12948} 12949/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12950 line = \$ 0 12951 split(line, arg, " ") 12952 if (arg[1] == "#") { 12953 defundef = arg[2] 12954 mac1 = arg[3] 12955 } else { 12956 defundef = substr(arg[1], 2) 12957 mac1 = arg[2] 12958 } 12959 split(mac1, mac2, "(") #) 12960 macro = mac2[1] 12961 prefix = substr(line, 1, index(line, defundef) - 1) 12962 if (D_is_set[macro]) { 12963 # Preserve the white space surrounding the "#". 12964 print prefix "define", macro P[macro] D[macro] 12965 next 12966 } else { 12967 # Replace #undef with comments. This is necessary, for example, 12968 # in the case of _POSIX_SOURCE, which is predefined and required 12969 # on some systems where configure will not decide to define it. 12970 if (defundef == "undef") { 12971 print "/*", prefix defundef, macro, "*/" 12972 next 12973 } 12974 } 12975} 12976{ print } 12977_ACAWK 12978_ACEOF 12979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12980 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12981fi # test -n "$CONFIG_HEADERS" 12982 12983 12984eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12985shift 12986for ac_tag 12987do 12988 case $ac_tag in 12989 :[FHLC]) ac_mode=$ac_tag; continue;; 12990 esac 12991 case $ac_mode$ac_tag in 12992 :[FHL]*:*);; 12993 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12994 :[FH]-) ac_tag=-:-;; 12995 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12996 esac 12997 ac_save_IFS=$IFS 12998 IFS=: 12999 set x $ac_tag 13000 IFS=$ac_save_IFS 13001 shift 13002 ac_file=$1 13003 shift 13004 13005 case $ac_mode in 13006 :L) ac_source=$1;; 13007 :[FH]) 13008 ac_file_inputs= 13009 for ac_f 13010 do 13011 case $ac_f in 13012 -) ac_f="$ac_tmp/stdin";; 13013 *) # Look for the file first in the build tree, then in the source tree 13014 # (if the path is not absolute). The absolute path cannot be DOS-style, 13015 # because $ac_f cannot contain ':'. 13016 test -f "$ac_f" || 13017 case $ac_f in 13018 [\\/$]*) false;; 13019 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13020 esac || 13021 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13022 esac 13023 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13024 as_fn_append ac_file_inputs " '$ac_f'" 13025 done 13026 13027 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13028 # use $as_me), people would be surprised to read: 13029 # /* config.h. Generated by config.status. */ 13030 configure_input='Generated from '` 13031 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13032 `' by configure.' 13033 if test x"$ac_file" != x-; then 13034 configure_input="$ac_file. $configure_input" 13035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13036printf "%s\n" "$as_me: creating $ac_file" >&6;} 13037 fi 13038 # Neutralize special characters interpreted by sed in replacement strings. 13039 case $configure_input in #( 13040 *\&* | *\|* | *\\* ) 13041 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13042 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13043 *) ac_sed_conf_input=$configure_input;; 13044 esac 13045 13046 case $ac_tag in 13047 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13049 esac 13050 ;; 13051 esac 13052 13053 ac_dir=`$as_dirname -- "$ac_file" || 13054$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13055 X"$ac_file" : 'X\(//\)[^/]' \| \ 13056 X"$ac_file" : 'X\(//\)$' \| \ 13057 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13058printf "%s\n" X"$ac_file" | 13059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13060 s//\1/ 13061 q 13062 } 13063 /^X\(\/\/\)[^/].*/{ 13064 s//\1/ 13065 q 13066 } 13067 /^X\(\/\/\)$/{ 13068 s//\1/ 13069 q 13070 } 13071 /^X\(\/\).*/{ 13072 s//\1/ 13073 q 13074 } 13075 s/.*/./; q'` 13076 as_dir="$ac_dir"; as_fn_mkdir_p 13077 ac_builddir=. 13078 13079case "$ac_dir" in 13080.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13081*) 13082 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13083 # A ".." for each directory in $ac_dir_suffix. 13084 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13085 case $ac_top_builddir_sub in 13086 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13087 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13088 esac ;; 13089esac 13090ac_abs_top_builddir=$ac_pwd 13091ac_abs_builddir=$ac_pwd$ac_dir_suffix 13092# for backward compatibility: 13093ac_top_builddir=$ac_top_build_prefix 13094 13095case $srcdir in 13096 .) # We are building in place. 13097 ac_srcdir=. 13098 ac_top_srcdir=$ac_top_builddir_sub 13099 ac_abs_top_srcdir=$ac_pwd ;; 13100 [\\/]* | ?:[\\/]* ) # Absolute name. 13101 ac_srcdir=$srcdir$ac_dir_suffix; 13102 ac_top_srcdir=$srcdir 13103 ac_abs_top_srcdir=$srcdir ;; 13104 *) # Relative name. 13105 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13106 ac_top_srcdir=$ac_top_build_prefix$srcdir 13107 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13108esac 13109ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13110 13111 13112 case $ac_mode in 13113 :F) 13114 # 13115 # CONFIG_FILE 13116 # 13117 13118 case $INSTALL in 13119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13120 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13121 esac 13122 ac_MKDIR_P=$MKDIR_P 13123 case $MKDIR_P in 13124 [\\/$]* | ?:[\\/]* ) ;; 13125 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13126 esac 13127_ACEOF 13128 13129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13130# If the template does not know about datarootdir, expand it. 13131# FIXME: This hack should be removed a few years after 2.60. 13132ac_datarootdir_hack=; ac_datarootdir_seen= 13133ac_sed_dataroot=' 13134/datarootdir/ { 13135 p 13136 q 13137} 13138/@datadir@/p 13139/@docdir@/p 13140/@infodir@/p 13141/@localedir@/p 13142/@mandir@/p' 13143case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13144*datarootdir*) ac_datarootdir_seen=yes;; 13145*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13147printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13148_ACEOF 13149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13150 ac_datarootdir_hack=' 13151 s&@datadir@&$datadir&g 13152 s&@docdir@&$docdir&g 13153 s&@infodir@&$infodir&g 13154 s&@localedir@&$localedir&g 13155 s&@mandir@&$mandir&g 13156 s&\\\${datarootdir}&$datarootdir&g' ;; 13157esac 13158_ACEOF 13159 13160# Neutralize VPATH when '$srcdir' = '.'. 13161# Shell code in configure.ac might set extrasub. 13162# FIXME: do we really want to maintain this feature? 13163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13164ac_sed_extra="$ac_vpsub 13165$extrasub 13166_ACEOF 13167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13168:t 13169/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13170s|@configure_input@|$ac_sed_conf_input|;t t 13171s&@top_builddir@&$ac_top_builddir_sub&;t t 13172s&@top_build_prefix@&$ac_top_build_prefix&;t t 13173s&@srcdir@&$ac_srcdir&;t t 13174s&@abs_srcdir@&$ac_abs_srcdir&;t t 13175s&@top_srcdir@&$ac_top_srcdir&;t t 13176s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13177s&@builddir@&$ac_builddir&;t t 13178s&@abs_builddir@&$ac_abs_builddir&;t t 13179s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13180s&@INSTALL@&$ac_INSTALL&;t t 13181s&@MKDIR_P@&$ac_MKDIR_P&;t t 13182$ac_datarootdir_hack 13183" 13184eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13185 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13186 13187test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13188 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13189 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13190 "$ac_tmp/out"`; test -z "$ac_out"; } && 13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13192which seems to be undefined. Please make sure it is defined" >&5 13193printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13194which seems to be undefined. Please make sure it is defined" >&2;} 13195 13196 rm -f "$ac_tmp/stdin" 13197 case $ac_file in 13198 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13199 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13200 esac \ 13201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13202 ;; 13203 :H) 13204 # 13205 # CONFIG_HEADER 13206 # 13207 if test x"$ac_file" != x-; then 13208 { 13209 printf "%s\n" "/* $configure_input */" >&1 \ 13210 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13211 } >"$ac_tmp/config.h" \ 13212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13213 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13215printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13216 else 13217 rm -f "$ac_file" 13218 mv "$ac_tmp/config.h" "$ac_file" \ 13219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13220 fi 13221 else 13222 printf "%s\n" "/* $configure_input */" >&1 \ 13223 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13224 || as_fn_error $? "could not create -" "$LINENO" 5 13225 fi 13226# Compute "$ac_file"'s index in $config_headers. 13227_am_arg="$ac_file" 13228_am_stamp_count=1 13229for _am_header in $config_headers :; do 13230 case $_am_header in 13231 $_am_arg | $_am_arg:* ) 13232 break ;; 13233 * ) 13234 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13235 esac 13236done 13237echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13238$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13239 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13240 X"$_am_arg" : 'X\(//\)$' \| \ 13241 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13242printf "%s\n" X"$_am_arg" | 13243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13244 s//\1/ 13245 q 13246 } 13247 /^X\(\/\/\)[^/].*/{ 13248 s//\1/ 13249 q 13250 } 13251 /^X\(\/\/\)$/{ 13252 s//\1/ 13253 q 13254 } 13255 /^X\(\/\).*/{ 13256 s//\1/ 13257 q 13258 } 13259 s/.*/./; q'`/stamp-h$_am_stamp_count 13260 ;; 13261 13262 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13263printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13264 ;; 13265 esac 13266 13267 13268 case $ac_file$ac_mode in 13269 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13270 # Older Autoconf quotes --file arguments for eval, but not when files 13271 # are listed without --file. Let's play safe and only enable the eval 13272 # if we detect the quoting. 13273 # TODO: see whether this extra hack can be removed once we start 13274 # requiring Autoconf 2.70 or later. 13275 case $CONFIG_FILES in #( 13276 *\'*) : 13277 eval set x "$CONFIG_FILES" ;; #( 13278 *) : 13279 set x $CONFIG_FILES ;; #( 13280 *) : 13281 ;; 13282esac 13283 shift 13284 # Used to flag and report bootstrapping failures. 13285 am_rc=0 13286 for am_mf 13287 do 13288 # Strip MF so we end up with the name of the file. 13289 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13290 # Check whether this is an Automake generated Makefile which includes 13291 # dependency-tracking related rules and includes. 13292 # Grep'ing the whole file directly is not great: AIX grep has a line 13293 # limit of 2048, but all sed's we know have understand at least 4000. 13294 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13295 || continue 13296 am_dirpart=`$as_dirname -- "$am_mf" || 13297$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13298 X"$am_mf" : 'X\(//\)[^/]' \| \ 13299 X"$am_mf" : 'X\(//\)$' \| \ 13300 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13301printf "%s\n" X"$am_mf" | 13302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13303 s//\1/ 13304 q 13305 } 13306 /^X\(\/\/\)[^/].*/{ 13307 s//\1/ 13308 q 13309 } 13310 /^X\(\/\/\)$/{ 13311 s//\1/ 13312 q 13313 } 13314 /^X\(\/\).*/{ 13315 s//\1/ 13316 q 13317 } 13318 s/.*/./; q'` 13319 am_filepart=`$as_basename -- "$am_mf" || 13320$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13321 X"$am_mf" : 'X\(//\)$' \| \ 13322 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13323printf "%s\n" X/"$am_mf" | 13324 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13325 s//\1/ 13326 q 13327 } 13328 /^X\/\(\/\/\)$/{ 13329 s//\1/ 13330 q 13331 } 13332 /^X\/\(\/\).*/{ 13333 s//\1/ 13334 q 13335 } 13336 s/.*/./; q'` 13337 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13338 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13339 | $MAKE -f - am--depfiles" >&5 13340 (cd "$am_dirpart" \ 13341 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13342 | $MAKE -f - am--depfiles) >&5 2>&5 13343 ac_status=$? 13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13345 (exit $ac_status); } || am_rc=$? 13346 done 13347 if test $am_rc -ne 0; then 13348 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13349printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13350as_fn_error $? "Something went wrong bootstrapping makefile fragments 13351 for automatic dependency tracking. If GNU make was not used, consider 13352 re-running the configure script with MAKE=\"gmake\" (or whatever is 13353 necessary). You can also try re-running configure with the 13354 '--disable-dependency-tracking' option to at least be able to build 13355 the package (albeit without support for automatic dependency tracking). 13356See 'config.log' for more details" "$LINENO" 5; } 13357 fi 13358 { am_dirpart=; unset am_dirpart;} 13359 { am_filepart=; unset am_filepart;} 13360 { am_mf=; unset am_mf;} 13361 { am_rc=; unset am_rc;} 13362 rm -f conftest-deps.mk 13363} 13364 ;; 13365 13366 esac 13367done # for ac_tag 13368 13369 13370as_fn_exit 0 13371_ACEOF 13372ac_clean_files=$ac_clean_files_save 13373 13374test $ac_write_fail = 0 || 13375 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13376 13377 13378# configure is writing to config.log, and then calls config.status. 13379# config.status does its own redirection, appending to config.log. 13380# Unfortunately, on DOS this fails, as config.log is still kept open 13381# by configure, so config.status won't be able to write to it; its 13382# output is simply discarded. So we exec the FD to /dev/null, 13383# effectively closing config.log, so it can be properly (re)opened and 13384# appended to by config.status. When coming back to configure, we 13385# need to make the FD available again. 13386if test "$no_create" != yes; then 13387 ac_cs_success=: 13388 ac_config_status_args= 13389 test "$silent" = yes && 13390 ac_config_status_args="$ac_config_status_args --quiet" 13391 exec 5>/dev/null 13392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13393 exec 5>>config.log 13394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13395 # would make configure fail if this is the last instruction. 13396 $ac_cs_success || as_fn_exit 1 13397fi 13398if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13400printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13401fi 13402 13403 13404