1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xev 1.2.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/-/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/xev/-/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='xev' 607PACKAGE_TARNAME='xev' 608PACKAGE_VERSION='1.2.6' 609PACKAGE_STRING='xev 1.2.6' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xev/-/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= 646ac_subst_vars='am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650XEV_LIBS 651XEV_CFLAGS 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666SED 667host_os 668host_vendor 669host_cpu 670host 671build_os 672build_vendor 673build_cpu 674build 675INSTALL_CMD 676PKG_CONFIG_LIBDIR 677PKG_CONFIG_PATH 678PKG_CONFIG 679CHANGELOG_CMD 680STRICT_CFLAGS 681CWARNFLAGS 682BASE_CFLAGS 683AM_BACKSLASH 684AM_DEFAULT_VERBOSITY 685AM_DEFAULT_V 686AM_V 687CSCOPE 688ETAGS 689CTAGS 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__include 698DEPDIR 699am__untar 700am__tar 701AMTAR 702am__leading_dot 703SET_MAKE 704AWK 705mkdir_p 706MKDIR_P 707INSTALL_STRIP_PROGRAM 708STRIP 709install_sh 710MAKEINFO 711AUTOHEADER 712AUTOMAKE 713AUTOCONF 714ACLOCAL 715VERSION 716PACKAGE 717CYGPATH_W 718am__isrc 719INSTALL_DATA 720INSTALL_SCRIPT 721INSTALL_PROGRAM 722OBJEXT 723EXEEXT 724ac_ct_CC 725CPPFLAGS 726LDFLAGS 727CFLAGS 728CC 729target_alias 730host_alias 731build_alias 732LIBS 733ECHO_T 734ECHO_N 735ECHO_C 736DEFS 737mandir 738localedir 739libdir 740psdir 741pdfdir 742dvidir 743htmldir 744infodir 745docdir 746oldincludedir 747includedir 748runstatedir 749localstatedir 750sharedstatedir 751sysconfdir 752datadir 753datarootdir 754libexecdir 755sbindir 756bindir 757program_transform_name 758prefix 759exec_prefix 760PACKAGE_URL 761PACKAGE_BUGREPORT 762PACKAGE_STRING 763PACKAGE_VERSION 764PACKAGE_TARNAME 765PACKAGE_NAME 766PATH_SEPARATOR 767SHELL 768am__quote' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_dependency_tracking 773enable_silent_rules 774enable_selective_werror 775enable_strict_compilation 776' 777 ac_precious_vars='build_alias 778host_alias 779target_alias 780CC 781CFLAGS 782LDFLAGS 783LIBS 784CPPFLAGS 785PKG_CONFIG 786PKG_CONFIG_PATH 787PKG_CONFIG_LIBDIR 788XEV_CFLAGS 789XEV_LIBS' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828runstatedir='${localstatedir}/run' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 case $ac_dashdash$ac_option in 859 --) 860 ac_dashdash=yes ;; 861 862 -bindir | --bindir | --bindi | --bind | --bin | --bi) 863 ac_prev=bindir ;; 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865 bindir=$ac_optarg ;; 866 867 -build | --build | --buil | --bui | --bu) 868 ac_prev=build_alias ;; 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870 build_alias=$ac_optarg ;; 871 872 -cache-file | --cache-file | --cache-fil | --cache-fi \ 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874 ac_prev=cache_file ;; 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877 cache_file=$ac_optarg ;; 878 879 --config-cache | -C) 880 cache_file=config.cache ;; 881 882 -datadir | --datadir | --datadi | --datad) 883 ac_prev=datadir ;; 884 -datadir=* | --datadir=* | --datadi=* | --datad=*) 885 datadir=$ac_optarg ;; 886 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888 | --dataroo | --dataro | --datar) 889 ac_prev=datarootdir ;; 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892 datarootdir=$ac_optarg ;; 893 894 -disable-* | --disable-*) 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896 # Reject names that are not valid shell variable names. 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 898 as_fn_error $? "invalid feature name: '$ac_useropt'" 899 ac_useropt_orig=$ac_useropt 900 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 901 case $ac_user_opts in 902 *" 903"enable_$ac_useropt" 904"*) ;; 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906 ac_unrecognized_sep=', ';; 907 esac 908 eval enable_$ac_useropt=no ;; 909 910 -docdir | --docdir | --docdi | --doc | --do) 911 ac_prev=docdir ;; 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913 docdir=$ac_optarg ;; 914 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916 ac_prev=dvidir ;; 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918 dvidir=$ac_optarg ;; 919 920 -enable-* | --enable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: '$ac_useropt'" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=\$ac_optarg ;; 935 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938 | --exec | --exe | --ex) 939 ac_prev=exec_prefix ;; 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942 | --exec=* | --exe=* | --ex=*) 943 exec_prefix=$ac_optarg ;; 944 945 -gas | --gas | --ga | --g) 946 # Obsolete; use --with-gas. 947 with_gas=yes ;; 948 949 -help | --help | --hel | --he | -h) 950 ac_init_help=long ;; 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952 ac_init_help=recursive ;; 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954 ac_init_help=short ;; 955 956 -host | --host | --hos | --ho) 957 ac_prev=host_alias ;; 958 -host=* | --host=* | --hos=* | --ho=*) 959 host_alias=$ac_optarg ;; 960 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962 ac_prev=htmldir ;; 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964 | --ht=*) 965 htmldir=$ac_optarg ;; 966 967 -includedir | --includedir | --includedi | --included | --include \ 968 | --includ | --inclu | --incl | --inc) 969 ac_prev=includedir ;; 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971 | --includ=* | --inclu=* | --incl=* | --inc=*) 972 includedir=$ac_optarg ;; 973 974 -infodir | --infodir | --infodi | --infod | --info | --inf) 975 ac_prev=infodir ;; 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977 infodir=$ac_optarg ;; 978 979 -libdir | --libdir | --libdi | --libd) 980 ac_prev=libdir ;; 981 -libdir=* | --libdir=* | --libdi=* | --libd=*) 982 libdir=$ac_optarg ;; 983 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985 | --libexe | --libex | --libe) 986 ac_prev=libexecdir ;; 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988 | --libexe=* | --libex=* | --libe=*) 989 libexecdir=$ac_optarg ;; 990 991 -localedir | --localedir | --localedi | --localed | --locale) 992 ac_prev=localedir ;; 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994 localedir=$ac_optarg ;; 995 996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 997 | --localstate | --localstat | --localsta | --localst | --locals) 998 ac_prev=localstatedir ;; 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001 localstatedir=$ac_optarg ;; 1002 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004 ac_prev=mandir ;; 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006 mandir=$ac_optarg ;; 1007 1008 -nfp | --nfp | --nf) 1009 # Obsolete; use --without-fp. 1010 with_fp=no ;; 1011 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013 | --no-cr | --no-c | -n) 1014 no_create=yes ;; 1015 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018 no_recursion=yes ;; 1019 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022 | --oldin | --oldi | --old | --ol | --o) 1023 ac_prev=oldincludedir ;; 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027 oldincludedir=$ac_optarg ;; 1028 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030 ac_prev=prefix ;; 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032 prefix=$ac_optarg ;; 1033 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035 | --program-pre | --program-pr | --program-p) 1036 ac_prev=program_prefix ;; 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039 program_prefix=$ac_optarg ;; 1040 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042 | --program-suf | --program-su | --program-s) 1043 ac_prev=program_suffix ;; 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046 program_suffix=$ac_optarg ;; 1047 1048 -program-transform-name | --program-transform-name \ 1049 | --program-transform-nam | --program-transform-na \ 1050 | --program-transform-n | --program-transform- \ 1051 | --program-transform | --program-transfor \ 1052 | --program-transfo | --program-transf \ 1053 | --program-trans | --program-tran \ 1054 | --progr-tra | --program-tr | --program-t) 1055 ac_prev=program_transform_name ;; 1056 -program-transform-name=* | --program-transform-name=* \ 1057 | --program-transform-nam=* | --program-transform-na=* \ 1058 | --program-transform-n=* | --program-transform-=* \ 1059 | --program-transform=* | --program-transfor=* \ 1060 | --program-transfo=* | --program-transf=* \ 1061 | --program-trans=* | --program-tran=* \ 1062 | --progr-tra=* | --program-tr=* | --program-t=*) 1063 program_transform_name=$ac_optarg ;; 1064 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066 ac_prev=pdfdir ;; 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068 pdfdir=$ac_optarg ;; 1069 1070 -psdir | --psdir | --psdi | --psd | --ps) 1071 ac_prev=psdir ;; 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073 psdir=$ac_optarg ;; 1074 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076 | -silent | --silent | --silen | --sile | --sil) 1077 silent=yes ;; 1078 1079 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1080 | --runstate | --runstat | --runsta | --runst | --runs \ 1081 | --run | --ru | --r) 1082 ac_prev=runstatedir ;; 1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1085 | --run=* | --ru=* | --r=*) 1086 runstatedir=$ac_optarg ;; 1087 1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1089 ac_prev=sbindir ;; 1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1091 | --sbi=* | --sb=*) 1092 sbindir=$ac_optarg ;; 1093 1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1096 | --sharedst | --shareds | --shared | --share | --shar \ 1097 | --sha | --sh) 1098 ac_prev=sharedstatedir ;; 1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1102 | --sha=* | --sh=*) 1103 sharedstatedir=$ac_optarg ;; 1104 1105 -site | --site | --sit) 1106 ac_prev=site ;; 1107 -site=* | --site=* | --sit=*) 1108 site=$ac_optarg ;; 1109 1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1111 ac_prev=srcdir ;; 1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1113 srcdir=$ac_optarg ;; 1114 1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1116 | --syscon | --sysco | --sysc | --sys | --sy) 1117 ac_prev=sysconfdir ;; 1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1120 sysconfdir=$ac_optarg ;; 1121 1122 -target | --target | --targe | --targ | --tar | --ta | --t) 1123 ac_prev=target_alias ;; 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1125 target_alias=$ac_optarg ;; 1126 1127 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1128 verbose=yes ;; 1129 1130 -version | --version | --versio | --versi | --vers | -V) 1131 ac_init_version=: ;; 1132 1133 -with-* | --with-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: '$ac_useropt'" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=\$ac_optarg ;; 1148 1149 -without-* | --without-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: '$ac_useropt'" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=no ;; 1164 1165 --x) 1166 # Obsolete; use --with-x. 1167 with_x=yes ;; 1168 1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1170 | --x-incl | --x-inc | --x-in | --x-i) 1171 ac_prev=x_includes ;; 1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1174 x_includes=$ac_optarg ;; 1175 1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1178 ac_prev=x_libraries ;; 1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1181 x_libraries=$ac_optarg ;; 1182 1183 -*) as_fn_error $? "unrecognized option: '$ac_option' 1184Try '$0 --help' for more information" 1185 ;; 1186 1187 *=*) 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189 # Reject names that are not valid shell variable names. 1190 case $ac_envvar in #( 1191 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1192 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1193 esac 1194 eval $ac_envvar=\$ac_optarg 1195 export $ac_envvar ;; 1196 1197 *) 1198 # FIXME: should be removed in autoconf 3.0. 1199 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1201 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1203 ;; 1204 1205 esac 1206done 1207 1208if test -n "$ac_prev"; then 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1210 as_fn_error $? "missing argument to $ac_option" 1211fi 1212 1213if test -n "$ac_unrecognized_opts"; then 1214 case $enable_option_checking in 1215 no) ;; 1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1217 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1218 esac 1219fi 1220 1221# Check all directory arguments for consistency. 1222for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1223 datadir sysconfdir sharedstatedir localstatedir includedir \ 1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1225 libdir localedir mandir runstatedir 1226do 1227 eval ac_val=\$$ac_var 1228 # Remove trailing slashes. 1229 case $ac_val in 1230 */ ) 1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1232 eval $ac_var=\$ac_val;; 1233 esac 1234 # Be sure to have absolute directory names. 1235 case $ac_val in 1236 [\\/$]* | ?:[\\/]* ) continue;; 1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1238 esac 1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1240done 1241 1242# There might be people who depend on the old broken behavior: '$host' 1243# used to hold the argument of --host etc. 1244# FIXME: To remove some day. 1245build=$build_alias 1246host=$host_alias 1247target=$target_alias 1248 1249# FIXME: To remove some day. 1250if test "x$host_alias" != x; then 1251 if test "x$build_alias" = x; then 1252 cross_compiling=maybe 1253 elif test "x$build_alias" != "x$host_alias"; then 1254 cross_compiling=yes 1255 fi 1256fi 1257 1258ac_tool_prefix= 1259test -n "$host_alias" && ac_tool_prefix=$host_alias- 1260 1261test "$silent" = yes && exec 6>/dev/null 1262 1263 1264ac_pwd=`pwd` && test -n "$ac_pwd" && 1265ac_ls_di=`ls -di .` && 1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1267 as_fn_error $? "working directory cannot be determined" 1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1269 as_fn_error $? "pwd does not report name of working directory" 1270 1271 1272# Find the source files, if location was not specified. 1273if test -z "$srcdir"; then 1274 ac_srcdir_defaulted=yes 1275 # Try the directory containing this script, then the parent directory. 1276 ac_confdir=`$as_dirname -- "$as_myself" || 1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1278 X"$as_myself" : 'X\(//\)[^/]' \| \ 1279 X"$as_myself" : 'X\(//\)$' \| \ 1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1281printf "%s\n" X"$as_myself" | 1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)[^/].*/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\).*/{ 1295 s//\1/ 1296 q 1297 } 1298 s/.*/./; q'` 1299 srcdir=$ac_confdir 1300 if test ! -r "$srcdir/$ac_unique_file"; then 1301 srcdir=.. 1302 fi 1303else 1304 ac_srcdir_defaulted=no 1305fi 1306if test ! -r "$srcdir/$ac_unique_file"; then 1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1309fi 1310ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1311ac_abs_confdir=`( 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1313 pwd)` 1314# When building in place, set srcdir=. 1315if test "$ac_abs_confdir" = "$ac_pwd"; then 1316 srcdir=. 1317fi 1318# Remove unnecessary trailing slashes from srcdir. 1319# Double slashes in file names in object file debugging info 1320# mess up M-x gdb in Emacs. 1321case $srcdir in 1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323esac 1324for ac_var in $ac_precious_vars; do 1325 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_env_${ac_var}_value=\$${ac_var} 1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329done 1330 1331# 1332# Report the --help message. 1333# 1334if test "$ac_init_help" = "long"; then 1335 # Omit some internal or obsolete options to make the list less imposing. 1336 # This message is too long to be a string in the A/UX 3.1 sh. 1337 cat <<_ACEOF 1338'configure' configures xev 1.2.6 to adapt to many kinds of systems. 1339 1340Usage: $0 [OPTION]... [VAR=VALUE]... 1341 1342To assign environment variables (e.g., CC, CFLAGS...), specify them as 1343VAR=VALUE. See below for descriptions of some of the useful variables. 1344 1345Defaults for the options are specified in brackets. 1346 1347Configuration: 1348 -h, --help display this help and exit 1349 --help=short display options specific to this package 1350 --help=recursive display the short help of all the included packages 1351 -V, --version display version information and exit 1352 -q, --quiet, --silent do not print 'checking ...' messages 1353 --cache-file=FILE cache test results in FILE [disabled] 1354 -C, --config-cache alias for '--cache-file=config.cache' 1355 -n, --no-create do not create output files 1356 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1357 1358Installation directories: 1359 --prefix=PREFIX install architecture-independent files in PREFIX 1360 [$ac_default_prefix] 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362 [PREFIX] 1363 1364By default, 'make install' will install all the files in 1365'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1366an installation prefix other than '$ac_default_prefix' using '--prefix', 1367for instance '--prefix=\$HOME'. 1368 1369For better control, use the options below. 1370 1371Fine tuning of the installation directories: 1372 --bindir=DIR user executables [EPREFIX/bin] 1373 --sbindir=DIR system admin executables [EPREFIX/sbin] 1374 --libexecdir=DIR program executables [EPREFIX/libexec] 1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root [DATAROOTDIR/doc/xev] 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392_ACEOF 1393 1394 cat <<\_ACEOF 1395 1396Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401System types: 1402 --build=BUILD configure for building on BUILD [guessed] 1403 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1404_ACEOF 1405fi 1406 1407if test -n "$ac_init_help"; then 1408 case $ac_init_help in 1409 short | recursive ) echo "Configuration of xev 1.2.6:";; 1410 esac 1411 cat <<\_ACEOF 1412 1413Optional Features: 1414 --disable-option-checking ignore unrecognized --enable/--with options 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1417 --enable-dependency-tracking 1418 do not reject slow dependency extractors 1419 --disable-dependency-tracking 1420 speeds up one-time build 1421 --enable-silent-rules less verbose build output (undo: "make V=1") 1422 --disable-silent-rules verbose build output (undo: "make V=0") 1423 --disable-selective-werror 1424 Turn off selective compiler errors. (default: 1425 enabled) 1426 --enable-strict-compilation 1427 Enable all warnings from compiler and make them 1428 errors (default: disabled) 1429 1430Some influential environment variables: 1431 CC C compiler command 1432 CFLAGS C compiler flags 1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1434 nonstandard directory <lib dir> 1435 LIBS libraries to pass to the linker, e.g. -l<library> 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1437 you have headers in a nonstandard directory <include dir> 1438 PKG_CONFIG path to pkg-config utility 1439 PKG_CONFIG_PATH 1440 directories to add to pkg-config's search path 1441 PKG_CONFIG_LIBDIR 1442 path overriding pkg-config's built-in search path 1443 XEV_CFLAGS C compiler flags for XEV, overriding pkg-config 1444 XEV_LIBS linker flags for XEV, overriding pkg-config 1445 1446Use these variables to override the choices made by 'configure' or to help 1447it to find libraries and programs with nonstandard names/locations. 1448 1449Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/-/issues>. 1450_ACEOF 1451ac_status=$? 1452fi 1453 1454if test "$ac_init_help" = "recursive"; then 1455 # If there are subdirs, report their specific --help. 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1457 test -d "$ac_dir" || 1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1459 continue 1460 ac_builddir=. 1461 1462case "$ac_dir" in 1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464*) 1465 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1466 # A ".." for each directory in $ac_dir_suffix. 1467 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1468 case $ac_top_builddir_sub in 1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1471 esac ;; 1472esac 1473ac_abs_top_builddir=$ac_pwd 1474ac_abs_builddir=$ac_pwd$ac_dir_suffix 1475# for backward compatibility: 1476ac_top_builddir=$ac_top_build_prefix 1477 1478case $srcdir in 1479 .) # We are building in place. 1480 ac_srcdir=. 1481 ac_top_srcdir=$ac_top_builddir_sub 1482 ac_abs_top_srcdir=$ac_pwd ;; 1483 [\\/]* | ?:[\\/]* ) # Absolute name. 1484 ac_srcdir=$srcdir$ac_dir_suffix; 1485 ac_top_srcdir=$srcdir 1486 ac_abs_top_srcdir=$srcdir ;; 1487 *) # Relative name. 1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1489 ac_top_srcdir=$ac_top_build_prefix$srcdir 1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1491esac 1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1493 1494 cd "$ac_dir" || { ac_status=$?; continue; } 1495 # Check for configure.gnu first; this name is used for a wrapper for 1496 # Metaconfig's "Configure" on case-insensitive file systems. 1497 if test -f "$ac_srcdir/configure.gnu"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1500 elif test -f "$ac_srcdir/configure"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure" --help=recursive 1503 else 1504 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1505 fi || ac_status=$? 1506 cd "$ac_pwd" || { ac_status=$?; break; } 1507 done 1508fi 1509 1510test -n "$ac_init_help" && exit $ac_status 1511if $ac_init_version; then 1512 cat <<\_ACEOF 1513xev configure 1.2.6 1514generated by GNU Autoconf 2.72 1515 1516Copyright (C) 2023 Free Software Foundation, Inc. 1517This configure script is free software; the Free Software Foundation 1518gives unlimited permission to copy, distribute and modify it. 1519_ACEOF 1520 exit 1521fi 1522 1523## ------------------------ ## 1524## Autoconf initialization. ## 1525## ------------------------ ## 1526 1527# ac_fn_c_try_compile LINENO 1528# -------------------------- 1529# Try to compile conftest.$ac_ext, and return whether this succeeded. 1530ac_fn_c_try_compile () 1531{ 1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1533 rm -f conftest.$ac_objext conftest.beam 1534 if { { ac_try="$ac_compile" 1535case "(($ac_try" in 1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1537 *) ac_try_echo=$ac_try;; 1538esac 1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1540printf "%s\n" "$ac_try_echo"; } >&5 1541 (eval "$ac_compile") 2>conftest.err 1542 ac_status=$? 1543 if test -s conftest.err; then 1544 grep -v '^ *+' conftest.err >conftest.er1 1545 cat conftest.er1 >&5 1546 mv -f conftest.er1 conftest.err 1547 fi 1548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1549 test $ac_status = 0; } && { 1550 test -z "$ac_c_werror_flag" || 1551 test ! -s conftest.err 1552 } && test -s conftest.$ac_objext 1553then : 1554 ac_retval=0 1555else case e in #( 1556 e) printf "%s\n" "$as_me: failed program was:" >&5 1557sed 's/^/| /' conftest.$ac_ext >&5 1558 1559 ac_retval=1 ;; 1560esac 1561fi 1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1563 as_fn_set_status $ac_retval 1564 1565} # ac_fn_c_try_compile 1566 1567# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1568# ------------------------------------------------------- 1569# Tests whether HEADER exists and can be compiled using the include files in 1570# INCLUDES, setting the cache variable VAR accordingly. 1571ac_fn_c_check_header_compile () 1572{ 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1575printf %s "checking for $2... " >&6; } 1576if eval test \${$3+y} 1577then : 1578 printf %s "(cached) " >&6 1579else case e in #( 1580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1581/* end confdefs.h. */ 1582$4 1583#include <$2> 1584_ACEOF 1585if ac_fn_c_try_compile "$LINENO" 1586then : 1587 eval "$3=yes" 1588else case e in #( 1589 e) eval "$3=no" ;; 1590esac 1591fi 1592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1593esac 1594fi 1595eval ac_res=\$$3 1596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1597printf "%s\n" "$ac_res" >&6; } 1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1599 1600} # ac_fn_c_check_header_compile 1601 1602# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1603# ------------------------------------------------------------------ 1604# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1605# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1606ac_fn_check_decl () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 as_decl_name=`echo $2|sed 's/ *(.*//'` 1610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1611printf %s "checking whether $as_decl_name is declared... " >&6; } 1612if eval test \${$3+y} 1613then : 1614 printf %s "(cached) " >&6 1615else case e in #( 1616 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1617 eval ac_save_FLAGS=\$$6 1618 as_fn_append $6 " $5" 1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1620/* end confdefs.h. */ 1621$4 1622int 1623main (void) 1624{ 1625#ifndef $as_decl_name 1626#ifdef __cplusplus 1627 (void) $as_decl_use; 1628#else 1629 (void) $as_decl_name; 1630#endif 1631#endif 1632 1633 ; 1634 return 0; 1635} 1636_ACEOF 1637if ac_fn_c_try_compile "$LINENO" 1638then : 1639 eval "$3=yes" 1640else case e in #( 1641 e) eval "$3=no" ;; 1642esac 1643fi 1644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1645 eval $6=\$ac_save_FLAGS 1646 ;; 1647esac 1648fi 1649eval ac_res=\$$3 1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1651printf "%s\n" "$ac_res" >&6; } 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 1654} # ac_fn_check_decl 1655 1656# ac_fn_c_try_link LINENO 1657# ----------------------- 1658# Try to link conftest.$ac_ext, and return whether this succeeded. 1659ac_fn_c_try_link () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1663 if { { ac_try="$ac_link" 1664case "(($ac_try" in 1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1666 *) ac_try_echo=$ac_try;; 1667esac 1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1669printf "%s\n" "$ac_try_echo"; } >&5 1670 (eval "$ac_link") 2>conftest.err 1671 ac_status=$? 1672 if test -s conftest.err; then 1673 grep -v '^ *+' conftest.err >conftest.er1 1674 cat conftest.er1 >&5 1675 mv -f conftest.er1 conftest.err 1676 fi 1677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1678 test $ac_status = 0; } && { 1679 test -z "$ac_c_werror_flag" || 1680 test ! -s conftest.err 1681 } && test -s conftest$ac_exeext && { 1682 test "$cross_compiling" = yes || 1683 test -x conftest$ac_exeext 1684 } 1685then : 1686 ac_retval=0 1687else case e in #( 1688 e) printf "%s\n" "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=1 ;; 1692esac 1693fi 1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1696 # interfere with the next link command; also delete a directory that is 1697 # left behind by Apple's compiler. We do this before executing the actions. 1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 as_fn_set_status $ac_retval 1701 1702} # ac_fn_c_try_link 1703ac_configure_args_raw= 1704for ac_arg 1705do 1706 case $ac_arg in 1707 *\'*) 1708 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1709 esac 1710 as_fn_append ac_configure_args_raw " '$ac_arg'" 1711done 1712 1713case $ac_configure_args_raw in 1714 *$as_nl*) 1715 ac_safe_unquote= ;; 1716 *) 1717 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1718 ac_unsafe_a="$ac_unsafe_z#~" 1719 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1720 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1721esac 1722 1723cat >config.log <<_ACEOF 1724This file contains any messages produced by compilers while 1725running configure, to aid debugging if configure makes a mistake. 1726 1727It was created by xev $as_me 1.2.6, which was 1728generated by GNU Autoconf 2.72. Invocation command line was 1729 1730 $ $0$ac_configure_args_raw 1731 1732_ACEOF 1733exec 5>>config.log 1734{ 1735cat <<_ASUNAME 1736## --------- ## 1737## Platform. ## 1738## --------- ## 1739 1740hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1741uname -m = `(uname -m) 2>/dev/null || echo unknown` 1742uname -r = `(uname -r) 2>/dev/null || echo unknown` 1743uname -s = `(uname -s) 2>/dev/null || echo unknown` 1744uname -v = `(uname -v) 2>/dev/null || echo unknown` 1745 1746/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1747/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1748 1749/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1750/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1751/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1752/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1753/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1754/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1755/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1756 1757_ASUNAME 1758 1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1760for as_dir in $PATH 1761do 1762 IFS=$as_save_IFS 1763 case $as_dir in #((( 1764 '') as_dir=./ ;; 1765 */) ;; 1766 *) as_dir=$as_dir/ ;; 1767 esac 1768 printf "%s\n" "PATH: $as_dir" 1769 done 1770IFS=$as_save_IFS 1771 1772} >&5 1773 1774cat >&5 <<_ACEOF 1775 1776 1777## ----------- ## 1778## Core tests. ## 1779## ----------- ## 1780 1781_ACEOF 1782 1783 1784# Keep a trace of the command line. 1785# Strip out --no-create and --no-recursion so they do not pile up. 1786# Strip out --silent because we don't want to record it for future runs. 1787# Also quote any args containing shell meta-characters. 1788# Make two passes to allow for proper duplicate-argument suppression. 1789ac_configure_args= 1790ac_configure_args0= 1791ac_configure_args1= 1792ac_must_keep_next=false 1793for ac_pass in 1 2 1794do 1795 for ac_arg 1796 do 1797 case $ac_arg in 1798 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1800 | -silent | --silent | --silen | --sile | --sil) 1801 continue ;; 1802 *\'*) 1803 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1804 esac 1805 case $ac_pass in 1806 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1807 2) 1808 as_fn_append ac_configure_args1 " '$ac_arg'" 1809 if test $ac_must_keep_next = true; then 1810 ac_must_keep_next=false # Got value, back to normal. 1811 else 1812 case $ac_arg in 1813 *=* | --config-cache | -C | -disable-* | --disable-* \ 1814 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1815 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1816 | -with-* | --with-* | -without-* | --without-* | --x) 1817 case "$ac_configure_args0 " in 1818 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1819 esac 1820 ;; 1821 -* ) ac_must_keep_next=true ;; 1822 esac 1823 fi 1824 as_fn_append ac_configure_args " '$ac_arg'" 1825 ;; 1826 esac 1827 done 1828done 1829{ ac_configure_args0=; unset ac_configure_args0;} 1830{ ac_configure_args1=; unset ac_configure_args1;} 1831 1832# When interrupted or exit'd, cleanup temporary files, and complete 1833# config.log. We remove comments because anyway the quotes in there 1834# would cause problems or look ugly. 1835# WARNING: Use '\'' to represent an apostrophe within the trap. 1836# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1837trap 'exit_status=$? 1838 # Sanitize IFS. 1839 IFS=" "" $as_nl" 1840 # Save into config.log some information that might help in debugging. 1841 { 1842 echo 1843 1844 printf "%s\n" "## ---------------- ## 1845## Cache variables. ## 1846## ---------------- ##" 1847 echo 1848 # The following way of writing the cache mishandles newlines in values, 1849( 1850 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1851 eval ac_val=\$$ac_var 1852 case $ac_val in #( 1853 *${as_nl}*) 1854 case $ac_var in #( 1855 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1856printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1857 esac 1858 case $ac_var in #( 1859 _ | IFS | as_nl) ;; #( 1860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1861 *) { eval $ac_var=; unset $ac_var;} ;; 1862 esac ;; 1863 esac 1864 done 1865 (set) 2>&1 | 1866 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1867 *${as_nl}ac_space=\ *) 1868 sed -n \ 1869 "s/'\''/'\''\\\\'\'''\''/g; 1870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1871 ;; #( 1872 *) 1873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1874 ;; 1875 esac | 1876 sort 1877) 1878 echo 1879 1880 printf "%s\n" "## ----------------- ## 1881## Output variables. ## 1882## ----------------- ##" 1883 echo 1884 for ac_var in $ac_subst_vars 1885 do 1886 eval ac_val=\$$ac_var 1887 case $ac_val in 1888 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1889 esac 1890 printf "%s\n" "$ac_var='\''$ac_val'\''" 1891 done | sort 1892 echo 1893 1894 if test -n "$ac_subst_files"; then 1895 printf "%s\n" "## ------------------- ## 1896## File substitutions. ## 1897## ------------------- ##" 1898 echo 1899 for ac_var in $ac_subst_files 1900 do 1901 eval ac_val=\$$ac_var 1902 case $ac_val in 1903 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1904 esac 1905 printf "%s\n" "$ac_var='\''$ac_val'\''" 1906 done | sort 1907 echo 1908 fi 1909 1910 if test -s confdefs.h; then 1911 printf "%s\n" "## ----------- ## 1912## confdefs.h. ## 1913## ----------- ##" 1914 echo 1915 cat confdefs.h 1916 echo 1917 fi 1918 test "$ac_signal" != 0 && 1919 printf "%s\n" "$as_me: caught signal $ac_signal" 1920 printf "%s\n" "$as_me: exit $exit_status" 1921 } >&5 1922 rm -f core *.core core.conftest.* && 1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1924 exit $exit_status 1925' 0 1926for ac_signal in 1 2 13 15; do 1927 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1928done 1929ac_signal=0 1930 1931# confdefs.h avoids OS command line length limits that DEFS can exceed. 1932rm -f -r conftest* confdefs.h 1933 1934printf "%s\n" "/* confdefs.h */" > confdefs.h 1935 1936# Predefined preprocessor variables. 1937 1938printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1939 1940printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1941 1942printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1943 1944printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1945 1946printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1947 1948printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1949 1950 1951# Let the site file select an alternate cache file if it wants to. 1952# Prefer an explicitly selected file to automatically selected ones. 1953if test -n "$CONFIG_SITE"; then 1954 ac_site_files="$CONFIG_SITE" 1955elif test "x$prefix" != xNONE; then 1956 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1957else 1958 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1959fi 1960 1961for ac_site_file in $ac_site_files 1962do 1963 case $ac_site_file in #( 1964 */*) : 1965 ;; #( 1966 *) : 1967 ac_site_file=./$ac_site_file ;; 1968esac 1969 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1971printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1972 sed 's/^/| /' "$ac_site_file" >&5 1973 . "$ac_site_file" \ 1974 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1975printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1976as_fn_error $? "failed to load site script $ac_site_file 1977See 'config.log' for more details" "$LINENO" 5; } 1978 fi 1979done 1980 1981if test -r "$cache_file"; then 1982 # Some versions of bash will fail to source /dev/null (special files 1983 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1984 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1986printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1987 case $cache_file in 1988 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1989 *) . "./$cache_file";; 1990 esac 1991 fi 1992else 1993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1994printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 1995 >$cache_file 1996fi 1997 1998as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 1999# Test code for whether the C compiler supports C89 (global declarations) 2000ac_c_conftest_c89_globals=' 2001/* Does the compiler advertise C89 conformance? 2002 Do not test the value of __STDC__, because some compilers set it to 0 2003 while being otherwise adequately conformant. */ 2004#if !defined __STDC__ 2005# error "Compiler does not advertise C89 conformance" 2006#endif 2007 2008#include <stddef.h> 2009#include <stdarg.h> 2010struct stat; 2011/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2012struct buf { int x; }; 2013struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2014static char *e (char **p, int i) 2015{ 2016 return p[i]; 2017} 2018static char *f (char * (*g) (char **, int), char **p, ...) 2019{ 2020 char *s; 2021 va_list v; 2022 va_start (v,p); 2023 s = g (p, va_arg (v,int)); 2024 va_end (v); 2025 return s; 2026} 2027 2028/* C89 style stringification. */ 2029#define noexpand_stringify(a) #a 2030const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2031 2032/* C89 style token pasting. Exercises some of the corner cases that 2033 e.g. old MSVC gets wrong, but not very hard. */ 2034#define noexpand_concat(a,b) a##b 2035#define expand_concat(a,b) noexpand_concat(a,b) 2036extern int vA; 2037extern int vbee; 2038#define aye A 2039#define bee B 2040int *pvA = &expand_concat(v,aye); 2041int *pvbee = &noexpand_concat(v,bee); 2042 2043/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2044 function prototypes and stuff, but not \xHH hex character constants. 2045 These do not provoke an error unfortunately, instead are silently treated 2046 as an "x". The following induces an error, until -std is added to get 2047 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2048 array size at least. It is necessary to write \x00 == 0 to get something 2049 that is true only with -std. */ 2050int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2051 2052/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2053 inside strings and character constants. */ 2054#define FOO(x) '\''x'\'' 2055int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2056 2057int test (int i, double x); 2058struct s1 {int (*f) (int a);}; 2059struct s2 {int (*f) (double a);}; 2060int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2061 int, int);' 2062 2063# Test code for whether the C compiler supports C89 (body of main). 2064ac_c_conftest_c89_main=' 2065ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2066' 2067 2068# Test code for whether the C compiler supports C99 (global declarations) 2069ac_c_conftest_c99_globals=' 2070/* Does the compiler advertise C99 conformance? */ 2071#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2072# error "Compiler does not advertise C99 conformance" 2073#endif 2074 2075// See if C++-style comments work. 2076 2077#include <stdbool.h> 2078extern int puts (const char *); 2079extern int printf (const char *, ...); 2080extern int dprintf (int, const char *, ...); 2081extern void *malloc (size_t); 2082extern void free (void *); 2083 2084// Check varargs macros. These examples are taken from C99 6.10.3.5. 2085// dprintf is used instead of fprintf to avoid needing to declare 2086// FILE and stderr. 2087#define debug(...) dprintf (2, __VA_ARGS__) 2088#define showlist(...) puts (#__VA_ARGS__) 2089#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2090static void 2091test_varargs_macros (void) 2092{ 2093 int x = 1234; 2094 int y = 5678; 2095 debug ("Flag"); 2096 debug ("X = %d\n", x); 2097 showlist (The first, second, and third items.); 2098 report (x>y, "x is %d but y is %d", x, y); 2099} 2100 2101// Check long long types. 2102#define BIG64 18446744073709551615ull 2103#define BIG32 4294967295ul 2104#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2105#if !BIG_OK 2106 #error "your preprocessor is broken" 2107#endif 2108#if BIG_OK 2109#else 2110 #error "your preprocessor is broken" 2111#endif 2112static long long int bignum = -9223372036854775807LL; 2113static unsigned long long int ubignum = BIG64; 2114 2115struct incomplete_array 2116{ 2117 int datasize; 2118 double data[]; 2119}; 2120 2121struct named_init { 2122 int number; 2123 const wchar_t *name; 2124 double average; 2125}; 2126 2127typedef const char *ccp; 2128 2129static inline int 2130test_restrict (ccp restrict text) 2131{ 2132 // Iterate through items via the restricted pointer. 2133 // Also check for declarations in for loops. 2134 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2135 continue; 2136 return 0; 2137} 2138 2139// Check varargs and va_copy. 2140static bool 2141test_varargs (const char *format, ...) 2142{ 2143 va_list args; 2144 va_start (args, format); 2145 va_list args_copy; 2146 va_copy (args_copy, args); 2147 2148 const char *str = ""; 2149 int number = 0; 2150 float fnumber = 0; 2151 2152 while (*format) 2153 { 2154 switch (*format++) 2155 { 2156 case '\''s'\'': // string 2157 str = va_arg (args_copy, const char *); 2158 break; 2159 case '\''d'\'': // int 2160 number = va_arg (args_copy, int); 2161 break; 2162 case '\''f'\'': // float 2163 fnumber = va_arg (args_copy, double); 2164 break; 2165 default: 2166 break; 2167 } 2168 } 2169 va_end (args_copy); 2170 va_end (args); 2171 2172 return *str && number && fnumber; 2173} 2174' 2175 2176# Test code for whether the C compiler supports C99 (body of main). 2177ac_c_conftest_c99_main=' 2178 // Check bool. 2179 _Bool success = false; 2180 success |= (argc != 0); 2181 2182 // Check restrict. 2183 if (test_restrict ("String literal") == 0) 2184 success = true; 2185 char *restrict newvar = "Another string"; 2186 2187 // Check varargs. 2188 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2189 test_varargs_macros (); 2190 2191 // Check flexible array members. 2192 struct incomplete_array *ia = 2193 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2194 ia->datasize = 10; 2195 for (int i = 0; i < ia->datasize; ++i) 2196 ia->data[i] = i * 1.234; 2197 // Work around memory leak warnings. 2198 free (ia); 2199 2200 // Check named initializers. 2201 struct named_init ni = { 2202 .number = 34, 2203 .name = L"Test wide string", 2204 .average = 543.34343, 2205 }; 2206 2207 ni.number = 58; 2208 2209 int dynamic_array[ni.number]; 2210 dynamic_array[0] = argv[0][0]; 2211 dynamic_array[ni.number - 1] = 543; 2212 2213 // work around unused variable warnings 2214 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2215 || dynamic_array[ni.number - 1] != 543); 2216' 2217 2218# Test code for whether the C compiler supports C11 (global declarations) 2219ac_c_conftest_c11_globals=' 2220/* Does the compiler advertise C11 conformance? */ 2221#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2222# error "Compiler does not advertise C11 conformance" 2223#endif 2224 2225// Check _Alignas. 2226char _Alignas (double) aligned_as_double; 2227char _Alignas (0) no_special_alignment; 2228extern char aligned_as_int; 2229char _Alignas (0) _Alignas (int) aligned_as_int; 2230 2231// Check _Alignof. 2232enum 2233{ 2234 int_alignment = _Alignof (int), 2235 int_array_alignment = _Alignof (int[100]), 2236 char_alignment = _Alignof (char) 2237}; 2238_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2239 2240// Check _Noreturn. 2241int _Noreturn does_not_return (void) { for (;;) continue; } 2242 2243// Check _Static_assert. 2244struct test_static_assert 2245{ 2246 int x; 2247 _Static_assert (sizeof (int) <= sizeof (long int), 2248 "_Static_assert does not work in struct"); 2249 long int y; 2250}; 2251 2252// Check UTF-8 literals. 2253#define u8 syntax error! 2254char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2255 2256// Check duplicate typedefs. 2257typedef long *long_ptr; 2258typedef long int *long_ptr; 2259typedef long_ptr long_ptr; 2260 2261// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2262struct anonymous 2263{ 2264 union { 2265 struct { int i; int j; }; 2266 struct { int k; long int l; } w; 2267 }; 2268 int m; 2269} v1; 2270' 2271 2272# Test code for whether the C compiler supports C11 (body of main). 2273ac_c_conftest_c11_main=' 2274 _Static_assert ((offsetof (struct anonymous, i) 2275 == offsetof (struct anonymous, w.k)), 2276 "Anonymous union alignment botch"); 2277 v1.i = 2; 2278 v1.w.k = 5; 2279 ok |= v1.i != 5; 2280' 2281 2282# Test code for whether the C compiler supports C11 (complete). 2283ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2284${ac_c_conftest_c99_globals} 2285${ac_c_conftest_c11_globals} 2286 2287int 2288main (int argc, char **argv) 2289{ 2290 int ok = 0; 2291 ${ac_c_conftest_c89_main} 2292 ${ac_c_conftest_c99_main} 2293 ${ac_c_conftest_c11_main} 2294 return ok; 2295} 2296" 2297 2298# Test code for whether the C compiler supports C99 (complete). 2299ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2300${ac_c_conftest_c99_globals} 2301 2302int 2303main (int argc, char **argv) 2304{ 2305 int ok = 0; 2306 ${ac_c_conftest_c89_main} 2307 ${ac_c_conftest_c99_main} 2308 return ok; 2309} 2310" 2311 2312# Test code for whether the C compiler supports C89 (complete). 2313ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2314 2315int 2316main (int argc, char **argv) 2317{ 2318 int ok = 0; 2319 ${ac_c_conftest_c89_main} 2320 return ok; 2321} 2322" 2323 2324as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2325as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2326as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2327as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2328as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2329as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2330as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2331as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2332as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2333as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2334 2335# Auxiliary files required by this configure script. 2336ac_aux_files="config.guess config.sub missing install-sh compile" 2337 2338# Locations in which to look for auxiliary files. 2339ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2340 2341# Search for a directory containing all of the required auxiliary files, 2342# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2343# If we don't find one directory that contains all the files we need, 2344# we report the set of missing files from the *first* directory in 2345# $ac_aux_dir_candidates and give up. 2346ac_missing_aux_files="" 2347ac_first_candidate=: 2348printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2350as_found=false 2351for as_dir in $ac_aux_dir_candidates 2352do 2353 IFS=$as_save_IFS 2354 case $as_dir in #((( 2355 '') as_dir=./ ;; 2356 */) ;; 2357 *) as_dir=$as_dir/ ;; 2358 esac 2359 as_found=: 2360 2361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2362 ac_aux_dir_found=yes 2363 ac_install_sh= 2364 for ac_aux in $ac_aux_files 2365 do 2366 # As a special case, if "install-sh" is required, that requirement 2367 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2368 # and $ac_install_sh is set appropriately for whichever one is found. 2369 if test x"$ac_aux" = x"install-sh" 2370 then 2371 if test -f "${as_dir}install-sh"; then 2372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2373 ac_install_sh="${as_dir}install-sh -c" 2374 elif test -f "${as_dir}install.sh"; then 2375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2376 ac_install_sh="${as_dir}install.sh -c" 2377 elif test -f "${as_dir}shtool"; then 2378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2379 ac_install_sh="${as_dir}shtool install -c" 2380 else 2381 ac_aux_dir_found=no 2382 if $ac_first_candidate; then 2383 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2384 else 2385 break 2386 fi 2387 fi 2388 else 2389 if test -f "${as_dir}${ac_aux}"; then 2390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2391 else 2392 ac_aux_dir_found=no 2393 if $ac_first_candidate; then 2394 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2395 else 2396 break 2397 fi 2398 fi 2399 fi 2400 done 2401 if test "$ac_aux_dir_found" = yes; then 2402 ac_aux_dir="$as_dir" 2403 break 2404 fi 2405 ac_first_candidate=false 2406 2407 as_found=false 2408done 2409IFS=$as_save_IFS 2410if $as_found 2411then : 2412 2413else case e in #( 2414 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2415esac 2416fi 2417 2418 2419# These three variables are undocumented and unsupported, 2420# and are intended to be withdrawn in a future Autoconf release. 2421# They can cause serious problems if a builder's source tree is in a directory 2422# whose full name contains unusual characters. 2423if test -f "${ac_aux_dir}config.guess"; then 2424 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2425fi 2426if test -f "${ac_aux_dir}config.sub"; then 2427 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2428fi 2429if test -f "$ac_aux_dir/configure"; then 2430 ac_configure="$SHELL ${ac_aux_dir}configure" 2431fi 2432 2433# Check that the precious variables saved in the cache have kept the same 2434# value. 2435ac_cache_corrupted=false 2436for ac_var in $ac_precious_vars; do 2437 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2438 eval ac_new_set=\$ac_env_${ac_var}_set 2439 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2440 eval ac_new_val=\$ac_env_${ac_var}_value 2441 case $ac_old_set,$ac_new_set in 2442 set,) 2443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2444printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2445 ac_cache_corrupted=: ;; 2446 ,set) 2447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2448printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2449 ac_cache_corrupted=: ;; 2450 ,);; 2451 *) 2452 if test "x$ac_old_val" != "x$ac_new_val"; then 2453 # differences in whitespace do not lead to failure. 2454 ac_old_val_w=`echo x $ac_old_val` 2455 ac_new_val_w=`echo x $ac_new_val` 2456 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2458printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2459 ac_cache_corrupted=: 2460 else 2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2462printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2463 eval $ac_var=\$ac_old_val 2464 fi 2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2466printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2468printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2469 fi;; 2470 esac 2471 # Pass precious variables to config.status. 2472 if test "$ac_new_set" = set; then 2473 case $ac_new_val in 2474 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2475 *) ac_arg=$ac_var=$ac_new_val ;; 2476 esac 2477 case " $ac_configure_args " in 2478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2479 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2480 esac 2481 fi 2482done 2483if $ac_cache_corrupted; then 2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2485printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2487printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2488 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2489 and start over" "$LINENO" 5 2490fi 2491## -------------------- ## 2492## Main body of script. ## 2493## -------------------- ## 2494 2495ac_ext=c 2496ac_cpp='$CPP $CPPFLAGS' 2497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2499ac_compiler_gnu=$ac_cv_c_compiler_gnu 2500 2501 2502 2503ac_config_headers="$ac_config_headers config.h" 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516# Expand $ac_aux_dir to an absolute path. 2517am_aux_dir=`cd "$ac_aux_dir" && pwd` 2518 2519ac_ext=c 2520ac_cpp='$CPP $CPPFLAGS' 2521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2523ac_compiler_gnu=$ac_cv_c_compiler_gnu 2524if test -n "$ac_tool_prefix"; then 2525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2526set dummy ${ac_tool_prefix}gcc; ac_word=$2 2527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2528printf %s "checking for $ac_word... " >&6; } 2529if test ${ac_cv_prog_CC+y} 2530then : 2531 printf %s "(cached) " >&6 2532else case e in #( 2533 e) if test -n "$CC"; then 2534 ac_cv_prog_CC="$CC" # Let the user override the test. 2535else 2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2537for as_dir in $PATH 2538do 2539 IFS=$as_save_IFS 2540 case $as_dir in #((( 2541 '') as_dir=./ ;; 2542 */) ;; 2543 *) as_dir=$as_dir/ ;; 2544 esac 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2547 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2549 break 2 2550 fi 2551done 2552 done 2553IFS=$as_save_IFS 2554 2555fi ;; 2556esac 2557fi 2558CC=$ac_cv_prog_CC 2559if test -n "$CC"; then 2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2561printf "%s\n" "$CC" >&6; } 2562else 2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2564printf "%s\n" "no" >&6; } 2565fi 2566 2567 2568fi 2569if test -z "$ac_cv_prog_CC"; then 2570 ac_ct_CC=$CC 2571 # Extract the first word of "gcc", so it can be a program name with args. 2572set dummy gcc; ac_word=$2 2573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2574printf %s "checking for $ac_word... " >&6; } 2575if test ${ac_cv_prog_ac_ct_CC+y} 2576then : 2577 printf %s "(cached) " >&6 2578else case e in #( 2579 e) if test -n "$ac_ct_CC"; then 2580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2581else 2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2583for as_dir in $PATH 2584do 2585 IFS=$as_save_IFS 2586 case $as_dir in #((( 2587 '') as_dir=./ ;; 2588 */) ;; 2589 *) as_dir=$as_dir/ ;; 2590 esac 2591 for ac_exec_ext in '' $ac_executable_extensions; do 2592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2593 ac_cv_prog_ac_ct_CC="gcc" 2594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2595 break 2 2596 fi 2597done 2598 done 2599IFS=$as_save_IFS 2600 2601fi ;; 2602esac 2603fi 2604ac_ct_CC=$ac_cv_prog_ac_ct_CC 2605if test -n "$ac_ct_CC"; then 2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2607printf "%s\n" "$ac_ct_CC" >&6; } 2608else 2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2610printf "%s\n" "no" >&6; } 2611fi 2612 2613 if test "x$ac_ct_CC" = x; then 2614 CC="" 2615 else 2616 case $cross_compiling:$ac_tool_warned in 2617yes:) 2618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2619printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2620ac_tool_warned=yes ;; 2621esac 2622 CC=$ac_ct_CC 2623 fi 2624else 2625 CC="$ac_cv_prog_CC" 2626fi 2627 2628if test -z "$CC"; then 2629 if test -n "$ac_tool_prefix"; then 2630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2631set dummy ${ac_tool_prefix}cc; ac_word=$2 2632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2633printf %s "checking for $ac_word... " >&6; } 2634if test ${ac_cv_prog_CC+y} 2635then : 2636 printf %s "(cached) " >&6 2637else case e in #( 2638 e) if test -n "$CC"; then 2639 ac_cv_prog_CC="$CC" # Let the user override the test. 2640else 2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2642for as_dir in $PATH 2643do 2644 IFS=$as_save_IFS 2645 case $as_dir in #((( 2646 '') as_dir=./ ;; 2647 */) ;; 2648 *) as_dir=$as_dir/ ;; 2649 esac 2650 for ac_exec_ext in '' $ac_executable_extensions; do 2651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2652 ac_cv_prog_CC="${ac_tool_prefix}cc" 2653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2654 break 2 2655 fi 2656done 2657 done 2658IFS=$as_save_IFS 2659 2660fi ;; 2661esac 2662fi 2663CC=$ac_cv_prog_CC 2664if test -n "$CC"; then 2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2666printf "%s\n" "$CC" >&6; } 2667else 2668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669printf "%s\n" "no" >&6; } 2670fi 2671 2672 2673 fi 2674fi 2675if test -z "$CC"; then 2676 # Extract the first word of "cc", so it can be a program name with args. 2677set dummy cc; ac_word=$2 2678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2679printf %s "checking for $ac_word... " >&6; } 2680if test ${ac_cv_prog_CC+y} 2681then : 2682 printf %s "(cached) " >&6 2683else case e in #( 2684 e) if test -n "$CC"; then 2685 ac_cv_prog_CC="$CC" # Let the user override the test. 2686else 2687 ac_prog_rejected=no 2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 case $as_dir in #((( 2693 '') as_dir=./ ;; 2694 */) ;; 2695 *) as_dir=$as_dir/ ;; 2696 esac 2697 for ac_exec_ext in '' $ac_executable_extensions; do 2698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2699 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2700 ac_prog_rejected=yes 2701 continue 2702 fi 2703 ac_cv_prog_CC="cc" 2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2705 break 2 2706 fi 2707done 2708 done 2709IFS=$as_save_IFS 2710 2711if test $ac_prog_rejected = yes; then 2712 # We found a bogon in the path, so make sure we never use it. 2713 set dummy $ac_cv_prog_CC 2714 shift 2715 if test $# != 0; then 2716 # We chose a different compiler from the bogus one. 2717 # However, it has the same basename, so the bogon will be chosen 2718 # first if we set CC to just the basename; use the full file name. 2719 shift 2720 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2721 fi 2722fi 2723fi ;; 2724esac 2725fi 2726CC=$ac_cv_prog_CC 2727if test -n "$CC"; then 2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2729printf "%s\n" "$CC" >&6; } 2730else 2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2732printf "%s\n" "no" >&6; } 2733fi 2734 2735 2736fi 2737if test -z "$CC"; then 2738 if test -n "$ac_tool_prefix"; then 2739 for ac_prog in cl.exe 2740 do 2741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2742set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2744printf %s "checking for $ac_word... " >&6; } 2745if test ${ac_cv_prog_CC+y} 2746then : 2747 printf %s "(cached) " >&6 2748else case e in #( 2749 e) if test -n "$CC"; then 2750 ac_cv_prog_CC="$CC" # Let the user override the test. 2751else 2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753for as_dir in $PATH 2754do 2755 IFS=$as_save_IFS 2756 case $as_dir in #((( 2757 '') as_dir=./ ;; 2758 */) ;; 2759 *) as_dir=$as_dir/ ;; 2760 esac 2761 for ac_exec_ext in '' $ac_executable_extensions; do 2762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2765 break 2 2766 fi 2767done 2768 done 2769IFS=$as_save_IFS 2770 2771fi ;; 2772esac 2773fi 2774CC=$ac_cv_prog_CC 2775if test -n "$CC"; then 2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2777printf "%s\n" "$CC" >&6; } 2778else 2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2780printf "%s\n" "no" >&6; } 2781fi 2782 2783 2784 test -n "$CC" && break 2785 done 2786fi 2787if test -z "$CC"; then 2788 ac_ct_CC=$CC 2789 for ac_prog in cl.exe 2790do 2791 # Extract the first word of "$ac_prog", so it can be a program name with args. 2792set dummy $ac_prog; ac_word=$2 2793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2794printf %s "checking for $ac_word... " >&6; } 2795if test ${ac_cv_prog_ac_ct_CC+y} 2796then : 2797 printf %s "(cached) " >&6 2798else case e in #( 2799 e) if test -n "$ac_ct_CC"; then 2800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2801else 2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 case $as_dir in #((( 2807 '') as_dir=./ ;; 2808 */) ;; 2809 *) as_dir=$as_dir/ ;; 2810 esac 2811 for ac_exec_ext in '' $ac_executable_extensions; do 2812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2813 ac_cv_prog_ac_ct_CC="$ac_prog" 2814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2815 break 2 2816 fi 2817done 2818 done 2819IFS=$as_save_IFS 2820 2821fi ;; 2822esac 2823fi 2824ac_ct_CC=$ac_cv_prog_ac_ct_CC 2825if test -n "$ac_ct_CC"; then 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2827printf "%s\n" "$ac_ct_CC" >&6; } 2828else 2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2830printf "%s\n" "no" >&6; } 2831fi 2832 2833 2834 test -n "$ac_ct_CC" && break 2835done 2836 2837 if test "x$ac_ct_CC" = x; then 2838 CC="" 2839 else 2840 case $cross_compiling:$ac_tool_warned in 2841yes:) 2842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2843printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2844ac_tool_warned=yes ;; 2845esac 2846 CC=$ac_ct_CC 2847 fi 2848fi 2849 2850fi 2851if test -z "$CC"; then 2852 if test -n "$ac_tool_prefix"; then 2853 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2854set dummy ${ac_tool_prefix}clang; ac_word=$2 2855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2856printf %s "checking for $ac_word... " >&6; } 2857if test ${ac_cv_prog_CC+y} 2858then : 2859 printf %s "(cached) " >&6 2860else case e in #( 2861 e) if test -n "$CC"; then 2862 ac_cv_prog_CC="$CC" # Let the user override the test. 2863else 2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH 2866do 2867 IFS=$as_save_IFS 2868 case $as_dir in #((( 2869 '') as_dir=./ ;; 2870 */) ;; 2871 *) as_dir=$as_dir/ ;; 2872 esac 2873 for ac_exec_ext in '' $ac_executable_extensions; do 2874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2875 ac_cv_prog_CC="${ac_tool_prefix}clang" 2876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2877 break 2 2878 fi 2879done 2880 done 2881IFS=$as_save_IFS 2882 2883fi ;; 2884esac 2885fi 2886CC=$ac_cv_prog_CC 2887if test -n "$CC"; then 2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2889printf "%s\n" "$CC" >&6; } 2890else 2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2892printf "%s\n" "no" >&6; } 2893fi 2894 2895 2896fi 2897if test -z "$ac_cv_prog_CC"; then 2898 ac_ct_CC=$CC 2899 # Extract the first word of "clang", so it can be a program name with args. 2900set dummy clang; ac_word=$2 2901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2902printf %s "checking for $ac_word... " >&6; } 2903if test ${ac_cv_prog_ac_ct_CC+y} 2904then : 2905 printf %s "(cached) " >&6 2906else case e in #( 2907 e) if test -n "$ac_ct_CC"; then 2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2909else 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH 2912do 2913 IFS=$as_save_IFS 2914 case $as_dir in #((( 2915 '') as_dir=./ ;; 2916 */) ;; 2917 *) as_dir=$as_dir/ ;; 2918 esac 2919 for ac_exec_ext in '' $ac_executable_extensions; do 2920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2921 ac_cv_prog_ac_ct_CC="clang" 2922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2923 break 2 2924 fi 2925done 2926 done 2927IFS=$as_save_IFS 2928 2929fi ;; 2930esac 2931fi 2932ac_ct_CC=$ac_cv_prog_ac_ct_CC 2933if test -n "$ac_ct_CC"; then 2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2935printf "%s\n" "$ac_ct_CC" >&6; } 2936else 2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938printf "%s\n" "no" >&6; } 2939fi 2940 2941 if test "x$ac_ct_CC" = x; then 2942 CC="" 2943 else 2944 case $cross_compiling:$ac_tool_warned in 2945yes:) 2946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2947printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2948ac_tool_warned=yes ;; 2949esac 2950 CC=$ac_ct_CC 2951 fi 2952else 2953 CC="$ac_cv_prog_CC" 2954fi 2955 2956fi 2957 2958 2959test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2960printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2961as_fn_error $? "no acceptable C compiler found in \$PATH 2962See 'config.log' for more details" "$LINENO" 5; } 2963 2964# Provide some information about the compiler. 2965printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2966set X $ac_compile 2967ac_compiler=$2 2968for ac_option in --version -v -V -qversion -version; do 2969 { { ac_try="$ac_compiler $ac_option >&5" 2970case "(($ac_try" in 2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2972 *) ac_try_echo=$ac_try;; 2973esac 2974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2975printf "%s\n" "$ac_try_echo"; } >&5 2976 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2977 ac_status=$? 2978 if test -s conftest.err; then 2979 sed '10a\ 2980... rest of stderr output deleted ... 2981 10q' conftest.err >conftest.er1 2982 cat conftest.er1 >&5 2983 fi 2984 rm -f conftest.er1 conftest.err 2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2986 test $ac_status = 0; } 2987done 2988 2989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2990/* end confdefs.h. */ 2991 2992int 2993main (void) 2994{ 2995 2996 ; 2997 return 0; 2998} 2999_ACEOF 3000ac_clean_files_save=$ac_clean_files 3001ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3002# Try to create an executable without -o first, disregard a.out. 3003# It will help us diagnose broken compilers, and finding out an intuition 3004# of exeext. 3005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3006printf %s "checking whether the C compiler works... " >&6; } 3007ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3008 3009# The possible output files: 3010ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3011 3012ac_rmfiles= 3013for ac_file in $ac_files 3014do 3015 case $ac_file in 3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3017 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3018 esac 3019done 3020rm -f $ac_rmfiles 3021 3022if { { ac_try="$ac_link_default" 3023case "(($ac_try" in 3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3025 *) ac_try_echo=$ac_try;; 3026esac 3027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3028printf "%s\n" "$ac_try_echo"; } >&5 3029 (eval "$ac_link_default") 2>&5 3030 ac_status=$? 3031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3032 test $ac_status = 0; } 3033then : 3034 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3035# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3036# in a Makefile. We should not override ac_cv_exeext if it was cached, 3037# so that the user can short-circuit this test for compilers unknown to 3038# Autoconf. 3039for ac_file in $ac_files '' 3040do 3041 test -f "$ac_file" || continue 3042 case $ac_file in 3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3044 ;; 3045 [ab].out ) 3046 # We found the default executable, but exeext='' is most 3047 # certainly right. 3048 break;; 3049 *.* ) 3050 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3051 then :; else 3052 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3053 fi 3054 # We set ac_cv_exeext here because the later test for it is not 3055 # safe: cross compilers may not add the suffix if given an '-o' 3056 # argument, so we may need to know it at that point already. 3057 # Even if this section looks crufty: it has the advantage of 3058 # actually working. 3059 break;; 3060 * ) 3061 break;; 3062 esac 3063done 3064test "$ac_cv_exeext" = no && ac_cv_exeext= 3065 3066else case e in #( 3067 e) ac_file='' ;; 3068esac 3069fi 3070if test -z "$ac_file" 3071then : 3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3073printf "%s\n" "no" >&6; } 3074printf "%s\n" "$as_me: failed program was:" >&5 3075sed 's/^/| /' conftest.$ac_ext >&5 3076 3077{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3078printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3079as_fn_error 77 "C compiler cannot create executables 3080See 'config.log' for more details" "$LINENO" 5; } 3081else case e in #( 3082 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3083printf "%s\n" "yes" >&6; } ;; 3084esac 3085fi 3086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3087printf %s "checking for C compiler default output file name... " >&6; } 3088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3089printf "%s\n" "$ac_file" >&6; } 3090ac_exeext=$ac_cv_exeext 3091 3092rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3093ac_clean_files=$ac_clean_files_save 3094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3095printf %s "checking for suffix of executables... " >&6; } 3096if { { ac_try="$ac_link" 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") 2>&5 3104 ac_status=$? 3105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3106 test $ac_status = 0; } 3107then : 3108 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3109# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3110# work properly (i.e., refer to 'conftest.exe'), while it won't with 3111# 'rm'. 3112for ac_file in conftest.exe conftest conftest.*; do 3113 test -f "$ac_file" || continue 3114 case $ac_file in 3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3117 break;; 3118 * ) break;; 3119 esac 3120done 3121else case e in #( 3122 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3123printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3124as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3125See 'config.log' for more details" "$LINENO" 5; } ;; 3126esac 3127fi 3128rm -f conftest conftest$ac_cv_exeext 3129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3130printf "%s\n" "$ac_cv_exeext" >&6; } 3131 3132rm -f conftest.$ac_ext 3133EXEEXT=$ac_cv_exeext 3134ac_exeext=$EXEEXT 3135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3136/* end confdefs.h. */ 3137#include <stdio.h> 3138int 3139main (void) 3140{ 3141FILE *f = fopen ("conftest.out", "w"); 3142 if (!f) 3143 return 1; 3144 return ferror (f) || fclose (f) != 0; 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150ac_clean_files="$ac_clean_files conftest.out" 3151# Check that the compiler produces executables we can run. If not, either 3152# the compiler is broken, or we cross compile. 3153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3154printf %s "checking whether we are cross compiling... " >&6; } 3155if test "$cross_compiling" != yes; then 3156 { { ac_try="$ac_link" 3157case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3162printf "%s\n" "$ac_try_echo"; } >&5 3163 (eval "$ac_link") 2>&5 3164 ac_status=$? 3165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3166 test $ac_status = 0; } 3167 if { ac_try='./conftest$ac_cv_exeext' 3168 { { case "(($ac_try" in 3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3170 *) ac_try_echo=$ac_try;; 3171esac 3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3173printf "%s\n" "$ac_try_echo"; } >&5 3174 (eval "$ac_try") 2>&5 3175 ac_status=$? 3176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177 test $ac_status = 0; }; }; then 3178 cross_compiling=no 3179 else 3180 if test "$cross_compiling" = maybe; then 3181 cross_compiling=yes 3182 else 3183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3184printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3185as_fn_error 77 "cannot run C compiled programs. 3186If you meant to cross compile, use '--host'. 3187See 'config.log' for more details" "$LINENO" 5; } 3188 fi 3189 fi 3190fi 3191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3192printf "%s\n" "$cross_compiling" >&6; } 3193 3194rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3195 conftest.o conftest.obj conftest.out 3196ac_clean_files=$ac_clean_files_save 3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3198printf %s "checking for suffix of object files... " >&6; } 3199if test ${ac_cv_objext+y} 3200then : 3201 printf %s "(cached) " >&6 3202else case e in #( 3203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3204/* end confdefs.h. */ 3205 3206int 3207main (void) 3208{ 3209 3210 ; 3211 return 0; 3212} 3213_ACEOF 3214rm -f conftest.o conftest.obj 3215if { { ac_try="$ac_compile" 3216case "(($ac_try" in 3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3218 *) ac_try_echo=$ac_try;; 3219esac 3220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3221printf "%s\n" "$ac_try_echo"; } >&5 3222 (eval "$ac_compile") 2>&5 3223 ac_status=$? 3224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3225 test $ac_status = 0; } 3226then : 3227 for ac_file in conftest.o conftest.obj conftest.*; do 3228 test -f "$ac_file" || continue; 3229 case $ac_file in 3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3231 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3232 break;; 3233 esac 3234done 3235else case e in #( 3236 e) printf "%s\n" "$as_me: failed program was:" >&5 3237sed 's/^/| /' conftest.$ac_ext >&5 3238 3239{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3240printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3241as_fn_error $? "cannot compute suffix of object files: cannot compile 3242See 'config.log' for more details" "$LINENO" 5; } ;; 3243esac 3244fi 3245rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3246esac 3247fi 3248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3249printf "%s\n" "$ac_cv_objext" >&6; } 3250OBJEXT=$ac_cv_objext 3251ac_objext=$OBJEXT 3252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3253printf %s "checking whether the compiler supports GNU C... " >&6; } 3254if test ${ac_cv_c_compiler_gnu+y} 3255then : 3256 printf %s "(cached) " >&6 3257else case e in #( 3258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3259/* end confdefs.h. */ 3260 3261int 3262main (void) 3263{ 3264#ifndef __GNUC__ 3265 choke me 3266#endif 3267 3268 ; 3269 return 0; 3270} 3271_ACEOF 3272if ac_fn_c_try_compile "$LINENO" 3273then : 3274 ac_compiler_gnu=yes 3275else case e in #( 3276 e) ac_compiler_gnu=no ;; 3277esac 3278fi 3279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3280ac_cv_c_compiler_gnu=$ac_compiler_gnu 3281 ;; 3282esac 3283fi 3284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3285printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3286ac_compiler_gnu=$ac_cv_c_compiler_gnu 3287 3288if test $ac_compiler_gnu = yes; then 3289 GCC=yes 3290else 3291 GCC= 3292fi 3293ac_test_CFLAGS=${CFLAGS+y} 3294ac_save_CFLAGS=$CFLAGS 3295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3296printf %s "checking whether $CC accepts -g... " >&6; } 3297if test ${ac_cv_prog_cc_g+y} 3298then : 3299 printf %s "(cached) " >&6 3300else case e in #( 3301 e) ac_save_c_werror_flag=$ac_c_werror_flag 3302 ac_c_werror_flag=yes 3303 ac_cv_prog_cc_g=no 3304 CFLAGS="-g" 3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3306/* end confdefs.h. */ 3307 3308int 3309main (void) 3310{ 3311 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316if ac_fn_c_try_compile "$LINENO" 3317then : 3318 ac_cv_prog_cc_g=yes 3319else case e in #( 3320 e) CFLAGS="" 3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3322/* end confdefs.h. */ 3323 3324int 3325main (void) 3326{ 3327 3328 ; 3329 return 0; 3330} 3331_ACEOF 3332if ac_fn_c_try_compile "$LINENO" 3333then : 3334 3335else case e in #( 3336 e) ac_c_werror_flag=$ac_save_c_werror_flag 3337 CFLAGS="-g" 3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340 3341int 3342main (void) 3343{ 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349if ac_fn_c_try_compile "$LINENO" 3350then : 3351 ac_cv_prog_cc_g=yes 3352fi 3353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3354esac 3355fi 3356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3357esac 3358fi 3359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3360 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3361esac 3362fi 3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3364printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3365if test $ac_test_CFLAGS; then 3366 CFLAGS=$ac_save_CFLAGS 3367elif test $ac_cv_prog_cc_g = yes; then 3368 if test "$GCC" = yes; then 3369 CFLAGS="-g -O2" 3370 else 3371 CFLAGS="-g" 3372 fi 3373else 3374 if test "$GCC" = yes; then 3375 CFLAGS="-O2" 3376 else 3377 CFLAGS= 3378 fi 3379fi 3380ac_prog_cc_stdc=no 3381if test x$ac_prog_cc_stdc = xno 3382then : 3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3384printf %s "checking for $CC option to enable C11 features... " >&6; } 3385if test ${ac_cv_prog_cc_c11+y} 3386then : 3387 printf %s "(cached) " >&6 3388else case e in #( 3389 e) ac_cv_prog_cc_c11=no 3390ac_save_CC=$CC 3391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3392/* end confdefs.h. */ 3393$ac_c_conftest_c11_program 3394_ACEOF 3395for ac_arg in '' -std=gnu11 3396do 3397 CC="$ac_save_CC $ac_arg" 3398 if ac_fn_c_try_compile "$LINENO" 3399then : 3400 ac_cv_prog_cc_c11=$ac_arg 3401fi 3402rm -f core conftest.err conftest.$ac_objext conftest.beam 3403 test "x$ac_cv_prog_cc_c11" != "xno" && break 3404done 3405rm -f conftest.$ac_ext 3406CC=$ac_save_CC ;; 3407esac 3408fi 3409 3410if test "x$ac_cv_prog_cc_c11" = xno 3411then : 3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3413printf "%s\n" "unsupported" >&6; } 3414else case e in #( 3415 e) if test "x$ac_cv_prog_cc_c11" = x 3416then : 3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3418printf "%s\n" "none needed" >&6; } 3419else case e in #( 3420 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3421printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3422 CC="$CC $ac_cv_prog_cc_c11" ;; 3423esac 3424fi 3425 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3426 ac_prog_cc_stdc=c11 ;; 3427esac 3428fi 3429fi 3430if test x$ac_prog_cc_stdc = xno 3431then : 3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3433printf %s "checking for $CC option to enable C99 features... " >&6; } 3434if test ${ac_cv_prog_cc_c99+y} 3435then : 3436 printf %s "(cached) " >&6 3437else case e in #( 3438 e) ac_cv_prog_cc_c99=no 3439ac_save_CC=$CC 3440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3441/* end confdefs.h. */ 3442$ac_c_conftest_c99_program 3443_ACEOF 3444for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3445do 3446 CC="$ac_save_CC $ac_arg" 3447 if ac_fn_c_try_compile "$LINENO" 3448then : 3449 ac_cv_prog_cc_c99=$ac_arg 3450fi 3451rm -f core conftest.err conftest.$ac_objext conftest.beam 3452 test "x$ac_cv_prog_cc_c99" != "xno" && break 3453done 3454rm -f conftest.$ac_ext 3455CC=$ac_save_CC ;; 3456esac 3457fi 3458 3459if test "x$ac_cv_prog_cc_c99" = xno 3460then : 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3462printf "%s\n" "unsupported" >&6; } 3463else case e in #( 3464 e) if test "x$ac_cv_prog_cc_c99" = x 3465then : 3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3467printf "%s\n" "none needed" >&6; } 3468else case e in #( 3469 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3470printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3471 CC="$CC $ac_cv_prog_cc_c99" ;; 3472esac 3473fi 3474 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3475 ac_prog_cc_stdc=c99 ;; 3476esac 3477fi 3478fi 3479if test x$ac_prog_cc_stdc = xno 3480then : 3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3482printf %s "checking for $CC option to enable C89 features... " >&6; } 3483if test ${ac_cv_prog_cc_c89+y} 3484then : 3485 printf %s "(cached) " >&6 3486else case e in #( 3487 e) ac_cv_prog_cc_c89=no 3488ac_save_CC=$CC 3489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3490/* end confdefs.h. */ 3491$ac_c_conftest_c89_program 3492_ACEOF 3493for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3494do 3495 CC="$ac_save_CC $ac_arg" 3496 if ac_fn_c_try_compile "$LINENO" 3497then : 3498 ac_cv_prog_cc_c89=$ac_arg 3499fi 3500rm -f core conftest.err conftest.$ac_objext conftest.beam 3501 test "x$ac_cv_prog_cc_c89" != "xno" && break 3502done 3503rm -f conftest.$ac_ext 3504CC=$ac_save_CC ;; 3505esac 3506fi 3507 3508if test "x$ac_cv_prog_cc_c89" = xno 3509then : 3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3511printf "%s\n" "unsupported" >&6; } 3512else case e in #( 3513 e) if test "x$ac_cv_prog_cc_c89" = x 3514then : 3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3516printf "%s\n" "none needed" >&6; } 3517else case e in #( 3518 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3519printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3520 CC="$CC $ac_cv_prog_cc_c89" ;; 3521esac 3522fi 3523 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3524 ac_prog_cc_stdc=c89 ;; 3525esac 3526fi 3527fi 3528 3529ac_ext=c 3530ac_cpp='$CPP $CPPFLAGS' 3531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3533ac_compiler_gnu=$ac_cv_c_compiler_gnu 3534 3535 3536 ac_ext=c 3537ac_cpp='$CPP $CPPFLAGS' 3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3540ac_compiler_gnu=$ac_cv_c_compiler_gnu 3541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3542printf %s "checking whether $CC understands -c and -o together... " >&6; } 3543if test ${am_cv_prog_cc_c_o+y} 3544then : 3545 printf %s "(cached) " >&6 3546else case e in #( 3547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549 3550int 3551main (void) 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558 # Make sure it works both with $CC and with simple cc. 3559 # Following AC_PROG_CC_C_O, we do the test twice because some 3560 # compilers refuse to overwrite an existing .o file with -o, 3561 # though they will create one. 3562 am_cv_prog_cc_c_o=yes 3563 for am_i in 1 2; do 3564 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3565 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3566 ac_status=$? 3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3568 (exit $ac_status); } \ 3569 && test -f conftest2.$ac_objext; then 3570 : OK 3571 else 3572 am_cv_prog_cc_c_o=no 3573 break 3574 fi 3575 done 3576 rm -f core conftest* 3577 unset am_i ;; 3578esac 3579fi 3580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3581printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3582if test "$am_cv_prog_cc_c_o" != yes; then 3583 # Losing compiler, so override with the script. 3584 # FIXME: It is wrong to rewrite CC. 3585 # But if we don't then we get into trouble of one sort or another. 3586 # A longer-term fix would be to have automake use am__CC in this case, 3587 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3588 CC="$am_aux_dir/compile $CC" 3589fi 3590ac_ext=c 3591ac_cpp='$CPP $CPPFLAGS' 3592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3594ac_compiler_gnu=$ac_cv_c_compiler_gnu 3595 3596 3597 3598ac_header= ac_cache= 3599for ac_item in $ac_header_c_list 3600do 3601 if test $ac_cache; then 3602 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3603 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3604 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3605 fi 3606 ac_header= ac_cache= 3607 elif test $ac_header; then 3608 ac_cache=$ac_item 3609 else 3610 ac_header=$ac_item 3611 fi 3612done 3613 3614 3615 3616 3617 3618 3619 3620 3621if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3622then : 3623 3624printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3625 3626fi 3627 3628 3629 3630 3631 3632 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3634printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3635if test ${ac_cv_safe_to_define___extensions__+y} 3636then : 3637 printf %s "(cached) " >&6 3638else case e in #( 3639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641 3642# define __EXTENSIONS__ 1 3643 $ac_includes_default 3644int 3645main (void) 3646{ 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652if ac_fn_c_try_compile "$LINENO" 3653then : 3654 ac_cv_safe_to_define___extensions__=yes 3655else case e in #( 3656 e) ac_cv_safe_to_define___extensions__=no ;; 3657esac 3658fi 3659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3660esac 3661fi 3662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3663printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3664 3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3666printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3667if test ${ac_cv_should_define__xopen_source+y} 3668then : 3669 printf %s "(cached) " >&6 3670else case e in #( 3671 e) ac_cv_should_define__xopen_source=no 3672 if test $ac_cv_header_wchar_h = yes 3673then : 3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3675/* end confdefs.h. */ 3676 3677 #include <wchar.h> 3678 mbstate_t x; 3679int 3680main (void) 3681{ 3682 3683 ; 3684 return 0; 3685} 3686_ACEOF 3687if ac_fn_c_try_compile "$LINENO" 3688then : 3689 3690else case e in #( 3691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3692/* end confdefs.h. */ 3693 3694 #define _XOPEN_SOURCE 500 3695 #include <wchar.h> 3696 mbstate_t x; 3697int 3698main (void) 3699{ 3700 3701 ; 3702 return 0; 3703} 3704_ACEOF 3705if ac_fn_c_try_compile "$LINENO" 3706then : 3707 ac_cv_should_define__xopen_source=yes 3708fi 3709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3710esac 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3713fi ;; 3714esac 3715fi 3716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3717printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3718 3719 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3720 3721 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3722 3723 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3724 3725 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3726 3727 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3728 3729 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3730 3731 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3732 3733 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3734 3735 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3736 3737 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3738 3739 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3740 3741 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3742 3743 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3744 3745 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3746 3747 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3748 3749 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3750 3751 if test $ac_cv_header_minix_config_h = yes 3752then : 3753 MINIX=yes 3754 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3755 3756 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3757 3758 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3759 3760else case e in #( 3761 e) MINIX= ;; 3762esac 3763fi 3764 if test $ac_cv_safe_to_define___extensions__ = yes 3765then : 3766 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3767 3768fi 3769 if test $ac_cv_should_define__xopen_source = yes 3770then : 3771 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3772 3773fi 3774 3775 3776# Initialize Automake 3777am__api_version='1.16' 3778 3779 3780 # Find a good install program. We prefer a C program (faster), 3781# so one script is as good as another. But avoid the broken or 3782# incompatible versions: 3783# SysV /etc/install, /usr/sbin/install 3784# SunOS /usr/etc/install 3785# IRIX /sbin/install 3786# AIX /bin/install 3787# AmigaOS /C/install, which installs bootblocks on floppy discs 3788# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3789# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3790# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3791# OS/2's system install, which has a completely different semantic 3792# ./install, which can be erroneously created by make from ./install.sh. 3793# Reject install programs that cannot install multiple files. 3794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3795printf %s "checking for a BSD-compatible install... " >&6; } 3796if test -z "$INSTALL"; then 3797if test ${ac_cv_path_install+y} 3798then : 3799 printf %s "(cached) " >&6 3800else case e in #( 3801 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3802for as_dir in $PATH 3803do 3804 IFS=$as_save_IFS 3805 case $as_dir in #((( 3806 '') as_dir=./ ;; 3807 */) ;; 3808 *) as_dir=$as_dir/ ;; 3809 esac 3810 # Account for fact that we put trailing slashes in our PATH walk. 3811case $as_dir in #(( 3812 ./ | /[cC]/* | \ 3813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3814 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3815 /usr/ucb/* ) ;; 3816 *) 3817 # OSF1 and SCO ODT 3.0 have their own names for install. 3818 # Don't use installbsd from OSF since it installs stuff as root 3819 # by default. 3820 for ac_prog in ginstall scoinst install; do 3821 for ac_exec_ext in '' $ac_executable_extensions; do 3822 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3823 if test $ac_prog = install && 3824 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3825 # AIX install. It has an incompatible calling convention. 3826 : 3827 elif test $ac_prog = install && 3828 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3829 # program-specific install script used by HP pwplus--don't use. 3830 : 3831 else 3832 rm -rf conftest.one conftest.two conftest.dir 3833 echo one > conftest.one 3834 echo two > conftest.two 3835 mkdir conftest.dir 3836 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3837 test -s conftest.one && test -s conftest.two && 3838 test -s conftest.dir/conftest.one && 3839 test -s conftest.dir/conftest.two 3840 then 3841 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3842 break 3 3843 fi 3844 fi 3845 fi 3846 done 3847 done 3848 ;; 3849esac 3850 3851 done 3852IFS=$as_save_IFS 3853 3854rm -rf conftest.one conftest.two conftest.dir 3855 ;; 3856esac 3857fi 3858 if test ${ac_cv_path_install+y}; then 3859 INSTALL=$ac_cv_path_install 3860 else 3861 # As a last resort, use the slow shell script. Don't cache a 3862 # value for INSTALL within a source directory, because that will 3863 # break other packages using the cache if that directory is 3864 # removed, or if the value is a relative name. 3865 INSTALL=$ac_install_sh 3866 fi 3867fi 3868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3869printf "%s\n" "$INSTALL" >&6; } 3870 3871# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3872# It thinks the first close brace ends the variable substitution. 3873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3874 3875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3876 3877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3878 3879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3880printf %s "checking whether build environment is sane... " >&6; } 3881# Reject unsafe characters in $srcdir or the absolute working directory 3882# name. Accept space and tab only in the latter. 3883am_lf=' 3884' 3885case `pwd` in 3886 *[\\\"\#\$\&\'\`$am_lf]*) 3887 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3888esac 3889case $srcdir in 3890 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3891 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3892esac 3893 3894# Do 'set' in a subshell so we don't clobber the current shell's 3895# arguments. Must try -L first in case configure is actually a 3896# symlink; some systems play weird games with the mod time of symlinks 3897# (eg FreeBSD returns the mod time of the symlink's containing 3898# directory). 3899if ( 3900 am_has_slept=no 3901 for am_try in 1 2; do 3902 echo "timestamp, slept: $am_has_slept" > conftest.file 3903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3904 if test "$*" = "X"; then 3905 # -L didn't work. 3906 set X `ls -t "$srcdir/configure" conftest.file` 3907 fi 3908 if test "$*" != "X $srcdir/configure conftest.file" \ 3909 && test "$*" != "X conftest.file $srcdir/configure"; then 3910 3911 # If neither matched, then we have a broken ls. This can happen 3912 # if, for instance, CONFIG_SHELL is bash and it inherits a 3913 # broken ls alias from the environment. This has actually 3914 # happened. Such a system could not be considered "sane". 3915 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3916 alias in your environment" "$LINENO" 5 3917 fi 3918 if test "$2" = conftest.file || test $am_try -eq 2; then 3919 break 3920 fi 3921 # Just in case. 3922 sleep 1 3923 am_has_slept=yes 3924 done 3925 test "$2" = conftest.file 3926 ) 3927then 3928 # Ok. 3929 : 3930else 3931 as_fn_error $? "newly created file is older than distributed files! 3932Check your system clock" "$LINENO" 5 3933fi 3934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3935printf "%s\n" "yes" >&6; } 3936# If we didn't sleep, we still need to ensure time stamps of config.status and 3937# generated files are strictly newer. 3938am_sleep_pid= 3939if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3940 ( sleep 1 ) & 3941 am_sleep_pid=$! 3942fi 3943 3944rm -f conftest.file 3945 3946test "$program_prefix" != NONE && 3947 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3948# Use a double $ so make ignores it. 3949test "$program_suffix" != NONE && 3950 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3951# Double any \ or $. 3952# By default was 's,x,x', remove it if useless. 3953ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3954program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3955 3956 3957 if test x"${MISSING+set}" != xset; then 3958 MISSING="\${SHELL} '$am_aux_dir/missing'" 3959fi 3960# Use eval to expand $SHELL 3961if eval "$MISSING --is-lightweight"; then 3962 am_missing_run="$MISSING " 3963else 3964 am_missing_run= 3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3966printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3967fi 3968 3969if test x"${install_sh+set}" != xset; then 3970 case $am_aux_dir in 3971 *\ * | *\ *) 3972 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3973 *) 3974 install_sh="\${SHELL} $am_aux_dir/install-sh" 3975 esac 3976fi 3977 3978# Installed binaries are usually stripped using 'strip' when the user 3979# run "make install-strip". However 'strip' might not be the right 3980# tool to use in cross-compilation environments, therefore Automake 3981# will honor the 'STRIP' environment variable to overrule this program. 3982if test "$cross_compiling" != no; then 3983 if test -n "$ac_tool_prefix"; then 3984 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3985set dummy ${ac_tool_prefix}strip; ac_word=$2 3986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3987printf %s "checking for $ac_word... " >&6; } 3988if test ${ac_cv_prog_STRIP+y} 3989then : 3990 printf %s "(cached) " >&6 3991else case e in #( 3992 e) if test -n "$STRIP"; then 3993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3994else 3995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3996for as_dir in $PATH 3997do 3998 IFS=$as_save_IFS 3999 case $as_dir in #((( 4000 '') as_dir=./ ;; 4001 */) ;; 4002 *) as_dir=$as_dir/ ;; 4003 esac 4004 for ac_exec_ext in '' $ac_executable_extensions; do 4005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4006 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4008 break 2 4009 fi 4010done 4011 done 4012IFS=$as_save_IFS 4013 4014fi ;; 4015esac 4016fi 4017STRIP=$ac_cv_prog_STRIP 4018if test -n "$STRIP"; then 4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4020printf "%s\n" "$STRIP" >&6; } 4021else 4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4023printf "%s\n" "no" >&6; } 4024fi 4025 4026 4027fi 4028if test -z "$ac_cv_prog_STRIP"; then 4029 ac_ct_STRIP=$STRIP 4030 # Extract the first word of "strip", so it can be a program name with args. 4031set dummy strip; ac_word=$2 4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4033printf %s "checking for $ac_word... " >&6; } 4034if test ${ac_cv_prog_ac_ct_STRIP+y} 4035then : 4036 printf %s "(cached) " >&6 4037else case e in #( 4038 e) if test -n "$ac_ct_STRIP"; then 4039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4040else 4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4042for as_dir in $PATH 4043do 4044 IFS=$as_save_IFS 4045 case $as_dir in #((( 4046 '') as_dir=./ ;; 4047 */) ;; 4048 *) as_dir=$as_dir/ ;; 4049 esac 4050 for ac_exec_ext in '' $ac_executable_extensions; do 4051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4052 ac_cv_prog_ac_ct_STRIP="strip" 4053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4054 break 2 4055 fi 4056done 4057 done 4058IFS=$as_save_IFS 4059 4060fi ;; 4061esac 4062fi 4063ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4064if test -n "$ac_ct_STRIP"; then 4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4066printf "%s\n" "$ac_ct_STRIP" >&6; } 4067else 4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4069printf "%s\n" "no" >&6; } 4070fi 4071 4072 if test "x$ac_ct_STRIP" = x; then 4073 STRIP=":" 4074 else 4075 case $cross_compiling:$ac_tool_warned in 4076yes:) 4077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4078printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4079ac_tool_warned=yes ;; 4080esac 4081 STRIP=$ac_ct_STRIP 4082 fi 4083else 4084 STRIP="$ac_cv_prog_STRIP" 4085fi 4086 4087fi 4088INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4089 4090 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4092printf %s "checking for a race-free mkdir -p... " >&6; } 4093if test -z "$MKDIR_P"; then 4094 if test ${ac_cv_path_mkdir+y} 4095then : 4096 printf %s "(cached) " >&6 4097else case e in #( 4098 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4099for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4100do 4101 IFS=$as_save_IFS 4102 case $as_dir in #((( 4103 '') as_dir=./ ;; 4104 */) ;; 4105 *) as_dir=$as_dir/ ;; 4106 esac 4107 for ac_prog in mkdir gmkdir; do 4108 for ac_exec_ext in '' $ac_executable_extensions; do 4109 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4110 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4111 'mkdir ('*'coreutils) '* | \ 4112 *'BusyBox '* | \ 4113 'mkdir (fileutils) '4.1*) 4114 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4115 break 3;; 4116 esac 4117 done 4118 done 4119 done 4120IFS=$as_save_IFS 4121 ;; 4122esac 4123fi 4124 4125 test -d ./--version && rmdir ./--version 4126 if test ${ac_cv_path_mkdir+y}; then 4127 MKDIR_P="$ac_cv_path_mkdir -p" 4128 else 4129 # As a last resort, use plain mkdir -p, 4130 # in the hope it doesn't have the bugs of ancient mkdir. 4131 MKDIR_P='mkdir -p' 4132 fi 4133fi 4134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4135printf "%s\n" "$MKDIR_P" >&6; } 4136 4137for ac_prog in gawk mawk nawk awk 4138do 4139 # Extract the first word of "$ac_prog", so it can be a program name with args. 4140set dummy $ac_prog; ac_word=$2 4141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4142printf %s "checking for $ac_word... " >&6; } 4143if test ${ac_cv_prog_AWK+y} 4144then : 4145 printf %s "(cached) " >&6 4146else case e in #( 4147 e) if test -n "$AWK"; then 4148 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4149else 4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4151for as_dir in $PATH 4152do 4153 IFS=$as_save_IFS 4154 case $as_dir in #((( 4155 '') as_dir=./ ;; 4156 */) ;; 4157 *) as_dir=$as_dir/ ;; 4158 esac 4159 for ac_exec_ext in '' $ac_executable_extensions; do 4160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4161 ac_cv_prog_AWK="$ac_prog" 4162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4163 break 2 4164 fi 4165done 4166 done 4167IFS=$as_save_IFS 4168 4169fi ;; 4170esac 4171fi 4172AWK=$ac_cv_prog_AWK 4173if test -n "$AWK"; then 4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4175printf "%s\n" "$AWK" >&6; } 4176else 4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4178printf "%s\n" "no" >&6; } 4179fi 4180 4181 4182 test -n "$AWK" && break 4183done 4184 4185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4186printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4187set x ${MAKE-make} 4188ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4189if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4190then : 4191 printf %s "(cached) " >&6 4192else case e in #( 4193 e) cat >conftest.make <<\_ACEOF 4194SHELL = /bin/sh 4195all: 4196 @echo '@@@%%%=$(MAKE)=@@@%%%' 4197_ACEOF 4198# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4199case `${MAKE-make} -f conftest.make 2>/dev/null` in 4200 *@@@%%%=?*=@@@%%%*) 4201 eval ac_cv_prog_make_${ac_make}_set=yes;; 4202 *) 4203 eval ac_cv_prog_make_${ac_make}_set=no;; 4204esac 4205rm -f conftest.make ;; 4206esac 4207fi 4208if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4210printf "%s\n" "yes" >&6; } 4211 SET_MAKE= 4212else 4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4214printf "%s\n" "no" >&6; } 4215 SET_MAKE="MAKE=${MAKE-make}" 4216fi 4217 4218rm -rf .tst 2>/dev/null 4219mkdir .tst 2>/dev/null 4220if test -d .tst; then 4221 am__leading_dot=. 4222else 4223 am__leading_dot=_ 4224fi 4225rmdir .tst 2>/dev/null 4226 4227DEPDIR="${am__leading_dot}deps" 4228 4229ac_config_commands="$ac_config_commands depfiles" 4230 4231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4232printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4233cat > confinc.mk << 'END' 4234am__doit: 4235 @echo this is the am__doit target >confinc.out 4236.PHONY: am__doit 4237END 4238am__include="#" 4239am__quote= 4240# BSD make does it like this. 4241echo '.include "confinc.mk" # ignored' > confmf.BSD 4242# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4243echo 'include confinc.mk # ignored' > confmf.GNU 4244_am_result=no 4245for s in GNU BSD; do 4246 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4247 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4248 ac_status=$? 4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4250 (exit $ac_status); } 4251 case $?:`cat confinc.out 2>/dev/null` in #( 4252 '0:this is the am__doit target') : 4253 case $s in #( 4254 BSD) : 4255 am__include='.include' am__quote='"' ;; #( 4256 *) : 4257 am__include='include' am__quote='' ;; 4258esac ;; #( 4259 *) : 4260 ;; 4261esac 4262 if test "$am__include" != "#"; then 4263 _am_result="yes ($s style)" 4264 break 4265 fi 4266done 4267rm -f confinc.* confmf.* 4268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4269printf "%s\n" "${_am_result}" >&6; } 4270 4271# Check whether --enable-dependency-tracking was given. 4272if test ${enable_dependency_tracking+y} 4273then : 4274 enableval=$enable_dependency_tracking; 4275fi 4276 4277if test "x$enable_dependency_tracking" != xno; then 4278 am_depcomp="$ac_aux_dir/depcomp" 4279 AMDEPBACKSLASH='\' 4280 am__nodep='_no' 4281fi 4282 if test "x$enable_dependency_tracking" != xno; then 4283 AMDEP_TRUE= 4284 AMDEP_FALSE='#' 4285else 4286 AMDEP_TRUE='#' 4287 AMDEP_FALSE= 4288fi 4289 4290 4291# Check whether --enable-silent-rules was given. 4292if test ${enable_silent_rules+y} 4293then : 4294 enableval=$enable_silent_rules; 4295fi 4296 4297case $enable_silent_rules in # ((( 4298 yes) AM_DEFAULT_VERBOSITY=0;; 4299 no) AM_DEFAULT_VERBOSITY=1;; 4300 *) AM_DEFAULT_VERBOSITY=1;; 4301esac 4302am_make=${MAKE-make} 4303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4304printf %s "checking whether $am_make supports nested variables... " >&6; } 4305if test ${am_cv_make_support_nested_variables+y} 4306then : 4307 printf %s "(cached) " >&6 4308else case e in #( 4309 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4310BAR0=false 4311BAR1=true 4312V=1 4313am__doit: 4314 @$(TRUE) 4315.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4316 am_cv_make_support_nested_variables=yes 4317else 4318 am_cv_make_support_nested_variables=no 4319fi ;; 4320esac 4321fi 4322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4323printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4324if test $am_cv_make_support_nested_variables = yes; then 4325 AM_V='$(V)' 4326 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4327else 4328 AM_V=$AM_DEFAULT_VERBOSITY 4329 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4330fi 4331AM_BACKSLASH='\' 4332 4333if test "`cd $srcdir && pwd`" != "`pwd`"; then 4334 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4335 # is not polluted with repeated "-I." 4336 am__isrc=' -I$(srcdir)' 4337 # test to see if srcdir already configured 4338 if test -f $srcdir/config.status; then 4339 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4340 fi 4341fi 4342 4343# test whether we have cygpath 4344if test -z "$CYGPATH_W"; then 4345 if (cygpath --version) >/dev/null 2>/dev/null; then 4346 CYGPATH_W='cygpath -w' 4347 else 4348 CYGPATH_W=echo 4349 fi 4350fi 4351 4352 4353# Define the identity of the package. 4354 PACKAGE='xev' 4355 VERSION='1.2.6' 4356 4357 4358printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4359 4360 4361printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4362 4363# Some tools Automake needs. 4364 4365ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4366 4367 4368AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4369 4370 4371AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4372 4373 4374AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4375 4376 4377MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4378 4379# For better backward compatibility. To be removed once Automake 1.9.x 4380# dies out for good. For more background, see: 4381# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4382# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4383mkdir_p='$(MKDIR_P)' 4384 4385# We need awk for the "check" target (and possibly the TAP driver). The 4386# system "awk" is bad on some platforms. 4387# Always define AMTAR for backward compatibility. Yes, it's still used 4388# in the wild :-( We should find a proper way to deprecate it ... 4389AMTAR='$${TAR-tar}' 4390 4391 4392# We'll loop over all known methods to create a tar archive until one works. 4393_am_tools='gnutar pax cpio none' 4394 4395am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4396 4397 4398 4399 4400 4401depcc="$CC" am_compiler_list= 4402 4403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4404printf %s "checking dependency style of $depcc... " >&6; } 4405if test ${am_cv_CC_dependencies_compiler_type+y} 4406then : 4407 printf %s "(cached) " >&6 4408else case e in #( 4409 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4410 # We make a subdir and do the tests there. Otherwise we can end up 4411 # making bogus files that we don't know about and never remove. For 4412 # instance it was reported that on HP-UX the gcc test will end up 4413 # making a dummy file named 'D' -- because '-MD' means "put the output 4414 # in D". 4415 rm -rf conftest.dir 4416 mkdir conftest.dir 4417 # Copy depcomp to subdir because otherwise we won't find it if we're 4418 # using a relative directory. 4419 cp "$am_depcomp" conftest.dir 4420 cd conftest.dir 4421 # We will build objects and dependencies in a subdirectory because 4422 # it helps to detect inapplicable dependency modes. For instance 4423 # both Tru64's cc and ICC support -MD to output dependencies as a 4424 # side effect of compilation, but ICC will put the dependencies in 4425 # the current directory while Tru64 will put them in the object 4426 # directory. 4427 mkdir sub 4428 4429 am_cv_CC_dependencies_compiler_type=none 4430 if test "$am_compiler_list" = ""; then 4431 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4432 fi 4433 am__universal=false 4434 case " $depcc " in #( 4435 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4436 esac 4437 4438 for depmode in $am_compiler_list; do 4439 # Setup a source with many dependencies, because some compilers 4440 # like to wrap large dependency lists on column 80 (with \), and 4441 # we should not choose a depcomp mode which is confused by this. 4442 # 4443 # We need to recreate these files for each test, as the compiler may 4444 # overwrite some of them when testing with obscure command lines. 4445 # This happens at least with the AIX C compiler. 4446 : > sub/conftest.c 4447 for i in 1 2 3 4 5 6; do 4448 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4449 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4450 # Solaris 10 /bin/sh. 4451 echo '/* dummy */' > sub/conftst$i.h 4452 done 4453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4454 4455 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4456 # mode. It turns out that the SunPro C++ compiler does not properly 4457 # handle '-M -o', and we need to detect this. Also, some Intel 4458 # versions had trouble with output in subdirs. 4459 am__obj=sub/conftest.${OBJEXT-o} 4460 am__minus_obj="-o $am__obj" 4461 case $depmode in 4462 gcc) 4463 # This depmode causes a compiler race in universal mode. 4464 test "$am__universal" = false || continue 4465 ;; 4466 nosideeffect) 4467 # After this tag, mechanisms are not by side-effect, so they'll 4468 # only be used when explicitly requested. 4469 if test "x$enable_dependency_tracking" = xyes; then 4470 continue 4471 else 4472 break 4473 fi 4474 ;; 4475 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4476 # This compiler won't grok '-c -o', but also, the minuso test has 4477 # not run yet. These depmodes are late enough in the game, and 4478 # so weak that their functioning should not be impacted. 4479 am__obj=conftest.${OBJEXT-o} 4480 am__minus_obj= 4481 ;; 4482 none) break ;; 4483 esac 4484 if depmode=$depmode \ 4485 source=sub/conftest.c object=$am__obj \ 4486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4487 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4488 >/dev/null 2>conftest.err && 4489 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4490 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4491 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4492 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4493 # icc doesn't choke on unknown options, it will just issue warnings 4494 # or remarks (even with -Werror). So we grep stderr for any message 4495 # that says an option was ignored or not supported. 4496 # When given -MP, icc 7.0 and 7.1 complain thusly: 4497 # icc: Command line warning: ignoring option '-M'; no argument required 4498 # The diagnosis changed in icc 8.0: 4499 # icc: Command line remark: option '-MP' not supported 4500 if (grep 'ignoring option' conftest.err || 4501 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4502 am_cv_CC_dependencies_compiler_type=$depmode 4503 break 4504 fi 4505 fi 4506 done 4507 4508 cd .. 4509 rm -rf conftest.dir 4510else 4511 am_cv_CC_dependencies_compiler_type=none 4512fi 4513 ;; 4514esac 4515fi 4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4517printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4518CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4519 4520 if 4521 test "x$enable_dependency_tracking" != xno \ 4522 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4523 am__fastdepCC_TRUE= 4524 am__fastdepCC_FALSE='#' 4525else 4526 am__fastdepCC_TRUE='#' 4527 am__fastdepCC_FALSE= 4528fi 4529 4530 4531# Variables for tags utilities; see am/tags.am 4532if test -z "$CTAGS"; then 4533 CTAGS=ctags 4534fi 4535 4536if test -z "$ETAGS"; then 4537 ETAGS=etags 4538fi 4539 4540if test -z "$CSCOPE"; then 4541 CSCOPE=cscope 4542fi 4543 4544 4545 4546# POSIX will say in a future version that running "rm -f" with no argument 4547# is OK; and we want to be able to make that assumption in our Makefile 4548# recipes. So use an aggressive probe to check that the usage we want is 4549# actually supported "in the wild" to an acceptable degree. 4550# See automake bug#10828. 4551# To make any issue more visible, cause the running configure to be aborted 4552# by default if the 'rm' program in use doesn't match our expectations; the 4553# user can still override this though. 4554if rm -f && rm -fr && rm -rf; then : OK; else 4555 cat >&2 <<'END' 4556Oops! 4557 4558Your 'rm' program seems unable to run without file operands specified 4559on the command line, even when the '-f' option is present. This is contrary 4560to the behaviour of most rm programs out there, and not conforming with 4561the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4562 4563Please tell bug-automake@gnu.org about your system, including the value 4564of your $PATH and any error possibly output before this message. This 4565can help us improve future automake versions. 4566 4567END 4568 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4569 echo 'Configuration will proceed anyway, since you have set the' >&2 4570 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4571 echo >&2 4572 else 4573 cat >&2 <<'END' 4574Aborting the configuration process, to ensure you take notice of the issue. 4575 4576You can download and install GNU coreutils to get an 'rm' implementation 4577that behaves properly: <https://www.gnu.org/software/coreutils/>. 4578 4579If you want to complete the configuration process using your problematic 4580'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4581to "yes", and re-run configure. 4582 4583END 4584 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4585 fi 4586fi 4587 4588 4589# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4602printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4603if test ${ac_cv_c_undeclared_builtin_options+y} 4604then : 4605 printf %s "(cached) " >&6 4606else case e in #( 4607 e) ac_save_CFLAGS=$CFLAGS 4608 ac_cv_c_undeclared_builtin_options='cannot detect' 4609 for ac_arg in '' -fno-builtin; do 4610 CFLAGS="$ac_save_CFLAGS $ac_arg" 4611 # This test program should *not* compile successfully. 4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4613/* end confdefs.h. */ 4614 4615int 4616main (void) 4617{ 4618(void) strchr; 4619 ; 4620 return 0; 4621} 4622_ACEOF 4623if ac_fn_c_try_compile "$LINENO" 4624then : 4625 4626else case e in #( 4627 e) # This test program should compile successfully. 4628 # No library function is consistently available on 4629 # freestanding implementations, so test against a dummy 4630 # declaration. Include always-available headers on the 4631 # off chance that they somehow elicit warnings. 4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4633/* end confdefs.h. */ 4634#include <float.h> 4635#include <limits.h> 4636#include <stdarg.h> 4637#include <stddef.h> 4638extern void ac_decl (int, char *); 4639 4640int 4641main (void) 4642{ 4643(void) ac_decl (0, (char *) 0); 4644 (void) ac_decl; 4645 4646 ; 4647 return 0; 4648} 4649_ACEOF 4650if ac_fn_c_try_compile "$LINENO" 4651then : 4652 if test x"$ac_arg" = x 4653then : 4654 ac_cv_c_undeclared_builtin_options='none needed' 4655else case e in #( 4656 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4657esac 4658fi 4659 break 4660fi 4661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4662esac 4663fi 4664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4665 done 4666 CFLAGS=$ac_save_CFLAGS 4667 ;; 4668esac 4669fi 4670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4671printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4672 case $ac_cv_c_undeclared_builtin_options in #( 4673 'cannot detect') : 4674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4675printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4676as_fn_error $? "cannot make $CC report undeclared builtins 4677See 'config.log' for more details" "$LINENO" 5; } ;; #( 4678 'none needed') : 4679 ac_c_undeclared_builtin_options='' ;; #( 4680 *) : 4681 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4682esac 4683 4684 4685 4686 4687 4688ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4689if test "x$ac_cv_have_decl___clang__" = xyes 4690then : 4691 CLANGCC="yes" 4692else case e in #( 4693 e) CLANGCC="no" ;; 4694esac 4695fi 4696ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4697if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4698then : 4699 INTELCC="yes" 4700else case e in #( 4701 e) INTELCC="no" ;; 4702esac 4703fi 4704ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4705if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4706then : 4707 SUNCC="yes" 4708else case e in #( 4709 e) SUNCC="no" ;; 4710esac 4711fi 4712 4713 4714 4715 4716 4717 4718 4719 4720if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4721 if test -n "$ac_tool_prefix"; then 4722 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4723set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4725printf %s "checking for $ac_word... " >&6; } 4726if test ${ac_cv_path_PKG_CONFIG+y} 4727then : 4728 printf %s "(cached) " >&6 4729else case e in #( 4730 e) case $PKG_CONFIG in 4731 [\\/]* | ?:[\\/]*) 4732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4733 ;; 4734 *) 4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH 4737do 4738 IFS=$as_save_IFS 4739 case $as_dir in #((( 4740 '') as_dir=./ ;; 4741 */) ;; 4742 *) as_dir=$as_dir/ ;; 4743 esac 4744 for ac_exec_ext in '' $ac_executable_extensions; do 4745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4746 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4748 break 2 4749 fi 4750done 4751 done 4752IFS=$as_save_IFS 4753 4754 ;; 4755esac ;; 4756esac 4757fi 4758PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4759if test -n "$PKG_CONFIG"; then 4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4761printf "%s\n" "$PKG_CONFIG" >&6; } 4762else 4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4764printf "%s\n" "no" >&6; } 4765fi 4766 4767 4768fi 4769if test -z "$ac_cv_path_PKG_CONFIG"; then 4770 ac_pt_PKG_CONFIG=$PKG_CONFIG 4771 # Extract the first word of "pkg-config", so it can be a program name with args. 4772set dummy pkg-config; ac_word=$2 4773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4774printf %s "checking for $ac_word... " >&6; } 4775if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4776then : 4777 printf %s "(cached) " >&6 4778else case e in #( 4779 e) case $ac_pt_PKG_CONFIG in 4780 [\\/]* | ?:[\\/]*) 4781 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4782 ;; 4783 *) 4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4785for as_dir in $PATH 4786do 4787 IFS=$as_save_IFS 4788 case $as_dir in #((( 4789 '') as_dir=./ ;; 4790 */) ;; 4791 *) as_dir=$as_dir/ ;; 4792 esac 4793 for ac_exec_ext in '' $ac_executable_extensions; do 4794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4795 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4797 break 2 4798 fi 4799done 4800 done 4801IFS=$as_save_IFS 4802 4803 ;; 4804esac ;; 4805esac 4806fi 4807ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4808if test -n "$ac_pt_PKG_CONFIG"; then 4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4810printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4811else 4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4813printf "%s\n" "no" >&6; } 4814fi 4815 4816 if test "x$ac_pt_PKG_CONFIG" = x; then 4817 PKG_CONFIG="" 4818 else 4819 case $cross_compiling:$ac_tool_warned in 4820yes:) 4821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4822printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4823ac_tool_warned=yes ;; 4824esac 4825 PKG_CONFIG=$ac_pt_PKG_CONFIG 4826 fi 4827else 4828 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4829fi 4830 4831fi 4832if test -n "$PKG_CONFIG"; then 4833 _pkg_min_version=0.9.0 4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4835printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4836 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4838printf "%s\n" "yes" >&6; } 4839 else 4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841printf "%s\n" "no" >&6; } 4842 PKG_CONFIG="" 4843 fi 4844fi 4845 4846 4847 # Make sure we can run config.sub. 4848$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4849 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4850 4851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4852printf %s "checking build system type... " >&6; } 4853if test ${ac_cv_build+y} 4854then : 4855 printf %s "(cached) " >&6 4856else case e in #( 4857 e) ac_build_alias=$build_alias 4858test "x$ac_build_alias" = x && 4859 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4860test "x$ac_build_alias" = x && 4861 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4862ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4863 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4864 ;; 4865esac 4866fi 4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4868printf "%s\n" "$ac_cv_build" >&6; } 4869case $ac_cv_build in 4870*-*-*) ;; 4871*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4872esac 4873build=$ac_cv_build 4874ac_save_IFS=$IFS; IFS='-' 4875set x $ac_cv_build 4876shift 4877build_cpu=$1 4878build_vendor=$2 4879shift; shift 4880# Remember, the first character of IFS is used to create $*, 4881# except with old shells: 4882build_os=$* 4883IFS=$ac_save_IFS 4884case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4885 4886 4887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4888printf %s "checking host system type... " >&6; } 4889if test ${ac_cv_host+y} 4890then : 4891 printf %s "(cached) " >&6 4892else case e in #( 4893 e) if test "x$host_alias" = x; then 4894 ac_cv_host=$ac_cv_build 4895else 4896 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4897 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4898fi 4899 ;; 4900esac 4901fi 4902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4903printf "%s\n" "$ac_cv_host" >&6; } 4904case $ac_cv_host in 4905*-*-*) ;; 4906*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4907esac 4908host=$ac_cv_host 4909ac_save_IFS=$IFS; IFS='-' 4910set x $ac_cv_host 4911shift 4912host_cpu=$1 4913host_vendor=$2 4914shift; shift 4915# Remember, the first character of IFS is used to create $*, 4916# except with old shells: 4917host_os=$* 4918IFS=$ac_save_IFS 4919case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4920 4921 4922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4923printf %s "checking for a sed that does not truncate output... " >&6; } 4924if test ${ac_cv_path_SED+y} 4925then : 4926 printf %s "(cached) " >&6 4927else case e in #( 4928 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4929 for ac_i in 1 2 3 4 5 6 7; do 4930 ac_script="$ac_script$as_nl$ac_script" 4931 done 4932 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4933 { ac_script=; unset ac_script;} 4934 if test -z "$SED"; then 4935 ac_path_SED_found=false 4936 # Loop through the user's path and test for each of PROGNAME-LIST 4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4938for as_dir in $PATH 4939do 4940 IFS=$as_save_IFS 4941 case $as_dir in #((( 4942 '') as_dir=./ ;; 4943 */) ;; 4944 *) as_dir=$as_dir/ ;; 4945 esac 4946 for ac_prog in sed gsed 4947 do 4948 for ac_exec_ext in '' $ac_executable_extensions; do 4949 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4950 as_fn_executable_p "$ac_path_SED" || continue 4951# Check for GNU ac_path_SED and select it if it is found. 4952 # Check for GNU $ac_path_SED 4953case `"$ac_path_SED" --version 2>&1` in #( 4954*GNU*) 4955 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4956#( 4957*) 4958 ac_count=0 4959 printf %s 0123456789 >"conftest.in" 4960 while : 4961 do 4962 cat "conftest.in" "conftest.in" >"conftest.tmp" 4963 mv "conftest.tmp" "conftest.in" 4964 cp "conftest.in" "conftest.nl" 4965 printf "%s\n" '' >> "conftest.nl" 4966 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4968 as_fn_arith $ac_count + 1 && ac_count=$as_val 4969 if test $ac_count -gt ${ac_path_SED_max-0}; then 4970 # Best one so far, save it but keep looking for a better one 4971 ac_cv_path_SED="$ac_path_SED" 4972 ac_path_SED_max=$ac_count 4973 fi 4974 # 10*(2^10) chars as input seems more than enough 4975 test $ac_count -gt 10 && break 4976 done 4977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4978esac 4979 4980 $ac_path_SED_found && break 3 4981 done 4982 done 4983 done 4984IFS=$as_save_IFS 4985 if test -z "$ac_cv_path_SED"; then 4986 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4987 fi 4988else 4989 ac_cv_path_SED=$SED 4990fi 4991 ;; 4992esac 4993fi 4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4995printf "%s\n" "$ac_cv_path_SED" >&6; } 4996 SED="$ac_cv_path_SED" 4997 rm -f conftest.sed 4998 4999 5000 5001 5002 5003 5004# Check whether --enable-selective-werror was given. 5005if test ${enable_selective_werror+y} 5006then : 5007 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5008else case e in #( 5009 e) SELECTIVE_WERROR=yes ;; 5010esac 5011fi 5012 5013 5014 5015 5016 5017# -v is too short to test reliably with XORG_TESTSET_CFLAG 5018if test "x$SUNCC" = "xyes"; then 5019 BASE_CFLAGS="-v" 5020else 5021 BASE_CFLAGS="" 5022fi 5023 5024# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038xorg_testset_save_CFLAGS="$CFLAGS" 5039 5040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5043printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5044if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5045then : 5046 printf %s "(cached) " >&6 5047else case e in #( 5048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5049/* end confdefs.h. */ 5050int i; 5051_ACEOF 5052if ac_fn_c_try_compile "$LINENO" 5053then : 5054 xorg_cv_cc_flag_unknown_warning_option=yes 5055else case e in #( 5056 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5057esac 5058fi 5059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5060esac 5061fi 5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5063printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5065 CFLAGS="$xorg_testset_save_CFLAGS" 5066fi 5067 5068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5071 fi 5072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5074printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5075if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5076then : 5077 printf %s "(cached) " >&6 5078else case e in #( 5079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081int i; 5082_ACEOF 5083if ac_fn_c_try_compile "$LINENO" 5084then : 5085 xorg_cv_cc_flag_unused_command_line_argument=yes 5086else case e in #( 5087 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5088esac 5089fi 5090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5091esac 5092fi 5093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5096 CFLAGS="$xorg_testset_save_CFLAGS" 5097fi 5098 5099found="no" 5100 5101 if test $found = "no" ; then 5102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5104 fi 5105 5106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5108 fi 5109 5110 CFLAGS="$CFLAGS -Wall" 5111 5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5113printf %s "checking if $CC supports -Wall... " >&6; } 5114 cacheid=xorg_cv_cc_flag__Wall 5115 if eval test \${$cacheid+y} 5116then : 5117 printf %s "(cached) " >&6 5118else case e in #( 5119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5120/* end confdefs.h. */ 5121int i; 5122int 5123main (void) 5124{ 5125 5126 ; 5127 return 0; 5128} 5129_ACEOF 5130if ac_fn_c_try_link "$LINENO" 5131then : 5132 eval $cacheid=yes 5133else case e in #( 5134 e) eval $cacheid=no ;; 5135esac 5136fi 5137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5138 conftest$ac_exeext conftest.$ac_ext ;; 5139esac 5140fi 5141 5142 5143 CFLAGS="$xorg_testset_save_CFLAGS" 5144 5145 eval supported=\$$cacheid 5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5147printf "%s\n" "$supported" >&6; } 5148 if test "$supported" = "yes" ; then 5149 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5150 found="yes" 5151 fi 5152 fi 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168xorg_testset_save_CFLAGS="$CFLAGS" 5169 5170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5173printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5174if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5175then : 5176 printf %s "(cached) " >&6 5177else case e in #( 5178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5179/* end confdefs.h. */ 5180int i; 5181_ACEOF 5182if ac_fn_c_try_compile "$LINENO" 5183then : 5184 xorg_cv_cc_flag_unknown_warning_option=yes 5185else case e in #( 5186 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5187esac 5188fi 5189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5190esac 5191fi 5192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5195 CFLAGS="$xorg_testset_save_CFLAGS" 5196fi 5197 5198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5201 fi 5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5205if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5206then : 5207 printf %s "(cached) " >&6 5208else case e in #( 5209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210/* end confdefs.h. */ 5211int i; 5212_ACEOF 5213if ac_fn_c_try_compile "$LINENO" 5214then : 5215 xorg_cv_cc_flag_unused_command_line_argument=yes 5216else case e in #( 5217 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5218esac 5219fi 5220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5221esac 5222fi 5223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5226 CFLAGS="$xorg_testset_save_CFLAGS" 5227fi 5228 5229found="no" 5230 5231 if test $found = "no" ; then 5232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5234 fi 5235 5236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5238 fi 5239 5240 CFLAGS="$CFLAGS -Wpointer-arith" 5241 5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5243printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5244 cacheid=xorg_cv_cc_flag__Wpointer_arith 5245 if eval test \${$cacheid+y} 5246then : 5247 printf %s "(cached) " >&6 5248else case e in #( 5249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5250/* end confdefs.h. */ 5251int i; 5252int 5253main (void) 5254{ 5255 5256 ; 5257 return 0; 5258} 5259_ACEOF 5260if ac_fn_c_try_link "$LINENO" 5261then : 5262 eval $cacheid=yes 5263else case e in #( 5264 e) eval $cacheid=no ;; 5265esac 5266fi 5267rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5268 conftest$ac_exeext conftest.$ac_ext ;; 5269esac 5270fi 5271 5272 5273 CFLAGS="$xorg_testset_save_CFLAGS" 5274 5275 eval supported=\$$cacheid 5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5277printf "%s\n" "$supported" >&6; } 5278 if test "$supported" = "yes" ; then 5279 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5280 found="yes" 5281 fi 5282 fi 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298xorg_testset_save_CFLAGS="$CFLAGS" 5299 5300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5303printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5304if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5305then : 5306 printf %s "(cached) " >&6 5307else case e in #( 5308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5309/* end confdefs.h. */ 5310int i; 5311_ACEOF 5312if ac_fn_c_try_compile "$LINENO" 5313then : 5314 xorg_cv_cc_flag_unknown_warning_option=yes 5315else case e in #( 5316 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5317esac 5318fi 5319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5320esac 5321fi 5322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5325 CFLAGS="$xorg_testset_save_CFLAGS" 5326fi 5327 5328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5331 fi 5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5335if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5336then : 5337 printf %s "(cached) " >&6 5338else case e in #( 5339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5340/* end confdefs.h. */ 5341int i; 5342_ACEOF 5343if ac_fn_c_try_compile "$LINENO" 5344then : 5345 xorg_cv_cc_flag_unused_command_line_argument=yes 5346else case e in #( 5347 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5348esac 5349fi 5350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5351esac 5352fi 5353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5354printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5356 CFLAGS="$xorg_testset_save_CFLAGS" 5357fi 5358 5359found="no" 5360 5361 if test $found = "no" ; then 5362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5364 fi 5365 5366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5368 fi 5369 5370 CFLAGS="$CFLAGS -Wmissing-declarations" 5371 5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5373printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5374 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5375 if eval test \${$cacheid+y} 5376then : 5377 printf %s "(cached) " >&6 5378else case e in #( 5379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5380/* end confdefs.h. */ 5381int i; 5382int 5383main (void) 5384{ 5385 5386 ; 5387 return 0; 5388} 5389_ACEOF 5390if ac_fn_c_try_link "$LINENO" 5391then : 5392 eval $cacheid=yes 5393else case e in #( 5394 e) eval $cacheid=no ;; 5395esac 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5398 conftest$ac_exeext conftest.$ac_ext ;; 5399esac 5400fi 5401 5402 5403 CFLAGS="$xorg_testset_save_CFLAGS" 5404 5405 eval supported=\$$cacheid 5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5407printf "%s\n" "$supported" >&6; } 5408 if test "$supported" = "yes" ; then 5409 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5410 found="yes" 5411 fi 5412 fi 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428xorg_testset_save_CFLAGS="$CFLAGS" 5429 5430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5433printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5434if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5435then : 5436 printf %s "(cached) " >&6 5437else case e in #( 5438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5439/* end confdefs.h. */ 5440int i; 5441_ACEOF 5442if ac_fn_c_try_compile "$LINENO" 5443then : 5444 xorg_cv_cc_flag_unknown_warning_option=yes 5445else case e in #( 5446 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5447esac 5448fi 5449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5450esac 5451fi 5452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5453printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5455 CFLAGS="$xorg_testset_save_CFLAGS" 5456fi 5457 5458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5461 fi 5462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5464printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5465if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5466then : 5467 printf %s "(cached) " >&6 5468else case e in #( 5469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471int i; 5472_ACEOF 5473if ac_fn_c_try_compile "$LINENO" 5474then : 5475 xorg_cv_cc_flag_unused_command_line_argument=yes 5476else case e in #( 5477 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5478esac 5479fi 5480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5481esac 5482fi 5483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5484printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5486 CFLAGS="$xorg_testset_save_CFLAGS" 5487fi 5488 5489found="no" 5490 5491 if test $found = "no" ; then 5492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5494 fi 5495 5496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5498 fi 5499 5500 CFLAGS="$CFLAGS -Wformat=2" 5501 5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5503printf %s "checking if $CC supports -Wformat=2... " >&6; } 5504 cacheid=xorg_cv_cc_flag__Wformat_2 5505 if eval test \${$cacheid+y} 5506then : 5507 printf %s "(cached) " >&6 5508else case e in #( 5509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5510/* end confdefs.h. */ 5511int i; 5512int 5513main (void) 5514{ 5515 5516 ; 5517 return 0; 5518} 5519_ACEOF 5520if ac_fn_c_try_link "$LINENO" 5521then : 5522 eval $cacheid=yes 5523else case e in #( 5524 e) eval $cacheid=no ;; 5525esac 5526fi 5527rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5528 conftest$ac_exeext conftest.$ac_ext ;; 5529esac 5530fi 5531 5532 5533 CFLAGS="$xorg_testset_save_CFLAGS" 5534 5535 eval supported=\$$cacheid 5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5537printf "%s\n" "$supported" >&6; } 5538 if test "$supported" = "yes" ; then 5539 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5540 found="yes" 5541 fi 5542 fi 5543 5544 if test $found = "no" ; then 5545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5547 fi 5548 5549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5551 fi 5552 5553 CFLAGS="$CFLAGS -Wformat" 5554 5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5556printf %s "checking if $CC supports -Wformat... " >&6; } 5557 cacheid=xorg_cv_cc_flag__Wformat 5558 if eval test \${$cacheid+y} 5559then : 5560 printf %s "(cached) " >&6 5561else case e in #( 5562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5563/* end confdefs.h. */ 5564int i; 5565int 5566main (void) 5567{ 5568 5569 ; 5570 return 0; 5571} 5572_ACEOF 5573if ac_fn_c_try_link "$LINENO" 5574then : 5575 eval $cacheid=yes 5576else case e in #( 5577 e) eval $cacheid=no ;; 5578esac 5579fi 5580rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5581 conftest$ac_exeext conftest.$ac_ext ;; 5582esac 5583fi 5584 5585 5586 CFLAGS="$xorg_testset_save_CFLAGS" 5587 5588 eval supported=\$$cacheid 5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5590printf "%s\n" "$supported" >&6; } 5591 if test "$supported" = "yes" ; then 5592 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5593 found="yes" 5594 fi 5595 fi 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613xorg_testset_save_CFLAGS="$CFLAGS" 5614 5615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5619if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5620then : 5621 printf %s "(cached) " >&6 5622else case e in #( 5623 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625int i; 5626_ACEOF 5627if ac_fn_c_try_compile "$LINENO" 5628then : 5629 xorg_cv_cc_flag_unknown_warning_option=yes 5630else case e in #( 5631 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5632esac 5633fi 5634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5635esac 5636fi 5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5638printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5640 CFLAGS="$xorg_testset_save_CFLAGS" 5641fi 5642 5643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5646 fi 5647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5649printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5650if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5651then : 5652 printf %s "(cached) " >&6 5653else case e in #( 5654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656int i; 5657_ACEOF 5658if ac_fn_c_try_compile "$LINENO" 5659then : 5660 xorg_cv_cc_flag_unused_command_line_argument=yes 5661else case e in #( 5662 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5663esac 5664fi 5665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5666esac 5667fi 5668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5669printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5671 CFLAGS="$xorg_testset_save_CFLAGS" 5672fi 5673 5674found="no" 5675 5676 if test $found = "no" ; then 5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5679 fi 5680 5681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5683 fi 5684 5685 CFLAGS="$CFLAGS -Wstrict-prototypes" 5686 5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5688printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5689 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5690 if eval test \${$cacheid+y} 5691then : 5692 printf %s "(cached) " >&6 5693else case e in #( 5694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695/* end confdefs.h. */ 5696int i; 5697int 5698main (void) 5699{ 5700 5701 ; 5702 return 0; 5703} 5704_ACEOF 5705if ac_fn_c_try_link "$LINENO" 5706then : 5707 eval $cacheid=yes 5708else case e in #( 5709 e) eval $cacheid=no ;; 5710esac 5711fi 5712rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5713 conftest$ac_exeext conftest.$ac_ext ;; 5714esac 5715fi 5716 5717 5718 CFLAGS="$xorg_testset_save_CFLAGS" 5719 5720 eval supported=\$$cacheid 5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5722printf "%s\n" "$supported" >&6; } 5723 if test "$supported" = "yes" ; then 5724 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5725 found="yes" 5726 fi 5727 fi 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743xorg_testset_save_CFLAGS="$CFLAGS" 5744 5745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5748printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5749if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5750then : 5751 printf %s "(cached) " >&6 5752else case e in #( 5753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5754/* end confdefs.h. */ 5755int i; 5756_ACEOF 5757if ac_fn_c_try_compile "$LINENO" 5758then : 5759 xorg_cv_cc_flag_unknown_warning_option=yes 5760else case e in #( 5761 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5762esac 5763fi 5764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5765esac 5766fi 5767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5768printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5770 CFLAGS="$xorg_testset_save_CFLAGS" 5771fi 5772 5773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5776 fi 5777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5779printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5780if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5781then : 5782 printf %s "(cached) " >&6 5783else case e in #( 5784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5785/* end confdefs.h. */ 5786int i; 5787_ACEOF 5788if ac_fn_c_try_compile "$LINENO" 5789then : 5790 xorg_cv_cc_flag_unused_command_line_argument=yes 5791else case e in #( 5792 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5793esac 5794fi 5795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5796esac 5797fi 5798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5801 CFLAGS="$xorg_testset_save_CFLAGS" 5802fi 5803 5804found="no" 5805 5806 if test $found = "no" ; then 5807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5809 fi 5810 5811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5813 fi 5814 5815 CFLAGS="$CFLAGS -Wmissing-prototypes" 5816 5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5818printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5819 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5820 if eval test \${$cacheid+y} 5821then : 5822 printf %s "(cached) " >&6 5823else case e in #( 5824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5825/* end confdefs.h. */ 5826int i; 5827int 5828main (void) 5829{ 5830 5831 ; 5832 return 0; 5833} 5834_ACEOF 5835if ac_fn_c_try_link "$LINENO" 5836then : 5837 eval $cacheid=yes 5838else case e in #( 5839 e) eval $cacheid=no ;; 5840esac 5841fi 5842rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5843 conftest$ac_exeext conftest.$ac_ext ;; 5844esac 5845fi 5846 5847 5848 CFLAGS="$xorg_testset_save_CFLAGS" 5849 5850 eval supported=\$$cacheid 5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5852printf "%s\n" "$supported" >&6; } 5853 if test "$supported" = "yes" ; then 5854 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5855 found="yes" 5856 fi 5857 fi 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873xorg_testset_save_CFLAGS="$CFLAGS" 5874 5875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5879if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5880then : 5881 printf %s "(cached) " >&6 5882else case e in #( 5883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5884/* end confdefs.h. */ 5885int i; 5886_ACEOF 5887if ac_fn_c_try_compile "$LINENO" 5888then : 5889 xorg_cv_cc_flag_unknown_warning_option=yes 5890else case e in #( 5891 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5892esac 5893fi 5894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5895esac 5896fi 5897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5898printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5900 CFLAGS="$xorg_testset_save_CFLAGS" 5901fi 5902 5903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5906 fi 5907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5909printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5910if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5911then : 5912 printf %s "(cached) " >&6 5913else case e in #( 5914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5915/* end confdefs.h. */ 5916int i; 5917_ACEOF 5918if ac_fn_c_try_compile "$LINENO" 5919then : 5920 xorg_cv_cc_flag_unused_command_line_argument=yes 5921else case e in #( 5922 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5923esac 5924fi 5925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5926esac 5927fi 5928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5929printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5931 CFLAGS="$xorg_testset_save_CFLAGS" 5932fi 5933 5934found="no" 5935 5936 if test $found = "no" ; then 5937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5939 fi 5940 5941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5943 fi 5944 5945 CFLAGS="$CFLAGS -Wnested-externs" 5946 5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5948printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5949 cacheid=xorg_cv_cc_flag__Wnested_externs 5950 if eval test \${$cacheid+y} 5951then : 5952 printf %s "(cached) " >&6 5953else case e in #( 5954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5955/* end confdefs.h. */ 5956int i; 5957int 5958main (void) 5959{ 5960 5961 ; 5962 return 0; 5963} 5964_ACEOF 5965if ac_fn_c_try_link "$LINENO" 5966then : 5967 eval $cacheid=yes 5968else case e in #( 5969 e) eval $cacheid=no ;; 5970esac 5971fi 5972rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5973 conftest$ac_exeext conftest.$ac_ext ;; 5974esac 5975fi 5976 5977 5978 CFLAGS="$xorg_testset_save_CFLAGS" 5979 5980 eval supported=\$$cacheid 5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5982printf "%s\n" "$supported" >&6; } 5983 if test "$supported" = "yes" ; then 5984 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5985 found="yes" 5986 fi 5987 fi 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003xorg_testset_save_CFLAGS="$CFLAGS" 6004 6005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6008printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6009if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6010then : 6011 printf %s "(cached) " >&6 6012else case e in #( 6013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6014/* end confdefs.h. */ 6015int i; 6016_ACEOF 6017if ac_fn_c_try_compile "$LINENO" 6018then : 6019 xorg_cv_cc_flag_unknown_warning_option=yes 6020else case e in #( 6021 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6022esac 6023fi 6024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6025esac 6026fi 6027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6030 CFLAGS="$xorg_testset_save_CFLAGS" 6031fi 6032 6033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6036 fi 6037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6041then : 6042 printf %s "(cached) " >&6 6043else case e in #( 6044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6045/* end confdefs.h. */ 6046int i; 6047_ACEOF 6048if ac_fn_c_try_compile "$LINENO" 6049then : 6050 xorg_cv_cc_flag_unused_command_line_argument=yes 6051else case e in #( 6052 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6053esac 6054fi 6055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6056esac 6057fi 6058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6059printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6061 CFLAGS="$xorg_testset_save_CFLAGS" 6062fi 6063 6064found="no" 6065 6066 if test $found = "no" ; then 6067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6069 fi 6070 6071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6073 fi 6074 6075 CFLAGS="$CFLAGS -Wbad-function-cast" 6076 6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6078printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6079 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6080 if eval test \${$cacheid+y} 6081then : 6082 printf %s "(cached) " >&6 6083else case e in #( 6084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085/* end confdefs.h. */ 6086int i; 6087int 6088main (void) 6089{ 6090 6091 ; 6092 return 0; 6093} 6094_ACEOF 6095if ac_fn_c_try_link "$LINENO" 6096then : 6097 eval $cacheid=yes 6098else case e in #( 6099 e) eval $cacheid=no ;; 6100esac 6101fi 6102rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6103 conftest$ac_exeext conftest.$ac_ext ;; 6104esac 6105fi 6106 6107 6108 CFLAGS="$xorg_testset_save_CFLAGS" 6109 6110 eval supported=\$$cacheid 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6112printf "%s\n" "$supported" >&6; } 6113 if test "$supported" = "yes" ; then 6114 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6115 found="yes" 6116 fi 6117 fi 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133xorg_testset_save_CFLAGS="$CFLAGS" 6134 6135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6139if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6140then : 6141 printf %s "(cached) " >&6 6142else case e in #( 6143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6144/* end confdefs.h. */ 6145int i; 6146_ACEOF 6147if ac_fn_c_try_compile "$LINENO" 6148then : 6149 xorg_cv_cc_flag_unknown_warning_option=yes 6150else case e in #( 6151 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6152esac 6153fi 6154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6155esac 6156fi 6157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6160 CFLAGS="$xorg_testset_save_CFLAGS" 6161fi 6162 6163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6166 fi 6167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6170if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6171then : 6172 printf %s "(cached) " >&6 6173else case e in #( 6174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6175/* end confdefs.h. */ 6176int i; 6177_ACEOF 6178if ac_fn_c_try_compile "$LINENO" 6179then : 6180 xorg_cv_cc_flag_unused_command_line_argument=yes 6181else case e in #( 6182 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6183esac 6184fi 6185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6186esac 6187fi 6188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6189printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6191 CFLAGS="$xorg_testset_save_CFLAGS" 6192fi 6193 6194found="no" 6195 6196 if test $found = "no" ; then 6197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6199 fi 6200 6201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6203 fi 6204 6205 CFLAGS="$CFLAGS -Wold-style-definition" 6206 6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6208printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6209 cacheid=xorg_cv_cc_flag__Wold_style_definition 6210 if eval test \${$cacheid+y} 6211then : 6212 printf %s "(cached) " >&6 6213else case e in #( 6214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216int i; 6217int 6218main (void) 6219{ 6220 6221 ; 6222 return 0; 6223} 6224_ACEOF 6225if ac_fn_c_try_link "$LINENO" 6226then : 6227 eval $cacheid=yes 6228else case e in #( 6229 e) eval $cacheid=no ;; 6230esac 6231fi 6232rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6233 conftest$ac_exeext conftest.$ac_ext ;; 6234esac 6235fi 6236 6237 6238 CFLAGS="$xorg_testset_save_CFLAGS" 6239 6240 eval supported=\$$cacheid 6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6242printf "%s\n" "$supported" >&6; } 6243 if test "$supported" = "yes" ; then 6244 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6245 found="yes" 6246 fi 6247 fi 6248 6249 if test $found = "no" ; then 6250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6252 fi 6253 6254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6256 fi 6257 6258 CFLAGS="$CFLAGS -fd" 6259 6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6261printf %s "checking if $CC supports -fd... " >&6; } 6262 cacheid=xorg_cv_cc_flag__fd 6263 if eval test \${$cacheid+y} 6264then : 6265 printf %s "(cached) " >&6 6266else case e in #( 6267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6268/* end confdefs.h. */ 6269int i; 6270int 6271main (void) 6272{ 6273 6274 ; 6275 return 0; 6276} 6277_ACEOF 6278if ac_fn_c_try_link "$LINENO" 6279then : 6280 eval $cacheid=yes 6281else case e in #( 6282 e) eval $cacheid=no ;; 6283esac 6284fi 6285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6286 conftest$ac_exeext conftest.$ac_ext ;; 6287esac 6288fi 6289 6290 6291 CFLAGS="$xorg_testset_save_CFLAGS" 6292 6293 eval supported=\$$cacheid 6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6295printf "%s\n" "$supported" >&6; } 6296 if test "$supported" = "yes" ; then 6297 BASE_CFLAGS="$BASE_CFLAGS -fd" 6298 found="yes" 6299 fi 6300 fi 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316xorg_testset_save_CFLAGS="$CFLAGS" 6317 6318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6322if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6323then : 6324 printf %s "(cached) " >&6 6325else case e in #( 6326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328int i; 6329_ACEOF 6330if ac_fn_c_try_compile "$LINENO" 6331then : 6332 xorg_cv_cc_flag_unknown_warning_option=yes 6333else case e in #( 6334 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6335esac 6336fi 6337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6338esac 6339fi 6340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6341printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344fi 6345 6346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6349 fi 6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6352printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6353if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6354then : 6355 printf %s "(cached) " >&6 6356else case e in #( 6357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6358/* end confdefs.h. */ 6359int i; 6360_ACEOF 6361if ac_fn_c_try_compile "$LINENO" 6362then : 6363 xorg_cv_cc_flag_unused_command_line_argument=yes 6364else case e in #( 6365 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6366esac 6367fi 6368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6369esac 6370fi 6371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6374 CFLAGS="$xorg_testset_save_CFLAGS" 6375fi 6376 6377found="no" 6378 6379 if test $found = "no" ; then 6380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6382 fi 6383 6384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6386 fi 6387 6388 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6389 6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6391printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6392 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6393 if eval test \${$cacheid+y} 6394then : 6395 printf %s "(cached) " >&6 6396else case e in #( 6397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6398/* end confdefs.h. */ 6399int i; 6400int 6401main (void) 6402{ 6403 6404 ; 6405 return 0; 6406} 6407_ACEOF 6408if ac_fn_c_try_link "$LINENO" 6409then : 6410 eval $cacheid=yes 6411else case e in #( 6412 e) eval $cacheid=no ;; 6413esac 6414fi 6415rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6416 conftest$ac_exeext conftest.$ac_ext ;; 6417esac 6418fi 6419 6420 6421 CFLAGS="$xorg_testset_save_CFLAGS" 6422 6423 eval supported=\$$cacheid 6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6425printf "%s\n" "$supported" >&6; } 6426 if test "$supported" = "yes" ; then 6427 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6428 found="yes" 6429 fi 6430 fi 6431 6432 6433 6434 6435 6436# This chunk adds additional warnings that could catch undesired effects. 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450xorg_testset_save_CFLAGS="$CFLAGS" 6451 6452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6456if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6457then : 6458 printf %s "(cached) " >&6 6459else case e in #( 6460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6461/* end confdefs.h. */ 6462int i; 6463_ACEOF 6464if ac_fn_c_try_compile "$LINENO" 6465then : 6466 xorg_cv_cc_flag_unknown_warning_option=yes 6467else case e in #( 6468 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6469esac 6470fi 6471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6472esac 6473fi 6474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6475printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6477 CFLAGS="$xorg_testset_save_CFLAGS" 6478fi 6479 6480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6483 fi 6484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6486printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6487if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6488then : 6489 printf %s "(cached) " >&6 6490else case e in #( 6491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6492/* end confdefs.h. */ 6493int i; 6494_ACEOF 6495if ac_fn_c_try_compile "$LINENO" 6496then : 6497 xorg_cv_cc_flag_unused_command_line_argument=yes 6498else case e in #( 6499 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6500esac 6501fi 6502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6503esac 6504fi 6505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6506printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6508 CFLAGS="$xorg_testset_save_CFLAGS" 6509fi 6510 6511found="no" 6512 6513 if test $found = "no" ; then 6514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6516 fi 6517 6518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6520 fi 6521 6522 CFLAGS="$CFLAGS -Wunused" 6523 6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6525printf %s "checking if $CC supports -Wunused... " >&6; } 6526 cacheid=xorg_cv_cc_flag__Wunused 6527 if eval test \${$cacheid+y} 6528then : 6529 printf %s "(cached) " >&6 6530else case e in #( 6531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6532/* end confdefs.h. */ 6533int i; 6534int 6535main (void) 6536{ 6537 6538 ; 6539 return 0; 6540} 6541_ACEOF 6542if ac_fn_c_try_link "$LINENO" 6543then : 6544 eval $cacheid=yes 6545else case e in #( 6546 e) eval $cacheid=no ;; 6547esac 6548fi 6549rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6550 conftest$ac_exeext conftest.$ac_ext ;; 6551esac 6552fi 6553 6554 6555 CFLAGS="$xorg_testset_save_CFLAGS" 6556 6557 eval supported=\$$cacheid 6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6559printf "%s\n" "$supported" >&6; } 6560 if test "$supported" = "yes" ; then 6561 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6562 found="yes" 6563 fi 6564 fi 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580xorg_testset_save_CFLAGS="$CFLAGS" 6581 6582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6585printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6586if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6587then : 6588 printf %s "(cached) " >&6 6589else case e in #( 6590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6591/* end confdefs.h. */ 6592int i; 6593_ACEOF 6594if ac_fn_c_try_compile "$LINENO" 6595then : 6596 xorg_cv_cc_flag_unknown_warning_option=yes 6597else case e in #( 6598 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6599esac 6600fi 6601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6602esac 6603fi 6604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6605printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6607 CFLAGS="$xorg_testset_save_CFLAGS" 6608fi 6609 6610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6613 fi 6614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6616printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6617if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6618then : 6619 printf %s "(cached) " >&6 6620else case e in #( 6621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622/* end confdefs.h. */ 6623int i; 6624_ACEOF 6625if ac_fn_c_try_compile "$LINENO" 6626then : 6627 xorg_cv_cc_flag_unused_command_line_argument=yes 6628else case e in #( 6629 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6630esac 6631fi 6632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6633esac 6634fi 6635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6636printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639fi 6640 6641found="no" 6642 6643 if test $found = "no" ; then 6644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6646 fi 6647 6648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6650 fi 6651 6652 CFLAGS="$CFLAGS -Wuninitialized" 6653 6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6655printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6656 cacheid=xorg_cv_cc_flag__Wuninitialized 6657 if eval test \${$cacheid+y} 6658then : 6659 printf %s "(cached) " >&6 6660else case e in #( 6661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663int i; 6664int 6665main (void) 6666{ 6667 6668 ; 6669 return 0; 6670} 6671_ACEOF 6672if ac_fn_c_try_link "$LINENO" 6673then : 6674 eval $cacheid=yes 6675else case e in #( 6676 e) eval $cacheid=no ;; 6677esac 6678fi 6679rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6680 conftest$ac_exeext conftest.$ac_ext ;; 6681esac 6682fi 6683 6684 6685 CFLAGS="$xorg_testset_save_CFLAGS" 6686 6687 eval supported=\$$cacheid 6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6689printf "%s\n" "$supported" >&6; } 6690 if test "$supported" = "yes" ; then 6691 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6692 found="yes" 6693 fi 6694 fi 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710xorg_testset_save_CFLAGS="$CFLAGS" 6711 6712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6715printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6716if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6717then : 6718 printf %s "(cached) " >&6 6719else case e in #( 6720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6721/* end confdefs.h. */ 6722int i; 6723_ACEOF 6724if ac_fn_c_try_compile "$LINENO" 6725then : 6726 xorg_cv_cc_flag_unknown_warning_option=yes 6727else case e in #( 6728 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6729esac 6730fi 6731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6732esac 6733fi 6734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6735printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738fi 6739 6740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6743 fi 6744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6746printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6747if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6748then : 6749 printf %s "(cached) " >&6 6750else case e in #( 6751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6752/* end confdefs.h. */ 6753int i; 6754_ACEOF 6755if ac_fn_c_try_compile "$LINENO" 6756then : 6757 xorg_cv_cc_flag_unused_command_line_argument=yes 6758else case e in #( 6759 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6760esac 6761fi 6762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6763esac 6764fi 6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6768 CFLAGS="$xorg_testset_save_CFLAGS" 6769fi 6770 6771found="no" 6772 6773 if test $found = "no" ; then 6774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6776 fi 6777 6778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6780 fi 6781 6782 CFLAGS="$CFLAGS -Wshadow" 6783 6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6785printf %s "checking if $CC supports -Wshadow... " >&6; } 6786 cacheid=xorg_cv_cc_flag__Wshadow 6787 if eval test \${$cacheid+y} 6788then : 6789 printf %s "(cached) " >&6 6790else case e in #( 6791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6792/* end confdefs.h. */ 6793int i; 6794int 6795main (void) 6796{ 6797 6798 ; 6799 return 0; 6800} 6801_ACEOF 6802if ac_fn_c_try_link "$LINENO" 6803then : 6804 eval $cacheid=yes 6805else case e in #( 6806 e) eval $cacheid=no ;; 6807esac 6808fi 6809rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6810 conftest$ac_exeext conftest.$ac_ext ;; 6811esac 6812fi 6813 6814 6815 CFLAGS="$xorg_testset_save_CFLAGS" 6816 6817 eval supported=\$$cacheid 6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6819printf "%s\n" "$supported" >&6; } 6820 if test "$supported" = "yes" ; then 6821 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6822 found="yes" 6823 fi 6824 fi 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840xorg_testset_save_CFLAGS="$CFLAGS" 6841 6842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6845printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6846if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6847then : 6848 printf %s "(cached) " >&6 6849else case e in #( 6850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6851/* end confdefs.h. */ 6852int i; 6853_ACEOF 6854if ac_fn_c_try_compile "$LINENO" 6855then : 6856 xorg_cv_cc_flag_unknown_warning_option=yes 6857else case e in #( 6858 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6859esac 6860fi 6861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6862esac 6863fi 6864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6867 CFLAGS="$xorg_testset_save_CFLAGS" 6868fi 6869 6870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6873 fi 6874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6877if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6878then : 6879 printf %s "(cached) " >&6 6880else case e in #( 6881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6882/* end confdefs.h. */ 6883int i; 6884_ACEOF 6885if ac_fn_c_try_compile "$LINENO" 6886then : 6887 xorg_cv_cc_flag_unused_command_line_argument=yes 6888else case e in #( 6889 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6890esac 6891fi 6892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6893esac 6894fi 6895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6896printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899fi 6900 6901found="no" 6902 6903 if test $found = "no" ; then 6904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6906 fi 6907 6908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6910 fi 6911 6912 CFLAGS="$CFLAGS -Wmissing-noreturn" 6913 6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6915printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6916 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6917 if eval test \${$cacheid+y} 6918then : 6919 printf %s "(cached) " >&6 6920else case e in #( 6921 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6922/* end confdefs.h. */ 6923int i; 6924int 6925main (void) 6926{ 6927 6928 ; 6929 return 0; 6930} 6931_ACEOF 6932if ac_fn_c_try_link "$LINENO" 6933then : 6934 eval $cacheid=yes 6935else case e in #( 6936 e) eval $cacheid=no ;; 6937esac 6938fi 6939rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6940 conftest$ac_exeext conftest.$ac_ext ;; 6941esac 6942fi 6943 6944 6945 CFLAGS="$xorg_testset_save_CFLAGS" 6946 6947 eval supported=\$$cacheid 6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6949printf "%s\n" "$supported" >&6; } 6950 if test "$supported" = "yes" ; then 6951 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6952 found="yes" 6953 fi 6954 fi 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970xorg_testset_save_CFLAGS="$CFLAGS" 6971 6972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6976if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6977then : 6978 printf %s "(cached) " >&6 6979else case e in #( 6980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6981/* end confdefs.h. */ 6982int i; 6983_ACEOF 6984if ac_fn_c_try_compile "$LINENO" 6985then : 6986 xorg_cv_cc_flag_unknown_warning_option=yes 6987else case e in #( 6988 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6989esac 6990fi 6991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6992esac 6993fi 6994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6995printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6997 CFLAGS="$xorg_testset_save_CFLAGS" 6998fi 6999 7000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7003 fi 7004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7006printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7007if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7008then : 7009 printf %s "(cached) " >&6 7010else case e in #( 7011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012/* end confdefs.h. */ 7013int i; 7014_ACEOF 7015if ac_fn_c_try_compile "$LINENO" 7016then : 7017 xorg_cv_cc_flag_unused_command_line_argument=yes 7018else case e in #( 7019 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7020esac 7021fi 7022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7023esac 7024fi 7025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7028 CFLAGS="$xorg_testset_save_CFLAGS" 7029fi 7030 7031found="no" 7032 7033 if test $found = "no" ; then 7034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7036 fi 7037 7038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7040 fi 7041 7042 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7043 7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7045printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7046 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7047 if eval test \${$cacheid+y} 7048then : 7049 printf %s "(cached) " >&6 7050else case e in #( 7051 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7052/* end confdefs.h. */ 7053int i; 7054int 7055main (void) 7056{ 7057 7058 ; 7059 return 0; 7060} 7061_ACEOF 7062if ac_fn_c_try_link "$LINENO" 7063then : 7064 eval $cacheid=yes 7065else case e in #( 7066 e) eval $cacheid=no ;; 7067esac 7068fi 7069rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7070 conftest$ac_exeext conftest.$ac_ext ;; 7071esac 7072fi 7073 7074 7075 CFLAGS="$xorg_testset_save_CFLAGS" 7076 7077 eval supported=\$$cacheid 7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7079printf "%s\n" "$supported" >&6; } 7080 if test "$supported" = "yes" ; then 7081 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7082 found="yes" 7083 fi 7084 fi 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100xorg_testset_save_CFLAGS="$CFLAGS" 7101 7102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7105printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7106if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7107then : 7108 printf %s "(cached) " >&6 7109else case e in #( 7110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7111/* end confdefs.h. */ 7112int i; 7113_ACEOF 7114if ac_fn_c_try_compile "$LINENO" 7115then : 7116 xorg_cv_cc_flag_unknown_warning_option=yes 7117else case e in #( 7118 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7119esac 7120fi 7121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7122esac 7123fi 7124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7127 CFLAGS="$xorg_testset_save_CFLAGS" 7128fi 7129 7130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7133 fi 7134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7137if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7138then : 7139 printf %s "(cached) " >&6 7140else case e in #( 7141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143int i; 7144_ACEOF 7145if ac_fn_c_try_compile "$LINENO" 7146then : 7147 xorg_cv_cc_flag_unused_command_line_argument=yes 7148else case e in #( 7149 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7150esac 7151fi 7152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7153esac 7154fi 7155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7156printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7158 CFLAGS="$xorg_testset_save_CFLAGS" 7159fi 7160 7161found="no" 7162 7163 if test $found = "no" ; then 7164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7166 fi 7167 7168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7170 fi 7171 7172 CFLAGS="$CFLAGS -Wredundant-decls" 7173 7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7175printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7176 cacheid=xorg_cv_cc_flag__Wredundant_decls 7177 if eval test \${$cacheid+y} 7178then : 7179 printf %s "(cached) " >&6 7180else case e in #( 7181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7182/* end confdefs.h. */ 7183int i; 7184int 7185main (void) 7186{ 7187 7188 ; 7189 return 0; 7190} 7191_ACEOF 7192if ac_fn_c_try_link "$LINENO" 7193then : 7194 eval $cacheid=yes 7195else case e in #( 7196 e) eval $cacheid=no ;; 7197esac 7198fi 7199rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7200 conftest$ac_exeext conftest.$ac_ext ;; 7201esac 7202fi 7203 7204 7205 CFLAGS="$xorg_testset_save_CFLAGS" 7206 7207 eval supported=\$$cacheid 7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7209printf "%s\n" "$supported" >&6; } 7210 if test "$supported" = "yes" ; then 7211 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7212 found="yes" 7213 fi 7214 fi 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230xorg_testset_save_CFLAGS="$CFLAGS" 7231 7232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7236if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7237then : 7238 printf %s "(cached) " >&6 7239else case e in #( 7240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241/* end confdefs.h. */ 7242int i; 7243_ACEOF 7244if ac_fn_c_try_compile "$LINENO" 7245then : 7246 xorg_cv_cc_flag_unknown_warning_option=yes 7247else case e in #( 7248 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7249esac 7250fi 7251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7252esac 7253fi 7254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7257 CFLAGS="$xorg_testset_save_CFLAGS" 7258fi 7259 7260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7263 fi 7264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7267if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7268then : 7269 printf %s "(cached) " >&6 7270else case e in #( 7271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273int i; 7274_ACEOF 7275if ac_fn_c_try_compile "$LINENO" 7276then : 7277 xorg_cv_cc_flag_unused_command_line_argument=yes 7278else case e in #( 7279 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7280esac 7281fi 7282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7283esac 7284fi 7285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7286printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7288 CFLAGS="$xorg_testset_save_CFLAGS" 7289fi 7290 7291found="no" 7292 7293 if test $found = "no" ; then 7294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7296 fi 7297 7298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7300 fi 7301 7302 CFLAGS="$CFLAGS -Wlogical-op" 7303 7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7305printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7306 cacheid=xorg_cv_cc_flag__Wlogical_op 7307 if eval test \${$cacheid+y} 7308then : 7309 printf %s "(cached) " >&6 7310else case e in #( 7311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7312/* end confdefs.h. */ 7313int i; 7314int 7315main (void) 7316{ 7317 7318 ; 7319 return 0; 7320} 7321_ACEOF 7322if ac_fn_c_try_link "$LINENO" 7323then : 7324 eval $cacheid=yes 7325else case e in #( 7326 e) eval $cacheid=no ;; 7327esac 7328fi 7329rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7330 conftest$ac_exeext conftest.$ac_ext ;; 7331esac 7332fi 7333 7334 7335 CFLAGS="$xorg_testset_save_CFLAGS" 7336 7337 eval supported=\$$cacheid 7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7339printf "%s\n" "$supported" >&6; } 7340 if test "$supported" = "yes" ; then 7341 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7342 found="yes" 7343 fi 7344 fi 7345 7346 7347 7348# These are currently disabled because they are noisy. They will be enabled 7349# in the future once the codebase is sufficiently modernized to silence 7350# them. For now, I don't want them to drown out the other warnings. 7351# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7352# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7353# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7354 7355# Turn some warnings into errors, so we don't accidentally get successful builds 7356# when there are problems that should be fixed. 7357 7358if test "x$SELECTIVE_WERROR" = "xyes" ; then 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372xorg_testset_save_CFLAGS="$CFLAGS" 7373 7374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7377printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7378if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7379then : 7380 printf %s "(cached) " >&6 7381else case e in #( 7382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7383/* end confdefs.h. */ 7384int i; 7385_ACEOF 7386if ac_fn_c_try_compile "$LINENO" 7387then : 7388 xorg_cv_cc_flag_unknown_warning_option=yes 7389else case e in #( 7390 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7391esac 7392fi 7393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7394esac 7395fi 7396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7399 CFLAGS="$xorg_testset_save_CFLAGS" 7400fi 7401 7402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7405 fi 7406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7409if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7410then : 7411 printf %s "(cached) " >&6 7412else case e in #( 7413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414/* end confdefs.h. */ 7415int i; 7416_ACEOF 7417if ac_fn_c_try_compile "$LINENO" 7418then : 7419 xorg_cv_cc_flag_unused_command_line_argument=yes 7420else case e in #( 7421 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7422esac 7423fi 7424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7425esac 7426fi 7427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7428printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7430 CFLAGS="$xorg_testset_save_CFLAGS" 7431fi 7432 7433found="no" 7434 7435 if test $found = "no" ; then 7436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7438 fi 7439 7440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7442 fi 7443 7444 CFLAGS="$CFLAGS -Werror=implicit" 7445 7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7447printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7448 cacheid=xorg_cv_cc_flag__Werror_implicit 7449 if eval test \${$cacheid+y} 7450then : 7451 printf %s "(cached) " >&6 7452else case e in #( 7453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455int i; 7456int 7457main (void) 7458{ 7459 7460 ; 7461 return 0; 7462} 7463_ACEOF 7464if ac_fn_c_try_link "$LINENO" 7465then : 7466 eval $cacheid=yes 7467else case e in #( 7468 e) eval $cacheid=no ;; 7469esac 7470fi 7471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7472 conftest$ac_exeext conftest.$ac_ext ;; 7473esac 7474fi 7475 7476 7477 CFLAGS="$xorg_testset_save_CFLAGS" 7478 7479 eval supported=\$$cacheid 7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7481printf "%s\n" "$supported" >&6; } 7482 if test "$supported" = "yes" ; then 7483 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7484 found="yes" 7485 fi 7486 fi 7487 7488 if test $found = "no" ; then 7489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7491 fi 7492 7493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7495 fi 7496 7497 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7498 7499 { 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 7500printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7501 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7502 if eval test \${$cacheid+y} 7503then : 7504 printf %s "(cached) " >&6 7505else case e in #( 7506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507/* end confdefs.h. */ 7508int i; 7509int 7510main (void) 7511{ 7512 7513 ; 7514 return 0; 7515} 7516_ACEOF 7517if ac_fn_c_try_link "$LINENO" 7518then : 7519 eval $cacheid=yes 7520else case e in #( 7521 e) eval $cacheid=no ;; 7522esac 7523fi 7524rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7525 conftest$ac_exeext conftest.$ac_ext ;; 7526esac 7527fi 7528 7529 7530 CFLAGS="$xorg_testset_save_CFLAGS" 7531 7532 eval supported=\$$cacheid 7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7534printf "%s\n" "$supported" >&6; } 7535 if test "$supported" = "yes" ; then 7536 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7537 found="yes" 7538 fi 7539 fi 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555xorg_testset_save_CFLAGS="$CFLAGS" 7556 7557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7560printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7561if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7562then : 7563 printf %s "(cached) " >&6 7564else case e in #( 7565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7566/* end confdefs.h. */ 7567int i; 7568_ACEOF 7569if ac_fn_c_try_compile "$LINENO" 7570then : 7571 xorg_cv_cc_flag_unknown_warning_option=yes 7572else case e in #( 7573 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7574esac 7575fi 7576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7577esac 7578fi 7579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7580printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7582 CFLAGS="$xorg_testset_save_CFLAGS" 7583fi 7584 7585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7588 fi 7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7591printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7592if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7593then : 7594 printf %s "(cached) " >&6 7595else case e in #( 7596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7597/* end confdefs.h. */ 7598int i; 7599_ACEOF 7600if ac_fn_c_try_compile "$LINENO" 7601then : 7602 xorg_cv_cc_flag_unused_command_line_argument=yes 7603else case e in #( 7604 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7605esac 7606fi 7607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7608esac 7609fi 7610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7613 CFLAGS="$xorg_testset_save_CFLAGS" 7614fi 7615 7616found="no" 7617 7618 if test $found = "no" ; then 7619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7621 fi 7622 7623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7625 fi 7626 7627 CFLAGS="$CFLAGS -Werror=nonnull" 7628 7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7630printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7631 cacheid=xorg_cv_cc_flag__Werror_nonnull 7632 if eval test \${$cacheid+y} 7633then : 7634 printf %s "(cached) " >&6 7635else case e in #( 7636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7637/* end confdefs.h. */ 7638int i; 7639int 7640main (void) 7641{ 7642 7643 ; 7644 return 0; 7645} 7646_ACEOF 7647if ac_fn_c_try_link "$LINENO" 7648then : 7649 eval $cacheid=yes 7650else case e in #( 7651 e) eval $cacheid=no ;; 7652esac 7653fi 7654rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7655 conftest$ac_exeext conftest.$ac_ext ;; 7656esac 7657fi 7658 7659 7660 CFLAGS="$xorg_testset_save_CFLAGS" 7661 7662 eval supported=\$$cacheid 7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7664printf "%s\n" "$supported" >&6; } 7665 if test "$supported" = "yes" ; then 7666 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7667 found="yes" 7668 fi 7669 fi 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685xorg_testset_save_CFLAGS="$CFLAGS" 7686 7687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7690printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7691if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7692then : 7693 printf %s "(cached) " >&6 7694else case e in #( 7695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697int i; 7698_ACEOF 7699if ac_fn_c_try_compile "$LINENO" 7700then : 7701 xorg_cv_cc_flag_unknown_warning_option=yes 7702else case e in #( 7703 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7704esac 7705fi 7706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7707esac 7708fi 7709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7712 CFLAGS="$xorg_testset_save_CFLAGS" 7713fi 7714 7715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7718 fi 7719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7722if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7723then : 7724 printf %s "(cached) " >&6 7725else case e in #( 7726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728int i; 7729_ACEOF 7730if ac_fn_c_try_compile "$LINENO" 7731then : 7732 xorg_cv_cc_flag_unused_command_line_argument=yes 7733else case e in #( 7734 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7735esac 7736fi 7737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7738esac 7739fi 7740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7741printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7743 CFLAGS="$xorg_testset_save_CFLAGS" 7744fi 7745 7746found="no" 7747 7748 if test $found = "no" ; then 7749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7751 fi 7752 7753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7755 fi 7756 7757 CFLAGS="$CFLAGS -Werror=init-self" 7758 7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7760printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7761 cacheid=xorg_cv_cc_flag__Werror_init_self 7762 if eval test \${$cacheid+y} 7763then : 7764 printf %s "(cached) " >&6 7765else case e in #( 7766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767/* end confdefs.h. */ 7768int i; 7769int 7770main (void) 7771{ 7772 7773 ; 7774 return 0; 7775} 7776_ACEOF 7777if ac_fn_c_try_link "$LINENO" 7778then : 7779 eval $cacheid=yes 7780else case e in #( 7781 e) eval $cacheid=no ;; 7782esac 7783fi 7784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7785 conftest$ac_exeext conftest.$ac_ext ;; 7786esac 7787fi 7788 7789 7790 CFLAGS="$xorg_testset_save_CFLAGS" 7791 7792 eval supported=\$$cacheid 7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7794printf "%s\n" "$supported" >&6; } 7795 if test "$supported" = "yes" ; then 7796 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7797 found="yes" 7798 fi 7799 fi 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815xorg_testset_save_CFLAGS="$CFLAGS" 7816 7817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7821if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7822then : 7823 printf %s "(cached) " >&6 7824else case e in #( 7825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7826/* end confdefs.h. */ 7827int i; 7828_ACEOF 7829if ac_fn_c_try_compile "$LINENO" 7830then : 7831 xorg_cv_cc_flag_unknown_warning_option=yes 7832else case e in #( 7833 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7834esac 7835fi 7836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7837esac 7838fi 7839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7840printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7842 CFLAGS="$xorg_testset_save_CFLAGS" 7843fi 7844 7845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7848 fi 7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7851printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7852if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7853then : 7854 printf %s "(cached) " >&6 7855else case e in #( 7856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858int i; 7859_ACEOF 7860if ac_fn_c_try_compile "$LINENO" 7861then : 7862 xorg_cv_cc_flag_unused_command_line_argument=yes 7863else case e in #( 7864 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7865esac 7866fi 7867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7868esac 7869fi 7870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7871printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7873 CFLAGS="$xorg_testset_save_CFLAGS" 7874fi 7875 7876found="no" 7877 7878 if test $found = "no" ; then 7879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7881 fi 7882 7883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7885 fi 7886 7887 CFLAGS="$CFLAGS -Werror=main" 7888 7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7890printf %s "checking if $CC supports -Werror=main... " >&6; } 7891 cacheid=xorg_cv_cc_flag__Werror_main 7892 if eval test \${$cacheid+y} 7893then : 7894 printf %s "(cached) " >&6 7895else case e in #( 7896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7897/* end confdefs.h. */ 7898int i; 7899int 7900main (void) 7901{ 7902 7903 ; 7904 return 0; 7905} 7906_ACEOF 7907if ac_fn_c_try_link "$LINENO" 7908then : 7909 eval $cacheid=yes 7910else case e in #( 7911 e) eval $cacheid=no ;; 7912esac 7913fi 7914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7915 conftest$ac_exeext conftest.$ac_ext ;; 7916esac 7917fi 7918 7919 7920 CFLAGS="$xorg_testset_save_CFLAGS" 7921 7922 eval supported=\$$cacheid 7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7924printf "%s\n" "$supported" >&6; } 7925 if test "$supported" = "yes" ; then 7926 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7927 found="yes" 7928 fi 7929 fi 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945xorg_testset_save_CFLAGS="$CFLAGS" 7946 7947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7951if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7952then : 7953 printf %s "(cached) " >&6 7954else case e in #( 7955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956/* end confdefs.h. */ 7957int i; 7958_ACEOF 7959if ac_fn_c_try_compile "$LINENO" 7960then : 7961 xorg_cv_cc_flag_unknown_warning_option=yes 7962else case e in #( 7963 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7964esac 7965fi 7966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7967esac 7968fi 7969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7972 CFLAGS="$xorg_testset_save_CFLAGS" 7973fi 7974 7975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 fi 7979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7982if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7983then : 7984 printf %s "(cached) " >&6 7985else case e in #( 7986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987/* end confdefs.h. */ 7988int i; 7989_ACEOF 7990if ac_fn_c_try_compile "$LINENO" 7991then : 7992 xorg_cv_cc_flag_unused_command_line_argument=yes 7993else case e in #( 7994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7995esac 7996fi 7997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7998esac 7999fi 8000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8003 CFLAGS="$xorg_testset_save_CFLAGS" 8004fi 8005 8006found="no" 8007 8008 if test $found = "no" ; then 8009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8011 fi 8012 8013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8015 fi 8016 8017 CFLAGS="$CFLAGS -Werror=missing-braces" 8018 8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8020printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8021 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8022 if eval test \${$cacheid+y} 8023then : 8024 printf %s "(cached) " >&6 8025else case e in #( 8026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8027/* end confdefs.h. */ 8028int i; 8029int 8030main (void) 8031{ 8032 8033 ; 8034 return 0; 8035} 8036_ACEOF 8037if ac_fn_c_try_link "$LINENO" 8038then : 8039 eval $cacheid=yes 8040else case e in #( 8041 e) eval $cacheid=no ;; 8042esac 8043fi 8044rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8045 conftest$ac_exeext conftest.$ac_ext ;; 8046esac 8047fi 8048 8049 8050 CFLAGS="$xorg_testset_save_CFLAGS" 8051 8052 eval supported=\$$cacheid 8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8054printf "%s\n" "$supported" >&6; } 8055 if test "$supported" = "yes" ; then 8056 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8057 found="yes" 8058 fi 8059 fi 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075xorg_testset_save_CFLAGS="$CFLAGS" 8076 8077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8081if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8082then : 8083 printf %s "(cached) " >&6 8084else case e in #( 8085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8086/* end confdefs.h. */ 8087int i; 8088_ACEOF 8089if ac_fn_c_try_compile "$LINENO" 8090then : 8091 xorg_cv_cc_flag_unknown_warning_option=yes 8092else case e in #( 8093 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8094esac 8095fi 8096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8097esac 8098fi 8099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8100printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8102 CFLAGS="$xorg_testset_save_CFLAGS" 8103fi 8104 8105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8108 fi 8109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8111printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8112if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8113then : 8114 printf %s "(cached) " >&6 8115else case e in #( 8116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8117/* end confdefs.h. */ 8118int i; 8119_ACEOF 8120if ac_fn_c_try_compile "$LINENO" 8121then : 8122 xorg_cv_cc_flag_unused_command_line_argument=yes 8123else case e in #( 8124 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8125esac 8126fi 8127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8128esac 8129fi 8130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8131printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134fi 8135 8136found="no" 8137 8138 if test $found = "no" ; then 8139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8141 fi 8142 8143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8145 fi 8146 8147 CFLAGS="$CFLAGS -Werror=sequence-point" 8148 8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8150printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8151 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8152 if eval test \${$cacheid+y} 8153then : 8154 printf %s "(cached) " >&6 8155else case e in #( 8156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8157/* end confdefs.h. */ 8158int i; 8159int 8160main (void) 8161{ 8162 8163 ; 8164 return 0; 8165} 8166_ACEOF 8167if ac_fn_c_try_link "$LINENO" 8168then : 8169 eval $cacheid=yes 8170else case e in #( 8171 e) eval $cacheid=no ;; 8172esac 8173fi 8174rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8175 conftest$ac_exeext conftest.$ac_ext ;; 8176esac 8177fi 8178 8179 8180 CFLAGS="$xorg_testset_save_CFLAGS" 8181 8182 eval supported=\$$cacheid 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8184printf "%s\n" "$supported" >&6; } 8185 if test "$supported" = "yes" ; then 8186 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8187 found="yes" 8188 fi 8189 fi 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205xorg_testset_save_CFLAGS="$CFLAGS" 8206 8207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8210printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8211if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8212then : 8213 printf %s "(cached) " >&6 8214else case e in #( 8215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8216/* end confdefs.h. */ 8217int i; 8218_ACEOF 8219if ac_fn_c_try_compile "$LINENO" 8220then : 8221 xorg_cv_cc_flag_unknown_warning_option=yes 8222else case e in #( 8223 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8224esac 8225fi 8226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8227esac 8228fi 8229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8232 CFLAGS="$xorg_testset_save_CFLAGS" 8233fi 8234 8235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8238 fi 8239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8242if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8243then : 8244 printf %s "(cached) " >&6 8245else case e in #( 8246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8247/* end confdefs.h. */ 8248int i; 8249_ACEOF 8250if ac_fn_c_try_compile "$LINENO" 8251then : 8252 xorg_cv_cc_flag_unused_command_line_argument=yes 8253else case e in #( 8254 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8255esac 8256fi 8257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8258esac 8259fi 8260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264fi 8265 8266found="no" 8267 8268 if test $found = "no" ; then 8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8271 fi 8272 8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8275 fi 8276 8277 CFLAGS="$CFLAGS -Werror=return-type" 8278 8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8280printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8281 cacheid=xorg_cv_cc_flag__Werror_return_type 8282 if eval test \${$cacheid+y} 8283then : 8284 printf %s "(cached) " >&6 8285else case e in #( 8286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8287/* end confdefs.h. */ 8288int i; 8289int 8290main (void) 8291{ 8292 8293 ; 8294 return 0; 8295} 8296_ACEOF 8297if ac_fn_c_try_link "$LINENO" 8298then : 8299 eval $cacheid=yes 8300else case e in #( 8301 e) eval $cacheid=no ;; 8302esac 8303fi 8304rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8305 conftest$ac_exeext conftest.$ac_ext ;; 8306esac 8307fi 8308 8309 8310 CFLAGS="$xorg_testset_save_CFLAGS" 8311 8312 eval supported=\$$cacheid 8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8314printf "%s\n" "$supported" >&6; } 8315 if test "$supported" = "yes" ; then 8316 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8317 found="yes" 8318 fi 8319 fi 8320 8321 if test $found = "no" ; then 8322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8324 fi 8325 8326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8328 fi 8329 8330 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8331 8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8333printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8334 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8335 if eval test \${$cacheid+y} 8336then : 8337 printf %s "(cached) " >&6 8338else case e in #( 8339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8340/* end confdefs.h. */ 8341int i; 8342int 8343main (void) 8344{ 8345 8346 ; 8347 return 0; 8348} 8349_ACEOF 8350if ac_fn_c_try_link "$LINENO" 8351then : 8352 eval $cacheid=yes 8353else case e in #( 8354 e) eval $cacheid=no ;; 8355esac 8356fi 8357rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8358 conftest$ac_exeext conftest.$ac_ext ;; 8359esac 8360fi 8361 8362 8363 CFLAGS="$xorg_testset_save_CFLAGS" 8364 8365 eval supported=\$$cacheid 8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8367printf "%s\n" "$supported" >&6; } 8368 if test "$supported" = "yes" ; then 8369 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8370 found="yes" 8371 fi 8372 fi 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388xorg_testset_save_CFLAGS="$CFLAGS" 8389 8390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8394if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8395then : 8396 printf %s "(cached) " >&6 8397else case e in #( 8398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8399/* end confdefs.h. */ 8400int i; 8401_ACEOF 8402if ac_fn_c_try_compile "$LINENO" 8403then : 8404 xorg_cv_cc_flag_unknown_warning_option=yes 8405else case e in #( 8406 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8407esac 8408fi 8409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8410esac 8411fi 8412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8415 CFLAGS="$xorg_testset_save_CFLAGS" 8416fi 8417 8418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8421 fi 8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8425if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8426then : 8427 printf %s "(cached) " >&6 8428else case e in #( 8429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8430/* end confdefs.h. */ 8431int i; 8432_ACEOF 8433if ac_fn_c_try_compile "$LINENO" 8434then : 8435 xorg_cv_cc_flag_unused_command_line_argument=yes 8436else case e in #( 8437 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8438esac 8439fi 8440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8441esac 8442fi 8443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8446 CFLAGS="$xorg_testset_save_CFLAGS" 8447fi 8448 8449found="no" 8450 8451 if test $found = "no" ; then 8452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8454 fi 8455 8456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8458 fi 8459 8460 CFLAGS="$CFLAGS -Werror=trigraphs" 8461 8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8463printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8464 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8465 if eval test \${$cacheid+y} 8466then : 8467 printf %s "(cached) " >&6 8468else case e in #( 8469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8470/* end confdefs.h. */ 8471int i; 8472int 8473main (void) 8474{ 8475 8476 ; 8477 return 0; 8478} 8479_ACEOF 8480if ac_fn_c_try_link "$LINENO" 8481then : 8482 eval $cacheid=yes 8483else case e in #( 8484 e) eval $cacheid=no ;; 8485esac 8486fi 8487rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8488 conftest$ac_exeext conftest.$ac_ext ;; 8489esac 8490fi 8491 8492 8493 CFLAGS="$xorg_testset_save_CFLAGS" 8494 8495 eval supported=\$$cacheid 8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8497printf "%s\n" "$supported" >&6; } 8498 if test "$supported" = "yes" ; then 8499 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8500 found="yes" 8501 fi 8502 fi 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518xorg_testset_save_CFLAGS="$CFLAGS" 8519 8520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8524if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8525then : 8526 printf %s "(cached) " >&6 8527else case e in #( 8528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8529/* end confdefs.h. */ 8530int i; 8531_ACEOF 8532if ac_fn_c_try_compile "$LINENO" 8533then : 8534 xorg_cv_cc_flag_unknown_warning_option=yes 8535else case e in #( 8536 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8537esac 8538fi 8539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8540esac 8541fi 8542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8545 CFLAGS="$xorg_testset_save_CFLAGS" 8546fi 8547 8548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8551 fi 8552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8555if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8556then : 8557 printf %s "(cached) " >&6 8558else case e in #( 8559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8560/* end confdefs.h. */ 8561int i; 8562_ACEOF 8563if ac_fn_c_try_compile "$LINENO" 8564then : 8565 xorg_cv_cc_flag_unused_command_line_argument=yes 8566else case e in #( 8567 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8568esac 8569fi 8570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8571esac 8572fi 8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8576 CFLAGS="$xorg_testset_save_CFLAGS" 8577fi 8578 8579found="no" 8580 8581 if test $found = "no" ; then 8582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8584 fi 8585 8586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8588 fi 8589 8590 CFLAGS="$CFLAGS -Werror=array-bounds" 8591 8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8593printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8594 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8595 if eval test \${$cacheid+y} 8596then : 8597 printf %s "(cached) " >&6 8598else case e in #( 8599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8600/* end confdefs.h. */ 8601int i; 8602int 8603main (void) 8604{ 8605 8606 ; 8607 return 0; 8608} 8609_ACEOF 8610if ac_fn_c_try_link "$LINENO" 8611then : 8612 eval $cacheid=yes 8613else case e in #( 8614 e) eval $cacheid=no ;; 8615esac 8616fi 8617rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8618 conftest$ac_exeext conftest.$ac_ext ;; 8619esac 8620fi 8621 8622 8623 CFLAGS="$xorg_testset_save_CFLAGS" 8624 8625 eval supported=\$$cacheid 8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8627printf "%s\n" "$supported" >&6; } 8628 if test "$supported" = "yes" ; then 8629 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8630 found="yes" 8631 fi 8632 fi 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648xorg_testset_save_CFLAGS="$CFLAGS" 8649 8650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8654if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8655then : 8656 printf %s "(cached) " >&6 8657else case e in #( 8658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8659/* end confdefs.h. */ 8660int i; 8661_ACEOF 8662if ac_fn_c_try_compile "$LINENO" 8663then : 8664 xorg_cv_cc_flag_unknown_warning_option=yes 8665else case e in #( 8666 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8667esac 8668fi 8669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8670esac 8671fi 8672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8675 CFLAGS="$xorg_testset_save_CFLAGS" 8676fi 8677 8678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8681 fi 8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8685if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8686then : 8687 printf %s "(cached) " >&6 8688else case e in #( 8689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8690/* end confdefs.h. */ 8691int i; 8692_ACEOF 8693if ac_fn_c_try_compile "$LINENO" 8694then : 8695 xorg_cv_cc_flag_unused_command_line_argument=yes 8696else case e in #( 8697 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8698esac 8699fi 8700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8701esac 8702fi 8703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8704printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8706 CFLAGS="$xorg_testset_save_CFLAGS" 8707fi 8708 8709found="no" 8710 8711 if test $found = "no" ; then 8712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8714 fi 8715 8716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8718 fi 8719 8720 CFLAGS="$CFLAGS -Werror=write-strings" 8721 8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8723printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8724 cacheid=xorg_cv_cc_flag__Werror_write_strings 8725 if eval test \${$cacheid+y} 8726then : 8727 printf %s "(cached) " >&6 8728else case e in #( 8729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8730/* end confdefs.h. */ 8731int i; 8732int 8733main (void) 8734{ 8735 8736 ; 8737 return 0; 8738} 8739_ACEOF 8740if ac_fn_c_try_link "$LINENO" 8741then : 8742 eval $cacheid=yes 8743else case e in #( 8744 e) eval $cacheid=no ;; 8745esac 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8748 conftest$ac_exeext conftest.$ac_ext ;; 8749esac 8750fi 8751 8752 8753 CFLAGS="$xorg_testset_save_CFLAGS" 8754 8755 eval supported=\$$cacheid 8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8757printf "%s\n" "$supported" >&6; } 8758 if test "$supported" = "yes" ; then 8759 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8760 found="yes" 8761 fi 8762 fi 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778xorg_testset_save_CFLAGS="$CFLAGS" 8779 8780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8783printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8784if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8785then : 8786 printf %s "(cached) " >&6 8787else case e in #( 8788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790int i; 8791_ACEOF 8792if ac_fn_c_try_compile "$LINENO" 8793then : 8794 xorg_cv_cc_flag_unknown_warning_option=yes 8795else case e in #( 8796 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8797esac 8798fi 8799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8800esac 8801fi 8802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8803printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8805 CFLAGS="$xorg_testset_save_CFLAGS" 8806fi 8807 8808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8811 fi 8812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8814printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8815if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8816then : 8817 printf %s "(cached) " >&6 8818else case e in #( 8819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8820/* end confdefs.h. */ 8821int i; 8822_ACEOF 8823if ac_fn_c_try_compile "$LINENO" 8824then : 8825 xorg_cv_cc_flag_unused_command_line_argument=yes 8826else case e in #( 8827 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8828esac 8829fi 8830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8831esac 8832fi 8833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8834printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8836 CFLAGS="$xorg_testset_save_CFLAGS" 8837fi 8838 8839found="no" 8840 8841 if test $found = "no" ; then 8842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8844 fi 8845 8846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8848 fi 8849 8850 CFLAGS="$CFLAGS -Werror=address" 8851 8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8853printf %s "checking if $CC supports -Werror=address... " >&6; } 8854 cacheid=xorg_cv_cc_flag__Werror_address 8855 if eval test \${$cacheid+y} 8856then : 8857 printf %s "(cached) " >&6 8858else case e in #( 8859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8860/* end confdefs.h. */ 8861int i; 8862int 8863main (void) 8864{ 8865 8866 ; 8867 return 0; 8868} 8869_ACEOF 8870if ac_fn_c_try_link "$LINENO" 8871then : 8872 eval $cacheid=yes 8873else case e in #( 8874 e) eval $cacheid=no ;; 8875esac 8876fi 8877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8878 conftest$ac_exeext conftest.$ac_ext ;; 8879esac 8880fi 8881 8882 8883 CFLAGS="$xorg_testset_save_CFLAGS" 8884 8885 eval supported=\$$cacheid 8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8887printf "%s\n" "$supported" >&6; } 8888 if test "$supported" = "yes" ; then 8889 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8890 found="yes" 8891 fi 8892 fi 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908xorg_testset_save_CFLAGS="$CFLAGS" 8909 8910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8913printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8914if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8915then : 8916 printf %s "(cached) " >&6 8917else case e in #( 8918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8919/* end confdefs.h. */ 8920int i; 8921_ACEOF 8922if ac_fn_c_try_compile "$LINENO" 8923then : 8924 xorg_cv_cc_flag_unknown_warning_option=yes 8925else case e in #( 8926 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8927esac 8928fi 8929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8930esac 8931fi 8932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8935 CFLAGS="$xorg_testset_save_CFLAGS" 8936fi 8937 8938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8941 fi 8942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8945if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8946then : 8947 printf %s "(cached) " >&6 8948else case e in #( 8949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8950/* end confdefs.h. */ 8951int i; 8952_ACEOF 8953if ac_fn_c_try_compile "$LINENO" 8954then : 8955 xorg_cv_cc_flag_unused_command_line_argument=yes 8956else case e in #( 8957 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8958esac 8959fi 8960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8961esac 8962fi 8963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8964printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8966 CFLAGS="$xorg_testset_save_CFLAGS" 8967fi 8968 8969found="no" 8970 8971 if test $found = "no" ; then 8972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8974 fi 8975 8976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8978 fi 8979 8980 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8981 8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8983printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8984 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8985 if eval test \${$cacheid+y} 8986then : 8987 printf %s "(cached) " >&6 8988else case e in #( 8989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8990/* end confdefs.h. */ 8991int i; 8992int 8993main (void) 8994{ 8995 8996 ; 8997 return 0; 8998} 8999_ACEOF 9000if ac_fn_c_try_link "$LINENO" 9001then : 9002 eval $cacheid=yes 9003else case e in #( 9004 e) eval $cacheid=no ;; 9005esac 9006fi 9007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9008 conftest$ac_exeext conftest.$ac_ext ;; 9009esac 9010fi 9011 9012 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014 9015 eval supported=\$$cacheid 9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9017printf "%s\n" "$supported" >&6; } 9018 if test "$supported" = "yes" ; then 9019 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9020 found="yes" 9021 fi 9022 fi 9023 9024 if test $found = "no" ; then 9025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9027 fi 9028 9029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9031 fi 9032 9033 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9034 9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9036printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9037 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9038 if eval test \${$cacheid+y} 9039then : 9040 printf %s "(cached) " >&6 9041else case e in #( 9042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044int i; 9045int 9046main (void) 9047{ 9048 9049 ; 9050 return 0; 9051} 9052_ACEOF 9053if ac_fn_c_try_link "$LINENO" 9054then : 9055 eval $cacheid=yes 9056else case e in #( 9057 e) eval $cacheid=no ;; 9058esac 9059fi 9060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9061 conftest$ac_exeext conftest.$ac_ext ;; 9062esac 9063fi 9064 9065 9066 CFLAGS="$xorg_testset_save_CFLAGS" 9067 9068 eval supported=\$$cacheid 9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9070printf "%s\n" "$supported" >&6; } 9071 if test "$supported" = "yes" ; then 9072 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9073 found="yes" 9074 fi 9075 fi 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091xorg_testset_save_CFLAGS="$CFLAGS" 9092 9093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9097if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9098then : 9099 printf %s "(cached) " >&6 9100else case e in #( 9101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9102/* end confdefs.h. */ 9103int i; 9104_ACEOF 9105if ac_fn_c_try_compile "$LINENO" 9106then : 9107 xorg_cv_cc_flag_unknown_warning_option=yes 9108else case e in #( 9109 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9110esac 9111fi 9112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9113esac 9114fi 9115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9116printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9118 CFLAGS="$xorg_testset_save_CFLAGS" 9119fi 9120 9121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9124 fi 9125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9127printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9128if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9129then : 9130 printf %s "(cached) " >&6 9131else case e in #( 9132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133/* end confdefs.h. */ 9134int i; 9135_ACEOF 9136if ac_fn_c_try_compile "$LINENO" 9137then : 9138 xorg_cv_cc_flag_unused_command_line_argument=yes 9139else case e in #( 9140 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9141esac 9142fi 9143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9144esac 9145fi 9146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9147printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9149 CFLAGS="$xorg_testset_save_CFLAGS" 9150fi 9151 9152found="no" 9153 9154 if test $found = "no" ; then 9155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9157 fi 9158 9159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9161 fi 9162 9163 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9164 9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9166printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9167 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9168 if eval test \${$cacheid+y} 9169then : 9170 printf %s "(cached) " >&6 9171else case e in #( 9172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9173/* end confdefs.h. */ 9174int i; 9175int 9176main (void) 9177{ 9178 9179 ; 9180 return 0; 9181} 9182_ACEOF 9183if ac_fn_c_try_link "$LINENO" 9184then : 9185 eval $cacheid=yes 9186else case e in #( 9187 e) eval $cacheid=no ;; 9188esac 9189fi 9190rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9191 conftest$ac_exeext conftest.$ac_ext ;; 9192esac 9193fi 9194 9195 9196 CFLAGS="$xorg_testset_save_CFLAGS" 9197 9198 eval supported=\$$cacheid 9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9200printf "%s\n" "$supported" >&6; } 9201 if test "$supported" = "yes" ; then 9202 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9203 found="yes" 9204 fi 9205 fi 9206 9207 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9208else 9209{ 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 9210printf "%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;} 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224xorg_testset_save_CFLAGS="$CFLAGS" 9225 9226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9230if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9231then : 9232 printf %s "(cached) " >&6 9233else case e in #( 9234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9235/* end confdefs.h. */ 9236int i; 9237_ACEOF 9238if ac_fn_c_try_compile "$LINENO" 9239then : 9240 xorg_cv_cc_flag_unknown_warning_option=yes 9241else case e in #( 9242 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9243esac 9244fi 9245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9246esac 9247fi 9248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9251 CFLAGS="$xorg_testset_save_CFLAGS" 9252fi 9253 9254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9257 fi 9258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9261if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9262then : 9263 printf %s "(cached) " >&6 9264else case e in #( 9265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9266/* end confdefs.h. */ 9267int i; 9268_ACEOF 9269if ac_fn_c_try_compile "$LINENO" 9270then : 9271 xorg_cv_cc_flag_unused_command_line_argument=yes 9272else case e in #( 9273 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9274esac 9275fi 9276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9277esac 9278fi 9279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9282 CFLAGS="$xorg_testset_save_CFLAGS" 9283fi 9284 9285found="no" 9286 9287 if test $found = "no" ; then 9288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9290 fi 9291 9292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9294 fi 9295 9296 CFLAGS="$CFLAGS -Wimplicit" 9297 9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9299printf %s "checking if $CC supports -Wimplicit... " >&6; } 9300 cacheid=xorg_cv_cc_flag__Wimplicit 9301 if eval test \${$cacheid+y} 9302then : 9303 printf %s "(cached) " >&6 9304else case e in #( 9305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9306/* end confdefs.h. */ 9307int i; 9308int 9309main (void) 9310{ 9311 9312 ; 9313 return 0; 9314} 9315_ACEOF 9316if ac_fn_c_try_link "$LINENO" 9317then : 9318 eval $cacheid=yes 9319else case e in #( 9320 e) eval $cacheid=no ;; 9321esac 9322fi 9323rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9324 conftest$ac_exeext conftest.$ac_ext ;; 9325esac 9326fi 9327 9328 9329 CFLAGS="$xorg_testset_save_CFLAGS" 9330 9331 eval supported=\$$cacheid 9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9333printf "%s\n" "$supported" >&6; } 9334 if test "$supported" = "yes" ; then 9335 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9336 found="yes" 9337 fi 9338 fi 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354xorg_testset_save_CFLAGS="$CFLAGS" 9355 9356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9360if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9361then : 9362 printf %s "(cached) " >&6 9363else case e in #( 9364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9365/* end confdefs.h. */ 9366int i; 9367_ACEOF 9368if ac_fn_c_try_compile "$LINENO" 9369then : 9370 xorg_cv_cc_flag_unknown_warning_option=yes 9371else case e in #( 9372 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9373esac 9374fi 9375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9376esac 9377fi 9378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9381 CFLAGS="$xorg_testset_save_CFLAGS" 9382fi 9383 9384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9387 fi 9388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9391if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9392then : 9393 printf %s "(cached) " >&6 9394else case e in #( 9395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9396/* end confdefs.h. */ 9397int i; 9398_ACEOF 9399if ac_fn_c_try_compile "$LINENO" 9400then : 9401 xorg_cv_cc_flag_unused_command_line_argument=yes 9402else case e in #( 9403 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9404esac 9405fi 9406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9407esac 9408fi 9409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9412 CFLAGS="$xorg_testset_save_CFLAGS" 9413fi 9414 9415found="no" 9416 9417 if test $found = "no" ; then 9418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9420 fi 9421 9422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9424 fi 9425 9426 CFLAGS="$CFLAGS -Wnonnull" 9427 9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9429printf %s "checking if $CC supports -Wnonnull... " >&6; } 9430 cacheid=xorg_cv_cc_flag__Wnonnull 9431 if eval test \${$cacheid+y} 9432then : 9433 printf %s "(cached) " >&6 9434else case e in #( 9435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9436/* end confdefs.h. */ 9437int i; 9438int 9439main (void) 9440{ 9441 9442 ; 9443 return 0; 9444} 9445_ACEOF 9446if ac_fn_c_try_link "$LINENO" 9447then : 9448 eval $cacheid=yes 9449else case e in #( 9450 e) eval $cacheid=no ;; 9451esac 9452fi 9453rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9454 conftest$ac_exeext conftest.$ac_ext ;; 9455esac 9456fi 9457 9458 9459 CFLAGS="$xorg_testset_save_CFLAGS" 9460 9461 eval supported=\$$cacheid 9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9463printf "%s\n" "$supported" >&6; } 9464 if test "$supported" = "yes" ; then 9465 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9466 found="yes" 9467 fi 9468 fi 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484xorg_testset_save_CFLAGS="$CFLAGS" 9485 9486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9489printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9490if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9491then : 9492 printf %s "(cached) " >&6 9493else case e in #( 9494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9495/* end confdefs.h. */ 9496int i; 9497_ACEOF 9498if ac_fn_c_try_compile "$LINENO" 9499then : 9500 xorg_cv_cc_flag_unknown_warning_option=yes 9501else case e in #( 9502 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9503esac 9504fi 9505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9506esac 9507fi 9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9511 CFLAGS="$xorg_testset_save_CFLAGS" 9512fi 9513 9514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9517 fi 9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9521if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9522then : 9523 printf %s "(cached) " >&6 9524else case e in #( 9525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9526/* end confdefs.h. */ 9527int i; 9528_ACEOF 9529if ac_fn_c_try_compile "$LINENO" 9530then : 9531 xorg_cv_cc_flag_unused_command_line_argument=yes 9532else case e in #( 9533 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9534esac 9535fi 9536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9537esac 9538fi 9539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9540printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543fi 9544 9545found="no" 9546 9547 if test $found = "no" ; then 9548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9550 fi 9551 9552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9554 fi 9555 9556 CFLAGS="$CFLAGS -Winit-self" 9557 9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9559printf %s "checking if $CC supports -Winit-self... " >&6; } 9560 cacheid=xorg_cv_cc_flag__Winit_self 9561 if eval test \${$cacheid+y} 9562then : 9563 printf %s "(cached) " >&6 9564else case e in #( 9565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567int i; 9568int 9569main (void) 9570{ 9571 9572 ; 9573 return 0; 9574} 9575_ACEOF 9576if ac_fn_c_try_link "$LINENO" 9577then : 9578 eval $cacheid=yes 9579else case e in #( 9580 e) eval $cacheid=no ;; 9581esac 9582fi 9583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9584 conftest$ac_exeext conftest.$ac_ext ;; 9585esac 9586fi 9587 9588 9589 CFLAGS="$xorg_testset_save_CFLAGS" 9590 9591 eval supported=\$$cacheid 9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9593printf "%s\n" "$supported" >&6; } 9594 if test "$supported" = "yes" ; then 9595 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9596 found="yes" 9597 fi 9598 fi 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614xorg_testset_save_CFLAGS="$CFLAGS" 9615 9616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9620if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9621then : 9622 printf %s "(cached) " >&6 9623else case e in #( 9624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9625/* end confdefs.h. */ 9626int i; 9627_ACEOF 9628if ac_fn_c_try_compile "$LINENO" 9629then : 9630 xorg_cv_cc_flag_unknown_warning_option=yes 9631else case e in #( 9632 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9633esac 9634fi 9635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9636esac 9637fi 9638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9641 CFLAGS="$xorg_testset_save_CFLAGS" 9642fi 9643 9644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9647 fi 9648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9651if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9652then : 9653 printf %s "(cached) " >&6 9654else case e in #( 9655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9656/* end confdefs.h. */ 9657int i; 9658_ACEOF 9659if ac_fn_c_try_compile "$LINENO" 9660then : 9661 xorg_cv_cc_flag_unused_command_line_argument=yes 9662else case e in #( 9663 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9664esac 9665fi 9666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9667esac 9668fi 9669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9672 CFLAGS="$xorg_testset_save_CFLAGS" 9673fi 9674 9675found="no" 9676 9677 if test $found = "no" ; then 9678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9680 fi 9681 9682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9684 fi 9685 9686 CFLAGS="$CFLAGS -Wmain" 9687 9688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9689printf %s "checking if $CC supports -Wmain... " >&6; } 9690 cacheid=xorg_cv_cc_flag__Wmain 9691 if eval test \${$cacheid+y} 9692then : 9693 printf %s "(cached) " >&6 9694else case e in #( 9695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697int i; 9698int 9699main (void) 9700{ 9701 9702 ; 9703 return 0; 9704} 9705_ACEOF 9706if ac_fn_c_try_link "$LINENO" 9707then : 9708 eval $cacheid=yes 9709else case e in #( 9710 e) eval $cacheid=no ;; 9711esac 9712fi 9713rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9714 conftest$ac_exeext conftest.$ac_ext ;; 9715esac 9716fi 9717 9718 9719 CFLAGS="$xorg_testset_save_CFLAGS" 9720 9721 eval supported=\$$cacheid 9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9723printf "%s\n" "$supported" >&6; } 9724 if test "$supported" = "yes" ; then 9725 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9726 found="yes" 9727 fi 9728 fi 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744xorg_testset_save_CFLAGS="$CFLAGS" 9745 9746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9749printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9750if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9751then : 9752 printf %s "(cached) " >&6 9753else case e in #( 9754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9755/* end confdefs.h. */ 9756int i; 9757_ACEOF 9758if ac_fn_c_try_compile "$LINENO" 9759then : 9760 xorg_cv_cc_flag_unknown_warning_option=yes 9761else case e in #( 9762 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9763esac 9764fi 9765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9766esac 9767fi 9768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9771 CFLAGS="$xorg_testset_save_CFLAGS" 9772fi 9773 9774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9777 fi 9778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9781if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9782then : 9783 printf %s "(cached) " >&6 9784else case e in #( 9785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9786/* end confdefs.h. */ 9787int i; 9788_ACEOF 9789if ac_fn_c_try_compile "$LINENO" 9790then : 9791 xorg_cv_cc_flag_unused_command_line_argument=yes 9792else case e in #( 9793 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9794esac 9795fi 9796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9797esac 9798fi 9799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803fi 9804 9805found="no" 9806 9807 if test $found = "no" ; then 9808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9810 fi 9811 9812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9814 fi 9815 9816 CFLAGS="$CFLAGS -Wmissing-braces" 9817 9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9819printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9820 cacheid=xorg_cv_cc_flag__Wmissing_braces 9821 if eval test \${$cacheid+y} 9822then : 9823 printf %s "(cached) " >&6 9824else case e in #( 9825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826/* end confdefs.h. */ 9827int i; 9828int 9829main (void) 9830{ 9831 9832 ; 9833 return 0; 9834} 9835_ACEOF 9836if ac_fn_c_try_link "$LINENO" 9837then : 9838 eval $cacheid=yes 9839else case e in #( 9840 e) eval $cacheid=no ;; 9841esac 9842fi 9843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9844 conftest$ac_exeext conftest.$ac_ext ;; 9845esac 9846fi 9847 9848 9849 CFLAGS="$xorg_testset_save_CFLAGS" 9850 9851 eval supported=\$$cacheid 9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9853printf "%s\n" "$supported" >&6; } 9854 if test "$supported" = "yes" ; then 9855 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9856 found="yes" 9857 fi 9858 fi 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874xorg_testset_save_CFLAGS="$CFLAGS" 9875 9876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9880if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9881then : 9882 printf %s "(cached) " >&6 9883else case e in #( 9884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9885/* end confdefs.h. */ 9886int i; 9887_ACEOF 9888if ac_fn_c_try_compile "$LINENO" 9889then : 9890 xorg_cv_cc_flag_unknown_warning_option=yes 9891else case e in #( 9892 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9893esac 9894fi 9895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9896esac 9897fi 9898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9901 CFLAGS="$xorg_testset_save_CFLAGS" 9902fi 9903 9904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9907 fi 9908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9911if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9912then : 9913 printf %s "(cached) " >&6 9914else case e in #( 9915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9916/* end confdefs.h. */ 9917int i; 9918_ACEOF 9919if ac_fn_c_try_compile "$LINENO" 9920then : 9921 xorg_cv_cc_flag_unused_command_line_argument=yes 9922else case e in #( 9923 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9924esac 9925fi 9926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9927esac 9928fi 9929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9932 CFLAGS="$xorg_testset_save_CFLAGS" 9933fi 9934 9935found="no" 9936 9937 if test $found = "no" ; then 9938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9940 fi 9941 9942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9944 fi 9945 9946 CFLAGS="$CFLAGS -Wsequence-point" 9947 9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9949printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9950 cacheid=xorg_cv_cc_flag__Wsequence_point 9951 if eval test \${$cacheid+y} 9952then : 9953 printf %s "(cached) " >&6 9954else case e in #( 9955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9956/* end confdefs.h. */ 9957int i; 9958int 9959main (void) 9960{ 9961 9962 ; 9963 return 0; 9964} 9965_ACEOF 9966if ac_fn_c_try_link "$LINENO" 9967then : 9968 eval $cacheid=yes 9969else case e in #( 9970 e) eval $cacheid=no ;; 9971esac 9972fi 9973rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9974 conftest$ac_exeext conftest.$ac_ext ;; 9975esac 9976fi 9977 9978 9979 CFLAGS="$xorg_testset_save_CFLAGS" 9980 9981 eval supported=\$$cacheid 9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9983printf "%s\n" "$supported" >&6; } 9984 if test "$supported" = "yes" ; then 9985 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9986 found="yes" 9987 fi 9988 fi 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004xorg_testset_save_CFLAGS="$CFLAGS" 10005 10006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10009printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10010if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10011then : 10012 printf %s "(cached) " >&6 10013else case e in #( 10014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10015/* end confdefs.h. */ 10016int i; 10017_ACEOF 10018if ac_fn_c_try_compile "$LINENO" 10019then : 10020 xorg_cv_cc_flag_unknown_warning_option=yes 10021else case e in #( 10022 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10023esac 10024fi 10025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10026esac 10027fi 10028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10031 CFLAGS="$xorg_testset_save_CFLAGS" 10032fi 10033 10034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10037 fi 10038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10041if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10042then : 10043 printf %s "(cached) " >&6 10044else case e in #( 10045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10046/* end confdefs.h. */ 10047int i; 10048_ACEOF 10049if ac_fn_c_try_compile "$LINENO" 10050then : 10051 xorg_cv_cc_flag_unused_command_line_argument=yes 10052else case e in #( 10053 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10054esac 10055fi 10056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10057esac 10058fi 10059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10060printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10062 CFLAGS="$xorg_testset_save_CFLAGS" 10063fi 10064 10065found="no" 10066 10067 if test $found = "no" ; then 10068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10070 fi 10071 10072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10074 fi 10075 10076 CFLAGS="$CFLAGS -Wreturn-type" 10077 10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10079printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10080 cacheid=xorg_cv_cc_flag__Wreturn_type 10081 if eval test \${$cacheid+y} 10082then : 10083 printf %s "(cached) " >&6 10084else case e in #( 10085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10086/* end confdefs.h. */ 10087int i; 10088int 10089main (void) 10090{ 10091 10092 ; 10093 return 0; 10094} 10095_ACEOF 10096if ac_fn_c_try_link "$LINENO" 10097then : 10098 eval $cacheid=yes 10099else case e in #( 10100 e) eval $cacheid=no ;; 10101esac 10102fi 10103rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10104 conftest$ac_exeext conftest.$ac_ext ;; 10105esac 10106fi 10107 10108 10109 CFLAGS="$xorg_testset_save_CFLAGS" 10110 10111 eval supported=\$$cacheid 10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10113printf "%s\n" "$supported" >&6; } 10114 if test "$supported" = "yes" ; then 10115 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10116 found="yes" 10117 fi 10118 fi 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134xorg_testset_save_CFLAGS="$CFLAGS" 10135 10136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10140if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10141then : 10142 printf %s "(cached) " >&6 10143else case e in #( 10144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10145/* end confdefs.h. */ 10146int i; 10147_ACEOF 10148if ac_fn_c_try_compile "$LINENO" 10149then : 10150 xorg_cv_cc_flag_unknown_warning_option=yes 10151else case e in #( 10152 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10153esac 10154fi 10155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10156esac 10157fi 10158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10159printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10161 CFLAGS="$xorg_testset_save_CFLAGS" 10162fi 10163 10164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10167 fi 10168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10170printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10171if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10172then : 10173 printf %s "(cached) " >&6 10174else case e in #( 10175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10176/* end confdefs.h. */ 10177int i; 10178_ACEOF 10179if ac_fn_c_try_compile "$LINENO" 10180then : 10181 xorg_cv_cc_flag_unused_command_line_argument=yes 10182else case e in #( 10183 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10184esac 10185fi 10186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10187esac 10188fi 10189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10192 CFLAGS="$xorg_testset_save_CFLAGS" 10193fi 10194 10195found="no" 10196 10197 if test $found = "no" ; then 10198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10200 fi 10201 10202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10204 fi 10205 10206 CFLAGS="$CFLAGS -Wtrigraphs" 10207 10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10209printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10210 cacheid=xorg_cv_cc_flag__Wtrigraphs 10211 if eval test \${$cacheid+y} 10212then : 10213 printf %s "(cached) " >&6 10214else case e in #( 10215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10216/* end confdefs.h. */ 10217int i; 10218int 10219main (void) 10220{ 10221 10222 ; 10223 return 0; 10224} 10225_ACEOF 10226if ac_fn_c_try_link "$LINENO" 10227then : 10228 eval $cacheid=yes 10229else case e in #( 10230 e) eval $cacheid=no ;; 10231esac 10232fi 10233rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10234 conftest$ac_exeext conftest.$ac_ext ;; 10235esac 10236fi 10237 10238 10239 CFLAGS="$xorg_testset_save_CFLAGS" 10240 10241 eval supported=\$$cacheid 10242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10243printf "%s\n" "$supported" >&6; } 10244 if test "$supported" = "yes" ; then 10245 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10246 found="yes" 10247 fi 10248 fi 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264xorg_testset_save_CFLAGS="$CFLAGS" 10265 10266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10269printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10270if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10271then : 10272 printf %s "(cached) " >&6 10273else case e in #( 10274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10275/* end confdefs.h. */ 10276int i; 10277_ACEOF 10278if ac_fn_c_try_compile "$LINENO" 10279then : 10280 xorg_cv_cc_flag_unknown_warning_option=yes 10281else case e in #( 10282 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10283esac 10284fi 10285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10286esac 10287fi 10288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10289printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10291 CFLAGS="$xorg_testset_save_CFLAGS" 10292fi 10293 10294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10297 fi 10298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10300printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10301if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10302then : 10303 printf %s "(cached) " >&6 10304else case e in #( 10305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10306/* end confdefs.h. */ 10307int i; 10308_ACEOF 10309if ac_fn_c_try_compile "$LINENO" 10310then : 10311 xorg_cv_cc_flag_unused_command_line_argument=yes 10312else case e in #( 10313 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10314esac 10315fi 10316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10317esac 10318fi 10319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10322 CFLAGS="$xorg_testset_save_CFLAGS" 10323fi 10324 10325found="no" 10326 10327 if test $found = "no" ; then 10328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10330 fi 10331 10332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10334 fi 10335 10336 CFLAGS="$CFLAGS -Warray-bounds" 10337 10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10339printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10340 cacheid=xorg_cv_cc_flag__Warray_bounds 10341 if eval test \${$cacheid+y} 10342then : 10343 printf %s "(cached) " >&6 10344else case e in #( 10345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10346/* end confdefs.h. */ 10347int i; 10348int 10349main (void) 10350{ 10351 10352 ; 10353 return 0; 10354} 10355_ACEOF 10356if ac_fn_c_try_link "$LINENO" 10357then : 10358 eval $cacheid=yes 10359else case e in #( 10360 e) eval $cacheid=no ;; 10361esac 10362fi 10363rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10364 conftest$ac_exeext conftest.$ac_ext ;; 10365esac 10366fi 10367 10368 10369 CFLAGS="$xorg_testset_save_CFLAGS" 10370 10371 eval supported=\$$cacheid 10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10373printf "%s\n" "$supported" >&6; } 10374 if test "$supported" = "yes" ; then 10375 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10376 found="yes" 10377 fi 10378 fi 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394xorg_testset_save_CFLAGS="$CFLAGS" 10395 10396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10400if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10401then : 10402 printf %s "(cached) " >&6 10403else case e in #( 10404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10405/* end confdefs.h. */ 10406int i; 10407_ACEOF 10408if ac_fn_c_try_compile "$LINENO" 10409then : 10410 xorg_cv_cc_flag_unknown_warning_option=yes 10411else case e in #( 10412 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10413esac 10414fi 10415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10416esac 10417fi 10418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10421 CFLAGS="$xorg_testset_save_CFLAGS" 10422fi 10423 10424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10427 fi 10428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10431if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10432then : 10433 printf %s "(cached) " >&6 10434else case e in #( 10435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10436/* end confdefs.h. */ 10437int i; 10438_ACEOF 10439if ac_fn_c_try_compile "$LINENO" 10440then : 10441 xorg_cv_cc_flag_unused_command_line_argument=yes 10442else case e in #( 10443 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10444esac 10445fi 10446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10447esac 10448fi 10449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10452 CFLAGS="$xorg_testset_save_CFLAGS" 10453fi 10454 10455found="no" 10456 10457 if test $found = "no" ; then 10458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10460 fi 10461 10462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10464 fi 10465 10466 CFLAGS="$CFLAGS -Wwrite-strings" 10467 10468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10469printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10470 cacheid=xorg_cv_cc_flag__Wwrite_strings 10471 if eval test \${$cacheid+y} 10472then : 10473 printf %s "(cached) " >&6 10474else case e in #( 10475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10476/* end confdefs.h. */ 10477int i; 10478int 10479main (void) 10480{ 10481 10482 ; 10483 return 0; 10484} 10485_ACEOF 10486if ac_fn_c_try_link "$LINENO" 10487then : 10488 eval $cacheid=yes 10489else case e in #( 10490 e) eval $cacheid=no ;; 10491esac 10492fi 10493rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10494 conftest$ac_exeext conftest.$ac_ext ;; 10495esac 10496fi 10497 10498 10499 CFLAGS="$xorg_testset_save_CFLAGS" 10500 10501 eval supported=\$$cacheid 10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10503printf "%s\n" "$supported" >&6; } 10504 if test "$supported" = "yes" ; then 10505 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10506 found="yes" 10507 fi 10508 fi 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524xorg_testset_save_CFLAGS="$CFLAGS" 10525 10526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10530if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10531then : 10532 printf %s "(cached) " >&6 10533else case e in #( 10534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10535/* end confdefs.h. */ 10536int i; 10537_ACEOF 10538if ac_fn_c_try_compile "$LINENO" 10539then : 10540 xorg_cv_cc_flag_unknown_warning_option=yes 10541else case e in #( 10542 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10543esac 10544fi 10545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10546esac 10547fi 10548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10549printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10551 CFLAGS="$xorg_testset_save_CFLAGS" 10552fi 10553 10554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10557 fi 10558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10560printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10561if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10562then : 10563 printf %s "(cached) " >&6 10564else case e in #( 10565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10566/* end confdefs.h. */ 10567int i; 10568_ACEOF 10569if ac_fn_c_try_compile "$LINENO" 10570then : 10571 xorg_cv_cc_flag_unused_command_line_argument=yes 10572else case e in #( 10573 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10574esac 10575fi 10576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10577esac 10578fi 10579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10580printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10582 CFLAGS="$xorg_testset_save_CFLAGS" 10583fi 10584 10585found="no" 10586 10587 if test $found = "no" ; then 10588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10590 fi 10591 10592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10594 fi 10595 10596 CFLAGS="$CFLAGS -Waddress" 10597 10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10599printf %s "checking if $CC supports -Waddress... " >&6; } 10600 cacheid=xorg_cv_cc_flag__Waddress 10601 if eval test \${$cacheid+y} 10602then : 10603 printf %s "(cached) " >&6 10604else case e in #( 10605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10606/* end confdefs.h. */ 10607int i; 10608int 10609main (void) 10610{ 10611 10612 ; 10613 return 0; 10614} 10615_ACEOF 10616if ac_fn_c_try_link "$LINENO" 10617then : 10618 eval $cacheid=yes 10619else case e in #( 10620 e) eval $cacheid=no ;; 10621esac 10622fi 10623rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10624 conftest$ac_exeext conftest.$ac_ext ;; 10625esac 10626fi 10627 10628 10629 CFLAGS="$xorg_testset_save_CFLAGS" 10630 10631 eval supported=\$$cacheid 10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10633printf "%s\n" "$supported" >&6; } 10634 if test "$supported" = "yes" ; then 10635 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10636 found="yes" 10637 fi 10638 fi 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654xorg_testset_save_CFLAGS="$CFLAGS" 10655 10656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10659printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10660if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10661then : 10662 printf %s "(cached) " >&6 10663else case e in #( 10664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10665/* end confdefs.h. */ 10666int i; 10667_ACEOF 10668if ac_fn_c_try_compile "$LINENO" 10669then : 10670 xorg_cv_cc_flag_unknown_warning_option=yes 10671else case e in #( 10672 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10673esac 10674fi 10675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10676esac 10677fi 10678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10679printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10681 CFLAGS="$xorg_testset_save_CFLAGS" 10682fi 10683 10684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10687 fi 10688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10690printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10691if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10692then : 10693 printf %s "(cached) " >&6 10694else case e in #( 10695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10696/* end confdefs.h. */ 10697int i; 10698_ACEOF 10699if ac_fn_c_try_compile "$LINENO" 10700then : 10701 xorg_cv_cc_flag_unused_command_line_argument=yes 10702else case e in #( 10703 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10704esac 10705fi 10706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10707esac 10708fi 10709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10710printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10712 CFLAGS="$xorg_testset_save_CFLAGS" 10713fi 10714 10715found="no" 10716 10717 if test $found = "no" ; then 10718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10720 fi 10721 10722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10724 fi 10725 10726 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10727 10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10729printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10730 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10731 if eval test \${$cacheid+y} 10732then : 10733 printf %s "(cached) " >&6 10734else case e in #( 10735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10736/* end confdefs.h. */ 10737int i; 10738int 10739main (void) 10740{ 10741 10742 ; 10743 return 0; 10744} 10745_ACEOF 10746if ac_fn_c_try_link "$LINENO" 10747then : 10748 eval $cacheid=yes 10749else case e in #( 10750 e) eval $cacheid=no ;; 10751esac 10752fi 10753rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10754 conftest$ac_exeext conftest.$ac_ext ;; 10755esac 10756fi 10757 10758 10759 CFLAGS="$xorg_testset_save_CFLAGS" 10760 10761 eval supported=\$$cacheid 10762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10763printf "%s\n" "$supported" >&6; } 10764 if test "$supported" = "yes" ; then 10765 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10766 found="yes" 10767 fi 10768 fi 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784xorg_testset_save_CFLAGS="$CFLAGS" 10785 10786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10789printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10790if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10791then : 10792 printf %s "(cached) " >&6 10793else case e in #( 10794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10795/* end confdefs.h. */ 10796int i; 10797_ACEOF 10798if ac_fn_c_try_compile "$LINENO" 10799then : 10800 xorg_cv_cc_flag_unknown_warning_option=yes 10801else case e in #( 10802 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10803esac 10804fi 10805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10806esac 10807fi 10808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10811 CFLAGS="$xorg_testset_save_CFLAGS" 10812fi 10813 10814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10817 fi 10818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10821if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10822then : 10823 printf %s "(cached) " >&6 10824else case e in #( 10825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10826/* end confdefs.h. */ 10827int i; 10828_ACEOF 10829if ac_fn_c_try_compile "$LINENO" 10830then : 10831 xorg_cv_cc_flag_unused_command_line_argument=yes 10832else case e in #( 10833 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10834esac 10835fi 10836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10837esac 10838fi 10839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10840printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10842 CFLAGS="$xorg_testset_save_CFLAGS" 10843fi 10844 10845found="no" 10846 10847 if test $found = "no" ; then 10848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10850 fi 10851 10852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10854 fi 10855 10856 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10857 10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10859printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10860 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10861 if eval test \${$cacheid+y} 10862then : 10863 printf %s "(cached) " >&6 10864else case e in #( 10865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10866/* end confdefs.h. */ 10867int i; 10868int 10869main (void) 10870{ 10871 10872 ; 10873 return 0; 10874} 10875_ACEOF 10876if ac_fn_c_try_link "$LINENO" 10877then : 10878 eval $cacheid=yes 10879else case e in #( 10880 e) eval $cacheid=no ;; 10881esac 10882fi 10883rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10884 conftest$ac_exeext conftest.$ac_ext ;; 10885esac 10886fi 10887 10888 10889 CFLAGS="$xorg_testset_save_CFLAGS" 10890 10891 eval supported=\$$cacheid 10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10893printf "%s\n" "$supported" >&6; } 10894 if test "$supported" = "yes" ; then 10895 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10896 found="yes" 10897 fi 10898 fi 10899 10900 10901fi 10902 10903 10904 10905 10906 10907 10908 10909 CWARNFLAGS="$BASE_CFLAGS" 10910 if test "x$GCC" = xyes ; then 10911 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10912 fi 10913 10914 10915 10916 10917 10918 10919 10920 10921# Check whether --enable-strict-compilation was given. 10922if test ${enable_strict_compilation+y} 10923then : 10924 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10925else case e in #( 10926 e) STRICT_COMPILE=no ;; 10927esac 10928fi 10929 10930 10931 10932 10933 10934 10935STRICT_CFLAGS="" 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949xorg_testset_save_CFLAGS="$CFLAGS" 10950 10951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10954printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10955if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10956then : 10957 printf %s "(cached) " >&6 10958else case e in #( 10959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10960/* end confdefs.h. */ 10961int i; 10962_ACEOF 10963if ac_fn_c_try_compile "$LINENO" 10964then : 10965 xorg_cv_cc_flag_unknown_warning_option=yes 10966else case e in #( 10967 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10968esac 10969fi 10970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10971esac 10972fi 10973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10976 CFLAGS="$xorg_testset_save_CFLAGS" 10977fi 10978 10979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10982 fi 10983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10986if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10987then : 10988 printf %s "(cached) " >&6 10989else case e in #( 10990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10991/* end confdefs.h. */ 10992int i; 10993_ACEOF 10994if ac_fn_c_try_compile "$LINENO" 10995then : 10996 xorg_cv_cc_flag_unused_command_line_argument=yes 10997else case e in #( 10998 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10999esac 11000fi 11001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11002esac 11003fi 11004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11007 CFLAGS="$xorg_testset_save_CFLAGS" 11008fi 11009 11010found="no" 11011 11012 if test $found = "no" ; then 11013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11015 fi 11016 11017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11019 fi 11020 11021 CFLAGS="$CFLAGS -pedantic" 11022 11023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11024printf %s "checking if $CC supports -pedantic... " >&6; } 11025 cacheid=xorg_cv_cc_flag__pedantic 11026 if eval test \${$cacheid+y} 11027then : 11028 printf %s "(cached) " >&6 11029else case e in #( 11030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11031/* end confdefs.h. */ 11032int i; 11033int 11034main (void) 11035{ 11036 11037 ; 11038 return 0; 11039} 11040_ACEOF 11041if ac_fn_c_try_link "$LINENO" 11042then : 11043 eval $cacheid=yes 11044else case e in #( 11045 e) eval $cacheid=no ;; 11046esac 11047fi 11048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11049 conftest$ac_exeext conftest.$ac_ext ;; 11050esac 11051fi 11052 11053 11054 CFLAGS="$xorg_testset_save_CFLAGS" 11055 11056 eval supported=\$$cacheid 11057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11058printf "%s\n" "$supported" >&6; } 11059 if test "$supported" = "yes" ; then 11060 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11061 found="yes" 11062 fi 11063 fi 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079xorg_testset_save_CFLAGS="$CFLAGS" 11080 11081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11084printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11085if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11086then : 11087 printf %s "(cached) " >&6 11088else case e in #( 11089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11090/* end confdefs.h. */ 11091int i; 11092_ACEOF 11093if ac_fn_c_try_compile "$LINENO" 11094then : 11095 xorg_cv_cc_flag_unknown_warning_option=yes 11096else case e in #( 11097 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11098esac 11099fi 11100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11101esac 11102fi 11103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11104printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11106 CFLAGS="$xorg_testset_save_CFLAGS" 11107fi 11108 11109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11112 fi 11113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11115printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11116if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11117then : 11118 printf %s "(cached) " >&6 11119else case e in #( 11120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11121/* end confdefs.h. */ 11122int i; 11123_ACEOF 11124if ac_fn_c_try_compile "$LINENO" 11125then : 11126 xorg_cv_cc_flag_unused_command_line_argument=yes 11127else case e in #( 11128 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11129esac 11130fi 11131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11132esac 11133fi 11134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11137 CFLAGS="$xorg_testset_save_CFLAGS" 11138fi 11139 11140found="no" 11141 11142 if test $found = "no" ; then 11143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11145 fi 11146 11147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11149 fi 11150 11151 CFLAGS="$CFLAGS -Werror" 11152 11153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11154printf %s "checking if $CC supports -Werror... " >&6; } 11155 cacheid=xorg_cv_cc_flag__Werror 11156 if eval test \${$cacheid+y} 11157then : 11158 printf %s "(cached) " >&6 11159else case e in #( 11160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11161/* end confdefs.h. */ 11162int i; 11163int 11164main (void) 11165{ 11166 11167 ; 11168 return 0; 11169} 11170_ACEOF 11171if ac_fn_c_try_link "$LINENO" 11172then : 11173 eval $cacheid=yes 11174else case e in #( 11175 e) eval $cacheid=no ;; 11176esac 11177fi 11178rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11179 conftest$ac_exeext conftest.$ac_ext ;; 11180esac 11181fi 11182 11183 11184 CFLAGS="$xorg_testset_save_CFLAGS" 11185 11186 eval supported=\$$cacheid 11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11188printf "%s\n" "$supported" >&6; } 11189 if test "$supported" = "yes" ; then 11190 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11191 found="yes" 11192 fi 11193 fi 11194 11195 if test $found = "no" ; then 11196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11198 fi 11199 11200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11202 fi 11203 11204 CFLAGS="$CFLAGS -errwarn" 11205 11206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11207printf %s "checking if $CC supports -errwarn... " >&6; } 11208 cacheid=xorg_cv_cc_flag__errwarn 11209 if eval test \${$cacheid+y} 11210then : 11211 printf %s "(cached) " >&6 11212else case e in #( 11213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11214/* end confdefs.h. */ 11215int i; 11216int 11217main (void) 11218{ 11219 11220 ; 11221 return 0; 11222} 11223_ACEOF 11224if ac_fn_c_try_link "$LINENO" 11225then : 11226 eval $cacheid=yes 11227else case e in #( 11228 e) eval $cacheid=no ;; 11229esac 11230fi 11231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11232 conftest$ac_exeext conftest.$ac_ext ;; 11233esac 11234fi 11235 11236 11237 CFLAGS="$xorg_testset_save_CFLAGS" 11238 11239 eval supported=\$$cacheid 11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11241printf "%s\n" "$supported" >&6; } 11242 if test "$supported" = "yes" ; then 11243 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11244 found="yes" 11245 fi 11246 fi 11247 11248 11249 11250# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11251# activate it with -Werror, so we add it here explicitly. 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265xorg_testset_save_CFLAGS="$CFLAGS" 11266 11267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11271if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11272then : 11273 printf %s "(cached) " >&6 11274else case e in #( 11275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11276/* end confdefs.h. */ 11277int i; 11278_ACEOF 11279if ac_fn_c_try_compile "$LINENO" 11280then : 11281 xorg_cv_cc_flag_unknown_warning_option=yes 11282else case e in #( 11283 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11284esac 11285fi 11286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11287esac 11288fi 11289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11290printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11292 CFLAGS="$xorg_testset_save_CFLAGS" 11293fi 11294 11295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11298 fi 11299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11301printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11302if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11303then : 11304 printf %s "(cached) " >&6 11305else case e in #( 11306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11307/* end confdefs.h. */ 11308int i; 11309_ACEOF 11310if ac_fn_c_try_compile "$LINENO" 11311then : 11312 xorg_cv_cc_flag_unused_command_line_argument=yes 11313else case e in #( 11314 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11315esac 11316fi 11317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11318esac 11319fi 11320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11323 CFLAGS="$xorg_testset_save_CFLAGS" 11324fi 11325 11326found="no" 11327 11328 if test $found = "no" ; then 11329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11331 fi 11332 11333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11335 fi 11336 11337 CFLAGS="$CFLAGS -Werror=attributes" 11338 11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11340printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11341 cacheid=xorg_cv_cc_flag__Werror_attributes 11342 if eval test \${$cacheid+y} 11343then : 11344 printf %s "(cached) " >&6 11345else case e in #( 11346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11347/* end confdefs.h. */ 11348int i; 11349int 11350main (void) 11351{ 11352 11353 ; 11354 return 0; 11355} 11356_ACEOF 11357if ac_fn_c_try_link "$LINENO" 11358then : 11359 eval $cacheid=yes 11360else case e in #( 11361 e) eval $cacheid=no ;; 11362esac 11363fi 11364rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11365 conftest$ac_exeext conftest.$ac_ext ;; 11366esac 11367fi 11368 11369 11370 CFLAGS="$xorg_testset_save_CFLAGS" 11371 11372 eval supported=\$$cacheid 11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11374printf "%s\n" "$supported" >&6; } 11375 if test "$supported" = "yes" ; then 11376 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11377 found="yes" 11378 fi 11379 fi 11380 11381 11382 11383if test "x$STRICT_COMPILE" = "xyes"; then 11384 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11385 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11386fi 11387 11388 11389 11390 11391 11392 11393 11394 11395cat >>confdefs.h <<_ACEOF 11396#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11397_ACEOF 11398 11399 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11400 if test "x$PVM" = "x"; then 11401 PVM="0" 11402 fi 11403 11404printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11405 11406 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11407 if test "x$PVP" = "x"; then 11408 PVP="0" 11409 fi 11410 11411printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11412 11413 11414 11415CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11416mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11417|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11418touch \$(top_srcdir)/ChangeLog; \ 11419echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11420 11421 11422 11423 11424macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11425INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11426mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11427|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11428touch \$(top_srcdir)/INSTALL; \ 11429echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11430 11431 11432 11433 11434 11435 11436case $host_os in 11437 solaris*) 11438 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11439 # check for a man page file found in later versions that use 11440 # traditional section numbers instead 11441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11442printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11443if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11444then : 11445 printf %s "(cached) " >&6 11446else case e in #( 11447 e) test "$cross_compiling" = yes && 11448 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11449if test -r "/usr/share/man/man7/attributes.7"; then 11450 ac_cv_file__usr_share_man_man7_attributes_7=yes 11451else 11452 ac_cv_file__usr_share_man_man7_attributes_7=no 11453fi ;; 11454esac 11455fi 11456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11457printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11458if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11459then : 11460 SYSV_MAN_SECTIONS=false 11461else case e in #( 11462 e) SYSV_MAN_SECTIONS=true ;; 11463esac 11464fi 11465 11466 ;; 11467 *) SYSV_MAN_SECTIONS=false ;; 11468esac 11469 11470if test x$APP_MAN_SUFFIX = x ; then 11471 APP_MAN_SUFFIX=1 11472fi 11473if test x$APP_MAN_DIR = x ; then 11474 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11475fi 11476 11477if test x$LIB_MAN_SUFFIX = x ; then 11478 LIB_MAN_SUFFIX=3 11479fi 11480if test x$LIB_MAN_DIR = x ; then 11481 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11482fi 11483 11484if test x$FILE_MAN_SUFFIX = x ; then 11485 case $SYSV_MAN_SECTIONS in 11486 true) FILE_MAN_SUFFIX=4 ;; 11487 *) FILE_MAN_SUFFIX=5 ;; 11488 esac 11489fi 11490if test x$FILE_MAN_DIR = x ; then 11491 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11492fi 11493 11494if test x$MISC_MAN_SUFFIX = x ; then 11495 case $SYSV_MAN_SECTIONS in 11496 true) MISC_MAN_SUFFIX=5 ;; 11497 *) MISC_MAN_SUFFIX=7 ;; 11498 esac 11499fi 11500if test x$MISC_MAN_DIR = x ; then 11501 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11502fi 11503 11504if test x$DRIVER_MAN_SUFFIX = x ; then 11505 case $SYSV_MAN_SECTIONS in 11506 true) DRIVER_MAN_SUFFIX=7 ;; 11507 *) DRIVER_MAN_SUFFIX=4 ;; 11508 esac 11509fi 11510if test x$DRIVER_MAN_DIR = x ; then 11511 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11512fi 11513 11514if test x$ADMIN_MAN_SUFFIX = x ; then 11515 case $SYSV_MAN_SECTIONS in 11516 true) ADMIN_MAN_SUFFIX=1m ;; 11517 *) ADMIN_MAN_SUFFIX=8 ;; 11518 esac 11519fi 11520if test x$ADMIN_MAN_DIR = x ; then 11521 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11522fi 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538XORG_MAN_PAGE="X Version 11" 11539 11540MAN_SUBSTS="\ 11541 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11542 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11543 -e 's|__xservername__|Xorg|g' \ 11544 -e 's|__xconfigfile__|xorg.conf|g' \ 11545 -e 's|__projectroot__|\$(prefix)|g' \ 11546 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11547 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11548 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11549 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11550 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11551 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11552 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11553 11554 11555 11556# Check whether --enable-silent-rules was given. 11557if test ${enable_silent_rules+y} 11558then : 11559 enableval=$enable_silent_rules; 11560fi 11561 11562case $enable_silent_rules in # ((( 11563 yes) AM_DEFAULT_VERBOSITY=0;; 11564 no) AM_DEFAULT_VERBOSITY=1;; 11565 *) AM_DEFAULT_VERBOSITY=0;; 11566esac 11567am_make=${MAKE-make} 11568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11569printf %s "checking whether $am_make supports nested variables... " >&6; } 11570if test ${am_cv_make_support_nested_variables+y} 11571then : 11572 printf %s "(cached) " >&6 11573else case e in #( 11574 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11575BAR0=false 11576BAR1=true 11577V=1 11578am__doit: 11579 @$(TRUE) 11580.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11581 am_cv_make_support_nested_variables=yes 11582else 11583 am_cv_make_support_nested_variables=no 11584fi ;; 11585esac 11586fi 11587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11588printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11589if test $am_cv_make_support_nested_variables = yes; then 11590 AM_V='$(V)' 11591 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11592else 11593 AM_V=$AM_DEFAULT_VERBOSITY 11594 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11595fi 11596AM_BACKSLASH='\' 11597 11598 11599 11600 11601# Checks for pkg-config packages 11602 11603pkg_failed=no 11604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEV" >&5 11605printf %s "checking for XEV... " >&6; } 11606 11607if test -n "$XEV_CFLAGS"; then 11608 pkg_cv_XEV_CFLAGS="$XEV_CFLAGS" 11609 elif test -n "$PKG_CONFIG"; then 11610 if test -n "$PKG_CONFIG" && \ 11611 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5 11612 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5 11613 ac_status=$? 11614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11615 test $ac_status = 0; }; then 11616 pkg_cv_XEV_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null` 11617 test "x$?" != "x0" && pkg_failed=yes 11618else 11619 pkg_failed=yes 11620fi 11621 else 11622 pkg_failed=untried 11623fi 11624if test -n "$XEV_LIBS"; then 11625 pkg_cv_XEV_LIBS="$XEV_LIBS" 11626 elif test -n "$PKG_CONFIG"; then 11627 if test -n "$PKG_CONFIG" && \ 11628 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5 11629 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5 11630 ac_status=$? 11631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11632 test $ac_status = 0; }; then 11633 pkg_cv_XEV_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null` 11634 test "x$?" != "x0" && pkg_failed=yes 11635else 11636 pkg_failed=yes 11637fi 11638 else 11639 pkg_failed=untried 11640fi 11641 11642 11643 11644if test $pkg_failed = yes; then 11645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11646printf "%s\n" "no" >&6; } 11647 11648if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11649 _pkg_short_errors_supported=yes 11650else 11651 _pkg_short_errors_supported=no 11652fi 11653 if test $_pkg_short_errors_supported = yes; then 11654 XEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1` 11655 else 11656 XEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1` 11657 fi 11658 # Put the nasty error message in config.log where it belongs 11659 echo "$XEV_PKG_ERRORS" >&5 11660 11661 as_fn_error $? "Package requirements (xrandr >= 1.2 x11 xproto >= 7.0.17) were not met: 11662 11663$XEV_PKG_ERRORS 11664 11665Consider adjusting the PKG_CONFIG_PATH environment variable if you 11666installed software in a non-standard prefix. 11667 11668Alternatively, you may set the environment variables XEV_CFLAGS 11669and XEV_LIBS to avoid the need to call pkg-config. 11670See the pkg-config man page for more details." "$LINENO" 5 11671elif test $pkg_failed = untried; then 11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11673printf "%s\n" "no" >&6; } 11674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11675printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11676as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11677is in your PATH or set the PKG_CONFIG environment variable to the full 11678path to pkg-config. 11679 11680Alternatively, you may set the environment variables XEV_CFLAGS 11681and XEV_LIBS to avoid the need to call pkg-config. 11682See the pkg-config man page for more details. 11683 11684To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11685See 'config.log' for more details" "$LINENO" 5; } 11686else 11687 XEV_CFLAGS=$pkg_cv_XEV_CFLAGS 11688 XEV_LIBS=$pkg_cv_XEV_LIBS 11689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11690printf "%s\n" "yes" >&6; } 11691 11692fi 11693 11694ac_config_files="$ac_config_files Makefile man/Makefile" 11695 11696cat >confcache <<\_ACEOF 11697# This file is a shell script that caches the results of configure 11698# tests run on this system so they can be shared between configure 11699# scripts and configure runs, see configure's option --config-cache. 11700# It is not useful on other systems. If it contains results you don't 11701# want to keep, you may remove or edit it. 11702# 11703# config.status only pays attention to the cache file if you give it 11704# the --recheck option to rerun configure. 11705# 11706# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11707# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11708# following values. 11709 11710_ACEOF 11711 11712# The following way of writing the cache mishandles newlines in values, 11713# but we know of no workaround that is simple, portable, and efficient. 11714# So, we kill variables containing newlines. 11715# Ultrix sh set writes to stderr and can't be redirected directly, 11716# and sets the high bit in the cache file unless we assign to the vars. 11717( 11718 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11719 eval ac_val=\$$ac_var 11720 case $ac_val in #( 11721 *${as_nl}*) 11722 case $ac_var in #( 11723 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11724printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11725 esac 11726 case $ac_var in #( 11727 _ | IFS | as_nl) ;; #( 11728 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11729 *) { eval $ac_var=; unset $ac_var;} ;; 11730 esac ;; 11731 esac 11732 done 11733 11734 (set) 2>&1 | 11735 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11736 *${as_nl}ac_space=\ *) 11737 # 'set' does not quote correctly, so add quotes: double-quote 11738 # substitution turns \\\\ into \\, and sed turns \\ into \. 11739 sed -n \ 11740 "s/'/'\\\\''/g; 11741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11742 ;; #( 11743 *) 11744 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11746 ;; 11747 esac | 11748 sort 11749) | 11750 sed ' 11751 /^ac_cv_env_/b end 11752 t clear 11753 :clear 11754 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11755 t end 11756 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11757 :end' >>confcache 11758if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11759 if test -w "$cache_file"; then 11760 if test "x$cache_file" != "x/dev/null"; then 11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11762printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11763 if test ! -f "$cache_file" || test -h "$cache_file"; then 11764 cat confcache >"$cache_file" 11765 else 11766 case $cache_file in #( 11767 */* | ?:*) 11768 mv -f confcache "$cache_file"$$ && 11769 mv -f "$cache_file"$$ "$cache_file" ;; #( 11770 *) 11771 mv -f confcache "$cache_file" ;; 11772 esac 11773 fi 11774 fi 11775 else 11776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11777printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11778 fi 11779fi 11780rm -f confcache 11781 11782test "x$prefix" = xNONE && prefix=$ac_default_prefix 11783# Let make expand exec_prefix. 11784test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11785 11786DEFS=-DHAVE_CONFIG_H 11787 11788ac_libobjs= 11789ac_ltlibobjs= 11790U= 11791for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11792 # 1. Remove the extension, and $U if already installed. 11793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11794 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11796 # will be set to the directory where LIBOBJS objects are built. 11797 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11798 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11799done 11800LIBOBJS=$ac_libobjs 11801 11802LTLIBOBJS=$ac_ltlibobjs 11803 11804 11805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11806printf %s "checking that generated files are newer than configure... " >&6; } 11807 if test -n "$am_sleep_pid"; then 11808 # Hide warnings about reused PIDs. 11809 wait $am_sleep_pid 2>/dev/null 11810 fi 11811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11812printf "%s\n" "done" >&6; } 11813if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11814 as_fn_error $? "conditional \"AMDEP\" was never defined. 11815Usually this means the macro was only invoked conditionally." "$LINENO" 5 11816fi 11817if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11818 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11819Usually this means the macro was only invoked conditionally." "$LINENO" 5 11820fi 11821 if test -n "$EXEEXT"; then 11822 am__EXEEXT_TRUE= 11823 am__EXEEXT_FALSE='#' 11824else 11825 am__EXEEXT_TRUE='#' 11826 am__EXEEXT_FALSE= 11827fi 11828 11829 11830: "${CONFIG_STATUS=./config.status}" 11831ac_write_fail=0 11832ac_clean_files_save=$ac_clean_files 11833ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11835printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11836as_write_fail=0 11837cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11838#! $SHELL 11839# Generated by $as_me. 11840# Run this file to recreate the current configuration. 11841# Compiler output produced by configure, useful for debugging 11842# configure, is in config.log if it exists. 11843 11844debug=false 11845ac_cs_recheck=false 11846ac_cs_silent=false 11847 11848SHELL=\${CONFIG_SHELL-$SHELL} 11849export SHELL 11850_ASEOF 11851cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11852## -------------------- ## 11853## M4sh Initialization. ## 11854## -------------------- ## 11855 11856# Be more Bourne compatible 11857DUALCASE=1; export DUALCASE # for MKS sh 11858if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11859then : 11860 emulate sh 11861 NULLCMD=: 11862 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11863 # is contrary to our usage. Disable this feature. 11864 alias -g '${1+"$@"}'='"$@"' 11865 setopt NO_GLOB_SUBST 11866else case e in #( 11867 e) case `(set -o) 2>/dev/null` in #( 11868 *posix*) : 11869 set -o posix ;; #( 11870 *) : 11871 ;; 11872esac ;; 11873esac 11874fi 11875 11876 11877 11878# Reset variables that may have inherited troublesome values from 11879# the environment. 11880 11881# IFS needs to be set, to space, tab, and newline, in precisely that order. 11882# (If _AS_PATH_WALK were called with IFS unset, it would have the 11883# side effect of setting IFS to empty, thus disabling word splitting.) 11884# Quoting is to prevent editors from complaining about space-tab. 11885as_nl=' 11886' 11887export as_nl 11888IFS=" "" $as_nl" 11889 11890PS1='$ ' 11891PS2='> ' 11892PS4='+ ' 11893 11894# Ensure predictable behavior from utilities with locale-dependent output. 11895LC_ALL=C 11896export LC_ALL 11897LANGUAGE=C 11898export LANGUAGE 11899 11900# We cannot yet rely on "unset" to work, but we need these variables 11901# to be unset--not just set to an empty or harmless value--now, to 11902# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11903# also avoids known problems related to "unset" and subshell syntax 11904# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11905for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11906do eval test \${$as_var+y} \ 11907 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11908done 11909 11910# Ensure that fds 0, 1, and 2 are open. 11911if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11912if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11913if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11914 11915# The user is always right. 11916if ${PATH_SEPARATOR+false} :; then 11917 PATH_SEPARATOR=: 11918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11920 PATH_SEPARATOR=';' 11921 } 11922fi 11923 11924 11925# Find who we are. Look in the path if we contain no directory separator. 11926as_myself= 11927case $0 in #(( 11928 *[\\/]* ) as_myself=$0 ;; 11929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11930for as_dir in $PATH 11931do 11932 IFS=$as_save_IFS 11933 case $as_dir in #((( 11934 '') as_dir=./ ;; 11935 */) ;; 11936 *) as_dir=$as_dir/ ;; 11937 esac 11938 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11939 done 11940IFS=$as_save_IFS 11941 11942 ;; 11943esac 11944# We did not find ourselves, most probably we were run as 'sh COMMAND' 11945# in which case we are not to be found in the path. 11946if test "x$as_myself" = x; then 11947 as_myself=$0 11948fi 11949if test ! -f "$as_myself"; then 11950 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11951 exit 1 11952fi 11953 11954 11955 11956# as_fn_error STATUS ERROR [LINENO LOG_FD] 11957# ---------------------------------------- 11958# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11959# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11960# script with STATUS, using 1 if that was 0. 11961as_fn_error () 11962{ 11963 as_status=$1; test $as_status -eq 0 && as_status=1 11964 if test "$4"; then 11965 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11967 fi 11968 printf "%s\n" "$as_me: error: $2" >&2 11969 as_fn_exit $as_status 11970} # as_fn_error 11971 11972 11973# as_fn_set_status STATUS 11974# ----------------------- 11975# Set $? to STATUS, without forking. 11976as_fn_set_status () 11977{ 11978 return $1 11979} # as_fn_set_status 11980 11981# as_fn_exit STATUS 11982# ----------------- 11983# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11984as_fn_exit () 11985{ 11986 set +e 11987 as_fn_set_status $1 11988 exit $1 11989} # as_fn_exit 11990 11991# as_fn_unset VAR 11992# --------------- 11993# Portably unset VAR. 11994as_fn_unset () 11995{ 11996 { eval $1=; unset $1;} 11997} 11998as_unset=as_fn_unset 11999 12000# as_fn_append VAR VALUE 12001# ---------------------- 12002# Append the text in VALUE to the end of the definition contained in VAR. Take 12003# advantage of any shell optimizations that allow amortized linear growth over 12004# repeated appends, instead of the typical quadratic growth present in naive 12005# implementations. 12006if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12007then : 12008 eval 'as_fn_append () 12009 { 12010 eval $1+=\$2 12011 }' 12012else case e in #( 12013 e) as_fn_append () 12014 { 12015 eval $1=\$$1\$2 12016 } ;; 12017esac 12018fi # as_fn_append 12019 12020# as_fn_arith ARG... 12021# ------------------ 12022# Perform arithmetic evaluation on the ARGs, and store the result in the 12023# global $as_val. Take advantage of shells that can avoid forks. The arguments 12024# must be portable across $(()) and expr. 12025if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12026then : 12027 eval 'as_fn_arith () 12028 { 12029 as_val=$(( $* )) 12030 }' 12031else case e in #( 12032 e) as_fn_arith () 12033 { 12034 as_val=`expr "$@" || test $? -eq 1` 12035 } ;; 12036esac 12037fi # as_fn_arith 12038 12039 12040if expr a : '\(a\)' >/dev/null 2>&1 && 12041 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12042 as_expr=expr 12043else 12044 as_expr=false 12045fi 12046 12047if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12048 as_basename=basename 12049else 12050 as_basename=false 12051fi 12052 12053if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12054 as_dirname=dirname 12055else 12056 as_dirname=false 12057fi 12058 12059as_me=`$as_basename -- "$0" || 12060$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12061 X"$0" : 'X\(//\)$' \| \ 12062 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12063printf "%s\n" X/"$0" | 12064 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12065 s//\1/ 12066 q 12067 } 12068 /^X\/\(\/\/\)$/{ 12069 s//\1/ 12070 q 12071 } 12072 /^X\/\(\/\).*/{ 12073 s//\1/ 12074 q 12075 } 12076 s/.*/./; q'` 12077 12078# Avoid depending upon Character Ranges. 12079as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12080as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12081as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12082as_cr_digits='0123456789' 12083as_cr_alnum=$as_cr_Letters$as_cr_digits 12084 12085 12086# Determine whether it's possible to make 'echo' print without a newline. 12087# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12088# for compatibility with existing Makefiles. 12089ECHO_C= ECHO_N= ECHO_T= 12090case `echo -n x` in #((((( 12091-n*) 12092 case `echo 'xy\c'` in 12093 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12094 xy) ECHO_C='\c';; 12095 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12096 ECHO_T=' ';; 12097 esac;; 12098*) 12099 ECHO_N='-n';; 12100esac 12101 12102# For backward compatibility with old third-party macros, we provide 12103# the shell variables $as_echo and $as_echo_n. New code should use 12104# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12105as_echo='printf %s\n' 12106as_echo_n='printf %s' 12107 12108rm -f conf$$ conf$$.exe conf$$.file 12109if test -d conf$$.dir; then 12110 rm -f conf$$.dir/conf$$.file 12111else 12112 rm -f conf$$.dir 12113 mkdir conf$$.dir 2>/dev/null 12114fi 12115if (echo >conf$$.file) 2>/dev/null; then 12116 if ln -s conf$$.file conf$$ 2>/dev/null; then 12117 as_ln_s='ln -s' 12118 # ... but there are two gotchas: 12119 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12120 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12121 # In both cases, we have to default to 'cp -pR'. 12122 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12123 as_ln_s='cp -pR' 12124 elif ln conf$$.file conf$$ 2>/dev/null; then 12125 as_ln_s=ln 12126 else 12127 as_ln_s='cp -pR' 12128 fi 12129else 12130 as_ln_s='cp -pR' 12131fi 12132rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12133rmdir conf$$.dir 2>/dev/null 12134 12135 12136# as_fn_mkdir_p 12137# ------------- 12138# Create "$as_dir" as a directory, including parents if necessary. 12139as_fn_mkdir_p () 12140{ 12141 12142 case $as_dir in #( 12143 -*) as_dir=./$as_dir;; 12144 esac 12145 test -d "$as_dir" || eval $as_mkdir_p || { 12146 as_dirs= 12147 while :; do 12148 case $as_dir in #( 12149 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12150 *) as_qdir=$as_dir;; 12151 esac 12152 as_dirs="'$as_qdir' $as_dirs" 12153 as_dir=`$as_dirname -- "$as_dir" || 12154$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12155 X"$as_dir" : 'X\(//\)[^/]' \| \ 12156 X"$as_dir" : 'X\(//\)$' \| \ 12157 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12158printf "%s\n" X"$as_dir" | 12159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12160 s//\1/ 12161 q 12162 } 12163 /^X\(\/\/\)[^/].*/{ 12164 s//\1/ 12165 q 12166 } 12167 /^X\(\/\/\)$/{ 12168 s//\1/ 12169 q 12170 } 12171 /^X\(\/\).*/{ 12172 s//\1/ 12173 q 12174 } 12175 s/.*/./; q'` 12176 test -d "$as_dir" && break 12177 done 12178 test -z "$as_dirs" || eval "mkdir $as_dirs" 12179 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12180 12181 12182} # as_fn_mkdir_p 12183if mkdir -p . 2>/dev/null; then 12184 as_mkdir_p='mkdir -p "$as_dir"' 12185else 12186 test -d ./-p && rmdir ./-p 12187 as_mkdir_p=false 12188fi 12189 12190 12191# as_fn_executable_p FILE 12192# ----------------------- 12193# Test if FILE is an executable regular file. 12194as_fn_executable_p () 12195{ 12196 test -f "$1" && test -x "$1" 12197} # as_fn_executable_p 12198as_test_x='test -x' 12199as_executable_p=as_fn_executable_p 12200 12201# Sed expression to map a string onto a valid CPP name. 12202as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12203as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12204 12205# Sed expression to map a string onto a valid variable name. 12206as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12207as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12208 12209 12210exec 6>&1 12211## ----------------------------------- ## 12212## Main body of $CONFIG_STATUS script. ## 12213## ----------------------------------- ## 12214_ASEOF 12215test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12216 12217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12218# Save the log message, to keep $0 and so on meaningful, and to 12219# report actual input values of CONFIG_FILES etc. instead of their 12220# values after options handling. 12221ac_log=" 12222This file was extended by xev $as_me 1.2.6, which was 12223generated by GNU Autoconf 2.72. Invocation command line was 12224 12225 CONFIG_FILES = $CONFIG_FILES 12226 CONFIG_HEADERS = $CONFIG_HEADERS 12227 CONFIG_LINKS = $CONFIG_LINKS 12228 CONFIG_COMMANDS = $CONFIG_COMMANDS 12229 $ $0 $@ 12230 12231on `(hostname || uname -n) 2>/dev/null | sed 1q` 12232" 12233 12234_ACEOF 12235 12236case $ac_config_files in *" 12237"*) set x $ac_config_files; shift; ac_config_files=$*;; 12238esac 12239 12240case $ac_config_headers in *" 12241"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12242esac 12243 12244 12245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12246# Files that config.status was made for. 12247config_files="$ac_config_files" 12248config_headers="$ac_config_headers" 12249config_commands="$ac_config_commands" 12250 12251_ACEOF 12252 12253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12254ac_cs_usage="\ 12255'$as_me' instantiates files and other configuration actions 12256from templates according to the current configuration. Unless the files 12257and actions are specified as TAGs, all are instantiated by default. 12258 12259Usage: $0 [OPTION]... [TAG]... 12260 12261 -h, --help print this help, then exit 12262 -V, --version print version number and configuration settings, then exit 12263 --config print configuration, then exit 12264 -q, --quiet, --silent 12265 do not print progress messages 12266 -d, --debug don't remove temporary files 12267 --recheck update $as_me by reconfiguring in the same conditions 12268 --file=FILE[:TEMPLATE] 12269 instantiate the configuration file FILE 12270 --header=FILE[:TEMPLATE] 12271 instantiate the configuration header FILE 12272 12273Configuration files: 12274$config_files 12275 12276Configuration headers: 12277$config_headers 12278 12279Configuration commands: 12280$config_commands 12281 12282Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/-/issues>." 12283 12284_ACEOF 12285ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12286ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12288ac_cs_config='$ac_cs_config_escaped' 12289ac_cs_version="\\ 12290xev config.status 1.2.6 12291configured by $0, generated by GNU Autoconf 2.72, 12292 with options \\"\$ac_cs_config\\" 12293 12294Copyright (C) 2023 Free Software Foundation, Inc. 12295This config.status script is free software; the Free Software Foundation 12296gives unlimited permission to copy, distribute and modify it." 12297 12298ac_pwd='$ac_pwd' 12299srcdir='$srcdir' 12300INSTALL='$INSTALL' 12301MKDIR_P='$MKDIR_P' 12302AWK='$AWK' 12303test -n "\$AWK" || AWK=awk 12304_ACEOF 12305 12306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12307# The default lists apply if the user does not specify any file. 12308ac_need_defaults=: 12309while test $# != 0 12310do 12311 case $1 in 12312 --*=?*) 12313 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12314 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12315 ac_shift=: 12316 ;; 12317 --*=) 12318 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12319 ac_optarg= 12320 ac_shift=: 12321 ;; 12322 *) 12323 ac_option=$1 12324 ac_optarg=$2 12325 ac_shift=shift 12326 ;; 12327 esac 12328 12329 case $ac_option in 12330 # Handling of the options. 12331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12332 ac_cs_recheck=: ;; 12333 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12334 printf "%s\n" "$ac_cs_version"; exit ;; 12335 --config | --confi | --conf | --con | --co | --c ) 12336 printf "%s\n" "$ac_cs_config"; exit ;; 12337 --debug | --debu | --deb | --de | --d | -d ) 12338 debug=: ;; 12339 --file | --fil | --fi | --f ) 12340 $ac_shift 12341 case $ac_optarg in 12342 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12343 '') as_fn_error $? "missing file argument" ;; 12344 esac 12345 as_fn_append CONFIG_FILES " '$ac_optarg'" 12346 ac_need_defaults=false;; 12347 --header | --heade | --head | --hea ) 12348 $ac_shift 12349 case $ac_optarg in 12350 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12351 esac 12352 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12353 ac_need_defaults=false;; 12354 --he | --h) 12355 # Conflict between --help and --header 12356 as_fn_error $? "ambiguous option: '$1' 12357Try '$0 --help' for more information.";; 12358 --help | --hel | -h ) 12359 printf "%s\n" "$ac_cs_usage"; exit ;; 12360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12361 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12362 ac_cs_silent=: ;; 12363 12364 # This is an error. 12365 -*) as_fn_error $? "unrecognized option: '$1' 12366Try '$0 --help' for more information." ;; 12367 12368 *) as_fn_append ac_config_targets " $1" 12369 ac_need_defaults=false ;; 12370 12371 esac 12372 shift 12373done 12374 12375ac_configure_extra_args= 12376 12377if $ac_cs_silent; then 12378 exec 6>/dev/null 12379 ac_configure_extra_args="$ac_configure_extra_args --silent" 12380fi 12381 12382_ACEOF 12383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12384if \$ac_cs_recheck; then 12385 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12386 shift 12387 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12388 CONFIG_SHELL='$SHELL' 12389 export CONFIG_SHELL 12390 exec "\$@" 12391fi 12392 12393_ACEOF 12394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12395exec 5>>config.log 12396{ 12397 echo 12398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12399## Running $as_me. ## 12400_ASBOX 12401 printf "%s\n" "$ac_log" 12402} >&5 12403 12404_ACEOF 12405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12406# 12407# INIT-COMMANDS 12408# 12409AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12410 12411_ACEOF 12412 12413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12414 12415# Handling of arguments. 12416for ac_config_target in $ac_config_targets 12417do 12418 case $ac_config_target in 12419 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12420 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12421 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12422 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12423 12424 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12425 esac 12426done 12427 12428 12429# If the user did not use the arguments to specify the items to instantiate, 12430# then the envvar interface is used. Set only those that are not. 12431# We use the long form for the default assignment because of an extremely 12432# bizarre bug on SunOS 4.1.3. 12433if $ac_need_defaults; then 12434 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12435 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12436 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12437fi 12438 12439# Have a temporary directory for convenience. Make it in the build tree 12440# simply because there is no reason against having it here, and in addition, 12441# creating and moving files from /tmp can sometimes cause problems. 12442# Hook for its removal unless debugging. 12443# Note that there is a small window in which the directory will not be cleaned: 12444# after its creation but before its name has been assigned to '$tmp'. 12445$debug || 12446{ 12447 tmp= ac_tmp= 12448 trap 'exit_status=$? 12449 : "${ac_tmp:=$tmp}" 12450 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12451' 0 12452 trap 'as_fn_exit 1' 1 2 13 15 12453} 12454# Create a (secure) tmp directory for tmp files. 12455 12456{ 12457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12458 test -d "$tmp" 12459} || 12460{ 12461 tmp=./conf$$-$RANDOM 12462 (umask 077 && mkdir "$tmp") 12463} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12464ac_tmp=$tmp 12465 12466# Set up the scripts for CONFIG_FILES section. 12467# No need to generate them if there are no CONFIG_FILES. 12468# This happens for instance with './config.status config.h'. 12469if test -n "$CONFIG_FILES"; then 12470 12471 12472ac_cr=`echo X | tr X '\015'` 12473# On cygwin, bash can eat \r inside `` if the user requested igncr. 12474# But we know of no other shell where ac_cr would be empty at this 12475# point, so we can use a bashism as a fallback. 12476if test "x$ac_cr" = x; then 12477 eval ac_cr=\$\'\\r\' 12478fi 12479ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12480if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12481 ac_cs_awk_cr='\\r' 12482else 12483 ac_cs_awk_cr=$ac_cr 12484fi 12485 12486echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12487_ACEOF 12488 12489 12490{ 12491 echo "cat >conf$$subs.awk <<_ACEOF" && 12492 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12493 echo "_ACEOF" 12494} >conf$$subs.sh || 12495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12496ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12497ac_delim='%!_!# ' 12498for ac_last_try in false false false false false :; do 12499 . ./conf$$subs.sh || 12500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12501 12502 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12503 if test $ac_delim_n = $ac_delim_num; then 12504 break 12505 elif $ac_last_try; then 12506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12507 else 12508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12509 fi 12510done 12511rm -f conf$$subs.sh 12512 12513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12514cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12515_ACEOF 12516sed -n ' 12517h 12518s/^/S["/; s/!.*/"]=/ 12519p 12520g 12521s/^[^!]*!// 12522:repl 12523t repl 12524s/'"$ac_delim"'$// 12525t delim 12526:nl 12527h 12528s/\(.\{148\}\)..*/\1/ 12529t more1 12530s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12531p 12532n 12533b repl 12534:more1 12535s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12536p 12537g 12538s/.\{148\}// 12539t nl 12540:delim 12541h 12542s/\(.\{148\}\)..*/\1/ 12543t more2 12544s/["\\]/\\&/g; s/^/"/; s/$/"/ 12545p 12546b 12547:more2 12548s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12549p 12550g 12551s/.\{148\}// 12552t delim 12553' <conf$$subs.awk | sed ' 12554/^[^""]/{ 12555 N 12556 s/\n// 12557} 12558' >>$CONFIG_STATUS || ac_write_fail=1 12559rm -f conf$$subs.awk 12560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12561_ACAWK 12562cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12563 for (key in S) S_is_set[key] = 1 12564 FS = "" 12565 12566} 12567{ 12568 line = $ 0 12569 nfields = split(line, field, "@") 12570 substed = 0 12571 len = length(field[1]) 12572 for (i = 2; i < nfields; i++) { 12573 key = field[i] 12574 keylen = length(key) 12575 if (S_is_set[key]) { 12576 value = S[key] 12577 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12578 len += length(value) + length(field[++i]) 12579 substed = 1 12580 } else 12581 len += 1 + keylen 12582 } 12583 12584 print line 12585} 12586 12587_ACAWK 12588_ACEOF 12589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12590if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12591 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12592else 12593 cat 12594fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12595 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12596_ACEOF 12597 12598# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12599# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12600# trailing colons and then remove the whole line if VPATH becomes empty 12601# (actually we leave an empty line to preserve line numbers). 12602if test "x$srcdir" = x.; then 12603 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12604h 12605s/// 12606s/^/:/ 12607s/[ ]*$/:/ 12608s/:\$(srcdir):/:/g 12609s/:\${srcdir}:/:/g 12610s/:@srcdir@:/:/g 12611s/^:*// 12612s/:*$// 12613x 12614s/\(=[ ]*\).*/\1/ 12615G 12616s/\n// 12617s/^[^=]*=[ ]*$// 12618}' 12619fi 12620 12621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12622fi # test -n "$CONFIG_FILES" 12623 12624# Set up the scripts for CONFIG_HEADERS section. 12625# No need to generate them if there are no CONFIG_HEADERS. 12626# This happens for instance with './config.status Makefile'. 12627if test -n "$CONFIG_HEADERS"; then 12628cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12629BEGIN { 12630_ACEOF 12631 12632# Transform confdefs.h into an awk script 'defines.awk', embedded as 12633# here-document in config.status, that substitutes the proper values into 12634# config.h.in to produce config.h. 12635 12636# Create a delimiter string that does not exist in confdefs.h, to ease 12637# handling of long lines. 12638ac_delim='%!_!# ' 12639for ac_last_try in false false :; do 12640 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12641 if test -z "$ac_tt"; then 12642 break 12643 elif $ac_last_try; then 12644 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12645 else 12646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12647 fi 12648done 12649 12650# For the awk script, D is an array of macro values keyed by name, 12651# likewise P contains macro parameters if any. Preserve backslash 12652# newline sequences. 12653 12654ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12655sed -n ' 12656s/.\{148\}/&'"$ac_delim"'/g 12657t rset 12658:rset 12659s/^[ ]*#[ ]*define[ ][ ]*/ / 12660t def 12661d 12662:def 12663s/\\$// 12664t bsnl 12665s/["\\]/\\&/g 12666s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12667D["\1"]=" \3"/p 12668s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12669d 12670:bsnl 12671s/["\\]/\\&/g 12672s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12673D["\1"]=" \3\\\\\\n"\\/p 12674t cont 12675s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12676t cont 12677d 12678:cont 12679n 12680s/.\{148\}/&'"$ac_delim"'/g 12681t clear 12682:clear 12683s/\\$// 12684t bsnlc 12685s/["\\]/\\&/g; s/^/"/; s/$/"/p 12686d 12687:bsnlc 12688s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12689b cont 12690' <confdefs.h | sed ' 12691s/'"$ac_delim"'/"\\\ 12692"/g' >>$CONFIG_STATUS || ac_write_fail=1 12693 12694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12695 for (key in D) D_is_set[key] = 1 12696 FS = "" 12697} 12698/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12699 line = \$ 0 12700 split(line, arg, " ") 12701 if (arg[1] == "#") { 12702 defundef = arg[2] 12703 mac1 = arg[3] 12704 } else { 12705 defundef = substr(arg[1], 2) 12706 mac1 = arg[2] 12707 } 12708 split(mac1, mac2, "(") #) 12709 macro = mac2[1] 12710 prefix = substr(line, 1, index(line, defundef) - 1) 12711 if (D_is_set[macro]) { 12712 # Preserve the white space surrounding the "#". 12713 print prefix "define", macro P[macro] D[macro] 12714 next 12715 } else { 12716 # Replace #undef with comments. This is necessary, for example, 12717 # in the case of _POSIX_SOURCE, which is predefined and required 12718 # on some systems where configure will not decide to define it. 12719 if (defundef == "undef") { 12720 print "/*", prefix defundef, macro, "*/" 12721 next 12722 } 12723 } 12724} 12725{ print } 12726_ACAWK 12727_ACEOF 12728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12729 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12730fi # test -n "$CONFIG_HEADERS" 12731 12732 12733eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12734shift 12735for ac_tag 12736do 12737 case $ac_tag in 12738 :[FHLC]) ac_mode=$ac_tag; continue;; 12739 esac 12740 case $ac_mode$ac_tag in 12741 :[FHL]*:*);; 12742 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12743 :[FH]-) ac_tag=-:-;; 12744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12745 esac 12746 ac_save_IFS=$IFS 12747 IFS=: 12748 set x $ac_tag 12749 IFS=$ac_save_IFS 12750 shift 12751 ac_file=$1 12752 shift 12753 12754 case $ac_mode in 12755 :L) ac_source=$1;; 12756 :[FH]) 12757 ac_file_inputs= 12758 for ac_f 12759 do 12760 case $ac_f in 12761 -) ac_f="$ac_tmp/stdin";; 12762 *) # Look for the file first in the build tree, then in the source tree 12763 # (if the path is not absolute). The absolute path cannot be DOS-style, 12764 # because $ac_f cannot contain ':'. 12765 test -f "$ac_f" || 12766 case $ac_f in 12767 [\\/$]*) false;; 12768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12769 esac || 12770 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12771 esac 12772 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12773 as_fn_append ac_file_inputs " '$ac_f'" 12774 done 12775 12776 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12777 # use $as_me), people would be surprised to read: 12778 # /* config.h. Generated by config.status. */ 12779 configure_input='Generated from '` 12780 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12781 `' by configure.' 12782 if test x"$ac_file" != x-; then 12783 configure_input="$ac_file. $configure_input" 12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12785printf "%s\n" "$as_me: creating $ac_file" >&6;} 12786 fi 12787 # Neutralize special characters interpreted by sed in replacement strings. 12788 case $configure_input in #( 12789 *\&* | *\|* | *\\* ) 12790 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12791 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12792 *) ac_sed_conf_input=$configure_input;; 12793 esac 12794 12795 case $ac_tag in 12796 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12798 esac 12799 ;; 12800 esac 12801 12802 ac_dir=`$as_dirname -- "$ac_file" || 12803$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12804 X"$ac_file" : 'X\(//\)[^/]' \| \ 12805 X"$ac_file" : 'X\(//\)$' \| \ 12806 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12807printf "%s\n" X"$ac_file" | 12808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12809 s//\1/ 12810 q 12811 } 12812 /^X\(\/\/\)[^/].*/{ 12813 s//\1/ 12814 q 12815 } 12816 /^X\(\/\/\)$/{ 12817 s//\1/ 12818 q 12819 } 12820 /^X\(\/\).*/{ 12821 s//\1/ 12822 q 12823 } 12824 s/.*/./; q'` 12825 as_dir="$ac_dir"; as_fn_mkdir_p 12826 ac_builddir=. 12827 12828case "$ac_dir" in 12829.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12830*) 12831 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12832 # A ".." for each directory in $ac_dir_suffix. 12833 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12834 case $ac_top_builddir_sub in 12835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12837 esac ;; 12838esac 12839ac_abs_top_builddir=$ac_pwd 12840ac_abs_builddir=$ac_pwd$ac_dir_suffix 12841# for backward compatibility: 12842ac_top_builddir=$ac_top_build_prefix 12843 12844case $srcdir in 12845 .) # We are building in place. 12846 ac_srcdir=. 12847 ac_top_srcdir=$ac_top_builddir_sub 12848 ac_abs_top_srcdir=$ac_pwd ;; 12849 [\\/]* | ?:[\\/]* ) # Absolute name. 12850 ac_srcdir=$srcdir$ac_dir_suffix; 12851 ac_top_srcdir=$srcdir 12852 ac_abs_top_srcdir=$srcdir ;; 12853 *) # Relative name. 12854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12855 ac_top_srcdir=$ac_top_build_prefix$srcdir 12856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12857esac 12858ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12859 12860 12861 case $ac_mode in 12862 :F) 12863 # 12864 # CONFIG_FILE 12865 # 12866 12867 case $INSTALL in 12868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12870 esac 12871 ac_MKDIR_P=$MKDIR_P 12872 case $MKDIR_P in 12873 [\\/$]* | ?:[\\/]* ) ;; 12874 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12875 esac 12876_ACEOF 12877 12878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12879# If the template does not know about datarootdir, expand it. 12880# FIXME: This hack should be removed a few years after 2.60. 12881ac_datarootdir_hack=; ac_datarootdir_seen= 12882ac_sed_dataroot=' 12883/datarootdir/ { 12884 p 12885 q 12886} 12887/@datadir@/p 12888/@docdir@/p 12889/@infodir@/p 12890/@localedir@/p 12891/@mandir@/p' 12892case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12893*datarootdir*) ac_datarootdir_seen=yes;; 12894*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12896printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12897_ACEOF 12898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12899 ac_datarootdir_hack=' 12900 s&@datadir@&$datadir&g 12901 s&@docdir@&$docdir&g 12902 s&@infodir@&$infodir&g 12903 s&@localedir@&$localedir&g 12904 s&@mandir@&$mandir&g 12905 s&\\\${datarootdir}&$datarootdir&g' ;; 12906esac 12907_ACEOF 12908 12909# Neutralize VPATH when '$srcdir' = '.'. 12910# Shell code in configure.ac might set extrasub. 12911# FIXME: do we really want to maintain this feature? 12912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12913ac_sed_extra="$ac_vpsub 12914$extrasub 12915_ACEOF 12916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12917:t 12918/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12919s|@configure_input@|$ac_sed_conf_input|;t t 12920s&@top_builddir@&$ac_top_builddir_sub&;t t 12921s&@top_build_prefix@&$ac_top_build_prefix&;t t 12922s&@srcdir@&$ac_srcdir&;t t 12923s&@abs_srcdir@&$ac_abs_srcdir&;t t 12924s&@top_srcdir@&$ac_top_srcdir&;t t 12925s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12926s&@builddir@&$ac_builddir&;t t 12927s&@abs_builddir@&$ac_abs_builddir&;t t 12928s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12929s&@INSTALL@&$ac_INSTALL&;t t 12930s&@MKDIR_P@&$ac_MKDIR_P&;t t 12931$ac_datarootdir_hack 12932" 12933eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12934 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12935 12936test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12937 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12938 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12939 "$ac_tmp/out"`; test -z "$ac_out"; } && 12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12941which seems to be undefined. Please make sure it is defined" >&5 12942printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12943which seems to be undefined. Please make sure it is defined" >&2;} 12944 12945 rm -f "$ac_tmp/stdin" 12946 case $ac_file in 12947 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12948 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12949 esac \ 12950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12951 ;; 12952 :H) 12953 # 12954 # CONFIG_HEADER 12955 # 12956 if test x"$ac_file" != x-; then 12957 { 12958 printf "%s\n" "/* $configure_input */" >&1 \ 12959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12960 } >"$ac_tmp/config.h" \ 12961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12962 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12964printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12965 else 12966 rm -f "$ac_file" 12967 mv "$ac_tmp/config.h" "$ac_file" \ 12968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12969 fi 12970 else 12971 printf "%s\n" "/* $configure_input */" >&1 \ 12972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12973 || as_fn_error $? "could not create -" "$LINENO" 5 12974 fi 12975# Compute "$ac_file"'s index in $config_headers. 12976_am_arg="$ac_file" 12977_am_stamp_count=1 12978for _am_header in $config_headers :; do 12979 case $_am_header in 12980 $_am_arg | $_am_arg:* ) 12981 break ;; 12982 * ) 12983 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12984 esac 12985done 12986echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12987$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12988 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12989 X"$_am_arg" : 'X\(//\)$' \| \ 12990 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12991printf "%s\n" X"$_am_arg" | 12992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12993 s//\1/ 12994 q 12995 } 12996 /^X\(\/\/\)[^/].*/{ 12997 s//\1/ 12998 q 12999 } 13000 /^X\(\/\/\)$/{ 13001 s//\1/ 13002 q 13003 } 13004 /^X\(\/\).*/{ 13005 s//\1/ 13006 q 13007 } 13008 s/.*/./; q'`/stamp-h$_am_stamp_count 13009 ;; 13010 13011 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13012printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13013 ;; 13014 esac 13015 13016 13017 case $ac_file$ac_mode in 13018 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13019 # Older Autoconf quotes --file arguments for eval, but not when files 13020 # are listed without --file. Let's play safe and only enable the eval 13021 # if we detect the quoting. 13022 # TODO: see whether this extra hack can be removed once we start 13023 # requiring Autoconf 2.70 or later. 13024 case $CONFIG_FILES in #( 13025 *\'*) : 13026 eval set x "$CONFIG_FILES" ;; #( 13027 *) : 13028 set x $CONFIG_FILES ;; #( 13029 *) : 13030 ;; 13031esac 13032 shift 13033 # Used to flag and report bootstrapping failures. 13034 am_rc=0 13035 for am_mf 13036 do 13037 # Strip MF so we end up with the name of the file. 13038 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13039 # Check whether this is an Automake generated Makefile which includes 13040 # dependency-tracking related rules and includes. 13041 # Grep'ing the whole file directly is not great: AIX grep has a line 13042 # limit of 2048, but all sed's we know have understand at least 4000. 13043 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13044 || continue 13045 am_dirpart=`$as_dirname -- "$am_mf" || 13046$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13047 X"$am_mf" : 'X\(//\)[^/]' \| \ 13048 X"$am_mf" : 'X\(//\)$' \| \ 13049 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13050printf "%s\n" X"$am_mf" | 13051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13052 s//\1/ 13053 q 13054 } 13055 /^X\(\/\/\)[^/].*/{ 13056 s//\1/ 13057 q 13058 } 13059 /^X\(\/\/\)$/{ 13060 s//\1/ 13061 q 13062 } 13063 /^X\(\/\).*/{ 13064 s//\1/ 13065 q 13066 } 13067 s/.*/./; q'` 13068 am_filepart=`$as_basename -- "$am_mf" || 13069$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13070 X"$am_mf" : 'X\(//\)$' \| \ 13071 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13072printf "%s\n" X/"$am_mf" | 13073 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13074 s//\1/ 13075 q 13076 } 13077 /^X\/\(\/\/\)$/{ 13078 s//\1/ 13079 q 13080 } 13081 /^X\/\(\/\).*/{ 13082 s//\1/ 13083 q 13084 } 13085 s/.*/./; q'` 13086 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13087 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13088 | $MAKE -f - am--depfiles" >&5 13089 (cd "$am_dirpart" \ 13090 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13091 | $MAKE -f - am--depfiles) >&5 2>&5 13092 ac_status=$? 13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13094 (exit $ac_status); } || am_rc=$? 13095 done 13096 if test $am_rc -ne 0; then 13097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13098printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13099as_fn_error $? "Something went wrong bootstrapping makefile fragments 13100 for automatic dependency tracking. If GNU make was not used, consider 13101 re-running the configure script with MAKE=\"gmake\" (or whatever is 13102 necessary). You can also try re-running configure with the 13103 '--disable-dependency-tracking' option to at least be able to build 13104 the package (albeit without support for automatic dependency tracking). 13105See 'config.log' for more details" "$LINENO" 5; } 13106 fi 13107 { am_dirpart=; unset am_dirpart;} 13108 { am_filepart=; unset am_filepart;} 13109 { am_mf=; unset am_mf;} 13110 { am_rc=; unset am_rc;} 13111 rm -f conftest-deps.mk 13112} 13113 ;; 13114 13115 esac 13116done # for ac_tag 13117 13118 13119as_fn_exit 0 13120_ACEOF 13121ac_clean_files=$ac_clean_files_save 13122 13123test $ac_write_fail = 0 || 13124 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13125 13126 13127# configure is writing to config.log, and then calls config.status. 13128# config.status does its own redirection, appending to config.log. 13129# Unfortunately, on DOS this fails, as config.log is still kept open 13130# by configure, so config.status won't be able to write to it; its 13131# output is simply discarded. So we exec the FD to /dev/null, 13132# effectively closing config.log, so it can be properly (re)opened and 13133# appended to by config.status. When coming back to configure, we 13134# need to make the FD available again. 13135if test "$no_create" != yes; then 13136 ac_cs_success=: 13137 ac_config_status_args= 13138 test "$silent" = yes && 13139 ac_config_status_args="$ac_config_status_args --quiet" 13140 exec 5>/dev/null 13141 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13142 exec 5>>config.log 13143 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13144 # would make configure fail if this is the last instruction. 13145 $ac_cs_success || as_fn_exit 1 13146fi 13147if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13149printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13150fi 13151 13152 13153