1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for iceauth 1.0.10. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/-/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/iceauth/-/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='iceauth' 607PACKAGE_TARNAME='iceauth' 608PACKAGE_VERSION='1.0.10' 609PACKAGE_STRING='iceauth 1.0.10' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646enable_year2038=no 647ac_subst_vars='am__EXEEXT_FALSE 648am__EXEEXT_TRUE 649LTLIBOBJS 650LIBOBJS 651LINT_FALSE 652LINT_TRUE 653LINT_FLAGS 654LINT 655ICEAUTH_LIBS 656ICEAUTH_CFLAGS 657MAN_SUBSTS 658XORG_MAN_PAGE 659ADMIN_MAN_DIR 660DRIVER_MAN_DIR 661MISC_MAN_DIR 662FILE_MAN_DIR 663LIB_MAN_DIR 664APP_MAN_DIR 665ADMIN_MAN_SUFFIX 666DRIVER_MAN_SUFFIX 667MISC_MAN_SUFFIX 668FILE_MAN_SUFFIX 669LIB_MAN_SUFFIX 670APP_MAN_SUFFIX 671SED 672host_os 673host_vendor 674host_cpu 675host 676build_os 677build_vendor 678build_cpu 679build 680INSTALL_CMD 681PKG_CONFIG_LIBDIR 682PKG_CONFIG_PATH 683PKG_CONFIG 684CHANGELOG_CMD 685STRICT_CFLAGS 686CWARNFLAGS 687BASE_CFLAGS 688AM_BACKSLASH 689AM_DEFAULT_VERBOSITY 690AM_DEFAULT_V 691AM_V 692CSCOPE 693ETAGS 694CTAGS 695am__fastdepCC_FALSE 696am__fastdepCC_TRUE 697CCDEPMODE 698am__nodep 699AMDEPBACKSLASH 700AMDEP_FALSE 701AMDEP_TRUE 702am__include 703DEPDIR 704am__untar 705am__tar 706AMTAR 707am__leading_dot 708SET_MAKE 709AWK 710mkdir_p 711MKDIR_P 712INSTALL_STRIP_PROGRAM 713STRIP 714install_sh 715MAKEINFO 716AUTOHEADER 717AUTOMAKE 718AUTOCONF 719ACLOCAL 720VERSION 721PACKAGE 722CYGPATH_W 723am__isrc 724INSTALL_DATA 725INSTALL_SCRIPT 726INSTALL_PROGRAM 727OBJEXT 728EXEEXT 729ac_ct_CC 730CPPFLAGS 731LDFLAGS 732CFLAGS 733CC 734target_alias 735host_alias 736build_alias 737LIBS 738ECHO_T 739ECHO_N 740ECHO_C 741DEFS 742mandir 743localedir 744libdir 745psdir 746pdfdir 747dvidir 748htmldir 749infodir 750docdir 751oldincludedir 752includedir 753runstatedir 754localstatedir 755sharedstatedir 756sysconfdir 757datadir 758datarootdir 759libexecdir 760sbindir 761bindir 762program_transform_name 763prefix 764exec_prefix 765PACKAGE_URL 766PACKAGE_BUGREPORT 767PACKAGE_STRING 768PACKAGE_VERSION 769PACKAGE_TARNAME 770PACKAGE_NAME 771PATH_SEPARATOR 772SHELL 773am__quote' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777enable_dependency_tracking 778enable_silent_rules 779enable_selective_werror 780enable_strict_compilation 781enable_largefile 782with_lint 783enable_year2038 784' 785 ac_precious_vars='build_alias 786host_alias 787target_alias 788CC 789CFLAGS 790LDFLAGS 791LIBS 792CPPFLAGS 793PKG_CONFIG 794PKG_CONFIG_PATH 795PKG_CONFIG_LIBDIR 796ICEAUTH_CFLAGS 797ICEAUTH_LIBS 798LINT 799LINT_FLAGS' 800 801 802# Initialize some variables set by options. 803ac_init_help= 804ac_init_version=false 805ac_unrecognized_opts= 806ac_unrecognized_sep= 807# The variables have the same names as the options, with 808# dashes changed to underlines. 809cache_file=/dev/null 810exec_prefix=NONE 811no_create= 812no_recursion= 813prefix=NONE 814program_prefix=NONE 815program_suffix=NONE 816program_transform_name=s,x,x, 817silent= 818site= 819srcdir= 820verbose= 821x_includes=NONE 822x_libraries=NONE 823 824# Installation directory options. 825# These are left unexpanded so users can "make install exec_prefix=/foo" 826# and all the variables that are supposed to be based on exec_prefix 827# by default will actually change. 828# Use braces instead of parens because sh, perl, etc. also accept them. 829# (The list follows the same order as the GNU Coding Standards.) 830bindir='${exec_prefix}/bin' 831sbindir='${exec_prefix}/sbin' 832libexecdir='${exec_prefix}/libexec' 833datarootdir='${prefix}/share' 834datadir='${datarootdir}' 835sysconfdir='${prefix}/etc' 836sharedstatedir='${prefix}/com' 837localstatedir='${prefix}/var' 838runstatedir='${localstatedir}/run' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 case $ac_dashdash$ac_option in 869 --) 870 ac_dashdash=yes ;; 871 872 -bindir | --bindir | --bindi | --bind | --bin | --bi) 873 ac_prev=bindir ;; 874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 875 bindir=$ac_optarg ;; 876 877 -build | --build | --buil | --bui | --bu) 878 ac_prev=build_alias ;; 879 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 880 build_alias=$ac_optarg ;; 881 882 -cache-file | --cache-file | --cache-fil | --cache-fi \ 883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 884 ac_prev=cache_file ;; 885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 887 cache_file=$ac_optarg ;; 888 889 --config-cache | -C) 890 cache_file=config.cache ;; 891 892 -datadir | --datadir | --datadi | --datad) 893 ac_prev=datadir ;; 894 -datadir=* | --datadir=* | --datadi=* | --datad=*) 895 datadir=$ac_optarg ;; 896 897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 898 | --dataroo | --dataro | --datar) 899 ac_prev=datarootdir ;; 900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 902 datarootdir=$ac_optarg ;; 903 904 -disable-* | --disable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 as_fn_error $? "invalid feature name: '$ac_useropt'" 909 ac_useropt_orig=$ac_useropt 910 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 911 case $ac_user_opts in 912 *" 913"enable_$ac_useropt" 914"*) ;; 915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 916 ac_unrecognized_sep=', ';; 917 esac 918 eval enable_$ac_useropt=no ;; 919 920 -docdir | --docdir | --docdi | --doc | --do) 921 ac_prev=docdir ;; 922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 923 docdir=$ac_optarg ;; 924 925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 926 ac_prev=dvidir ;; 927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 928 dvidir=$ac_optarg ;; 929 930 -enable-* | --enable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: '$ac_useropt'" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=\$ac_optarg ;; 945 946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 948 | --exec | --exe | --ex) 949 ac_prev=exec_prefix ;; 950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 952 | --exec=* | --exe=* | --ex=*) 953 exec_prefix=$ac_optarg ;; 954 955 -gas | --gas | --ga | --g) 956 # Obsolete; use --with-gas. 957 with_gas=yes ;; 958 959 -help | --help | --hel | --he | -h) 960 ac_init_help=long ;; 961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 962 ac_init_help=recursive ;; 963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 964 ac_init_help=short ;; 965 966 -host | --host | --hos | --ho) 967 ac_prev=host_alias ;; 968 -host=* | --host=* | --hos=* | --ho=*) 969 host_alias=$ac_optarg ;; 970 971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 972 ac_prev=htmldir ;; 973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 974 | --ht=*) 975 htmldir=$ac_optarg ;; 976 977 -includedir | --includedir | --includedi | --included | --include \ 978 | --includ | --inclu | --incl | --inc) 979 ac_prev=includedir ;; 980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 981 | --includ=* | --inclu=* | --incl=* | --inc=*) 982 includedir=$ac_optarg ;; 983 984 -infodir | --infodir | --infodi | --infod | --info | --inf) 985 ac_prev=infodir ;; 986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 987 infodir=$ac_optarg ;; 988 989 -libdir | --libdir | --libdi | --libd) 990 ac_prev=libdir ;; 991 -libdir=* | --libdir=* | --libdi=* | --libd=*) 992 libdir=$ac_optarg ;; 993 994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 995 | --libexe | --libex | --libe) 996 ac_prev=libexecdir ;; 997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 998 | --libexe=* | --libex=* | --libe=*) 999 libexecdir=$ac_optarg ;; 1000 1001 -localedir | --localedir | --localedi | --localed | --locale) 1002 ac_prev=localedir ;; 1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1004 localedir=$ac_optarg ;; 1005 1006 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1007 | --localstate | --localstat | --localsta | --localst | --locals) 1008 ac_prev=localstatedir ;; 1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1011 localstatedir=$ac_optarg ;; 1012 1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1014 ac_prev=mandir ;; 1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1016 mandir=$ac_optarg ;; 1017 1018 -nfp | --nfp | --nf) 1019 # Obsolete; use --without-fp. 1020 with_fp=no ;; 1021 1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1023 | --no-cr | --no-c | -n) 1024 no_create=yes ;; 1025 1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1028 no_recursion=yes ;; 1029 1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1032 | --oldin | --oldi | --old | --ol | --o) 1033 ac_prev=oldincludedir ;; 1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1037 oldincludedir=$ac_optarg ;; 1038 1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1040 ac_prev=prefix ;; 1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1042 prefix=$ac_optarg ;; 1043 1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1045 | --program-pre | --program-pr | --program-p) 1046 ac_prev=program_prefix ;; 1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1049 program_prefix=$ac_optarg ;; 1050 1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1052 | --program-suf | --program-su | --program-s) 1053 ac_prev=program_suffix ;; 1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1056 program_suffix=$ac_optarg ;; 1057 1058 -program-transform-name | --program-transform-name \ 1059 | --program-transform-nam | --program-transform-na \ 1060 | --program-transform-n | --program-transform- \ 1061 | --program-transform | --program-transfor \ 1062 | --program-transfo | --program-transf \ 1063 | --program-trans | --program-tran \ 1064 | --progr-tra | --program-tr | --program-t) 1065 ac_prev=program_transform_name ;; 1066 -program-transform-name=* | --program-transform-name=* \ 1067 | --program-transform-nam=* | --program-transform-na=* \ 1068 | --program-transform-n=* | --program-transform-=* \ 1069 | --program-transform=* | --program-transfor=* \ 1070 | --program-transfo=* | --program-transf=* \ 1071 | --program-trans=* | --program-tran=* \ 1072 | --progr-tra=* | --program-tr=* | --program-t=*) 1073 program_transform_name=$ac_optarg ;; 1074 1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1076 ac_prev=pdfdir ;; 1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1078 pdfdir=$ac_optarg ;; 1079 1080 -psdir | --psdir | --psdi | --psd | --ps) 1081 ac_prev=psdir ;; 1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1083 psdir=$ac_optarg ;; 1084 1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1086 | -silent | --silent | --silen | --sile | --sil) 1087 silent=yes ;; 1088 1089 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1090 | --runstate | --runstat | --runsta | --runst | --runs \ 1091 | --run | --ru | --r) 1092 ac_prev=runstatedir ;; 1093 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1094 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1095 | --run=* | --ru=* | --r=*) 1096 runstatedir=$ac_optarg ;; 1097 1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1099 ac_prev=sbindir ;; 1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1101 | --sbi=* | --sb=*) 1102 sbindir=$ac_optarg ;; 1103 1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1106 | --sharedst | --shareds | --shared | --share | --shar \ 1107 | --sha | --sh) 1108 ac_prev=sharedstatedir ;; 1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1112 | --sha=* | --sh=*) 1113 sharedstatedir=$ac_optarg ;; 1114 1115 -site | --site | --sit) 1116 ac_prev=site ;; 1117 -site=* | --site=* | --sit=*) 1118 site=$ac_optarg ;; 1119 1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1121 ac_prev=srcdir ;; 1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1123 srcdir=$ac_optarg ;; 1124 1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1126 | --syscon | --sysco | --sysc | --sys | --sy) 1127 ac_prev=sysconfdir ;; 1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1130 sysconfdir=$ac_optarg ;; 1131 1132 -target | --target | --targe | --targ | --tar | --ta | --t) 1133 ac_prev=target_alias ;; 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1135 target_alias=$ac_optarg ;; 1136 1137 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1138 verbose=yes ;; 1139 1140 -version | --version | --versio | --versi | --vers | -V) 1141 ac_init_version=: ;; 1142 1143 -with-* | --with-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: '$ac_useropt'" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: '$ac_useropt'" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=no ;; 1174 1175 --x) 1176 # Obsolete; use --with-x. 1177 with_x=yes ;; 1178 1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1180 | --x-incl | --x-inc | --x-in | --x-i) 1181 ac_prev=x_includes ;; 1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1184 x_includes=$ac_optarg ;; 1185 1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1188 ac_prev=x_libraries ;; 1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1191 x_libraries=$ac_optarg ;; 1192 1193 -*) as_fn_error $? "unrecognized option: '$ac_option' 1194Try '$0 --help' for more information" 1195 ;; 1196 1197 *=*) 1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1199 # Reject names that are not valid shell variable names. 1200 case $ac_envvar in #( 1201 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1202 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1203 esac 1204 eval $ac_envvar=\$ac_optarg 1205 export $ac_envvar ;; 1206 1207 *) 1208 # FIXME: should be removed in autoconf 3.0. 1209 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1211 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1213 ;; 1214 1215 esac 1216done 1217 1218if test -n "$ac_prev"; then 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1220 as_fn_error $? "missing argument to $ac_option" 1221fi 1222 1223if test -n "$ac_unrecognized_opts"; then 1224 case $enable_option_checking in 1225 no) ;; 1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1227 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1228 esac 1229fi 1230 1231# Check all directory arguments for consistency. 1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1233 datadir sysconfdir sharedstatedir localstatedir includedir \ 1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1235 libdir localedir mandir runstatedir 1236do 1237 eval ac_val=\$$ac_var 1238 # Remove trailing slashes. 1239 case $ac_val in 1240 */ ) 1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1242 eval $ac_var=\$ac_val;; 1243 esac 1244 # Be sure to have absolute directory names. 1245 case $ac_val in 1246 [\\/$]* | ?:[\\/]* ) continue;; 1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1248 esac 1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1250done 1251 1252# There might be people who depend on the old broken behavior: '$host' 1253# used to hold the argument of --host etc. 1254# FIXME: To remove some day. 1255build=$build_alias 1256host=$host_alias 1257target=$target_alias 1258 1259# FIXME: To remove some day. 1260if test "x$host_alias" != x; then 1261 if test "x$build_alias" = x; then 1262 cross_compiling=maybe 1263 elif test "x$build_alias" != "x$host_alias"; then 1264 cross_compiling=yes 1265 fi 1266fi 1267 1268ac_tool_prefix= 1269test -n "$host_alias" && ac_tool_prefix=$host_alias- 1270 1271test "$silent" = yes && exec 6>/dev/null 1272 1273 1274ac_pwd=`pwd` && test -n "$ac_pwd" && 1275ac_ls_di=`ls -di .` && 1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1277 as_fn_error $? "working directory cannot be determined" 1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1279 as_fn_error $? "pwd does not report name of working directory" 1280 1281 1282# Find the source files, if location was not specified. 1283if test -z "$srcdir"; then 1284 ac_srcdir_defaulted=yes 1285 # Try the directory containing this script, then the parent directory. 1286 ac_confdir=`$as_dirname -- "$as_myself" || 1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1288 X"$as_myself" : 'X\(//\)[^/]' \| \ 1289 X"$as_myself" : 'X\(//\)$' \| \ 1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1291printf "%s\n" X"$as_myself" | 1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)[^/].*/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\).*/{ 1305 s//\1/ 1306 q 1307 } 1308 s/.*/./; q'` 1309 srcdir=$ac_confdir 1310 if test ! -r "$srcdir/$ac_unique_file"; then 1311 srcdir=.. 1312 fi 1313else 1314 ac_srcdir_defaulted=no 1315fi 1316if test ! -r "$srcdir/$ac_unique_file"; then 1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1319fi 1320ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1321ac_abs_confdir=`( 1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1323 pwd)` 1324# When building in place, set srcdir=. 1325if test "$ac_abs_confdir" = "$ac_pwd"; then 1326 srcdir=. 1327fi 1328# Remove unnecessary trailing slashes from srcdir. 1329# Double slashes in file names in object file debugging info 1330# mess up M-x gdb in Emacs. 1331case $srcdir in 1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1333esac 1334for ac_var in $ac_precious_vars; do 1335 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_env_${ac_var}_value=\$${ac_var} 1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1339done 1340 1341# 1342# Report the --help message. 1343# 1344if test "$ac_init_help" = "long"; then 1345 # Omit some internal or obsolete options to make the list less imposing. 1346 # This message is too long to be a string in the A/UX 3.1 sh. 1347 cat <<_ACEOF 1348'configure' configures iceauth 1.0.10 to adapt to many kinds of systems. 1349 1350Usage: $0 [OPTION]... [VAR=VALUE]... 1351 1352To assign environment variables (e.g., CC, CFLAGS...), specify them as 1353VAR=VALUE. See below for descriptions of some of the useful variables. 1354 1355Defaults for the options are specified in brackets. 1356 1357Configuration: 1358 -h, --help display this help and exit 1359 --help=short display options specific to this package 1360 --help=recursive display the short help of all the included packages 1361 -V, --version display version information and exit 1362 -q, --quiet, --silent do not print 'checking ...' messages 1363 --cache-file=FILE cache test results in FILE [disabled] 1364 -C, --config-cache alias for '--cache-file=config.cache' 1365 -n, --no-create do not create output files 1366 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1367 1368Installation directories: 1369 --prefix=PREFIX install architecture-independent files in PREFIX 1370 [$ac_default_prefix] 1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1372 [PREFIX] 1373 1374By default, 'make install' will install all the files in 1375'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1376an installation prefix other than '$ac_default_prefix' using '--prefix', 1377for instance '--prefix=\$HOME'. 1378 1379For better control, use the options below. 1380 1381Fine tuning of the installation directories: 1382 --bindir=DIR user executables [EPREFIX/bin] 1383 --sbindir=DIR system admin executables [EPREFIX/sbin] 1384 --libexecdir=DIR program executables [EPREFIX/libexec] 1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1388 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1389 --libdir=DIR object code libraries [EPREFIX/lib] 1390 --includedir=DIR C header files [PREFIX/include] 1391 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1394 --infodir=DIR info documentation [DATAROOTDIR/info] 1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1396 --mandir=DIR man documentation [DATAROOTDIR/man] 1397 --docdir=DIR documentation root [DATAROOTDIR/doc/iceauth] 1398 --htmldir=DIR html documentation [DOCDIR] 1399 --dvidir=DIR dvi documentation [DOCDIR] 1400 --pdfdir=DIR pdf documentation [DOCDIR] 1401 --psdir=DIR ps documentation [DOCDIR] 1402_ACEOF 1403 1404 cat <<\_ACEOF 1405 1406Program names: 1407 --program-prefix=PREFIX prepend PREFIX to installed program names 1408 --program-suffix=SUFFIX append SUFFIX to installed program names 1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1410 1411System types: 1412 --build=BUILD configure for building on BUILD [guessed] 1413 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1414_ACEOF 1415fi 1416 1417if test -n "$ac_init_help"; then 1418 case $ac_init_help in 1419 short | recursive ) echo "Configuration of iceauth 1.0.10:";; 1420 esac 1421 cat <<\_ACEOF 1422 1423Optional Features: 1424 --disable-option-checking ignore unrecognized --enable/--with options 1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1427 --enable-dependency-tracking 1428 do not reject slow dependency extractors 1429 --disable-dependency-tracking 1430 speeds up one-time build 1431 --enable-silent-rules less verbose build output (undo: "make V=1") 1432 --disable-silent-rules verbose build output (undo: "make V=0") 1433 --disable-selective-werror 1434 Turn off selective compiler errors. (default: 1435 enabled) 1436 --enable-strict-compilation 1437 Enable all warnings from compiler and make them 1438 errors (default: disabled) 1439 --disable-largefile omit support for large files 1440 --enable-year2038 support timestamps after 2038 1441 1442Optional Packages: 1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1445 --with-lint Use a lint-style source code checker (default: 1446 disabled) 1447 1448Some influential environment variables: 1449 CC C compiler command 1450 CFLAGS C compiler flags 1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1452 nonstandard directory <lib dir> 1453 LIBS libraries to pass to the linker, e.g. -l<library> 1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1455 you have headers in a nonstandard directory <include dir> 1456 PKG_CONFIG path to pkg-config utility 1457 PKG_CONFIG_PATH 1458 directories to add to pkg-config's search path 1459 PKG_CONFIG_LIBDIR 1460 path overriding pkg-config's built-in search path 1461 ICEAUTH_CFLAGS 1462 C compiler flags for ICEAUTH, overriding pkg-config 1463 ICEAUTH_LIBS 1464 linker flags for ICEAUTH, overriding pkg-config 1465 LINT Path to a lint-style command 1466 LINT_FLAGS Flags for the lint-style command 1467 1468Use these variables to override the choices made by 'configure' or to help 1469it to find libraries and programs with nonstandard names/locations. 1470 1471Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues>. 1472_ACEOF 1473ac_status=$? 1474fi 1475 1476if test "$ac_init_help" = "recursive"; then 1477 # If there are subdirs, report their specific --help. 1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1479 test -d "$ac_dir" || 1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1481 continue 1482 ac_builddir=. 1483 1484case "$ac_dir" in 1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1486*) 1487 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1488 # A ".." for each directory in $ac_dir_suffix. 1489 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1490 case $ac_top_builddir_sub in 1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1493 esac ;; 1494esac 1495ac_abs_top_builddir=$ac_pwd 1496ac_abs_builddir=$ac_pwd$ac_dir_suffix 1497# for backward compatibility: 1498ac_top_builddir=$ac_top_build_prefix 1499 1500case $srcdir in 1501 .) # We are building in place. 1502 ac_srcdir=. 1503 ac_top_srcdir=$ac_top_builddir_sub 1504 ac_abs_top_srcdir=$ac_pwd ;; 1505 [\\/]* | ?:[\\/]* ) # Absolute name. 1506 ac_srcdir=$srcdir$ac_dir_suffix; 1507 ac_top_srcdir=$srcdir 1508 ac_abs_top_srcdir=$srcdir ;; 1509 *) # Relative name. 1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1511 ac_top_srcdir=$ac_top_build_prefix$srcdir 1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1513esac 1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1515 1516 cd "$ac_dir" || { ac_status=$?; continue; } 1517 # Check for configure.gnu first; this name is used for a wrapper for 1518 # Metaconfig's "Configure" on case-insensitive file systems. 1519 if test -f "$ac_srcdir/configure.gnu"; then 1520 echo && 1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1522 elif test -f "$ac_srcdir/configure"; then 1523 echo && 1524 $SHELL "$ac_srcdir/configure" --help=recursive 1525 else 1526 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1527 fi || ac_status=$? 1528 cd "$ac_pwd" || { ac_status=$?; break; } 1529 done 1530fi 1531 1532test -n "$ac_init_help" && exit $ac_status 1533if $ac_init_version; then 1534 cat <<\_ACEOF 1535iceauth configure 1.0.10 1536generated by GNU Autoconf 2.72 1537 1538Copyright (C) 2023 Free Software Foundation, Inc. 1539This configure script is free software; the Free Software Foundation 1540gives unlimited permission to copy, distribute and modify it. 1541_ACEOF 1542 exit 1543fi 1544 1545## ------------------------ ## 1546## Autoconf initialization. ## 1547## ------------------------ ## 1548 1549# ac_fn_c_try_compile LINENO 1550# -------------------------- 1551# Try to compile conftest.$ac_ext, and return whether this succeeded. 1552ac_fn_c_try_compile () 1553{ 1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1555 rm -f conftest.$ac_objext conftest.beam 1556 if { { ac_try="$ac_compile" 1557case "(($ac_try" in 1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1559 *) ac_try_echo=$ac_try;; 1560esac 1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1562printf "%s\n" "$ac_try_echo"; } >&5 1563 (eval "$ac_compile") 2>conftest.err 1564 ac_status=$? 1565 if test -s conftest.err; then 1566 grep -v '^ *+' conftest.err >conftest.er1 1567 cat conftest.er1 >&5 1568 mv -f conftest.er1 conftest.err 1569 fi 1570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1571 test $ac_status = 0; } && { 1572 test -z "$ac_c_werror_flag" || 1573 test ! -s conftest.err 1574 } && test -s conftest.$ac_objext 1575then : 1576 ac_retval=0 1577else case e in #( 1578 e) printf "%s\n" "$as_me: failed program was:" >&5 1579sed 's/^/| /' conftest.$ac_ext >&5 1580 1581 ac_retval=1 ;; 1582esac 1583fi 1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1585 as_fn_set_status $ac_retval 1586 1587} # ac_fn_c_try_compile 1588 1589# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1590# ------------------------------------------------------- 1591# Tests whether HEADER exists and can be compiled using the include files in 1592# INCLUDES, setting the cache variable VAR accordingly. 1593ac_fn_c_check_header_compile () 1594{ 1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1597printf %s "checking for $2... " >&6; } 1598if eval test \${$3+y} 1599then : 1600 printf %s "(cached) " >&6 1601else case e in #( 1602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1603/* end confdefs.h. */ 1604$4 1605#include <$2> 1606_ACEOF 1607if ac_fn_c_try_compile "$LINENO" 1608then : 1609 eval "$3=yes" 1610else case e in #( 1611 e) eval "$3=no" ;; 1612esac 1613fi 1614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1615esac 1616fi 1617eval ac_res=\$$3 1618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1619printf "%s\n" "$ac_res" >&6; } 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 1622} # ac_fn_c_check_header_compile 1623 1624# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1625# ------------------------------------------------------------------ 1626# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1627# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1628ac_fn_check_decl () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 as_decl_name=`echo $2|sed 's/ *(.*//'` 1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1633printf %s "checking whether $as_decl_name is declared... " >&6; } 1634if eval test \${$3+y} 1635then : 1636 printf %s "(cached) " >&6 1637else case e in #( 1638 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1639 eval ac_save_FLAGS=\$$6 1640 as_fn_append $6 " $5" 1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1642/* end confdefs.h. */ 1643$4 1644int 1645main (void) 1646{ 1647#ifndef $as_decl_name 1648#ifdef __cplusplus 1649 (void) $as_decl_use; 1650#else 1651 (void) $as_decl_name; 1652#endif 1653#endif 1654 1655 ; 1656 return 0; 1657} 1658_ACEOF 1659if ac_fn_c_try_compile "$LINENO" 1660then : 1661 eval "$3=yes" 1662else case e in #( 1663 e) eval "$3=no" ;; 1664esac 1665fi 1666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1667 eval $6=\$ac_save_FLAGS 1668 ;; 1669esac 1670fi 1671eval ac_res=\$$3 1672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1673printf "%s\n" "$ac_res" >&6; } 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 1676} # ac_fn_check_decl 1677 1678# ac_fn_c_try_link LINENO 1679# ----------------------- 1680# Try to link conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_link () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1685 if { { ac_try="$ac_link" 1686case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691printf "%s\n" "$ac_try_echo"; } >&5 1692 (eval "$ac_link") 2>conftest.err 1693 ac_status=$? 1694 if test -s conftest.err; then 1695 grep -v '^ *+' conftest.err >conftest.er1 1696 cat conftest.er1 >&5 1697 mv -f conftest.er1 conftest.err 1698 fi 1699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } && { 1701 test -z "$ac_c_werror_flag" || 1702 test ! -s conftest.err 1703 } && test -s conftest$ac_exeext && { 1704 test "$cross_compiling" = yes || 1705 test -x conftest$ac_exeext 1706 } 1707then : 1708 ac_retval=0 1709else case e in #( 1710 e) printf "%s\n" "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=1 ;; 1714esac 1715fi 1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1718 # interfere with the next link command; also delete a directory that is 1719 # left behind by Apple's compiler. We do this before executing the actions. 1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_link 1725 1726# ac_fn_c_check_func LINENO FUNC VAR 1727# ---------------------------------- 1728# Tests whether FUNC exists, setting the cache variable VAR accordingly 1729ac_fn_c_check_func () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733printf %s "checking for $2... " >&6; } 1734if eval test \${$3+y} 1735then : 1736 printf %s "(cached) " >&6 1737else case e in #( 1738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739/* end confdefs.h. */ 1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1742#define $2 innocuous_$2 1743 1744/* System header to define __stub macros and hopefully few prototypes, 1745 which can conflict with char $2 (void); below. */ 1746 1747#include <limits.h> 1748#undef $2 1749 1750/* Override any GCC internal prototype to avoid an error. 1751 Use char because int might match the return type of a GCC 1752 builtin and then its argument prototype would still apply. */ 1753#ifdef __cplusplus 1754extern "C" 1755#endif 1756char $2 (void); 1757/* The GNU C library defines this for functions which it implements 1758 to always fail with ENOSYS. Some functions are actually named 1759 something starting with __ and the normal name is an alias. */ 1760#if defined __stub_$2 || defined __stub___$2 1761choke me 1762#endif 1763 1764int 1765main (void) 1766{ 1767return $2 (); 1768 ; 1769 return 0; 1770} 1771_ACEOF 1772if ac_fn_c_try_link "$LINENO" 1773then : 1774 eval "$3=yes" 1775else case e in #( 1776 e) eval "$3=no" ;; 1777esac 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1780 conftest$ac_exeext conftest.$ac_ext ;; 1781esac 1782fi 1783eval ac_res=\$$3 1784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1785printf "%s\n" "$ac_res" >&6; } 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 1788} # ac_fn_c_check_func 1789ac_configure_args_raw= 1790for ac_arg 1791do 1792 case $ac_arg in 1793 *\'*) 1794 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1795 esac 1796 as_fn_append ac_configure_args_raw " '$ac_arg'" 1797done 1798 1799case $ac_configure_args_raw in 1800 *$as_nl*) 1801 ac_safe_unquote= ;; 1802 *) 1803 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1804 ac_unsafe_a="$ac_unsafe_z#~" 1805 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1806 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1807esac 1808 1809cat >config.log <<_ACEOF 1810This file contains any messages produced by compilers while 1811running configure, to aid debugging if configure makes a mistake. 1812 1813It was created by iceauth $as_me 1.0.10, which was 1814generated by GNU Autoconf 2.72. Invocation command line was 1815 1816 $ $0$ac_configure_args_raw 1817 1818_ACEOF 1819exec 5>>config.log 1820{ 1821cat <<_ASUNAME 1822## --------- ## 1823## Platform. ## 1824## --------- ## 1825 1826hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1827uname -m = `(uname -m) 2>/dev/null || echo unknown` 1828uname -r = `(uname -r) 2>/dev/null || echo unknown` 1829uname -s = `(uname -s) 2>/dev/null || echo unknown` 1830uname -v = `(uname -v) 2>/dev/null || echo unknown` 1831 1832/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1833/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1834 1835/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1836/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1837/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1838/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1839/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1840/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1841/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1842 1843_ASUNAME 1844 1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1846for as_dir in $PATH 1847do 1848 IFS=$as_save_IFS 1849 case $as_dir in #((( 1850 '') as_dir=./ ;; 1851 */) ;; 1852 *) as_dir=$as_dir/ ;; 1853 esac 1854 printf "%s\n" "PATH: $as_dir" 1855 done 1856IFS=$as_save_IFS 1857 1858} >&5 1859 1860cat >&5 <<_ACEOF 1861 1862 1863## ----------- ## 1864## Core tests. ## 1865## ----------- ## 1866 1867_ACEOF 1868 1869 1870# Keep a trace of the command line. 1871# Strip out --no-create and --no-recursion so they do not pile up. 1872# Strip out --silent because we don't want to record it for future runs. 1873# Also quote any args containing shell meta-characters. 1874# Make two passes to allow for proper duplicate-argument suppression. 1875ac_configure_args= 1876ac_configure_args0= 1877ac_configure_args1= 1878ac_must_keep_next=false 1879for ac_pass in 1 2 1880do 1881 for ac_arg 1882 do 1883 case $ac_arg in 1884 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1886 | -silent | --silent | --silen | --sile | --sil) 1887 continue ;; 1888 *\'*) 1889 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1890 esac 1891 case $ac_pass in 1892 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1893 2) 1894 as_fn_append ac_configure_args1 " '$ac_arg'" 1895 if test $ac_must_keep_next = true; then 1896 ac_must_keep_next=false # Got value, back to normal. 1897 else 1898 case $ac_arg in 1899 *=* | --config-cache | -C | -disable-* | --disable-* \ 1900 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1901 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1902 | -with-* | --with-* | -without-* | --without-* | --x) 1903 case "$ac_configure_args0 " in 1904 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1905 esac 1906 ;; 1907 -* ) ac_must_keep_next=true ;; 1908 esac 1909 fi 1910 as_fn_append ac_configure_args " '$ac_arg'" 1911 ;; 1912 esac 1913 done 1914done 1915{ ac_configure_args0=; unset ac_configure_args0;} 1916{ ac_configure_args1=; unset ac_configure_args1;} 1917 1918# When interrupted or exit'd, cleanup temporary files, and complete 1919# config.log. We remove comments because anyway the quotes in there 1920# would cause problems or look ugly. 1921# WARNING: Use '\'' to represent an apostrophe within the trap. 1922# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1923trap 'exit_status=$? 1924 # Sanitize IFS. 1925 IFS=" "" $as_nl" 1926 # Save into config.log some information that might help in debugging. 1927 { 1928 echo 1929 1930 printf "%s\n" "## ---------------- ## 1931## Cache variables. ## 1932## ---------------- ##" 1933 echo 1934 # The following way of writing the cache mishandles newlines in values, 1935( 1936 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1937 eval ac_val=\$$ac_var 1938 case $ac_val in #( 1939 *${as_nl}*) 1940 case $ac_var in #( 1941 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1942printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1943 esac 1944 case $ac_var in #( 1945 _ | IFS | as_nl) ;; #( 1946 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1947 *) { eval $ac_var=; unset $ac_var;} ;; 1948 esac ;; 1949 esac 1950 done 1951 (set) 2>&1 | 1952 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1953 *${as_nl}ac_space=\ *) 1954 sed -n \ 1955 "s/'\''/'\''\\\\'\'''\''/g; 1956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1957 ;; #( 1958 *) 1959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1960 ;; 1961 esac | 1962 sort 1963) 1964 echo 1965 1966 printf "%s\n" "## ----------------- ## 1967## Output variables. ## 1968## ----------------- ##" 1969 echo 1970 for ac_var in $ac_subst_vars 1971 do 1972 eval ac_val=\$$ac_var 1973 case $ac_val in 1974 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1975 esac 1976 printf "%s\n" "$ac_var='\''$ac_val'\''" 1977 done | sort 1978 echo 1979 1980 if test -n "$ac_subst_files"; then 1981 printf "%s\n" "## ------------------- ## 1982## File substitutions. ## 1983## ------------------- ##" 1984 echo 1985 for ac_var in $ac_subst_files 1986 do 1987 eval ac_val=\$$ac_var 1988 case $ac_val in 1989 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1990 esac 1991 printf "%s\n" "$ac_var='\''$ac_val'\''" 1992 done | sort 1993 echo 1994 fi 1995 1996 if test -s confdefs.h; then 1997 printf "%s\n" "## ----------- ## 1998## confdefs.h. ## 1999## ----------- ##" 2000 echo 2001 cat confdefs.h 2002 echo 2003 fi 2004 test "$ac_signal" != 0 && 2005 printf "%s\n" "$as_me: caught signal $ac_signal" 2006 printf "%s\n" "$as_me: exit $exit_status" 2007 } >&5 2008 rm -f core *.core core.conftest.* && 2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2010 exit $exit_status 2011' 0 2012for ac_signal in 1 2 13 15; do 2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2014done 2015ac_signal=0 2016 2017# confdefs.h avoids OS command line length limits that DEFS can exceed. 2018rm -f -r conftest* confdefs.h 2019 2020printf "%s\n" "/* confdefs.h */" > confdefs.h 2021 2022# Predefined preprocessor variables. 2023 2024printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2025 2026printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2027 2028printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2029 2030printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2031 2032printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2033 2034printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2035 2036 2037# Let the site file select an alternate cache file if it wants to. 2038# Prefer an explicitly selected file to automatically selected ones. 2039if test -n "$CONFIG_SITE"; then 2040 ac_site_files="$CONFIG_SITE" 2041elif test "x$prefix" != xNONE; then 2042 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2043else 2044 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2045fi 2046 2047for ac_site_file in $ac_site_files 2048do 2049 case $ac_site_file in #( 2050 */*) : 2051 ;; #( 2052 *) : 2053 ac_site_file=./$ac_site_file ;; 2054esac 2055 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2057printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2058 sed 's/^/| /' "$ac_site_file" >&5 2059 . "$ac_site_file" \ 2060 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2061printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2062as_fn_error $? "failed to load site script $ac_site_file 2063See 'config.log' for more details" "$LINENO" 5; } 2064 fi 2065done 2066 2067if test -r "$cache_file"; then 2068 # Some versions of bash will fail to source /dev/null (special files 2069 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2070 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2072printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2073 case $cache_file in 2074 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2075 *) . "./$cache_file";; 2076 esac 2077 fi 2078else 2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2080printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2081 >$cache_file 2082fi 2083 2084as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2085# Test code for whether the C compiler supports C89 (global declarations) 2086ac_c_conftest_c89_globals=' 2087/* Does the compiler advertise C89 conformance? 2088 Do not test the value of __STDC__, because some compilers set it to 0 2089 while being otherwise adequately conformant. */ 2090#if !defined __STDC__ 2091# error "Compiler does not advertise C89 conformance" 2092#endif 2093 2094#include <stddef.h> 2095#include <stdarg.h> 2096struct stat; 2097/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2098struct buf { int x; }; 2099struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2100static char *e (char **p, int i) 2101{ 2102 return p[i]; 2103} 2104static char *f (char * (*g) (char **, int), char **p, ...) 2105{ 2106 char *s; 2107 va_list v; 2108 va_start (v,p); 2109 s = g (p, va_arg (v,int)); 2110 va_end (v); 2111 return s; 2112} 2113 2114/* C89 style stringification. */ 2115#define noexpand_stringify(a) #a 2116const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2117 2118/* C89 style token pasting. Exercises some of the corner cases that 2119 e.g. old MSVC gets wrong, but not very hard. */ 2120#define noexpand_concat(a,b) a##b 2121#define expand_concat(a,b) noexpand_concat(a,b) 2122extern int vA; 2123extern int vbee; 2124#define aye A 2125#define bee B 2126int *pvA = &expand_concat(v,aye); 2127int *pvbee = &noexpand_concat(v,bee); 2128 2129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2130 function prototypes and stuff, but not \xHH hex character constants. 2131 These do not provoke an error unfortunately, instead are silently treated 2132 as an "x". The following induces an error, until -std is added to get 2133 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2134 array size at least. It is necessary to write \x00 == 0 to get something 2135 that is true only with -std. */ 2136int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2137 2138/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2139 inside strings and character constants. */ 2140#define FOO(x) '\''x'\'' 2141int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2142 2143int test (int i, double x); 2144struct s1 {int (*f) (int a);}; 2145struct s2 {int (*f) (double a);}; 2146int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2147 int, int);' 2148 2149# Test code for whether the C compiler supports C89 (body of main). 2150ac_c_conftest_c89_main=' 2151ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2152' 2153 2154# Test code for whether the C compiler supports C99 (global declarations) 2155ac_c_conftest_c99_globals=' 2156/* Does the compiler advertise C99 conformance? */ 2157#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2158# error "Compiler does not advertise C99 conformance" 2159#endif 2160 2161// See if C++-style comments work. 2162 2163#include <stdbool.h> 2164extern int puts (const char *); 2165extern int printf (const char *, ...); 2166extern int dprintf (int, const char *, ...); 2167extern void *malloc (size_t); 2168extern void free (void *); 2169 2170// Check varargs macros. These examples are taken from C99 6.10.3.5. 2171// dprintf is used instead of fprintf to avoid needing to declare 2172// FILE and stderr. 2173#define debug(...) dprintf (2, __VA_ARGS__) 2174#define showlist(...) puts (#__VA_ARGS__) 2175#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2176static void 2177test_varargs_macros (void) 2178{ 2179 int x = 1234; 2180 int y = 5678; 2181 debug ("Flag"); 2182 debug ("X = %d\n", x); 2183 showlist (The first, second, and third items.); 2184 report (x>y, "x is %d but y is %d", x, y); 2185} 2186 2187// Check long long types. 2188#define BIG64 18446744073709551615ull 2189#define BIG32 4294967295ul 2190#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2191#if !BIG_OK 2192 #error "your preprocessor is broken" 2193#endif 2194#if BIG_OK 2195#else 2196 #error "your preprocessor is broken" 2197#endif 2198static long long int bignum = -9223372036854775807LL; 2199static unsigned long long int ubignum = BIG64; 2200 2201struct incomplete_array 2202{ 2203 int datasize; 2204 double data[]; 2205}; 2206 2207struct named_init { 2208 int number; 2209 const wchar_t *name; 2210 double average; 2211}; 2212 2213typedef const char *ccp; 2214 2215static inline int 2216test_restrict (ccp restrict text) 2217{ 2218 // Iterate through items via the restricted pointer. 2219 // Also check for declarations in for loops. 2220 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2221 continue; 2222 return 0; 2223} 2224 2225// Check varargs and va_copy. 2226static bool 2227test_varargs (const char *format, ...) 2228{ 2229 va_list args; 2230 va_start (args, format); 2231 va_list args_copy; 2232 va_copy (args_copy, args); 2233 2234 const char *str = ""; 2235 int number = 0; 2236 float fnumber = 0; 2237 2238 while (*format) 2239 { 2240 switch (*format++) 2241 { 2242 case '\''s'\'': // string 2243 str = va_arg (args_copy, const char *); 2244 break; 2245 case '\''d'\'': // int 2246 number = va_arg (args_copy, int); 2247 break; 2248 case '\''f'\'': // float 2249 fnumber = va_arg (args_copy, double); 2250 break; 2251 default: 2252 break; 2253 } 2254 } 2255 va_end (args_copy); 2256 va_end (args); 2257 2258 return *str && number && fnumber; 2259} 2260' 2261 2262# Test code for whether the C compiler supports C99 (body of main). 2263ac_c_conftest_c99_main=' 2264 // Check bool. 2265 _Bool success = false; 2266 success |= (argc != 0); 2267 2268 // Check restrict. 2269 if (test_restrict ("String literal") == 0) 2270 success = true; 2271 char *restrict newvar = "Another string"; 2272 2273 // Check varargs. 2274 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2275 test_varargs_macros (); 2276 2277 // Check flexible array members. 2278 struct incomplete_array *ia = 2279 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2280 ia->datasize = 10; 2281 for (int i = 0; i < ia->datasize; ++i) 2282 ia->data[i] = i * 1.234; 2283 // Work around memory leak warnings. 2284 free (ia); 2285 2286 // Check named initializers. 2287 struct named_init ni = { 2288 .number = 34, 2289 .name = L"Test wide string", 2290 .average = 543.34343, 2291 }; 2292 2293 ni.number = 58; 2294 2295 int dynamic_array[ni.number]; 2296 dynamic_array[0] = argv[0][0]; 2297 dynamic_array[ni.number - 1] = 543; 2298 2299 // work around unused variable warnings 2300 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2301 || dynamic_array[ni.number - 1] != 543); 2302' 2303 2304# Test code for whether the C compiler supports C11 (global declarations) 2305ac_c_conftest_c11_globals=' 2306/* Does the compiler advertise C11 conformance? */ 2307#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2308# error "Compiler does not advertise C11 conformance" 2309#endif 2310 2311// Check _Alignas. 2312char _Alignas (double) aligned_as_double; 2313char _Alignas (0) no_special_alignment; 2314extern char aligned_as_int; 2315char _Alignas (0) _Alignas (int) aligned_as_int; 2316 2317// Check _Alignof. 2318enum 2319{ 2320 int_alignment = _Alignof (int), 2321 int_array_alignment = _Alignof (int[100]), 2322 char_alignment = _Alignof (char) 2323}; 2324_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2325 2326// Check _Noreturn. 2327int _Noreturn does_not_return (void) { for (;;) continue; } 2328 2329// Check _Static_assert. 2330struct test_static_assert 2331{ 2332 int x; 2333 _Static_assert (sizeof (int) <= sizeof (long int), 2334 "_Static_assert does not work in struct"); 2335 long int y; 2336}; 2337 2338// Check UTF-8 literals. 2339#define u8 syntax error! 2340char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2341 2342// Check duplicate typedefs. 2343typedef long *long_ptr; 2344typedef long int *long_ptr; 2345typedef long_ptr long_ptr; 2346 2347// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2348struct anonymous 2349{ 2350 union { 2351 struct { int i; int j; }; 2352 struct { int k; long int l; } w; 2353 }; 2354 int m; 2355} v1; 2356' 2357 2358# Test code for whether the C compiler supports C11 (body of main). 2359ac_c_conftest_c11_main=' 2360 _Static_assert ((offsetof (struct anonymous, i) 2361 == offsetof (struct anonymous, w.k)), 2362 "Anonymous union alignment botch"); 2363 v1.i = 2; 2364 v1.w.k = 5; 2365 ok |= v1.i != 5; 2366' 2367 2368# Test code for whether the C compiler supports C11 (complete). 2369ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2370${ac_c_conftest_c99_globals} 2371${ac_c_conftest_c11_globals} 2372 2373int 2374main (int argc, char **argv) 2375{ 2376 int ok = 0; 2377 ${ac_c_conftest_c89_main} 2378 ${ac_c_conftest_c99_main} 2379 ${ac_c_conftest_c11_main} 2380 return ok; 2381} 2382" 2383 2384# Test code for whether the C compiler supports C99 (complete). 2385ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2386${ac_c_conftest_c99_globals} 2387 2388int 2389main (int argc, char **argv) 2390{ 2391 int ok = 0; 2392 ${ac_c_conftest_c89_main} 2393 ${ac_c_conftest_c99_main} 2394 return ok; 2395} 2396" 2397 2398# Test code for whether the C compiler supports C89 (complete). 2399ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2400 2401int 2402main (int argc, char **argv) 2403{ 2404 int ok = 0; 2405 ${ac_c_conftest_c89_main} 2406 return ok; 2407} 2408" 2409 2410as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2411as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2412as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2413as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2414as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2415as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2416as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2417as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2418as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2419as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2420 2421# Auxiliary files required by this configure script. 2422ac_aux_files="config.guess config.sub missing install-sh compile" 2423 2424# Locations in which to look for auxiliary files. 2425ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2426 2427# Search for a directory containing all of the required auxiliary files, 2428# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2429# If we don't find one directory that contains all the files we need, 2430# we report the set of missing files from the *first* directory in 2431# $ac_aux_dir_candidates and give up. 2432ac_missing_aux_files="" 2433ac_first_candidate=: 2434printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2436as_found=false 2437for as_dir in $ac_aux_dir_candidates 2438do 2439 IFS=$as_save_IFS 2440 case $as_dir in #((( 2441 '') as_dir=./ ;; 2442 */) ;; 2443 *) as_dir=$as_dir/ ;; 2444 esac 2445 as_found=: 2446 2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2448 ac_aux_dir_found=yes 2449 ac_install_sh= 2450 for ac_aux in $ac_aux_files 2451 do 2452 # As a special case, if "install-sh" is required, that requirement 2453 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2454 # and $ac_install_sh is set appropriately for whichever one is found. 2455 if test x"$ac_aux" = x"install-sh" 2456 then 2457 if test -f "${as_dir}install-sh"; then 2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2459 ac_install_sh="${as_dir}install-sh -c" 2460 elif test -f "${as_dir}install.sh"; then 2461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2462 ac_install_sh="${as_dir}install.sh -c" 2463 elif test -f "${as_dir}shtool"; then 2464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2465 ac_install_sh="${as_dir}shtool install -c" 2466 else 2467 ac_aux_dir_found=no 2468 if $ac_first_candidate; then 2469 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2470 else 2471 break 2472 fi 2473 fi 2474 else 2475 if test -f "${as_dir}${ac_aux}"; then 2476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2477 else 2478 ac_aux_dir_found=no 2479 if $ac_first_candidate; then 2480 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2481 else 2482 break 2483 fi 2484 fi 2485 fi 2486 done 2487 if test "$ac_aux_dir_found" = yes; then 2488 ac_aux_dir="$as_dir" 2489 break 2490 fi 2491 ac_first_candidate=false 2492 2493 as_found=false 2494done 2495IFS=$as_save_IFS 2496if $as_found 2497then : 2498 2499else case e in #( 2500 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2501esac 2502fi 2503 2504 2505# These three variables are undocumented and unsupported, 2506# and are intended to be withdrawn in a future Autoconf release. 2507# They can cause serious problems if a builder's source tree is in a directory 2508# whose full name contains unusual characters. 2509if test -f "${ac_aux_dir}config.guess"; then 2510 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2511fi 2512if test -f "${ac_aux_dir}config.sub"; then 2513 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2514fi 2515if test -f "$ac_aux_dir/configure"; then 2516 ac_configure="$SHELL ${ac_aux_dir}configure" 2517fi 2518 2519# Check that the precious variables saved in the cache have kept the same 2520# value. 2521ac_cache_corrupted=false 2522for ac_var in $ac_precious_vars; do 2523 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2524 eval ac_new_set=\$ac_env_${ac_var}_set 2525 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2526 eval ac_new_val=\$ac_env_${ac_var}_value 2527 case $ac_old_set,$ac_new_set in 2528 set,) 2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2530printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2531 ac_cache_corrupted=: ;; 2532 ,set) 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2534printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2535 ac_cache_corrupted=: ;; 2536 ,);; 2537 *) 2538 if test "x$ac_old_val" != "x$ac_new_val"; then 2539 # differences in whitespace do not lead to failure. 2540 ac_old_val_w=`echo x $ac_old_val` 2541 ac_new_val_w=`echo x $ac_new_val` 2542 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2544printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2545 ac_cache_corrupted=: 2546 else 2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2548printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2549 eval $ac_var=\$ac_old_val 2550 fi 2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2552printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2554printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2555 fi;; 2556 esac 2557 # Pass precious variables to config.status. 2558 if test "$ac_new_set" = set; then 2559 case $ac_new_val in 2560 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2561 *) ac_arg=$ac_var=$ac_new_val ;; 2562 esac 2563 case " $ac_configure_args " in 2564 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2565 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2566 esac 2567 fi 2568done 2569if $ac_cache_corrupted; then 2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2571printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2573printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2574 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2575 and start over" "$LINENO" 5 2576fi 2577## -------------------- ## 2578## Main body of script. ## 2579## -------------------- ## 2580 2581ac_ext=c 2582ac_cpp='$CPP $CPPFLAGS' 2583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2585ac_compiler_gnu=$ac_cv_c_compiler_gnu 2586 2587 2588 2589ac_config_headers="$ac_config_headers config.h" 2590 2591 2592# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2593# Must be called before any macros that run the compiler (like 2594# AC_PROG_LIBTOOL) to avoid autoconf errors. 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606# Expand $ac_aux_dir to an absolute path. 2607am_aux_dir=`cd "$ac_aux_dir" && pwd` 2608 2609ac_ext=c 2610ac_cpp='$CPP $CPPFLAGS' 2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2613ac_compiler_gnu=$ac_cv_c_compiler_gnu 2614if test -n "$ac_tool_prefix"; then 2615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2616set dummy ${ac_tool_prefix}gcc; ac_word=$2 2617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2618printf %s "checking for $ac_word... " >&6; } 2619if test ${ac_cv_prog_CC+y} 2620then : 2621 printf %s "(cached) " >&6 2622else case e in #( 2623 e) if test -n "$CC"; then 2624 ac_cv_prog_CC="$CC" # Let the user override the test. 2625else 2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2627for as_dir in $PATH 2628do 2629 IFS=$as_save_IFS 2630 case $as_dir in #((( 2631 '') as_dir=./ ;; 2632 */) ;; 2633 *) as_dir=$as_dir/ ;; 2634 esac 2635 for ac_exec_ext in '' $ac_executable_extensions; do 2636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2637 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2639 break 2 2640 fi 2641done 2642 done 2643IFS=$as_save_IFS 2644 2645fi ;; 2646esac 2647fi 2648CC=$ac_cv_prog_CC 2649if test -n "$CC"; then 2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2651printf "%s\n" "$CC" >&6; } 2652else 2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2654printf "%s\n" "no" >&6; } 2655fi 2656 2657 2658fi 2659if test -z "$ac_cv_prog_CC"; then 2660 ac_ct_CC=$CC 2661 # Extract the first word of "gcc", so it can be a program name with args. 2662set dummy gcc; ac_word=$2 2663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2664printf %s "checking for $ac_word... " >&6; } 2665if test ${ac_cv_prog_ac_ct_CC+y} 2666then : 2667 printf %s "(cached) " >&6 2668else case e in #( 2669 e) if test -n "$ac_ct_CC"; then 2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2671else 2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673for as_dir in $PATH 2674do 2675 IFS=$as_save_IFS 2676 case $as_dir in #((( 2677 '') as_dir=./ ;; 2678 */) ;; 2679 *) as_dir=$as_dir/ ;; 2680 esac 2681 for ac_exec_ext in '' $ac_executable_extensions; do 2682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2683 ac_cv_prog_ac_ct_CC="gcc" 2684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2685 break 2 2686 fi 2687done 2688 done 2689IFS=$as_save_IFS 2690 2691fi ;; 2692esac 2693fi 2694ac_ct_CC=$ac_cv_prog_ac_ct_CC 2695if test -n "$ac_ct_CC"; then 2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2697printf "%s\n" "$ac_ct_CC" >&6; } 2698else 2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2700printf "%s\n" "no" >&6; } 2701fi 2702 2703 if test "x$ac_ct_CC" = x; then 2704 CC="" 2705 else 2706 case $cross_compiling:$ac_tool_warned in 2707yes:) 2708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2709printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2710ac_tool_warned=yes ;; 2711esac 2712 CC=$ac_ct_CC 2713 fi 2714else 2715 CC="$ac_cv_prog_CC" 2716fi 2717 2718if test -z "$CC"; then 2719 if test -n "$ac_tool_prefix"; then 2720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2721set dummy ${ac_tool_prefix}cc; ac_word=$2 2722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2723printf %s "checking for $ac_word... " >&6; } 2724if test ${ac_cv_prog_CC+y} 2725then : 2726 printf %s "(cached) " >&6 2727else case e in #( 2728 e) if test -n "$CC"; then 2729 ac_cv_prog_CC="$CC" # Let the user override the test. 2730else 2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 case $as_dir in #((( 2736 '') as_dir=./ ;; 2737 */) ;; 2738 *) as_dir=$as_dir/ ;; 2739 esac 2740 for ac_exec_ext in '' $ac_executable_extensions; do 2741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2742 ac_cv_prog_CC="${ac_tool_prefix}cc" 2743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2744 break 2 2745 fi 2746done 2747 done 2748IFS=$as_save_IFS 2749 2750fi ;; 2751esac 2752fi 2753CC=$ac_cv_prog_CC 2754if test -n "$CC"; then 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2756printf "%s\n" "$CC" >&6; } 2757else 2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2759printf "%s\n" "no" >&6; } 2760fi 2761 2762 2763 fi 2764fi 2765if test -z "$CC"; then 2766 # Extract the first word of "cc", so it can be a program name with args. 2767set dummy cc; ac_word=$2 2768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2769printf %s "checking for $ac_word... " >&6; } 2770if test ${ac_cv_prog_CC+y} 2771then : 2772 printf %s "(cached) " >&6 2773else case e in #( 2774 e) if test -n "$CC"; then 2775 ac_cv_prog_CC="$CC" # Let the user override the test. 2776else 2777 ac_prog_rejected=no 2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2779for as_dir in $PATH 2780do 2781 IFS=$as_save_IFS 2782 case $as_dir in #((( 2783 '') as_dir=./ ;; 2784 */) ;; 2785 *) as_dir=$as_dir/ ;; 2786 esac 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2789 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2790 ac_prog_rejected=yes 2791 continue 2792 fi 2793 ac_cv_prog_CC="cc" 2794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2795 break 2 2796 fi 2797done 2798 done 2799IFS=$as_save_IFS 2800 2801if test $ac_prog_rejected = yes; then 2802 # We found a bogon in the path, so make sure we never use it. 2803 set dummy $ac_cv_prog_CC 2804 shift 2805 if test $# != 0; then 2806 # We chose a different compiler from the bogus one. 2807 # However, it has the same basename, so the bogon will be chosen 2808 # first if we set CC to just the basename; use the full file name. 2809 shift 2810 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2811 fi 2812fi 2813fi ;; 2814esac 2815fi 2816CC=$ac_cv_prog_CC 2817if test -n "$CC"; then 2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2819printf "%s\n" "$CC" >&6; } 2820else 2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2822printf "%s\n" "no" >&6; } 2823fi 2824 2825 2826fi 2827if test -z "$CC"; then 2828 if test -n "$ac_tool_prefix"; then 2829 for ac_prog in cl.exe 2830 do 2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2832set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2834printf %s "checking for $ac_word... " >&6; } 2835if test ${ac_cv_prog_CC+y} 2836then : 2837 printf %s "(cached) " >&6 2838else case e in #( 2839 e) if test -n "$CC"; then 2840 ac_cv_prog_CC="$CC" # Let the user override the test. 2841else 2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843for as_dir in $PATH 2844do 2845 IFS=$as_save_IFS 2846 case $as_dir in #((( 2847 '') as_dir=./ ;; 2848 */) ;; 2849 *) as_dir=$as_dir/ ;; 2850 esac 2851 for ac_exec_ext in '' $ac_executable_extensions; do 2852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2855 break 2 2856 fi 2857done 2858 done 2859IFS=$as_save_IFS 2860 2861fi ;; 2862esac 2863fi 2864CC=$ac_cv_prog_CC 2865if test -n "$CC"; then 2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2867printf "%s\n" "$CC" >&6; } 2868else 2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2870printf "%s\n" "no" >&6; } 2871fi 2872 2873 2874 test -n "$CC" && break 2875 done 2876fi 2877if test -z "$CC"; then 2878 ac_ct_CC=$CC 2879 for ac_prog in cl.exe 2880do 2881 # Extract the first word of "$ac_prog", so it can be a program name with args. 2882set dummy $ac_prog; ac_word=$2 2883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884printf %s "checking for $ac_word... " >&6; } 2885if test ${ac_cv_prog_ac_ct_CC+y} 2886then : 2887 printf %s "(cached) " >&6 2888else case e in #( 2889 e) if test -n "$ac_ct_CC"; then 2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2891else 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 case $as_dir in #((( 2897 '') as_dir=./ ;; 2898 */) ;; 2899 *) as_dir=$as_dir/ ;; 2900 esac 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_ac_ct_CC="$ac_prog" 2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi ;; 2912esac 2913fi 2914ac_ct_CC=$ac_cv_prog_ac_ct_CC 2915if test -n "$ac_ct_CC"; then 2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2917printf "%s\n" "$ac_ct_CC" >&6; } 2918else 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2920printf "%s\n" "no" >&6; } 2921fi 2922 2923 2924 test -n "$ac_ct_CC" && break 2925done 2926 2927 if test "x$ac_ct_CC" = x; then 2928 CC="" 2929 else 2930 case $cross_compiling:$ac_tool_warned in 2931yes:) 2932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2933printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2934ac_tool_warned=yes ;; 2935esac 2936 CC=$ac_ct_CC 2937 fi 2938fi 2939 2940fi 2941if test -z "$CC"; then 2942 if test -n "$ac_tool_prefix"; then 2943 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2944set dummy ${ac_tool_prefix}clang; ac_word=$2 2945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2946printf %s "checking for $ac_word... " >&6; } 2947if test ${ac_cv_prog_CC+y} 2948then : 2949 printf %s "(cached) " >&6 2950else case e in #( 2951 e) if test -n "$CC"; then 2952 ac_cv_prog_CC="$CC" # Let the user override the test. 2953else 2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2955for as_dir in $PATH 2956do 2957 IFS=$as_save_IFS 2958 case $as_dir in #((( 2959 '') as_dir=./ ;; 2960 */) ;; 2961 *) as_dir=$as_dir/ ;; 2962 esac 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2965 ac_cv_prog_CC="${ac_tool_prefix}clang" 2966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2967 break 2 2968 fi 2969done 2970 done 2971IFS=$as_save_IFS 2972 2973fi ;; 2974esac 2975fi 2976CC=$ac_cv_prog_CC 2977if test -n "$CC"; then 2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2979printf "%s\n" "$CC" >&6; } 2980else 2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2982printf "%s\n" "no" >&6; } 2983fi 2984 2985 2986fi 2987if test -z "$ac_cv_prog_CC"; then 2988 ac_ct_CC=$CC 2989 # Extract the first word of "clang", so it can be a program name with args. 2990set dummy clang; ac_word=$2 2991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2992printf %s "checking for $ac_word... " >&6; } 2993if test ${ac_cv_prog_ac_ct_CC+y} 2994then : 2995 printf %s "(cached) " >&6 2996else case e in #( 2997 e) if test -n "$ac_ct_CC"; then 2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2999else 3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH 3002do 3003 IFS=$as_save_IFS 3004 case $as_dir in #((( 3005 '') as_dir=./ ;; 3006 */) ;; 3007 *) as_dir=$as_dir/ ;; 3008 esac 3009 for ac_exec_ext in '' $ac_executable_extensions; do 3010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3011 ac_cv_prog_ac_ct_CC="clang" 3012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016 done 3017IFS=$as_save_IFS 3018 3019fi ;; 3020esac 3021fi 3022ac_ct_CC=$ac_cv_prog_ac_ct_CC 3023if test -n "$ac_ct_CC"; then 3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3025printf "%s\n" "$ac_ct_CC" >&6; } 3026else 3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028printf "%s\n" "no" >&6; } 3029fi 3030 3031 if test "x$ac_ct_CC" = x; then 3032 CC="" 3033 else 3034 case $cross_compiling:$ac_tool_warned in 3035yes:) 3036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3037printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3038ac_tool_warned=yes ;; 3039esac 3040 CC=$ac_ct_CC 3041 fi 3042else 3043 CC="$ac_cv_prog_CC" 3044fi 3045 3046fi 3047 3048 3049test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3050printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3051as_fn_error $? "no acceptable C compiler found in \$PATH 3052See 'config.log' for more details" "$LINENO" 5; } 3053 3054# Provide some information about the compiler. 3055printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3056set X $ac_compile 3057ac_compiler=$2 3058for ac_option in --version -v -V -qversion -version; do 3059 { { ac_try="$ac_compiler $ac_option >&5" 3060case "(($ac_try" in 3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3062 *) ac_try_echo=$ac_try;; 3063esac 3064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3065printf "%s\n" "$ac_try_echo"; } >&5 3066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3067 ac_status=$? 3068 if test -s conftest.err; then 3069 sed '10a\ 3070... rest of stderr output deleted ... 3071 10q' conftest.err >conftest.er1 3072 cat conftest.er1 >&5 3073 fi 3074 rm -f conftest.er1 conftest.err 3075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3076 test $ac_status = 0; } 3077done 3078 3079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3080/* end confdefs.h. */ 3081 3082int 3083main (void) 3084{ 3085 3086 ; 3087 return 0; 3088} 3089_ACEOF 3090ac_clean_files_save=$ac_clean_files 3091ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3092# Try to create an executable without -o first, disregard a.out. 3093# It will help us diagnose broken compilers, and finding out an intuition 3094# of exeext. 3095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3096printf %s "checking whether the C compiler works... " >&6; } 3097ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3098 3099# The possible output files: 3100ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3101 3102ac_rmfiles= 3103for ac_file in $ac_files 3104do 3105 case $ac_file in 3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3107 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3108 esac 3109done 3110rm -f $ac_rmfiles 3111 3112if { { ac_try="$ac_link_default" 3113case "(($ac_try" in 3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3115 *) ac_try_echo=$ac_try;; 3116esac 3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3118printf "%s\n" "$ac_try_echo"; } >&5 3119 (eval "$ac_link_default") 2>&5 3120 ac_status=$? 3121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3122 test $ac_status = 0; } 3123then : 3124 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3125# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3126# in a Makefile. We should not override ac_cv_exeext if it was cached, 3127# so that the user can short-circuit this test for compilers unknown to 3128# Autoconf. 3129for ac_file in $ac_files '' 3130do 3131 test -f "$ac_file" || continue 3132 case $ac_file in 3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3134 ;; 3135 [ab].out ) 3136 # We found the default executable, but exeext='' is most 3137 # certainly right. 3138 break;; 3139 *.* ) 3140 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3141 then :; else 3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3143 fi 3144 # We set ac_cv_exeext here because the later test for it is not 3145 # safe: cross compilers may not add the suffix if given an '-o' 3146 # argument, so we may need to know it at that point already. 3147 # Even if this section looks crufty: it has the advantage of 3148 # actually working. 3149 break;; 3150 * ) 3151 break;; 3152 esac 3153done 3154test "$ac_cv_exeext" = no && ac_cv_exeext= 3155 3156else case e in #( 3157 e) ac_file='' ;; 3158esac 3159fi 3160if test -z "$ac_file" 3161then : 3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3163printf "%s\n" "no" >&6; } 3164printf "%s\n" "$as_me: failed program was:" >&5 3165sed 's/^/| /' conftest.$ac_ext >&5 3166 3167{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3168printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3169as_fn_error 77 "C compiler cannot create executables 3170See 'config.log' for more details" "$LINENO" 5; } 3171else case e in #( 3172 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3173printf "%s\n" "yes" >&6; } ;; 3174esac 3175fi 3176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3177printf %s "checking for C compiler default output file name... " >&6; } 3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3179printf "%s\n" "$ac_file" >&6; } 3180ac_exeext=$ac_cv_exeext 3181 3182rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3183ac_clean_files=$ac_clean_files_save 3184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3185printf %s "checking for suffix of executables... " >&6; } 3186if { { ac_try="$ac_link" 3187case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190esac 3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3192printf "%s\n" "$ac_try_echo"; } >&5 3193 (eval "$ac_link") 2>&5 3194 ac_status=$? 3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3196 test $ac_status = 0; } 3197then : 3198 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3199# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3200# work properly (i.e., refer to 'conftest.exe'), while it won't with 3201# 'rm'. 3202for ac_file in conftest.exe conftest conftest.*; do 3203 test -f "$ac_file" || continue 3204 case $ac_file in 3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3207 break;; 3208 * ) break;; 3209 esac 3210done 3211else case e in #( 3212 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3213printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3214as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3215See 'config.log' for more details" "$LINENO" 5; } ;; 3216esac 3217fi 3218rm -f conftest conftest$ac_cv_exeext 3219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3220printf "%s\n" "$ac_cv_exeext" >&6; } 3221 3222rm -f conftest.$ac_ext 3223EXEEXT=$ac_cv_exeext 3224ac_exeext=$EXEEXT 3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3226/* end confdefs.h. */ 3227#include <stdio.h> 3228int 3229main (void) 3230{ 3231FILE *f = fopen ("conftest.out", "w"); 3232 if (!f) 3233 return 1; 3234 return ferror (f) || fclose (f) != 0; 3235 3236 ; 3237 return 0; 3238} 3239_ACEOF 3240ac_clean_files="$ac_clean_files conftest.out" 3241# Check that the compiler produces executables we can run. If not, either 3242# the compiler is broken, or we cross compile. 3243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3244printf %s "checking whether we are cross compiling... " >&6; } 3245if test "$cross_compiling" != yes; then 3246 { { ac_try="$ac_link" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3252printf "%s\n" "$ac_try_echo"; } >&5 3253 (eval "$ac_link") 2>&5 3254 ac_status=$? 3255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3256 test $ac_status = 0; } 3257 if { ac_try='./conftest$ac_cv_exeext' 3258 { { case "(($ac_try" in 3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3260 *) ac_try_echo=$ac_try;; 3261esac 3262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3263printf "%s\n" "$ac_try_echo"; } >&5 3264 (eval "$ac_try") 2>&5 3265 ac_status=$? 3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3267 test $ac_status = 0; }; }; then 3268 cross_compiling=no 3269 else 3270 if test "$cross_compiling" = maybe; then 3271 cross_compiling=yes 3272 else 3273 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3274printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3275as_fn_error 77 "cannot run C compiled programs. 3276If you meant to cross compile, use '--host'. 3277See 'config.log' for more details" "$LINENO" 5; } 3278 fi 3279 fi 3280fi 3281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3282printf "%s\n" "$cross_compiling" >&6; } 3283 3284rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3285 conftest.o conftest.obj conftest.out 3286ac_clean_files=$ac_clean_files_save 3287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3288printf %s "checking for suffix of object files... " >&6; } 3289if test ${ac_cv_objext+y} 3290then : 3291 printf %s "(cached) " >&6 3292else case e in #( 3293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3294/* end confdefs.h. */ 3295 3296int 3297main (void) 3298{ 3299 3300 ; 3301 return 0; 3302} 3303_ACEOF 3304rm -f conftest.o conftest.obj 3305if { { ac_try="$ac_compile" 3306case "(($ac_try" in 3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3308 *) ac_try_echo=$ac_try;; 3309esac 3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3311printf "%s\n" "$ac_try_echo"; } >&5 3312 (eval "$ac_compile") 2>&5 3313 ac_status=$? 3314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3315 test $ac_status = 0; } 3316then : 3317 for ac_file in conftest.o conftest.obj conftest.*; do 3318 test -f "$ac_file" || continue; 3319 case $ac_file in 3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3322 break;; 3323 esac 3324done 3325else case e in #( 3326 e) printf "%s\n" "$as_me: failed program was:" >&5 3327sed 's/^/| /' conftest.$ac_ext >&5 3328 3329{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3330printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3331as_fn_error $? "cannot compute suffix of object files: cannot compile 3332See 'config.log' for more details" "$LINENO" 5; } ;; 3333esac 3334fi 3335rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3336esac 3337fi 3338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3339printf "%s\n" "$ac_cv_objext" >&6; } 3340OBJEXT=$ac_cv_objext 3341ac_objext=$OBJEXT 3342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3343printf %s "checking whether the compiler supports GNU C... " >&6; } 3344if test ${ac_cv_c_compiler_gnu+y} 3345then : 3346 printf %s "(cached) " >&6 3347else case e in #( 3348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3349/* end confdefs.h. */ 3350 3351int 3352main (void) 3353{ 3354#ifndef __GNUC__ 3355 choke me 3356#endif 3357 3358 ; 3359 return 0; 3360} 3361_ACEOF 3362if ac_fn_c_try_compile "$LINENO" 3363then : 3364 ac_compiler_gnu=yes 3365else case e in #( 3366 e) ac_compiler_gnu=no ;; 3367esac 3368fi 3369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3370ac_cv_c_compiler_gnu=$ac_compiler_gnu 3371 ;; 3372esac 3373fi 3374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3375printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3376ac_compiler_gnu=$ac_cv_c_compiler_gnu 3377 3378if test $ac_compiler_gnu = yes; then 3379 GCC=yes 3380else 3381 GCC= 3382fi 3383ac_test_CFLAGS=${CFLAGS+y} 3384ac_save_CFLAGS=$CFLAGS 3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3386printf %s "checking whether $CC accepts -g... " >&6; } 3387if test ${ac_cv_prog_cc_g+y} 3388then : 3389 printf %s "(cached) " >&6 3390else case e in #( 3391 e) ac_save_c_werror_flag=$ac_c_werror_flag 3392 ac_c_werror_flag=yes 3393 ac_cv_prog_cc_g=no 3394 CFLAGS="-g" 3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3396/* end confdefs.h. */ 3397 3398int 3399main (void) 3400{ 3401 3402 ; 3403 return 0; 3404} 3405_ACEOF 3406if ac_fn_c_try_compile "$LINENO" 3407then : 3408 ac_cv_prog_cc_g=yes 3409else case e in #( 3410 e) CFLAGS="" 3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3412/* end confdefs.h. */ 3413 3414int 3415main (void) 3416{ 3417 3418 ; 3419 return 0; 3420} 3421_ACEOF 3422if ac_fn_c_try_compile "$LINENO" 3423then : 3424 3425else case e in #( 3426 e) ac_c_werror_flag=$ac_save_c_werror_flag 3427 CFLAGS="-g" 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430 3431int 3432main (void) 3433{ 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439if ac_fn_c_try_compile "$LINENO" 3440then : 3441 ac_cv_prog_cc_g=yes 3442fi 3443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3444esac 3445fi 3446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3447esac 3448fi 3449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3450 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3451esac 3452fi 3453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3454printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3455if test $ac_test_CFLAGS; then 3456 CFLAGS=$ac_save_CFLAGS 3457elif test $ac_cv_prog_cc_g = yes; then 3458 if test "$GCC" = yes; then 3459 CFLAGS="-g -O2" 3460 else 3461 CFLAGS="-g" 3462 fi 3463else 3464 if test "$GCC" = yes; then 3465 CFLAGS="-O2" 3466 else 3467 CFLAGS= 3468 fi 3469fi 3470ac_prog_cc_stdc=no 3471if test x$ac_prog_cc_stdc = xno 3472then : 3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3474printf %s "checking for $CC option to enable C11 features... " >&6; } 3475if test ${ac_cv_prog_cc_c11+y} 3476then : 3477 printf %s "(cached) " >&6 3478else case e in #( 3479 e) ac_cv_prog_cc_c11=no 3480ac_save_CC=$CC 3481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3482/* end confdefs.h. */ 3483$ac_c_conftest_c11_program 3484_ACEOF 3485for ac_arg in '' -std=gnu11 3486do 3487 CC="$ac_save_CC $ac_arg" 3488 if ac_fn_c_try_compile "$LINENO" 3489then : 3490 ac_cv_prog_cc_c11=$ac_arg 3491fi 3492rm -f core conftest.err conftest.$ac_objext conftest.beam 3493 test "x$ac_cv_prog_cc_c11" != "xno" && break 3494done 3495rm -f conftest.$ac_ext 3496CC=$ac_save_CC ;; 3497esac 3498fi 3499 3500if test "x$ac_cv_prog_cc_c11" = xno 3501then : 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3503printf "%s\n" "unsupported" >&6; } 3504else case e in #( 3505 e) if test "x$ac_cv_prog_cc_c11" = x 3506then : 3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3508printf "%s\n" "none needed" >&6; } 3509else case e in #( 3510 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3511printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3512 CC="$CC $ac_cv_prog_cc_c11" ;; 3513esac 3514fi 3515 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3516 ac_prog_cc_stdc=c11 ;; 3517esac 3518fi 3519fi 3520if test x$ac_prog_cc_stdc = xno 3521then : 3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3523printf %s "checking for $CC option to enable C99 features... " >&6; } 3524if test ${ac_cv_prog_cc_c99+y} 3525then : 3526 printf %s "(cached) " >&6 3527else case e in #( 3528 e) ac_cv_prog_cc_c99=no 3529ac_save_CC=$CC 3530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3531/* end confdefs.h. */ 3532$ac_c_conftest_c99_program 3533_ACEOF 3534for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3535do 3536 CC="$ac_save_CC $ac_arg" 3537 if ac_fn_c_try_compile "$LINENO" 3538then : 3539 ac_cv_prog_cc_c99=$ac_arg 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.beam 3542 test "x$ac_cv_prog_cc_c99" != "xno" && break 3543done 3544rm -f conftest.$ac_ext 3545CC=$ac_save_CC ;; 3546esac 3547fi 3548 3549if test "x$ac_cv_prog_cc_c99" = xno 3550then : 3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3552printf "%s\n" "unsupported" >&6; } 3553else case e in #( 3554 e) if test "x$ac_cv_prog_cc_c99" = x 3555then : 3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3557printf "%s\n" "none needed" >&6; } 3558else case e in #( 3559 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3560printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3561 CC="$CC $ac_cv_prog_cc_c99" ;; 3562esac 3563fi 3564 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3565 ac_prog_cc_stdc=c99 ;; 3566esac 3567fi 3568fi 3569if test x$ac_prog_cc_stdc = xno 3570then : 3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3572printf %s "checking for $CC option to enable C89 features... " >&6; } 3573if test ${ac_cv_prog_cc_c89+y} 3574then : 3575 printf %s "(cached) " >&6 3576else case e in #( 3577 e) ac_cv_prog_cc_c89=no 3578ac_save_CC=$CC 3579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3580/* end confdefs.h. */ 3581$ac_c_conftest_c89_program 3582_ACEOF 3583for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3584do 3585 CC="$ac_save_CC $ac_arg" 3586 if ac_fn_c_try_compile "$LINENO" 3587then : 3588 ac_cv_prog_cc_c89=$ac_arg 3589fi 3590rm -f core conftest.err conftest.$ac_objext conftest.beam 3591 test "x$ac_cv_prog_cc_c89" != "xno" && break 3592done 3593rm -f conftest.$ac_ext 3594CC=$ac_save_CC ;; 3595esac 3596fi 3597 3598if test "x$ac_cv_prog_cc_c89" = xno 3599then : 3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3601printf "%s\n" "unsupported" >&6; } 3602else case e in #( 3603 e) if test "x$ac_cv_prog_cc_c89" = x 3604then : 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3606printf "%s\n" "none needed" >&6; } 3607else case e in #( 3608 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3609printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3610 CC="$CC $ac_cv_prog_cc_c89" ;; 3611esac 3612fi 3613 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3614 ac_prog_cc_stdc=c89 ;; 3615esac 3616fi 3617fi 3618 3619ac_ext=c 3620ac_cpp='$CPP $CPPFLAGS' 3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3624 3625 3626 ac_ext=c 3627ac_cpp='$CPP $CPPFLAGS' 3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3630ac_compiler_gnu=$ac_cv_c_compiler_gnu 3631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3632printf %s "checking whether $CC understands -c and -o together... " >&6; } 3633if test ${am_cv_prog_cc_c_o+y} 3634then : 3635 printf %s "(cached) " >&6 3636else case e in #( 3637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638/* end confdefs.h. */ 3639 3640int 3641main (void) 3642{ 3643 3644 ; 3645 return 0; 3646} 3647_ACEOF 3648 # Make sure it works both with $CC and with simple cc. 3649 # Following AC_PROG_CC_C_O, we do the test twice because some 3650 # compilers refuse to overwrite an existing .o file with -o, 3651 # though they will create one. 3652 am_cv_prog_cc_c_o=yes 3653 for am_i in 1 2; do 3654 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3655 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3656 ac_status=$? 3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3658 (exit $ac_status); } \ 3659 && test -f conftest2.$ac_objext; then 3660 : OK 3661 else 3662 am_cv_prog_cc_c_o=no 3663 break 3664 fi 3665 done 3666 rm -f core conftest* 3667 unset am_i ;; 3668esac 3669fi 3670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3671printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3672if test "$am_cv_prog_cc_c_o" != yes; then 3673 # Losing compiler, so override with the script. 3674 # FIXME: It is wrong to rewrite CC. 3675 # But if we don't then we get into trouble of one sort or another. 3676 # A longer-term fix would be to have automake use am__CC in this case, 3677 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3678 CC="$am_aux_dir/compile $CC" 3679fi 3680ac_ext=c 3681ac_cpp='$CPP $CPPFLAGS' 3682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3684ac_compiler_gnu=$ac_cv_c_compiler_gnu 3685 3686 3687 3688ac_header= ac_cache= 3689for ac_item in $ac_header_c_list 3690do 3691 if test $ac_cache; then 3692 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3693 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3694 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3695 fi 3696 ac_header= ac_cache= 3697 elif test $ac_header; then 3698 ac_cache=$ac_item 3699 else 3700 ac_header=$ac_item 3701 fi 3702done 3703 3704 3705 3706 3707 3708 3709 3710 3711if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3712then : 3713 3714printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3715 3716fi 3717 3718 3719 3720 3721 3722 3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3724printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3725if test ${ac_cv_safe_to_define___extensions__+y} 3726then : 3727 printf %s "(cached) " >&6 3728else case e in #( 3729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730/* end confdefs.h. */ 3731 3732# define __EXTENSIONS__ 1 3733 $ac_includes_default 3734int 3735main (void) 3736{ 3737 3738 ; 3739 return 0; 3740} 3741_ACEOF 3742if ac_fn_c_try_compile "$LINENO" 3743then : 3744 ac_cv_safe_to_define___extensions__=yes 3745else case e in #( 3746 e) ac_cv_safe_to_define___extensions__=no ;; 3747esac 3748fi 3749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3750esac 3751fi 3752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3753printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3754 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3756printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3757if test ${ac_cv_should_define__xopen_source+y} 3758then : 3759 printf %s "(cached) " >&6 3760else case e in #( 3761 e) ac_cv_should_define__xopen_source=no 3762 if test $ac_cv_header_wchar_h = yes 3763then : 3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3765/* end confdefs.h. */ 3766 3767 #include <wchar.h> 3768 mbstate_t x; 3769int 3770main (void) 3771{ 3772 3773 ; 3774 return 0; 3775} 3776_ACEOF 3777if ac_fn_c_try_compile "$LINENO" 3778then : 3779 3780else case e in #( 3781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783 3784 #define _XOPEN_SOURCE 500 3785 #include <wchar.h> 3786 mbstate_t x; 3787int 3788main (void) 3789{ 3790 3791 ; 3792 return 0; 3793} 3794_ACEOF 3795if ac_fn_c_try_compile "$LINENO" 3796then : 3797 ac_cv_should_define__xopen_source=yes 3798fi 3799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3800esac 3801fi 3802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3803fi ;; 3804esac 3805fi 3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3807printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3808 3809 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3810 3811 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3812 3813 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3814 3815 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3816 3817 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3818 3819 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3820 3821 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3822 3823 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3824 3825 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3826 3827 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3828 3829 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3830 3831 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3832 3833 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3834 3835 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3836 3837 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3838 3839 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3840 3841 if test $ac_cv_header_minix_config_h = yes 3842then : 3843 MINIX=yes 3844 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3845 3846 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3847 3848 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3849 3850else case e in #( 3851 e) MINIX= ;; 3852esac 3853fi 3854 if test $ac_cv_safe_to_define___extensions__ = yes 3855then : 3856 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3857 3858fi 3859 if test $ac_cv_should_define__xopen_source = yes 3860then : 3861 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3862 3863fi 3864 3865 3866# Initialize Automake 3867am__api_version='1.16' 3868 3869 3870 # Find a good install program. We prefer a C program (faster), 3871# so one script is as good as another. But avoid the broken or 3872# incompatible versions: 3873# SysV /etc/install, /usr/sbin/install 3874# SunOS /usr/etc/install 3875# IRIX /sbin/install 3876# AIX /bin/install 3877# AmigaOS /C/install, which installs bootblocks on floppy discs 3878# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3879# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3880# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3881# OS/2's system install, which has a completely different semantic 3882# ./install, which can be erroneously created by make from ./install.sh. 3883# Reject install programs that cannot install multiple files. 3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3885printf %s "checking for a BSD-compatible install... " >&6; } 3886if test -z "$INSTALL"; then 3887if test ${ac_cv_path_install+y} 3888then : 3889 printf %s "(cached) " >&6 3890else case e in #( 3891 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3892for as_dir in $PATH 3893do 3894 IFS=$as_save_IFS 3895 case $as_dir in #((( 3896 '') as_dir=./ ;; 3897 */) ;; 3898 *) as_dir=$as_dir/ ;; 3899 esac 3900 # Account for fact that we put trailing slashes in our PATH walk. 3901case $as_dir in #(( 3902 ./ | /[cC]/* | \ 3903 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3904 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3905 /usr/ucb/* ) ;; 3906 *) 3907 # OSF1 and SCO ODT 3.0 have their own names for install. 3908 # Don't use installbsd from OSF since it installs stuff as root 3909 # by default. 3910 for ac_prog in ginstall scoinst install; do 3911 for ac_exec_ext in '' $ac_executable_extensions; do 3912 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3913 if test $ac_prog = install && 3914 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3915 # AIX install. It has an incompatible calling convention. 3916 : 3917 elif test $ac_prog = install && 3918 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3919 # program-specific install script used by HP pwplus--don't use. 3920 : 3921 else 3922 rm -rf conftest.one conftest.two conftest.dir 3923 echo one > conftest.one 3924 echo two > conftest.two 3925 mkdir conftest.dir 3926 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3927 test -s conftest.one && test -s conftest.two && 3928 test -s conftest.dir/conftest.one && 3929 test -s conftest.dir/conftest.two 3930 then 3931 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3932 break 3 3933 fi 3934 fi 3935 fi 3936 done 3937 done 3938 ;; 3939esac 3940 3941 done 3942IFS=$as_save_IFS 3943 3944rm -rf conftest.one conftest.two conftest.dir 3945 ;; 3946esac 3947fi 3948 if test ${ac_cv_path_install+y}; then 3949 INSTALL=$ac_cv_path_install 3950 else 3951 # As a last resort, use the slow shell script. Don't cache a 3952 # value for INSTALL within a source directory, because that will 3953 # break other packages using the cache if that directory is 3954 # removed, or if the value is a relative name. 3955 INSTALL=$ac_install_sh 3956 fi 3957fi 3958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3959printf "%s\n" "$INSTALL" >&6; } 3960 3961# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3962# It thinks the first close brace ends the variable substitution. 3963test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3964 3965test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3966 3967test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3968 3969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3970printf %s "checking whether build environment is sane... " >&6; } 3971# Reject unsafe characters in $srcdir or the absolute working directory 3972# name. Accept space and tab only in the latter. 3973am_lf=' 3974' 3975case `pwd` in 3976 *[\\\"\#\$\&\'\`$am_lf]*) 3977 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3978esac 3979case $srcdir in 3980 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3981 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3982esac 3983 3984# Do 'set' in a subshell so we don't clobber the current shell's 3985# arguments. Must try -L first in case configure is actually a 3986# symlink; some systems play weird games with the mod time of symlinks 3987# (eg FreeBSD returns the mod time of the symlink's containing 3988# directory). 3989if ( 3990 am_has_slept=no 3991 for am_try in 1 2; do 3992 echo "timestamp, slept: $am_has_slept" > conftest.file 3993 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3994 if test "$*" = "X"; then 3995 # -L didn't work. 3996 set X `ls -t "$srcdir/configure" conftest.file` 3997 fi 3998 if test "$*" != "X $srcdir/configure conftest.file" \ 3999 && test "$*" != "X conftest.file $srcdir/configure"; then 4000 4001 # If neither matched, then we have a broken ls. This can happen 4002 # if, for instance, CONFIG_SHELL is bash and it inherits a 4003 # broken ls alias from the environment. This has actually 4004 # happened. Such a system could not be considered "sane". 4005 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4006 alias in your environment" "$LINENO" 5 4007 fi 4008 if test "$2" = conftest.file || test $am_try -eq 2; then 4009 break 4010 fi 4011 # Just in case. 4012 sleep 1 4013 am_has_slept=yes 4014 done 4015 test "$2" = conftest.file 4016 ) 4017then 4018 # Ok. 4019 : 4020else 4021 as_fn_error $? "newly created file is older than distributed files! 4022Check your system clock" "$LINENO" 5 4023fi 4024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4025printf "%s\n" "yes" >&6; } 4026# If we didn't sleep, we still need to ensure time stamps of config.status and 4027# generated files are strictly newer. 4028am_sleep_pid= 4029if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4030 ( sleep 1 ) & 4031 am_sleep_pid=$! 4032fi 4033 4034rm -f conftest.file 4035 4036test "$program_prefix" != NONE && 4037 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4038# Use a double $ so make ignores it. 4039test "$program_suffix" != NONE && 4040 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4041# Double any \ or $. 4042# By default was 's,x,x', remove it if useless. 4043ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4044program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4045 4046 4047 if test x"${MISSING+set}" != xset; then 4048 MISSING="\${SHELL} '$am_aux_dir/missing'" 4049fi 4050# Use eval to expand $SHELL 4051if eval "$MISSING --is-lightweight"; then 4052 am_missing_run="$MISSING " 4053else 4054 am_missing_run= 4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4056printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4057fi 4058 4059if test x"${install_sh+set}" != xset; then 4060 case $am_aux_dir in 4061 *\ * | *\ *) 4062 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4063 *) 4064 install_sh="\${SHELL} $am_aux_dir/install-sh" 4065 esac 4066fi 4067 4068# Installed binaries are usually stripped using 'strip' when the user 4069# run "make install-strip". However 'strip' might not be the right 4070# tool to use in cross-compilation environments, therefore Automake 4071# will honor the 'STRIP' environment variable to overrule this program. 4072if test "$cross_compiling" != no; then 4073 if test -n "$ac_tool_prefix"; then 4074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4075set dummy ${ac_tool_prefix}strip; ac_word=$2 4076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4077printf %s "checking for $ac_word... " >&6; } 4078if test ${ac_cv_prog_STRIP+y} 4079then : 4080 printf %s "(cached) " >&6 4081else case e in #( 4082 e) if test -n "$STRIP"; then 4083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4084else 4085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4086for as_dir in $PATH 4087do 4088 IFS=$as_save_IFS 4089 case $as_dir in #((( 4090 '') as_dir=./ ;; 4091 */) ;; 4092 *) as_dir=$as_dir/ ;; 4093 esac 4094 for ac_exec_ext in '' $ac_executable_extensions; do 4095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4096 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4098 break 2 4099 fi 4100done 4101 done 4102IFS=$as_save_IFS 4103 4104fi ;; 4105esac 4106fi 4107STRIP=$ac_cv_prog_STRIP 4108if test -n "$STRIP"; then 4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4110printf "%s\n" "$STRIP" >&6; } 4111else 4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4113printf "%s\n" "no" >&6; } 4114fi 4115 4116 4117fi 4118if test -z "$ac_cv_prog_STRIP"; then 4119 ac_ct_STRIP=$STRIP 4120 # Extract the first word of "strip", so it can be a program name with args. 4121set dummy strip; ac_word=$2 4122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4123printf %s "checking for $ac_word... " >&6; } 4124if test ${ac_cv_prog_ac_ct_STRIP+y} 4125then : 4126 printf %s "(cached) " >&6 4127else case e in #( 4128 e) if test -n "$ac_ct_STRIP"; then 4129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4130else 4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4132for as_dir in $PATH 4133do 4134 IFS=$as_save_IFS 4135 case $as_dir in #((( 4136 '') as_dir=./ ;; 4137 */) ;; 4138 *) as_dir=$as_dir/ ;; 4139 esac 4140 for ac_exec_ext in '' $ac_executable_extensions; do 4141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4142 ac_cv_prog_ac_ct_STRIP="strip" 4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4144 break 2 4145 fi 4146done 4147 done 4148IFS=$as_save_IFS 4149 4150fi ;; 4151esac 4152fi 4153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4154if test -n "$ac_ct_STRIP"; then 4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4156printf "%s\n" "$ac_ct_STRIP" >&6; } 4157else 4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4159printf "%s\n" "no" >&6; } 4160fi 4161 4162 if test "x$ac_ct_STRIP" = x; then 4163 STRIP=":" 4164 else 4165 case $cross_compiling:$ac_tool_warned in 4166yes:) 4167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4168printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4169ac_tool_warned=yes ;; 4170esac 4171 STRIP=$ac_ct_STRIP 4172 fi 4173else 4174 STRIP="$ac_cv_prog_STRIP" 4175fi 4176 4177fi 4178INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4179 4180 4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4182printf %s "checking for a race-free mkdir -p... " >&6; } 4183if test -z "$MKDIR_P"; then 4184 if test ${ac_cv_path_mkdir+y} 4185then : 4186 printf %s "(cached) " >&6 4187else case e in #( 4188 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4190do 4191 IFS=$as_save_IFS 4192 case $as_dir in #((( 4193 '') as_dir=./ ;; 4194 */) ;; 4195 *) as_dir=$as_dir/ ;; 4196 esac 4197 for ac_prog in mkdir gmkdir; do 4198 for ac_exec_ext in '' $ac_executable_extensions; do 4199 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4200 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4201 'mkdir ('*'coreutils) '* | \ 4202 *'BusyBox '* | \ 4203 'mkdir (fileutils) '4.1*) 4204 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4205 break 3;; 4206 esac 4207 done 4208 done 4209 done 4210IFS=$as_save_IFS 4211 ;; 4212esac 4213fi 4214 4215 test -d ./--version && rmdir ./--version 4216 if test ${ac_cv_path_mkdir+y}; then 4217 MKDIR_P="$ac_cv_path_mkdir -p" 4218 else 4219 # As a last resort, use plain mkdir -p, 4220 # in the hope it doesn't have the bugs of ancient mkdir. 4221 MKDIR_P='mkdir -p' 4222 fi 4223fi 4224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4225printf "%s\n" "$MKDIR_P" >&6; } 4226 4227for ac_prog in gawk mawk nawk awk 4228do 4229 # Extract the first word of "$ac_prog", so it can be a program name with args. 4230set dummy $ac_prog; ac_word=$2 4231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4232printf %s "checking for $ac_word... " >&6; } 4233if test ${ac_cv_prog_AWK+y} 4234then : 4235 printf %s "(cached) " >&6 4236else case e in #( 4237 e) if test -n "$AWK"; then 4238 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4239else 4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4241for as_dir in $PATH 4242do 4243 IFS=$as_save_IFS 4244 case $as_dir in #((( 4245 '') as_dir=./ ;; 4246 */) ;; 4247 *) as_dir=$as_dir/ ;; 4248 esac 4249 for ac_exec_ext in '' $ac_executable_extensions; do 4250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4251 ac_cv_prog_AWK="$ac_prog" 4252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4253 break 2 4254 fi 4255done 4256 done 4257IFS=$as_save_IFS 4258 4259fi ;; 4260esac 4261fi 4262AWK=$ac_cv_prog_AWK 4263if test -n "$AWK"; then 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4265printf "%s\n" "$AWK" >&6; } 4266else 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4268printf "%s\n" "no" >&6; } 4269fi 4270 4271 4272 test -n "$AWK" && break 4273done 4274 4275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4276printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4277set x ${MAKE-make} 4278ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4279if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4280then : 4281 printf %s "(cached) " >&6 4282else case e in #( 4283 e) cat >conftest.make <<\_ACEOF 4284SHELL = /bin/sh 4285all: 4286 @echo '@@@%%%=$(MAKE)=@@@%%%' 4287_ACEOF 4288# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4289case `${MAKE-make} -f conftest.make 2>/dev/null` in 4290 *@@@%%%=?*=@@@%%%*) 4291 eval ac_cv_prog_make_${ac_make}_set=yes;; 4292 *) 4293 eval ac_cv_prog_make_${ac_make}_set=no;; 4294esac 4295rm -f conftest.make ;; 4296esac 4297fi 4298if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4300printf "%s\n" "yes" >&6; } 4301 SET_MAKE= 4302else 4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4304printf "%s\n" "no" >&6; } 4305 SET_MAKE="MAKE=${MAKE-make}" 4306fi 4307 4308rm -rf .tst 2>/dev/null 4309mkdir .tst 2>/dev/null 4310if test -d .tst; then 4311 am__leading_dot=. 4312else 4313 am__leading_dot=_ 4314fi 4315rmdir .tst 2>/dev/null 4316 4317DEPDIR="${am__leading_dot}deps" 4318 4319ac_config_commands="$ac_config_commands depfiles" 4320 4321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4322printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4323cat > confinc.mk << 'END' 4324am__doit: 4325 @echo this is the am__doit target >confinc.out 4326.PHONY: am__doit 4327END 4328am__include="#" 4329am__quote= 4330# BSD make does it like this. 4331echo '.include "confinc.mk" # ignored' > confmf.BSD 4332# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4333echo 'include confinc.mk # ignored' > confmf.GNU 4334_am_result=no 4335for s in GNU BSD; do 4336 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4337 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4338 ac_status=$? 4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4340 (exit $ac_status); } 4341 case $?:`cat confinc.out 2>/dev/null` in #( 4342 '0:this is the am__doit target') : 4343 case $s in #( 4344 BSD) : 4345 am__include='.include' am__quote='"' ;; #( 4346 *) : 4347 am__include='include' am__quote='' ;; 4348esac ;; #( 4349 *) : 4350 ;; 4351esac 4352 if test "$am__include" != "#"; then 4353 _am_result="yes ($s style)" 4354 break 4355 fi 4356done 4357rm -f confinc.* confmf.* 4358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4359printf "%s\n" "${_am_result}" >&6; } 4360 4361# Check whether --enable-dependency-tracking was given. 4362if test ${enable_dependency_tracking+y} 4363then : 4364 enableval=$enable_dependency_tracking; 4365fi 4366 4367if test "x$enable_dependency_tracking" != xno; then 4368 am_depcomp="$ac_aux_dir/depcomp" 4369 AMDEPBACKSLASH='\' 4370 am__nodep='_no' 4371fi 4372 if test "x$enable_dependency_tracking" != xno; then 4373 AMDEP_TRUE= 4374 AMDEP_FALSE='#' 4375else 4376 AMDEP_TRUE='#' 4377 AMDEP_FALSE= 4378fi 4379 4380 4381# Check whether --enable-silent-rules was given. 4382if test ${enable_silent_rules+y} 4383then : 4384 enableval=$enable_silent_rules; 4385fi 4386 4387case $enable_silent_rules in # ((( 4388 yes) AM_DEFAULT_VERBOSITY=0;; 4389 no) AM_DEFAULT_VERBOSITY=1;; 4390 *) AM_DEFAULT_VERBOSITY=1;; 4391esac 4392am_make=${MAKE-make} 4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4394printf %s "checking whether $am_make supports nested variables... " >&6; } 4395if test ${am_cv_make_support_nested_variables+y} 4396then : 4397 printf %s "(cached) " >&6 4398else case e in #( 4399 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4400BAR0=false 4401BAR1=true 4402V=1 4403am__doit: 4404 @$(TRUE) 4405.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4406 am_cv_make_support_nested_variables=yes 4407else 4408 am_cv_make_support_nested_variables=no 4409fi ;; 4410esac 4411fi 4412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4413printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4414if test $am_cv_make_support_nested_variables = yes; then 4415 AM_V='$(V)' 4416 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4417else 4418 AM_V=$AM_DEFAULT_VERBOSITY 4419 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4420fi 4421AM_BACKSLASH='\' 4422 4423if test "`cd $srcdir && pwd`" != "`pwd`"; then 4424 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4425 # is not polluted with repeated "-I." 4426 am__isrc=' -I$(srcdir)' 4427 # test to see if srcdir already configured 4428 if test -f $srcdir/config.status; then 4429 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4430 fi 4431fi 4432 4433# test whether we have cygpath 4434if test -z "$CYGPATH_W"; then 4435 if (cygpath --version) >/dev/null 2>/dev/null; then 4436 CYGPATH_W='cygpath -w' 4437 else 4438 CYGPATH_W=echo 4439 fi 4440fi 4441 4442 4443# Define the identity of the package. 4444 PACKAGE='iceauth' 4445 VERSION='1.0.10' 4446 4447 4448printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4449 4450 4451printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4452 4453# Some tools Automake needs. 4454 4455ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4456 4457 4458AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4459 4460 4461AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4462 4463 4464AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4465 4466 4467MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4468 4469# For better backward compatibility. To be removed once Automake 1.9.x 4470# dies out for good. For more background, see: 4471# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4472# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4473mkdir_p='$(MKDIR_P)' 4474 4475# We need awk for the "check" target (and possibly the TAP driver). The 4476# system "awk" is bad on some platforms. 4477# Always define AMTAR for backward compatibility. Yes, it's still used 4478# in the wild :-( We should find a proper way to deprecate it ... 4479AMTAR='$${TAR-tar}' 4480 4481 4482# We'll loop over all known methods to create a tar archive until one works. 4483_am_tools='gnutar pax cpio none' 4484 4485am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4486 4487 4488 4489 4490 4491depcc="$CC" am_compiler_list= 4492 4493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4494printf %s "checking dependency style of $depcc... " >&6; } 4495if test ${am_cv_CC_dependencies_compiler_type+y} 4496then : 4497 printf %s "(cached) " >&6 4498else case e in #( 4499 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4500 # We make a subdir and do the tests there. Otherwise we can end up 4501 # making bogus files that we don't know about and never remove. For 4502 # instance it was reported that on HP-UX the gcc test will end up 4503 # making a dummy file named 'D' -- because '-MD' means "put the output 4504 # in D". 4505 rm -rf conftest.dir 4506 mkdir conftest.dir 4507 # Copy depcomp to subdir because otherwise we won't find it if we're 4508 # using a relative directory. 4509 cp "$am_depcomp" conftest.dir 4510 cd conftest.dir 4511 # We will build objects and dependencies in a subdirectory because 4512 # it helps to detect inapplicable dependency modes. For instance 4513 # both Tru64's cc and ICC support -MD to output dependencies as a 4514 # side effect of compilation, but ICC will put the dependencies in 4515 # the current directory while Tru64 will put them in the object 4516 # directory. 4517 mkdir sub 4518 4519 am_cv_CC_dependencies_compiler_type=none 4520 if test "$am_compiler_list" = ""; then 4521 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4522 fi 4523 am__universal=false 4524 case " $depcc " in #( 4525 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4526 esac 4527 4528 for depmode in $am_compiler_list; do 4529 # Setup a source with many dependencies, because some compilers 4530 # like to wrap large dependency lists on column 80 (with \), and 4531 # we should not choose a depcomp mode which is confused by this. 4532 # 4533 # We need to recreate these files for each test, as the compiler may 4534 # overwrite some of them when testing with obscure command lines. 4535 # This happens at least with the AIX C compiler. 4536 : > sub/conftest.c 4537 for i in 1 2 3 4 5 6; do 4538 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4539 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4540 # Solaris 10 /bin/sh. 4541 echo '/* dummy */' > sub/conftst$i.h 4542 done 4543 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4544 4545 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4546 # mode. It turns out that the SunPro C++ compiler does not properly 4547 # handle '-M -o', and we need to detect this. Also, some Intel 4548 # versions had trouble with output in subdirs. 4549 am__obj=sub/conftest.${OBJEXT-o} 4550 am__minus_obj="-o $am__obj" 4551 case $depmode in 4552 gcc) 4553 # This depmode causes a compiler race in universal mode. 4554 test "$am__universal" = false || continue 4555 ;; 4556 nosideeffect) 4557 # After this tag, mechanisms are not by side-effect, so they'll 4558 # only be used when explicitly requested. 4559 if test "x$enable_dependency_tracking" = xyes; then 4560 continue 4561 else 4562 break 4563 fi 4564 ;; 4565 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4566 # This compiler won't grok '-c -o', but also, the minuso test has 4567 # not run yet. These depmodes are late enough in the game, and 4568 # so weak that their functioning should not be impacted. 4569 am__obj=conftest.${OBJEXT-o} 4570 am__minus_obj= 4571 ;; 4572 none) break ;; 4573 esac 4574 if depmode=$depmode \ 4575 source=sub/conftest.c object=$am__obj \ 4576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4577 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4578 >/dev/null 2>conftest.err && 4579 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4581 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4583 # icc doesn't choke on unknown options, it will just issue warnings 4584 # or remarks (even with -Werror). So we grep stderr for any message 4585 # that says an option was ignored or not supported. 4586 # When given -MP, icc 7.0 and 7.1 complain thusly: 4587 # icc: Command line warning: ignoring option '-M'; no argument required 4588 # The diagnosis changed in icc 8.0: 4589 # icc: Command line remark: option '-MP' not supported 4590 if (grep 'ignoring option' conftest.err || 4591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4592 am_cv_CC_dependencies_compiler_type=$depmode 4593 break 4594 fi 4595 fi 4596 done 4597 4598 cd .. 4599 rm -rf conftest.dir 4600else 4601 am_cv_CC_dependencies_compiler_type=none 4602fi 4603 ;; 4604esac 4605fi 4606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4607printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4608CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4609 4610 if 4611 test "x$enable_dependency_tracking" != xno \ 4612 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4613 am__fastdepCC_TRUE= 4614 am__fastdepCC_FALSE='#' 4615else 4616 am__fastdepCC_TRUE='#' 4617 am__fastdepCC_FALSE= 4618fi 4619 4620 4621# Variables for tags utilities; see am/tags.am 4622if test -z "$CTAGS"; then 4623 CTAGS=ctags 4624fi 4625 4626if test -z "$ETAGS"; then 4627 ETAGS=etags 4628fi 4629 4630if test -z "$CSCOPE"; then 4631 CSCOPE=cscope 4632fi 4633 4634 4635 4636# POSIX will say in a future version that running "rm -f" with no argument 4637# is OK; and we want to be able to make that assumption in our Makefile 4638# recipes. So use an aggressive probe to check that the usage we want is 4639# actually supported "in the wild" to an acceptable degree. 4640# See automake bug#10828. 4641# To make any issue more visible, cause the running configure to be aborted 4642# by default if the 'rm' program in use doesn't match our expectations; the 4643# user can still override this though. 4644if rm -f && rm -fr && rm -rf; then : OK; else 4645 cat >&2 <<'END' 4646Oops! 4647 4648Your 'rm' program seems unable to run without file operands specified 4649on the command line, even when the '-f' option is present. This is contrary 4650to the behaviour of most rm programs out there, and not conforming with 4651the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4652 4653Please tell bug-automake@gnu.org about your system, including the value 4654of your $PATH and any error possibly output before this message. This 4655can help us improve future automake versions. 4656 4657END 4658 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4659 echo 'Configuration will proceed anyway, since you have set the' >&2 4660 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4661 echo >&2 4662 else 4663 cat >&2 <<'END' 4664Aborting the configuration process, to ensure you take notice of the issue. 4665 4666You can download and install GNU coreutils to get an 'rm' implementation 4667that behaves properly: <https://www.gnu.org/software/coreutils/>. 4668 4669If you want to complete the configuration process using your problematic 4670'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4671to "yes", and re-run configure. 4672 4673END 4674 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4675 fi 4676fi 4677 4678 4679# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4692printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4693if test ${ac_cv_c_undeclared_builtin_options+y} 4694then : 4695 printf %s "(cached) " >&6 4696else case e in #( 4697 e) ac_save_CFLAGS=$CFLAGS 4698 ac_cv_c_undeclared_builtin_options='cannot detect' 4699 for ac_arg in '' -fno-builtin; do 4700 CFLAGS="$ac_save_CFLAGS $ac_arg" 4701 # This test program should *not* compile successfully. 4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4703/* end confdefs.h. */ 4704 4705int 4706main (void) 4707{ 4708(void) strchr; 4709 ; 4710 return 0; 4711} 4712_ACEOF 4713if ac_fn_c_try_compile "$LINENO" 4714then : 4715 4716else case e in #( 4717 e) # This test program should compile successfully. 4718 # No library function is consistently available on 4719 # freestanding implementations, so test against a dummy 4720 # declaration. Include always-available headers on the 4721 # off chance that they somehow elicit warnings. 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723/* end confdefs.h. */ 4724#include <float.h> 4725#include <limits.h> 4726#include <stdarg.h> 4727#include <stddef.h> 4728extern void ac_decl (int, char *); 4729 4730int 4731main (void) 4732{ 4733(void) ac_decl (0, (char *) 0); 4734 (void) ac_decl; 4735 4736 ; 4737 return 0; 4738} 4739_ACEOF 4740if ac_fn_c_try_compile "$LINENO" 4741then : 4742 if test x"$ac_arg" = x 4743then : 4744 ac_cv_c_undeclared_builtin_options='none needed' 4745else case e in #( 4746 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4747esac 4748fi 4749 break 4750fi 4751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4752esac 4753fi 4754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4755 done 4756 CFLAGS=$ac_save_CFLAGS 4757 ;; 4758esac 4759fi 4760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4761printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4762 case $ac_cv_c_undeclared_builtin_options in #( 4763 'cannot detect') : 4764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4765printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4766as_fn_error $? "cannot make $CC report undeclared builtins 4767See 'config.log' for more details" "$LINENO" 5; } ;; #( 4768 'none needed') : 4769 ac_c_undeclared_builtin_options='' ;; #( 4770 *) : 4771 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4772esac 4773 4774 4775 4776 4777 4778ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4779if test "x$ac_cv_have_decl___clang__" = xyes 4780then : 4781 CLANGCC="yes" 4782else case e in #( 4783 e) CLANGCC="no" ;; 4784esac 4785fi 4786ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4787if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4788then : 4789 INTELCC="yes" 4790else case e in #( 4791 e) INTELCC="no" ;; 4792esac 4793fi 4794ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4795if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4796then : 4797 SUNCC="yes" 4798else case e in #( 4799 e) SUNCC="no" ;; 4800esac 4801fi 4802 4803 4804 4805 4806 4807 4808 4809 4810if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4811 if test -n "$ac_tool_prefix"; then 4812 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4813set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4815printf %s "checking for $ac_word... " >&6; } 4816if test ${ac_cv_path_PKG_CONFIG+y} 4817then : 4818 printf %s "(cached) " >&6 4819else case e in #( 4820 e) case $PKG_CONFIG in 4821 [\\/]* | ?:[\\/]*) 4822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4823 ;; 4824 *) 4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4826for as_dir in $PATH 4827do 4828 IFS=$as_save_IFS 4829 case $as_dir in #((( 4830 '') as_dir=./ ;; 4831 */) ;; 4832 *) as_dir=$as_dir/ ;; 4833 esac 4834 for ac_exec_ext in '' $ac_executable_extensions; do 4835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4836 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4838 break 2 4839 fi 4840done 4841 done 4842IFS=$as_save_IFS 4843 4844 ;; 4845esac ;; 4846esac 4847fi 4848PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4849if test -n "$PKG_CONFIG"; then 4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4851printf "%s\n" "$PKG_CONFIG" >&6; } 4852else 4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854printf "%s\n" "no" >&6; } 4855fi 4856 4857 4858fi 4859if test -z "$ac_cv_path_PKG_CONFIG"; then 4860 ac_pt_PKG_CONFIG=$PKG_CONFIG 4861 # Extract the first word of "pkg-config", so it can be a program name with args. 4862set dummy pkg-config; ac_word=$2 4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4864printf %s "checking for $ac_word... " >&6; } 4865if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4866then : 4867 printf %s "(cached) " >&6 4868else case e in #( 4869 e) case $ac_pt_PKG_CONFIG in 4870 [\\/]* | ?:[\\/]*) 4871 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4872 ;; 4873 *) 4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4875for as_dir in $PATH 4876do 4877 IFS=$as_save_IFS 4878 case $as_dir in #((( 4879 '') as_dir=./ ;; 4880 */) ;; 4881 *) as_dir=$as_dir/ ;; 4882 esac 4883 for ac_exec_ext in '' $ac_executable_extensions; do 4884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4885 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4887 break 2 4888 fi 4889done 4890 done 4891IFS=$as_save_IFS 4892 4893 ;; 4894esac ;; 4895esac 4896fi 4897ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4898if test -n "$ac_pt_PKG_CONFIG"; then 4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4900printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4901else 4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4903printf "%s\n" "no" >&6; } 4904fi 4905 4906 if test "x$ac_pt_PKG_CONFIG" = x; then 4907 PKG_CONFIG="" 4908 else 4909 case $cross_compiling:$ac_tool_warned in 4910yes:) 4911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4912printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4913ac_tool_warned=yes ;; 4914esac 4915 PKG_CONFIG=$ac_pt_PKG_CONFIG 4916 fi 4917else 4918 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4919fi 4920 4921fi 4922if test -n "$PKG_CONFIG"; then 4923 _pkg_min_version=0.9.0 4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4925printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4926 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4928printf "%s\n" "yes" >&6; } 4929 else 4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4931printf "%s\n" "no" >&6; } 4932 PKG_CONFIG="" 4933 fi 4934fi 4935 4936 4937 # Make sure we can run config.sub. 4938$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4939 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4940 4941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4942printf %s "checking build system type... " >&6; } 4943if test ${ac_cv_build+y} 4944then : 4945 printf %s "(cached) " >&6 4946else case e in #( 4947 e) ac_build_alias=$build_alias 4948test "x$ac_build_alias" = x && 4949 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4950test "x$ac_build_alias" = x && 4951 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4952ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4953 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4954 ;; 4955esac 4956fi 4957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4958printf "%s\n" "$ac_cv_build" >&6; } 4959case $ac_cv_build in 4960*-*-*) ;; 4961*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4962esac 4963build=$ac_cv_build 4964ac_save_IFS=$IFS; IFS='-' 4965set x $ac_cv_build 4966shift 4967build_cpu=$1 4968build_vendor=$2 4969shift; shift 4970# Remember, the first character of IFS is used to create $*, 4971# except with old shells: 4972build_os=$* 4973IFS=$ac_save_IFS 4974case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4975 4976 4977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4978printf %s "checking host system type... " >&6; } 4979if test ${ac_cv_host+y} 4980then : 4981 printf %s "(cached) " >&6 4982else case e in #( 4983 e) if test "x$host_alias" = x; then 4984 ac_cv_host=$ac_cv_build 4985else 4986 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4987 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4988fi 4989 ;; 4990esac 4991fi 4992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4993printf "%s\n" "$ac_cv_host" >&6; } 4994case $ac_cv_host in 4995*-*-*) ;; 4996*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4997esac 4998host=$ac_cv_host 4999ac_save_IFS=$IFS; IFS='-' 5000set x $ac_cv_host 5001shift 5002host_cpu=$1 5003host_vendor=$2 5004shift; shift 5005# Remember, the first character of IFS is used to create $*, 5006# except with old shells: 5007host_os=$* 5008IFS=$ac_save_IFS 5009case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5010 5011 5012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5013printf %s "checking for a sed that does not truncate output... " >&6; } 5014if test ${ac_cv_path_SED+y} 5015then : 5016 printf %s "(cached) " >&6 5017else case e in #( 5018 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5019 for ac_i in 1 2 3 4 5 6 7; do 5020 ac_script="$ac_script$as_nl$ac_script" 5021 done 5022 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5023 { ac_script=; unset ac_script;} 5024 if test -z "$SED"; then 5025 ac_path_SED_found=false 5026 # Loop through the user's path and test for each of PROGNAME-LIST 5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5028for as_dir in $PATH 5029do 5030 IFS=$as_save_IFS 5031 case $as_dir in #((( 5032 '') as_dir=./ ;; 5033 */) ;; 5034 *) as_dir=$as_dir/ ;; 5035 esac 5036 for ac_prog in sed gsed 5037 do 5038 for ac_exec_ext in '' $ac_executable_extensions; do 5039 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5040 as_fn_executable_p "$ac_path_SED" || continue 5041# Check for GNU ac_path_SED and select it if it is found. 5042 # Check for GNU $ac_path_SED 5043case `"$ac_path_SED" --version 2>&1` in #( 5044*GNU*) 5045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5046#( 5047*) 5048 ac_count=0 5049 printf %s 0123456789 >"conftest.in" 5050 while : 5051 do 5052 cat "conftest.in" "conftest.in" >"conftest.tmp" 5053 mv "conftest.tmp" "conftest.in" 5054 cp "conftest.in" "conftest.nl" 5055 printf "%s\n" '' >> "conftest.nl" 5056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5058 as_fn_arith $ac_count + 1 && ac_count=$as_val 5059 if test $ac_count -gt ${ac_path_SED_max-0}; then 5060 # Best one so far, save it but keep looking for a better one 5061 ac_cv_path_SED="$ac_path_SED" 5062 ac_path_SED_max=$ac_count 5063 fi 5064 # 10*(2^10) chars as input seems more than enough 5065 test $ac_count -gt 10 && break 5066 done 5067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5068esac 5069 5070 $ac_path_SED_found && break 3 5071 done 5072 done 5073 done 5074IFS=$as_save_IFS 5075 if test -z "$ac_cv_path_SED"; then 5076 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5077 fi 5078else 5079 ac_cv_path_SED=$SED 5080fi 5081 ;; 5082esac 5083fi 5084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5085printf "%s\n" "$ac_cv_path_SED" >&6; } 5086 SED="$ac_cv_path_SED" 5087 rm -f conftest.sed 5088 5089 5090 5091 5092 5093 5094# Check whether --enable-selective-werror was given. 5095if test ${enable_selective_werror+y} 5096then : 5097 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5098else case e in #( 5099 e) SELECTIVE_WERROR=yes ;; 5100esac 5101fi 5102 5103 5104 5105 5106 5107# -v is too short to test reliably with XORG_TESTSET_CFLAG 5108if test "x$SUNCC" = "xyes"; then 5109 BASE_CFLAGS="-v" 5110else 5111 BASE_CFLAGS="" 5112fi 5113 5114# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128xorg_testset_save_CFLAGS="$CFLAGS" 5129 5130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5134if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5135then : 5136 printf %s "(cached) " >&6 5137else case e in #( 5138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5139/* end confdefs.h. */ 5140int i; 5141_ACEOF 5142if ac_fn_c_try_compile "$LINENO" 5143then : 5144 xorg_cv_cc_flag_unknown_warning_option=yes 5145else case e in #( 5146 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5147esac 5148fi 5149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5150esac 5151fi 5152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5155 CFLAGS="$xorg_testset_save_CFLAGS" 5156fi 5157 5158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5161 fi 5162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5165if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5166then : 5167 printf %s "(cached) " >&6 5168else case e in #( 5169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5170/* end confdefs.h. */ 5171int i; 5172_ACEOF 5173if ac_fn_c_try_compile "$LINENO" 5174then : 5175 xorg_cv_cc_flag_unused_command_line_argument=yes 5176else case e in #( 5177 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5178esac 5179fi 5180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5181esac 5182fi 5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5184printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5186 CFLAGS="$xorg_testset_save_CFLAGS" 5187fi 5188 5189found="no" 5190 5191 if test $found = "no" ; then 5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5194 fi 5195 5196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5198 fi 5199 5200 CFLAGS="$CFLAGS -Wall" 5201 5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5203printf %s "checking if $CC supports -Wall... " >&6; } 5204 cacheid=xorg_cv_cc_flag__Wall 5205 if eval test \${$cacheid+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; 5212int 5213main (void) 5214{ 5215 5216 ; 5217 return 0; 5218} 5219_ACEOF 5220if ac_fn_c_try_link "$LINENO" 5221then : 5222 eval $cacheid=yes 5223else case e in #( 5224 e) eval $cacheid=no ;; 5225esac 5226fi 5227rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5228 conftest$ac_exeext conftest.$ac_ext ;; 5229esac 5230fi 5231 5232 5233 CFLAGS="$xorg_testset_save_CFLAGS" 5234 5235 eval supported=\$$cacheid 5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5237printf "%s\n" "$supported" >&6; } 5238 if test "$supported" = "yes" ; then 5239 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5240 found="yes" 5241 fi 5242 fi 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258xorg_testset_save_CFLAGS="$CFLAGS" 5259 5260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5264if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5265then : 5266 printf %s "(cached) " >&6 5267else case e in #( 5268 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5269/* end confdefs.h. */ 5270int i; 5271_ACEOF 5272if ac_fn_c_try_compile "$LINENO" 5273then : 5274 xorg_cv_cc_flag_unknown_warning_option=yes 5275else case e in #( 5276 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5277esac 5278fi 5279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5280esac 5281fi 5282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5283printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5285 CFLAGS="$xorg_testset_save_CFLAGS" 5286fi 5287 5288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5291 fi 5292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5294printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5295if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5296then : 5297 printf %s "(cached) " >&6 5298else case e in #( 5299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5300/* end confdefs.h. */ 5301int i; 5302_ACEOF 5303if ac_fn_c_try_compile "$LINENO" 5304then : 5305 xorg_cv_cc_flag_unused_command_line_argument=yes 5306else case e in #( 5307 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5308esac 5309fi 5310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5311esac 5312fi 5313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5314printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5316 CFLAGS="$xorg_testset_save_CFLAGS" 5317fi 5318 5319found="no" 5320 5321 if test $found = "no" ; then 5322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5324 fi 5325 5326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5328 fi 5329 5330 CFLAGS="$CFLAGS -Wpointer-arith" 5331 5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5333printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5334 cacheid=xorg_cv_cc_flag__Wpointer_arith 5335 if eval test \${$cacheid+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; 5342int 5343main (void) 5344{ 5345 5346 ; 5347 return 0; 5348} 5349_ACEOF 5350if ac_fn_c_try_link "$LINENO" 5351then : 5352 eval $cacheid=yes 5353else case e in #( 5354 e) eval $cacheid=no ;; 5355esac 5356fi 5357rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5358 conftest$ac_exeext conftest.$ac_ext ;; 5359esac 5360fi 5361 5362 5363 CFLAGS="$xorg_testset_save_CFLAGS" 5364 5365 eval supported=\$$cacheid 5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5367printf "%s\n" "$supported" >&6; } 5368 if test "$supported" = "yes" ; then 5369 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5370 found="yes" 5371 fi 5372 fi 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388xorg_testset_save_CFLAGS="$CFLAGS" 5389 5390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5394if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5395then : 5396 printf %s "(cached) " >&6 5397else case e in #( 5398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399/* end confdefs.h. */ 5400int i; 5401_ACEOF 5402if ac_fn_c_try_compile "$LINENO" 5403then : 5404 xorg_cv_cc_flag_unknown_warning_option=yes 5405else case e in #( 5406 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5407esac 5408fi 5409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5410esac 5411fi 5412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5415 CFLAGS="$xorg_testset_save_CFLAGS" 5416fi 5417 5418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5421 fi 5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5425if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5426then : 5427 printf %s "(cached) " >&6 5428else case e in #( 5429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5430/* end confdefs.h. */ 5431int i; 5432_ACEOF 5433if ac_fn_c_try_compile "$LINENO" 5434then : 5435 xorg_cv_cc_flag_unused_command_line_argument=yes 5436else case e in #( 5437 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5438esac 5439fi 5440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5441esac 5442fi 5443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5446 CFLAGS="$xorg_testset_save_CFLAGS" 5447fi 5448 5449found="no" 5450 5451 if test $found = "no" ; then 5452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5454 fi 5455 5456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5458 fi 5459 5460 CFLAGS="$CFLAGS -Wmissing-declarations" 5461 5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5463printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5464 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5465 if eval test \${$cacheid+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; 5472int 5473main (void) 5474{ 5475 5476 ; 5477 return 0; 5478} 5479_ACEOF 5480if ac_fn_c_try_link "$LINENO" 5481then : 5482 eval $cacheid=yes 5483else case e in #( 5484 e) eval $cacheid=no ;; 5485esac 5486fi 5487rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5488 conftest$ac_exeext conftest.$ac_ext ;; 5489esac 5490fi 5491 5492 5493 CFLAGS="$xorg_testset_save_CFLAGS" 5494 5495 eval supported=\$$cacheid 5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5497printf "%s\n" "$supported" >&6; } 5498 if test "$supported" = "yes" ; then 5499 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5500 found="yes" 5501 fi 5502 fi 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518xorg_testset_save_CFLAGS="$CFLAGS" 5519 5520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5524if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5525then : 5526 printf %s "(cached) " >&6 5527else case e in #( 5528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5529/* end confdefs.h. */ 5530int i; 5531_ACEOF 5532if ac_fn_c_try_compile "$LINENO" 5533then : 5534 xorg_cv_cc_flag_unknown_warning_option=yes 5535else case e in #( 5536 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5537esac 5538fi 5539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5540esac 5541fi 5542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5545 CFLAGS="$xorg_testset_save_CFLAGS" 5546fi 5547 5548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5551 fi 5552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5555if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5556then : 5557 printf %s "(cached) " >&6 5558else case e in #( 5559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5560/* end confdefs.h. */ 5561int i; 5562_ACEOF 5563if ac_fn_c_try_compile "$LINENO" 5564then : 5565 xorg_cv_cc_flag_unused_command_line_argument=yes 5566else case e in #( 5567 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5568esac 5569fi 5570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5571esac 5572fi 5573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5576 CFLAGS="$xorg_testset_save_CFLAGS" 5577fi 5578 5579found="no" 5580 5581 if test $found = "no" ; then 5582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5584 fi 5585 5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5588 fi 5589 5590 CFLAGS="$CFLAGS -Wformat=2" 5591 5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5593printf %s "checking if $CC supports -Wformat=2... " >&6; } 5594 cacheid=xorg_cv_cc_flag__Wformat_2 5595 if eval test \${$cacheid+y} 5596then : 5597 printf %s "(cached) " >&6 5598else case e in #( 5599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5600/* end confdefs.h. */ 5601int i; 5602int 5603main (void) 5604{ 5605 5606 ; 5607 return 0; 5608} 5609_ACEOF 5610if ac_fn_c_try_link "$LINENO" 5611then : 5612 eval $cacheid=yes 5613else case e in #( 5614 e) eval $cacheid=no ;; 5615esac 5616fi 5617rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5618 conftest$ac_exeext conftest.$ac_ext ;; 5619esac 5620fi 5621 5622 5623 CFLAGS="$xorg_testset_save_CFLAGS" 5624 5625 eval supported=\$$cacheid 5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5627printf "%s\n" "$supported" >&6; } 5628 if test "$supported" = "yes" ; then 5629 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5630 found="yes" 5631 fi 5632 fi 5633 5634 if test $found = "no" ; then 5635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5637 fi 5638 5639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5641 fi 5642 5643 CFLAGS="$CFLAGS -Wformat" 5644 5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5646printf %s "checking if $CC supports -Wformat... " >&6; } 5647 cacheid=xorg_cv_cc_flag__Wformat 5648 if eval test \${$cacheid+y} 5649then : 5650 printf %s "(cached) " >&6 5651else case e in #( 5652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5653/* end confdefs.h. */ 5654int i; 5655int 5656main (void) 5657{ 5658 5659 ; 5660 return 0; 5661} 5662_ACEOF 5663if ac_fn_c_try_link "$LINENO" 5664then : 5665 eval $cacheid=yes 5666else case e in #( 5667 e) eval $cacheid=no ;; 5668esac 5669fi 5670rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5671 conftest$ac_exeext conftest.$ac_ext ;; 5672esac 5673fi 5674 5675 5676 CFLAGS="$xorg_testset_save_CFLAGS" 5677 5678 eval supported=\$$cacheid 5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5680printf "%s\n" "$supported" >&6; } 5681 if test "$supported" = "yes" ; then 5682 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5683 found="yes" 5684 fi 5685 fi 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703xorg_testset_save_CFLAGS="$CFLAGS" 5704 5705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5709if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5710then : 5711 printf %s "(cached) " >&6 5712else case e in #( 5713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714/* end confdefs.h. */ 5715int i; 5716_ACEOF 5717if ac_fn_c_try_compile "$LINENO" 5718then : 5719 xorg_cv_cc_flag_unknown_warning_option=yes 5720else case e in #( 5721 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5722esac 5723fi 5724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5725esac 5726fi 5727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5728printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5730 CFLAGS="$xorg_testset_save_CFLAGS" 5731fi 5732 5733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5736 fi 5737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5739printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5740if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5741then : 5742 printf %s "(cached) " >&6 5743else case e in #( 5744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5745/* end confdefs.h. */ 5746int i; 5747_ACEOF 5748if ac_fn_c_try_compile "$LINENO" 5749then : 5750 xorg_cv_cc_flag_unused_command_line_argument=yes 5751else case e in #( 5752 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5753esac 5754fi 5755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5756esac 5757fi 5758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5761 CFLAGS="$xorg_testset_save_CFLAGS" 5762fi 5763 5764found="no" 5765 5766 if test $found = "no" ; then 5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5769 fi 5770 5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5773 fi 5774 5775 CFLAGS="$CFLAGS -Wstrict-prototypes" 5776 5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5778printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5779 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5780 if eval test \${$cacheid+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; 5787int 5788main (void) 5789{ 5790 5791 ; 5792 return 0; 5793} 5794_ACEOF 5795if ac_fn_c_try_link "$LINENO" 5796then : 5797 eval $cacheid=yes 5798else case e in #( 5799 e) eval $cacheid=no ;; 5800esac 5801fi 5802rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5803 conftest$ac_exeext conftest.$ac_ext ;; 5804esac 5805fi 5806 5807 5808 CFLAGS="$xorg_testset_save_CFLAGS" 5809 5810 eval supported=\$$cacheid 5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5812printf "%s\n" "$supported" >&6; } 5813 if test "$supported" = "yes" ; then 5814 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5815 found="yes" 5816 fi 5817 fi 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833xorg_testset_save_CFLAGS="$CFLAGS" 5834 5835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5839if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5840then : 5841 printf %s "(cached) " >&6 5842else case e in #( 5843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5844/* end confdefs.h. */ 5845int i; 5846_ACEOF 5847if ac_fn_c_try_compile "$LINENO" 5848then : 5849 xorg_cv_cc_flag_unknown_warning_option=yes 5850else case e in #( 5851 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5852esac 5853fi 5854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5855esac 5856fi 5857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5860 CFLAGS="$xorg_testset_save_CFLAGS" 5861fi 5862 5863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5866 fi 5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5870if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5871then : 5872 printf %s "(cached) " >&6 5873else case e in #( 5874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875/* end confdefs.h. */ 5876int i; 5877_ACEOF 5878if ac_fn_c_try_compile "$LINENO" 5879then : 5880 xorg_cv_cc_flag_unused_command_line_argument=yes 5881else case e in #( 5882 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5883esac 5884fi 5885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5886esac 5887fi 5888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5889printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5891 CFLAGS="$xorg_testset_save_CFLAGS" 5892fi 5893 5894found="no" 5895 5896 if test $found = "no" ; then 5897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5899 fi 5900 5901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5903 fi 5904 5905 CFLAGS="$CFLAGS -Wmissing-prototypes" 5906 5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5908printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5909 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5910 if eval test \${$cacheid+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; 5917int 5918main (void) 5919{ 5920 5921 ; 5922 return 0; 5923} 5924_ACEOF 5925if ac_fn_c_try_link "$LINENO" 5926then : 5927 eval $cacheid=yes 5928else case e in #( 5929 e) eval $cacheid=no ;; 5930esac 5931fi 5932rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5933 conftest$ac_exeext conftest.$ac_ext ;; 5934esac 5935fi 5936 5937 5938 CFLAGS="$xorg_testset_save_CFLAGS" 5939 5940 eval supported=\$$cacheid 5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5942printf "%s\n" "$supported" >&6; } 5943 if test "$supported" = "yes" ; then 5944 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5945 found="yes" 5946 fi 5947 fi 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963xorg_testset_save_CFLAGS="$CFLAGS" 5964 5965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5969if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5970then : 5971 printf %s "(cached) " >&6 5972else case e in #( 5973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5974/* end confdefs.h. */ 5975int i; 5976_ACEOF 5977if ac_fn_c_try_compile "$LINENO" 5978then : 5979 xorg_cv_cc_flag_unknown_warning_option=yes 5980else case e in #( 5981 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5982esac 5983fi 5984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5985esac 5986fi 5987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5990 CFLAGS="$xorg_testset_save_CFLAGS" 5991fi 5992 5993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5996 fi 5997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6000if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6001then : 6002 printf %s "(cached) " >&6 6003else case e in #( 6004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005/* end confdefs.h. */ 6006int i; 6007_ACEOF 6008if ac_fn_c_try_compile "$LINENO" 6009then : 6010 xorg_cv_cc_flag_unused_command_line_argument=yes 6011else case e in #( 6012 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6013esac 6014fi 6015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6016esac 6017fi 6018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6019printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6021 CFLAGS="$xorg_testset_save_CFLAGS" 6022fi 6023 6024found="no" 6025 6026 if test $found = "no" ; then 6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6029 fi 6030 6031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6033 fi 6034 6035 CFLAGS="$CFLAGS -Wnested-externs" 6036 6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6038printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6039 cacheid=xorg_cv_cc_flag__Wnested_externs 6040 if eval test \${$cacheid+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; 6047int 6048main (void) 6049{ 6050 6051 ; 6052 return 0; 6053} 6054_ACEOF 6055if ac_fn_c_try_link "$LINENO" 6056then : 6057 eval $cacheid=yes 6058else case e in #( 6059 e) eval $cacheid=no ;; 6060esac 6061fi 6062rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6063 conftest$ac_exeext conftest.$ac_ext ;; 6064esac 6065fi 6066 6067 6068 CFLAGS="$xorg_testset_save_CFLAGS" 6069 6070 eval supported=\$$cacheid 6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6072printf "%s\n" "$supported" >&6; } 6073 if test "$supported" = "yes" ; then 6074 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6075 found="yes" 6076 fi 6077 fi 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093xorg_testset_save_CFLAGS="$CFLAGS" 6094 6095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6098printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6099if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6100then : 6101 printf %s "(cached) " >&6 6102else case e in #( 6103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6104/* end confdefs.h. */ 6105int i; 6106_ACEOF 6107if ac_fn_c_try_compile "$LINENO" 6108then : 6109 xorg_cv_cc_flag_unknown_warning_option=yes 6110else case e in #( 6111 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6112esac 6113fi 6114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6115esac 6116fi 6117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6118printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6120 CFLAGS="$xorg_testset_save_CFLAGS" 6121fi 6122 6123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6126 fi 6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6129printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6130if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6131then : 6132 printf %s "(cached) " >&6 6133else case e in #( 6134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6135/* end confdefs.h. */ 6136int i; 6137_ACEOF 6138if ac_fn_c_try_compile "$LINENO" 6139then : 6140 xorg_cv_cc_flag_unused_command_line_argument=yes 6141else case e in #( 6142 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6143esac 6144fi 6145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6146esac 6147fi 6148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152fi 6153 6154found="no" 6155 6156 if test $found = "no" ; then 6157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6159 fi 6160 6161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6163 fi 6164 6165 CFLAGS="$CFLAGS -Wbad-function-cast" 6166 6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6168printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6169 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6170 if eval test \${$cacheid+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; 6177int 6178main (void) 6179{ 6180 6181 ; 6182 return 0; 6183} 6184_ACEOF 6185if ac_fn_c_try_link "$LINENO" 6186then : 6187 eval $cacheid=yes 6188else case e in #( 6189 e) eval $cacheid=no ;; 6190esac 6191fi 6192rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6193 conftest$ac_exeext conftest.$ac_ext ;; 6194esac 6195fi 6196 6197 6198 CFLAGS="$xorg_testset_save_CFLAGS" 6199 6200 eval supported=\$$cacheid 6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6202printf "%s\n" "$supported" >&6; } 6203 if test "$supported" = "yes" ; then 6204 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6205 found="yes" 6206 fi 6207 fi 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223xorg_testset_save_CFLAGS="$CFLAGS" 6224 6225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6228printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6229if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6230then : 6231 printf %s "(cached) " >&6 6232else case e in #( 6233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6234/* end confdefs.h. */ 6235int i; 6236_ACEOF 6237if ac_fn_c_try_compile "$LINENO" 6238then : 6239 xorg_cv_cc_flag_unknown_warning_option=yes 6240else case e in #( 6241 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6242esac 6243fi 6244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6245esac 6246fi 6247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6250 CFLAGS="$xorg_testset_save_CFLAGS" 6251fi 6252 6253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6256 fi 6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6260if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6261then : 6262 printf %s "(cached) " >&6 6263else case e in #( 6264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265/* end confdefs.h. */ 6266int i; 6267_ACEOF 6268if ac_fn_c_try_compile "$LINENO" 6269then : 6270 xorg_cv_cc_flag_unused_command_line_argument=yes 6271else case e in #( 6272 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6273esac 6274fi 6275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6276esac 6277fi 6278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6281 CFLAGS="$xorg_testset_save_CFLAGS" 6282fi 6283 6284found="no" 6285 6286 if test $found = "no" ; then 6287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6289 fi 6290 6291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6293 fi 6294 6295 CFLAGS="$CFLAGS -Wold-style-definition" 6296 6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6298printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6299 cacheid=xorg_cv_cc_flag__Wold_style_definition 6300 if eval test \${$cacheid+y} 6301then : 6302 printf %s "(cached) " >&6 6303else case e in #( 6304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6305/* end confdefs.h. */ 6306int i; 6307int 6308main (void) 6309{ 6310 6311 ; 6312 return 0; 6313} 6314_ACEOF 6315if ac_fn_c_try_link "$LINENO" 6316then : 6317 eval $cacheid=yes 6318else case e in #( 6319 e) eval $cacheid=no ;; 6320esac 6321fi 6322rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6323 conftest$ac_exeext conftest.$ac_ext ;; 6324esac 6325fi 6326 6327 6328 CFLAGS="$xorg_testset_save_CFLAGS" 6329 6330 eval supported=\$$cacheid 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6332printf "%s\n" "$supported" >&6; } 6333 if test "$supported" = "yes" ; then 6334 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6335 found="yes" 6336 fi 6337 fi 6338 6339 if test $found = "no" ; then 6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 fi 6343 6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6346 fi 6347 6348 CFLAGS="$CFLAGS -fd" 6349 6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6351printf %s "checking if $CC supports -fd... " >&6; } 6352 cacheid=xorg_cv_cc_flag__fd 6353 if eval test \${$cacheid+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; 6360int 6361main (void) 6362{ 6363 6364 ; 6365 return 0; 6366} 6367_ACEOF 6368if ac_fn_c_try_link "$LINENO" 6369then : 6370 eval $cacheid=yes 6371else case e in #( 6372 e) eval $cacheid=no ;; 6373esac 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6376 conftest$ac_exeext conftest.$ac_ext ;; 6377esac 6378fi 6379 6380 6381 CFLAGS="$xorg_testset_save_CFLAGS" 6382 6383 eval supported=\$$cacheid 6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6385printf "%s\n" "$supported" >&6; } 6386 if test "$supported" = "yes" ; then 6387 BASE_CFLAGS="$BASE_CFLAGS -fd" 6388 found="yes" 6389 fi 6390 fi 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406xorg_testset_save_CFLAGS="$CFLAGS" 6407 6408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6412if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6413then : 6414 printf %s "(cached) " >&6 6415else case e in #( 6416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6417/* end confdefs.h. */ 6418int i; 6419_ACEOF 6420if ac_fn_c_try_compile "$LINENO" 6421then : 6422 xorg_cv_cc_flag_unknown_warning_option=yes 6423else case e in #( 6424 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6425esac 6426fi 6427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6428esac 6429fi 6430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6433 CFLAGS="$xorg_testset_save_CFLAGS" 6434fi 6435 6436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6439 fi 6440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6443if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6444then : 6445 printf %s "(cached) " >&6 6446else case e in #( 6447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448/* end confdefs.h. */ 6449int i; 6450_ACEOF 6451if ac_fn_c_try_compile "$LINENO" 6452then : 6453 xorg_cv_cc_flag_unused_command_line_argument=yes 6454else case e in #( 6455 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6456esac 6457fi 6458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6459esac 6460fi 6461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6462printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6464 CFLAGS="$xorg_testset_save_CFLAGS" 6465fi 6466 6467found="no" 6468 6469 if test $found = "no" ; then 6470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6472 fi 6473 6474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6476 fi 6477 6478 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6479 6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6481printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6482 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6483 if eval test \${$cacheid+y} 6484then : 6485 printf %s "(cached) " >&6 6486else case e in #( 6487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6488/* end confdefs.h. */ 6489int i; 6490int 6491main (void) 6492{ 6493 6494 ; 6495 return 0; 6496} 6497_ACEOF 6498if ac_fn_c_try_link "$LINENO" 6499then : 6500 eval $cacheid=yes 6501else case e in #( 6502 e) eval $cacheid=no ;; 6503esac 6504fi 6505rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6506 conftest$ac_exeext conftest.$ac_ext ;; 6507esac 6508fi 6509 6510 6511 CFLAGS="$xorg_testset_save_CFLAGS" 6512 6513 eval supported=\$$cacheid 6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6515printf "%s\n" "$supported" >&6; } 6516 if test "$supported" = "yes" ; then 6517 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6518 found="yes" 6519 fi 6520 fi 6521 6522 6523 6524 6525 6526# This chunk adds additional warnings that could catch undesired effects. 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540xorg_testset_save_CFLAGS="$CFLAGS" 6541 6542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6546if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6547then : 6548 printf %s "(cached) " >&6 6549else case e in #( 6550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6551/* end confdefs.h. */ 6552int i; 6553_ACEOF 6554if ac_fn_c_try_compile "$LINENO" 6555then : 6556 xorg_cv_cc_flag_unknown_warning_option=yes 6557else case e in #( 6558 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6559esac 6560fi 6561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6562esac 6563fi 6564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6567 CFLAGS="$xorg_testset_save_CFLAGS" 6568fi 6569 6570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6573 fi 6574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6577if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6578then : 6579 printf %s "(cached) " >&6 6580else case e in #( 6581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6582/* end confdefs.h. */ 6583int i; 6584_ACEOF 6585if ac_fn_c_try_compile "$LINENO" 6586then : 6587 xorg_cv_cc_flag_unused_command_line_argument=yes 6588else case e in #( 6589 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6590esac 6591fi 6592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6593esac 6594fi 6595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599fi 6600 6601found="no" 6602 6603 if test $found = "no" ; then 6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6606 fi 6607 6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6610 fi 6611 6612 CFLAGS="$CFLAGS -Wunused" 6613 6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6615printf %s "checking if $CC supports -Wunused... " >&6; } 6616 cacheid=xorg_cv_cc_flag__Wunused 6617 if eval test \${$cacheid+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; 6624int 6625main (void) 6626{ 6627 6628 ; 6629 return 0; 6630} 6631_ACEOF 6632if ac_fn_c_try_link "$LINENO" 6633then : 6634 eval $cacheid=yes 6635else case e in #( 6636 e) eval $cacheid=no ;; 6637esac 6638fi 6639rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6640 conftest$ac_exeext conftest.$ac_ext ;; 6641esac 6642fi 6643 6644 6645 CFLAGS="$xorg_testset_save_CFLAGS" 6646 6647 eval supported=\$$cacheid 6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6649printf "%s\n" "$supported" >&6; } 6650 if test "$supported" = "yes" ; then 6651 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6652 found="yes" 6653 fi 6654 fi 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670xorg_testset_save_CFLAGS="$CFLAGS" 6671 6672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6676if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6677then : 6678 printf %s "(cached) " >&6 6679else case e in #( 6680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6681/* end confdefs.h. */ 6682int i; 6683_ACEOF 6684if ac_fn_c_try_compile "$LINENO" 6685then : 6686 xorg_cv_cc_flag_unknown_warning_option=yes 6687else case e in #( 6688 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6689esac 6690fi 6691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6692esac 6693fi 6694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698fi 6699 6700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703 fi 6704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6707if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6708then : 6709 printf %s "(cached) " >&6 6710else case e in #( 6711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713int i; 6714_ACEOF 6715if ac_fn_c_try_compile "$LINENO" 6716then : 6717 xorg_cv_cc_flag_unused_command_line_argument=yes 6718else case e in #( 6719 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6720esac 6721fi 6722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6723esac 6724fi 6725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6726printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6728 CFLAGS="$xorg_testset_save_CFLAGS" 6729fi 6730 6731found="no" 6732 6733 if test $found = "no" ; then 6734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6736 fi 6737 6738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6740 fi 6741 6742 CFLAGS="$CFLAGS -Wuninitialized" 6743 6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6745printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6746 cacheid=xorg_cv_cc_flag__Wuninitialized 6747 if eval test \${$cacheid+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; 6754int 6755main (void) 6756{ 6757 6758 ; 6759 return 0; 6760} 6761_ACEOF 6762if ac_fn_c_try_link "$LINENO" 6763then : 6764 eval $cacheid=yes 6765else case e in #( 6766 e) eval $cacheid=no ;; 6767esac 6768fi 6769rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6770 conftest$ac_exeext conftest.$ac_ext ;; 6771esac 6772fi 6773 6774 6775 CFLAGS="$xorg_testset_save_CFLAGS" 6776 6777 eval supported=\$$cacheid 6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6779printf "%s\n" "$supported" >&6; } 6780 if test "$supported" = "yes" ; then 6781 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6782 found="yes" 6783 fi 6784 fi 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800xorg_testset_save_CFLAGS="$CFLAGS" 6801 6802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6806if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6807then : 6808 printf %s "(cached) " >&6 6809else case e in #( 6810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6811/* end confdefs.h. */ 6812int i; 6813_ACEOF 6814if ac_fn_c_try_compile "$LINENO" 6815then : 6816 xorg_cv_cc_flag_unknown_warning_option=yes 6817else case e in #( 6818 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6819esac 6820fi 6821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6822esac 6823fi 6824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6827 CFLAGS="$xorg_testset_save_CFLAGS" 6828fi 6829 6830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6833 fi 6834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6837if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6838then : 6839 printf %s "(cached) " >&6 6840else case e in #( 6841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6842/* end confdefs.h. */ 6843int i; 6844_ACEOF 6845if ac_fn_c_try_compile "$LINENO" 6846then : 6847 xorg_cv_cc_flag_unused_command_line_argument=yes 6848else case e in #( 6849 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6850esac 6851fi 6852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6853esac 6854fi 6855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6858 CFLAGS="$xorg_testset_save_CFLAGS" 6859fi 6860 6861found="no" 6862 6863 if test $found = "no" ; then 6864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6866 fi 6867 6868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6870 fi 6871 6872 CFLAGS="$CFLAGS -Wshadow" 6873 6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6875printf %s "checking if $CC supports -Wshadow... " >&6; } 6876 cacheid=xorg_cv_cc_flag__Wshadow 6877 if eval test \${$cacheid+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; 6884int 6885main (void) 6886{ 6887 6888 ; 6889 return 0; 6890} 6891_ACEOF 6892if ac_fn_c_try_link "$LINENO" 6893then : 6894 eval $cacheid=yes 6895else case e in #( 6896 e) eval $cacheid=no ;; 6897esac 6898fi 6899rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6900 conftest$ac_exeext conftest.$ac_ext ;; 6901esac 6902fi 6903 6904 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906 6907 eval supported=\$$cacheid 6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6909printf "%s\n" "$supported" >&6; } 6910 if test "$supported" = "yes" ; then 6911 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6912 found="yes" 6913 fi 6914 fi 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930xorg_testset_save_CFLAGS="$CFLAGS" 6931 6932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6936if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6937then : 6938 printf %s "(cached) " >&6 6939else case e in #( 6940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6941/* end confdefs.h. */ 6942int i; 6943_ACEOF 6944if ac_fn_c_try_compile "$LINENO" 6945then : 6946 xorg_cv_cc_flag_unknown_warning_option=yes 6947else case e in #( 6948 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6949esac 6950fi 6951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6952esac 6953fi 6954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6957 CFLAGS="$xorg_testset_save_CFLAGS" 6958fi 6959 6960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6963 fi 6964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6967if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6968then : 6969 printf %s "(cached) " >&6 6970else case e in #( 6971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6972/* end confdefs.h. */ 6973int i; 6974_ACEOF 6975if ac_fn_c_try_compile "$LINENO" 6976then : 6977 xorg_cv_cc_flag_unused_command_line_argument=yes 6978else case e in #( 6979 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6980esac 6981fi 6982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6983esac 6984fi 6985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6988 CFLAGS="$xorg_testset_save_CFLAGS" 6989fi 6990 6991found="no" 6992 6993 if test $found = "no" ; then 6994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6996 fi 6997 6998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7000 fi 7001 7002 CFLAGS="$CFLAGS -Wmissing-noreturn" 7003 7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7005printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7006 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7007 if eval test \${$cacheid+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; 7014int 7015main (void) 7016{ 7017 7018 ; 7019 return 0; 7020} 7021_ACEOF 7022if ac_fn_c_try_link "$LINENO" 7023then : 7024 eval $cacheid=yes 7025else case e in #( 7026 e) eval $cacheid=no ;; 7027esac 7028fi 7029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7030 conftest$ac_exeext conftest.$ac_ext ;; 7031esac 7032fi 7033 7034 7035 CFLAGS="$xorg_testset_save_CFLAGS" 7036 7037 eval supported=\$$cacheid 7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7039printf "%s\n" "$supported" >&6; } 7040 if test "$supported" = "yes" ; then 7041 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7042 found="yes" 7043 fi 7044 fi 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060xorg_testset_save_CFLAGS="$CFLAGS" 7061 7062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7066if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7067then : 7068 printf %s "(cached) " >&6 7069else case e in #( 7070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7071/* end confdefs.h. */ 7072int i; 7073_ACEOF 7074if ac_fn_c_try_compile "$LINENO" 7075then : 7076 xorg_cv_cc_flag_unknown_warning_option=yes 7077else case e in #( 7078 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7079esac 7080fi 7081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7082esac 7083fi 7084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7087 CFLAGS="$xorg_testset_save_CFLAGS" 7088fi 7089 7090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7093 fi 7094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7097if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7098then : 7099 printf %s "(cached) " >&6 7100else case e in #( 7101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7102/* end confdefs.h. */ 7103int i; 7104_ACEOF 7105if ac_fn_c_try_compile "$LINENO" 7106then : 7107 xorg_cv_cc_flag_unused_command_line_argument=yes 7108else case e in #( 7109 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7110esac 7111fi 7112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7113esac 7114fi 7115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7118 CFLAGS="$xorg_testset_save_CFLAGS" 7119fi 7120 7121found="no" 7122 7123 if test $found = "no" ; then 7124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7126 fi 7127 7128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7130 fi 7131 7132 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7133 7134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7135printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7136 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7137 if eval test \${$cacheid+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; 7144int 7145main (void) 7146{ 7147 7148 ; 7149 return 0; 7150} 7151_ACEOF 7152if ac_fn_c_try_link "$LINENO" 7153then : 7154 eval $cacheid=yes 7155else case e in #( 7156 e) eval $cacheid=no ;; 7157esac 7158fi 7159rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7160 conftest$ac_exeext conftest.$ac_ext ;; 7161esac 7162fi 7163 7164 7165 CFLAGS="$xorg_testset_save_CFLAGS" 7166 7167 eval supported=\$$cacheid 7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7169printf "%s\n" "$supported" >&6; } 7170 if test "$supported" = "yes" ; then 7171 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7172 found="yes" 7173 fi 7174 fi 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190xorg_testset_save_CFLAGS="$CFLAGS" 7191 7192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7195printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7196if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7197then : 7198 printf %s "(cached) " >&6 7199else case e in #( 7200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7201/* end confdefs.h. */ 7202int i; 7203_ACEOF 7204if ac_fn_c_try_compile "$LINENO" 7205then : 7206 xorg_cv_cc_flag_unknown_warning_option=yes 7207else case e in #( 7208 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7209esac 7210fi 7211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7212esac 7213fi 7214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7217 CFLAGS="$xorg_testset_save_CFLAGS" 7218fi 7219 7220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7223 fi 7224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7227if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7228then : 7229 printf %s "(cached) " >&6 7230else case e in #( 7231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7232/* end confdefs.h. */ 7233int i; 7234_ACEOF 7235if ac_fn_c_try_compile "$LINENO" 7236then : 7237 xorg_cv_cc_flag_unused_command_line_argument=yes 7238else case e in #( 7239 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7240esac 7241fi 7242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7243esac 7244fi 7245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7248 CFLAGS="$xorg_testset_save_CFLAGS" 7249fi 7250 7251found="no" 7252 7253 if test $found = "no" ; then 7254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7256 fi 7257 7258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7260 fi 7261 7262 CFLAGS="$CFLAGS -Wredundant-decls" 7263 7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7265printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7266 cacheid=xorg_cv_cc_flag__Wredundant_decls 7267 if eval test \${$cacheid+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; 7274int 7275main (void) 7276{ 7277 7278 ; 7279 return 0; 7280} 7281_ACEOF 7282if ac_fn_c_try_link "$LINENO" 7283then : 7284 eval $cacheid=yes 7285else case e in #( 7286 e) eval $cacheid=no ;; 7287esac 7288fi 7289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7290 conftest$ac_exeext conftest.$ac_ext ;; 7291esac 7292fi 7293 7294 7295 CFLAGS="$xorg_testset_save_CFLAGS" 7296 7297 eval supported=\$$cacheid 7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7299printf "%s\n" "$supported" >&6; } 7300 if test "$supported" = "yes" ; then 7301 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7302 found="yes" 7303 fi 7304 fi 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320xorg_testset_save_CFLAGS="$CFLAGS" 7321 7322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7326if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7327then : 7328 printf %s "(cached) " >&6 7329else case e in #( 7330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7331/* end confdefs.h. */ 7332int i; 7333_ACEOF 7334if ac_fn_c_try_compile "$LINENO" 7335then : 7336 xorg_cv_cc_flag_unknown_warning_option=yes 7337else case e in #( 7338 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7339esac 7340fi 7341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7342esac 7343fi 7344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7345printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7347 CFLAGS="$xorg_testset_save_CFLAGS" 7348fi 7349 7350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7353 fi 7354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7356printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7357if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7358then : 7359 printf %s "(cached) " >&6 7360else case e in #( 7361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362/* end confdefs.h. */ 7363int i; 7364_ACEOF 7365if ac_fn_c_try_compile "$LINENO" 7366then : 7367 xorg_cv_cc_flag_unused_command_line_argument=yes 7368else case e in #( 7369 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7370esac 7371fi 7372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7373esac 7374fi 7375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7378 CFLAGS="$xorg_testset_save_CFLAGS" 7379fi 7380 7381found="no" 7382 7383 if test $found = "no" ; then 7384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7386 fi 7387 7388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7390 fi 7391 7392 CFLAGS="$CFLAGS -Wlogical-op" 7393 7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7395printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7396 cacheid=xorg_cv_cc_flag__Wlogical_op 7397 if eval test \${$cacheid+y} 7398then : 7399 printf %s "(cached) " >&6 7400else case e in #( 7401 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7402/* end confdefs.h. */ 7403int i; 7404int 7405main (void) 7406{ 7407 7408 ; 7409 return 0; 7410} 7411_ACEOF 7412if ac_fn_c_try_link "$LINENO" 7413then : 7414 eval $cacheid=yes 7415else case e in #( 7416 e) eval $cacheid=no ;; 7417esac 7418fi 7419rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7420 conftest$ac_exeext conftest.$ac_ext ;; 7421esac 7422fi 7423 7424 7425 CFLAGS="$xorg_testset_save_CFLAGS" 7426 7427 eval supported=\$$cacheid 7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7429printf "%s\n" "$supported" >&6; } 7430 if test "$supported" = "yes" ; then 7431 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7432 found="yes" 7433 fi 7434 fi 7435 7436 7437 7438# These are currently disabled because they are noisy. They will be enabled 7439# in the future once the codebase is sufficiently modernized to silence 7440# them. For now, I don't want them to drown out the other warnings. 7441# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7442# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7443# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7444 7445# Turn some warnings into errors, so we don't accidentally get successful builds 7446# when there are problems that should be fixed. 7447 7448if test "x$SELECTIVE_WERROR" = "xyes" ; then 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462xorg_testset_save_CFLAGS="$CFLAGS" 7463 7464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7468if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7469then : 7470 printf %s "(cached) " >&6 7471else case e in #( 7472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7473/* end confdefs.h. */ 7474int i; 7475_ACEOF 7476if ac_fn_c_try_compile "$LINENO" 7477then : 7478 xorg_cv_cc_flag_unknown_warning_option=yes 7479else case e in #( 7480 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7481esac 7482fi 7483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7484esac 7485fi 7486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7489 CFLAGS="$xorg_testset_save_CFLAGS" 7490fi 7491 7492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7495 fi 7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7499if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7500then : 7501 printf %s "(cached) " >&6 7502else case e in #( 7503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504/* end confdefs.h. */ 7505int i; 7506_ACEOF 7507if ac_fn_c_try_compile "$LINENO" 7508then : 7509 xorg_cv_cc_flag_unused_command_line_argument=yes 7510else case e in #( 7511 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7512esac 7513fi 7514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7515esac 7516fi 7517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7520 CFLAGS="$xorg_testset_save_CFLAGS" 7521fi 7522 7523found="no" 7524 7525 if test $found = "no" ; then 7526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7528 fi 7529 7530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7532 fi 7533 7534 CFLAGS="$CFLAGS -Werror=implicit" 7535 7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7537printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7538 cacheid=xorg_cv_cc_flag__Werror_implicit 7539 if eval test \${$cacheid+y} 7540then : 7541 printf %s "(cached) " >&6 7542else case e in #( 7543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545int i; 7546int 7547main (void) 7548{ 7549 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554if ac_fn_c_try_link "$LINENO" 7555then : 7556 eval $cacheid=yes 7557else case e in #( 7558 e) eval $cacheid=no ;; 7559esac 7560fi 7561rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7562 conftest$ac_exeext conftest.$ac_ext ;; 7563esac 7564fi 7565 7566 7567 CFLAGS="$xorg_testset_save_CFLAGS" 7568 7569 eval supported=\$$cacheid 7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7571printf "%s\n" "$supported" >&6; } 7572 if test "$supported" = "yes" ; then 7573 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7574 found="yes" 7575 fi 7576 fi 7577 7578 if test $found = "no" ; then 7579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7581 fi 7582 7583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7585 fi 7586 7587 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7588 7589 { 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 7590printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7591 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7592 if eval test \${$cacheid+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; 7599int 7600main (void) 7601{ 7602 7603 ; 7604 return 0; 7605} 7606_ACEOF 7607if ac_fn_c_try_link "$LINENO" 7608then : 7609 eval $cacheid=yes 7610else case e in #( 7611 e) eval $cacheid=no ;; 7612esac 7613fi 7614rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7615 conftest$ac_exeext conftest.$ac_ext ;; 7616esac 7617fi 7618 7619 7620 CFLAGS="$xorg_testset_save_CFLAGS" 7621 7622 eval supported=\$$cacheid 7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7624printf "%s\n" "$supported" >&6; } 7625 if test "$supported" = "yes" ; then 7626 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7627 found="yes" 7628 fi 7629 fi 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645xorg_testset_save_CFLAGS="$CFLAGS" 7646 7647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7651if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7652then : 7653 printf %s "(cached) " >&6 7654else case e in #( 7655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7656/* end confdefs.h. */ 7657int i; 7658_ACEOF 7659if ac_fn_c_try_compile "$LINENO" 7660then : 7661 xorg_cv_cc_flag_unknown_warning_option=yes 7662else case e in #( 7663 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7664esac 7665fi 7666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7667esac 7668fi 7669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7670printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7672 CFLAGS="$xorg_testset_save_CFLAGS" 7673fi 7674 7675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7678 fi 7679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7681printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7682if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7683then : 7684 printf %s "(cached) " >&6 7685else case e in #( 7686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688int i; 7689_ACEOF 7690if ac_fn_c_try_compile "$LINENO" 7691then : 7692 xorg_cv_cc_flag_unused_command_line_argument=yes 7693else case e in #( 7694 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7695esac 7696fi 7697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7698esac 7699fi 7700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7703 CFLAGS="$xorg_testset_save_CFLAGS" 7704fi 7705 7706found="no" 7707 7708 if test $found = "no" ; then 7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7711 fi 7712 7713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7715 fi 7716 7717 CFLAGS="$CFLAGS -Werror=nonnull" 7718 7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7720printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7721 cacheid=xorg_cv_cc_flag__Werror_nonnull 7722 if eval test \${$cacheid+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; 7729int 7730main (void) 7731{ 7732 7733 ; 7734 return 0; 7735} 7736_ACEOF 7737if ac_fn_c_try_link "$LINENO" 7738then : 7739 eval $cacheid=yes 7740else case e in #( 7741 e) eval $cacheid=no ;; 7742esac 7743fi 7744rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7745 conftest$ac_exeext conftest.$ac_ext ;; 7746esac 7747fi 7748 7749 7750 CFLAGS="$xorg_testset_save_CFLAGS" 7751 7752 eval supported=\$$cacheid 7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7754printf "%s\n" "$supported" >&6; } 7755 if test "$supported" = "yes" ; then 7756 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7757 found="yes" 7758 fi 7759 fi 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775xorg_testset_save_CFLAGS="$CFLAGS" 7776 7777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7780printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7781if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7782then : 7783 printf %s "(cached) " >&6 7784else case e in #( 7785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7786/* end confdefs.h. */ 7787int i; 7788_ACEOF 7789if ac_fn_c_try_compile "$LINENO" 7790then : 7791 xorg_cv_cc_flag_unknown_warning_option=yes 7792else case e in #( 7793 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7794esac 7795fi 7796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7797esac 7798fi 7799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7802 CFLAGS="$xorg_testset_save_CFLAGS" 7803fi 7804 7805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7808 fi 7809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7812if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7813then : 7814 printf %s "(cached) " >&6 7815else case e in #( 7816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7817/* end confdefs.h. */ 7818int i; 7819_ACEOF 7820if ac_fn_c_try_compile "$LINENO" 7821then : 7822 xorg_cv_cc_flag_unused_command_line_argument=yes 7823else case e in #( 7824 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7825esac 7826fi 7827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7828esac 7829fi 7830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7833 CFLAGS="$xorg_testset_save_CFLAGS" 7834fi 7835 7836found="no" 7837 7838 if test $found = "no" ; then 7839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7841 fi 7842 7843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7845 fi 7846 7847 CFLAGS="$CFLAGS -Werror=init-self" 7848 7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7850printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7851 cacheid=xorg_cv_cc_flag__Werror_init_self 7852 if eval test \${$cacheid+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; 7859int 7860main (void) 7861{ 7862 7863 ; 7864 return 0; 7865} 7866_ACEOF 7867if ac_fn_c_try_link "$LINENO" 7868then : 7869 eval $cacheid=yes 7870else case e in #( 7871 e) eval $cacheid=no ;; 7872esac 7873fi 7874rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7875 conftest$ac_exeext conftest.$ac_ext ;; 7876esac 7877fi 7878 7879 7880 CFLAGS="$xorg_testset_save_CFLAGS" 7881 7882 eval supported=\$$cacheid 7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7884printf "%s\n" "$supported" >&6; } 7885 if test "$supported" = "yes" ; then 7886 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7887 found="yes" 7888 fi 7889 fi 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905xorg_testset_save_CFLAGS="$CFLAGS" 7906 7907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7910printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7911if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7912then : 7913 printf %s "(cached) " >&6 7914else case e in #( 7915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916/* end confdefs.h. */ 7917int i; 7918_ACEOF 7919if ac_fn_c_try_compile "$LINENO" 7920then : 7921 xorg_cv_cc_flag_unknown_warning_option=yes 7922else case e in #( 7923 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7924esac 7925fi 7926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7927esac 7928fi 7929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7930printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7932 CFLAGS="$xorg_testset_save_CFLAGS" 7933fi 7934 7935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7938 fi 7939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7941printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7942if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7943then : 7944 printf %s "(cached) " >&6 7945else case e in #( 7946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948int i; 7949_ACEOF 7950if ac_fn_c_try_compile "$LINENO" 7951then : 7952 xorg_cv_cc_flag_unused_command_line_argument=yes 7953else case e in #( 7954 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7955esac 7956fi 7957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7958esac 7959fi 7960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7961printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7963 CFLAGS="$xorg_testset_save_CFLAGS" 7964fi 7965 7966found="no" 7967 7968 if test $found = "no" ; then 7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7971 fi 7972 7973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7975 fi 7976 7977 CFLAGS="$CFLAGS -Werror=main" 7978 7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7980printf %s "checking if $CC supports -Werror=main... " >&6; } 7981 cacheid=xorg_cv_cc_flag__Werror_main 7982 if eval test \${$cacheid+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; 7989int 7990main (void) 7991{ 7992 7993 ; 7994 return 0; 7995} 7996_ACEOF 7997if ac_fn_c_try_link "$LINENO" 7998then : 7999 eval $cacheid=yes 8000else case e in #( 8001 e) eval $cacheid=no ;; 8002esac 8003fi 8004rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8005 conftest$ac_exeext conftest.$ac_ext ;; 8006esac 8007fi 8008 8009 8010 CFLAGS="$xorg_testset_save_CFLAGS" 8011 8012 eval supported=\$$cacheid 8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8014printf "%s\n" "$supported" >&6; } 8015 if test "$supported" = "yes" ; then 8016 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8017 found="yes" 8018 fi 8019 fi 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035xorg_testset_save_CFLAGS="$CFLAGS" 8036 8037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8040printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8041if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8042then : 8043 printf %s "(cached) " >&6 8044else case e in #( 8045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8046/* end confdefs.h. */ 8047int i; 8048_ACEOF 8049if ac_fn_c_try_compile "$LINENO" 8050then : 8051 xorg_cv_cc_flag_unknown_warning_option=yes 8052else case e in #( 8053 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8054esac 8055fi 8056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8057esac 8058fi 8059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8060printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8062 CFLAGS="$xorg_testset_save_CFLAGS" 8063fi 8064 8065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 fi 8069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8071printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8072if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8073then : 8074 printf %s "(cached) " >&6 8075else case e in #( 8076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8077/* end confdefs.h. */ 8078int i; 8079_ACEOF 8080if ac_fn_c_try_compile "$LINENO" 8081then : 8082 xorg_cv_cc_flag_unused_command_line_argument=yes 8083else case e in #( 8084 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8085esac 8086fi 8087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8088esac 8089fi 8090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8093 CFLAGS="$xorg_testset_save_CFLAGS" 8094fi 8095 8096found="no" 8097 8098 if test $found = "no" ; then 8099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8101 fi 8102 8103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8105 fi 8106 8107 CFLAGS="$CFLAGS -Werror=missing-braces" 8108 8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8110printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8111 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8112 if eval test \${$cacheid+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; 8119int 8120main (void) 8121{ 8122 8123 ; 8124 return 0; 8125} 8126_ACEOF 8127if ac_fn_c_try_link "$LINENO" 8128then : 8129 eval $cacheid=yes 8130else case e in #( 8131 e) eval $cacheid=no ;; 8132esac 8133fi 8134rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8135 conftest$ac_exeext conftest.$ac_ext ;; 8136esac 8137fi 8138 8139 8140 CFLAGS="$xorg_testset_save_CFLAGS" 8141 8142 eval supported=\$$cacheid 8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8144printf "%s\n" "$supported" >&6; } 8145 if test "$supported" = "yes" ; then 8146 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8147 found="yes" 8148 fi 8149 fi 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165xorg_testset_save_CFLAGS="$CFLAGS" 8166 8167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8171if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8172then : 8173 printf %s "(cached) " >&6 8174else case e in #( 8175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8176/* end confdefs.h. */ 8177int i; 8178_ACEOF 8179if ac_fn_c_try_compile "$LINENO" 8180then : 8181 xorg_cv_cc_flag_unknown_warning_option=yes 8182else case e in #( 8183 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8184esac 8185fi 8186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8187esac 8188fi 8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8190printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8192 CFLAGS="$xorg_testset_save_CFLAGS" 8193fi 8194 8195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8198 fi 8199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8201printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8202if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8203then : 8204 printf %s "(cached) " >&6 8205else case e in #( 8206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208int i; 8209_ACEOF 8210if ac_fn_c_try_compile "$LINENO" 8211then : 8212 xorg_cv_cc_flag_unused_command_line_argument=yes 8213else case e in #( 8214 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8215esac 8216fi 8217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8218esac 8219fi 8220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8221printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224fi 8225 8226found="no" 8227 8228 if test $found = "no" ; then 8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8231 fi 8232 8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8235 fi 8236 8237 CFLAGS="$CFLAGS -Werror=sequence-point" 8238 8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8240printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8241 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8242 if eval test \${$cacheid+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; 8249int 8250main (void) 8251{ 8252 8253 ; 8254 return 0; 8255} 8256_ACEOF 8257if ac_fn_c_try_link "$LINENO" 8258then : 8259 eval $cacheid=yes 8260else case e in #( 8261 e) eval $cacheid=no ;; 8262esac 8263fi 8264rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8265 conftest$ac_exeext conftest.$ac_ext ;; 8266esac 8267fi 8268 8269 8270 CFLAGS="$xorg_testset_save_CFLAGS" 8271 8272 eval supported=\$$cacheid 8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8274printf "%s\n" "$supported" >&6; } 8275 if test "$supported" = "yes" ; then 8276 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8277 found="yes" 8278 fi 8279 fi 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295xorg_testset_save_CFLAGS="$CFLAGS" 8296 8297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8301if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8302then : 8303 printf %s "(cached) " >&6 8304else case e in #( 8305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307int i; 8308_ACEOF 8309if ac_fn_c_try_compile "$LINENO" 8310then : 8311 xorg_cv_cc_flag_unknown_warning_option=yes 8312else case e in #( 8313 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8314esac 8315fi 8316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8317esac 8318fi 8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8322 CFLAGS="$xorg_testset_save_CFLAGS" 8323fi 8324 8325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8328 fi 8329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8332if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8333then : 8334 printf %s "(cached) " >&6 8335else case e in #( 8336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337/* end confdefs.h. */ 8338int i; 8339_ACEOF 8340if ac_fn_c_try_compile "$LINENO" 8341then : 8342 xorg_cv_cc_flag_unused_command_line_argument=yes 8343else case e in #( 8344 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8345esac 8346fi 8347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8348esac 8349fi 8350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8353 CFLAGS="$xorg_testset_save_CFLAGS" 8354fi 8355 8356found="no" 8357 8358 if test $found = "no" ; then 8359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8361 fi 8362 8363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8365 fi 8366 8367 CFLAGS="$CFLAGS -Werror=return-type" 8368 8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8370printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8371 cacheid=xorg_cv_cc_flag__Werror_return_type 8372 if eval test \${$cacheid+y} 8373then : 8374 printf %s "(cached) " >&6 8375else case e in #( 8376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8377/* end confdefs.h. */ 8378int i; 8379int 8380main (void) 8381{ 8382 8383 ; 8384 return 0; 8385} 8386_ACEOF 8387if ac_fn_c_try_link "$LINENO" 8388then : 8389 eval $cacheid=yes 8390else case e in #( 8391 e) eval $cacheid=no ;; 8392esac 8393fi 8394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8395 conftest$ac_exeext conftest.$ac_ext ;; 8396esac 8397fi 8398 8399 8400 CFLAGS="$xorg_testset_save_CFLAGS" 8401 8402 eval supported=\$$cacheid 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8404printf "%s\n" "$supported" >&6; } 8405 if test "$supported" = "yes" ; then 8406 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8407 found="yes" 8408 fi 8409 fi 8410 8411 if test $found = "no" ; then 8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8414 fi 8415 8416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8418 fi 8419 8420 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8421 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8423printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8424 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8425 if eval test \${$cacheid+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; 8432int 8433main (void) 8434{ 8435 8436 ; 8437 return 0; 8438} 8439_ACEOF 8440if ac_fn_c_try_link "$LINENO" 8441then : 8442 eval $cacheid=yes 8443else case e in #( 8444 e) eval $cacheid=no ;; 8445esac 8446fi 8447rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8448 conftest$ac_exeext conftest.$ac_ext ;; 8449esac 8450fi 8451 8452 8453 CFLAGS="$xorg_testset_save_CFLAGS" 8454 8455 eval supported=\$$cacheid 8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8457printf "%s\n" "$supported" >&6; } 8458 if test "$supported" = "yes" ; then 8459 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8460 found="yes" 8461 fi 8462 fi 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478xorg_testset_save_CFLAGS="$CFLAGS" 8479 8480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8484if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8485then : 8486 printf %s "(cached) " >&6 8487else case e in #( 8488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490int i; 8491_ACEOF 8492if ac_fn_c_try_compile "$LINENO" 8493then : 8494 xorg_cv_cc_flag_unknown_warning_option=yes 8495else case e in #( 8496 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8497esac 8498fi 8499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8500esac 8501fi 8502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8505 CFLAGS="$xorg_testset_save_CFLAGS" 8506fi 8507 8508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8511 fi 8512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8515if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8516then : 8517 printf %s "(cached) " >&6 8518else case e in #( 8519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521int i; 8522_ACEOF 8523if ac_fn_c_try_compile "$LINENO" 8524then : 8525 xorg_cv_cc_flag_unused_command_line_argument=yes 8526else case e in #( 8527 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8528esac 8529fi 8530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8531esac 8532fi 8533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8534printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8536 CFLAGS="$xorg_testset_save_CFLAGS" 8537fi 8538 8539found="no" 8540 8541 if test $found = "no" ; then 8542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8544 fi 8545 8546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8548 fi 8549 8550 CFLAGS="$CFLAGS -Werror=trigraphs" 8551 8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8553printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8554 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8555 if eval test \${$cacheid+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; 8562int 8563main (void) 8564{ 8565 8566 ; 8567 return 0; 8568} 8569_ACEOF 8570if ac_fn_c_try_link "$LINENO" 8571then : 8572 eval $cacheid=yes 8573else case e in #( 8574 e) eval $cacheid=no ;; 8575esac 8576fi 8577rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8578 conftest$ac_exeext conftest.$ac_ext ;; 8579esac 8580fi 8581 8582 8583 CFLAGS="$xorg_testset_save_CFLAGS" 8584 8585 eval supported=\$$cacheid 8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8587printf "%s\n" "$supported" >&6; } 8588 if test "$supported" = "yes" ; then 8589 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8590 found="yes" 8591 fi 8592 fi 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608xorg_testset_save_CFLAGS="$CFLAGS" 8609 8610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8614if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8615then : 8616 printf %s "(cached) " >&6 8617else case e in #( 8618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8619/* end confdefs.h. */ 8620int i; 8621_ACEOF 8622if ac_fn_c_try_compile "$LINENO" 8623then : 8624 xorg_cv_cc_flag_unknown_warning_option=yes 8625else case e in #( 8626 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8627esac 8628fi 8629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8630esac 8631fi 8632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636fi 8637 8638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8641 fi 8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8645if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8646then : 8647 printf %s "(cached) " >&6 8648else case e in #( 8649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8650/* end confdefs.h. */ 8651int i; 8652_ACEOF 8653if ac_fn_c_try_compile "$LINENO" 8654then : 8655 xorg_cv_cc_flag_unused_command_line_argument=yes 8656else case e in #( 8657 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8658esac 8659fi 8660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8661esac 8662fi 8663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8666 CFLAGS="$xorg_testset_save_CFLAGS" 8667fi 8668 8669found="no" 8670 8671 if test $found = "no" ; then 8672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8674 fi 8675 8676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8678 fi 8679 8680 CFLAGS="$CFLAGS -Werror=array-bounds" 8681 8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8683printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8684 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8685 if eval test \${$cacheid+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; 8692int 8693main (void) 8694{ 8695 8696 ; 8697 return 0; 8698} 8699_ACEOF 8700if ac_fn_c_try_link "$LINENO" 8701then : 8702 eval $cacheid=yes 8703else case e in #( 8704 e) eval $cacheid=no ;; 8705esac 8706fi 8707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8708 conftest$ac_exeext conftest.$ac_ext ;; 8709esac 8710fi 8711 8712 8713 CFLAGS="$xorg_testset_save_CFLAGS" 8714 8715 eval supported=\$$cacheid 8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8717printf "%s\n" "$supported" >&6; } 8718 if test "$supported" = "yes" ; then 8719 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8720 found="yes" 8721 fi 8722 fi 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738xorg_testset_save_CFLAGS="$CFLAGS" 8739 8740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8744if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8745then : 8746 printf %s "(cached) " >&6 8747else case e in #( 8748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8749/* end confdefs.h. */ 8750int i; 8751_ACEOF 8752if ac_fn_c_try_compile "$LINENO" 8753then : 8754 xorg_cv_cc_flag_unknown_warning_option=yes 8755else case e in #( 8756 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8757esac 8758fi 8759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8760esac 8761fi 8762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8765 CFLAGS="$xorg_testset_save_CFLAGS" 8766fi 8767 8768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8771 fi 8772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8775if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8776then : 8777 printf %s "(cached) " >&6 8778else case e in #( 8779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8780/* end confdefs.h. */ 8781int i; 8782_ACEOF 8783if ac_fn_c_try_compile "$LINENO" 8784then : 8785 xorg_cv_cc_flag_unused_command_line_argument=yes 8786else case e in #( 8787 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8788esac 8789fi 8790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8791esac 8792fi 8793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8796 CFLAGS="$xorg_testset_save_CFLAGS" 8797fi 8798 8799found="no" 8800 8801 if test $found = "no" ; then 8802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8804 fi 8805 8806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8808 fi 8809 8810 CFLAGS="$CFLAGS -Werror=write-strings" 8811 8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8813printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8814 cacheid=xorg_cv_cc_flag__Werror_write_strings 8815 if eval test \${$cacheid+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; 8822int 8823main (void) 8824{ 8825 8826 ; 8827 return 0; 8828} 8829_ACEOF 8830if ac_fn_c_try_link "$LINENO" 8831then : 8832 eval $cacheid=yes 8833else case e in #( 8834 e) eval $cacheid=no ;; 8835esac 8836fi 8837rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8838 conftest$ac_exeext conftest.$ac_ext ;; 8839esac 8840fi 8841 8842 8843 CFLAGS="$xorg_testset_save_CFLAGS" 8844 8845 eval supported=\$$cacheid 8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8847printf "%s\n" "$supported" >&6; } 8848 if test "$supported" = "yes" ; then 8849 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8850 found="yes" 8851 fi 8852 fi 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868xorg_testset_save_CFLAGS="$CFLAGS" 8869 8870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8873printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8874if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8875then : 8876 printf %s "(cached) " >&6 8877else case e in #( 8878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8879/* end confdefs.h. */ 8880int i; 8881_ACEOF 8882if ac_fn_c_try_compile "$LINENO" 8883then : 8884 xorg_cv_cc_flag_unknown_warning_option=yes 8885else case e in #( 8886 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8887esac 8888fi 8889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8890esac 8891fi 8892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8895 CFLAGS="$xorg_testset_save_CFLAGS" 8896fi 8897 8898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8901 fi 8902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8905if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8906then : 8907 printf %s "(cached) " >&6 8908else case e in #( 8909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8910/* end confdefs.h. */ 8911int i; 8912_ACEOF 8913if ac_fn_c_try_compile "$LINENO" 8914then : 8915 xorg_cv_cc_flag_unused_command_line_argument=yes 8916else case e in #( 8917 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8918esac 8919fi 8920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8921esac 8922fi 8923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8924printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8926 CFLAGS="$xorg_testset_save_CFLAGS" 8927fi 8928 8929found="no" 8930 8931 if test $found = "no" ; then 8932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8934 fi 8935 8936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8938 fi 8939 8940 CFLAGS="$CFLAGS -Werror=address" 8941 8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8943printf %s "checking if $CC supports -Werror=address... " >&6; } 8944 cacheid=xorg_cv_cc_flag__Werror_address 8945 if eval test \${$cacheid+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; 8952int 8953main (void) 8954{ 8955 8956 ; 8957 return 0; 8958} 8959_ACEOF 8960if ac_fn_c_try_link "$LINENO" 8961then : 8962 eval $cacheid=yes 8963else case e in #( 8964 e) eval $cacheid=no ;; 8965esac 8966fi 8967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8968 conftest$ac_exeext conftest.$ac_ext ;; 8969esac 8970fi 8971 8972 8973 CFLAGS="$xorg_testset_save_CFLAGS" 8974 8975 eval supported=\$$cacheid 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8977printf "%s\n" "$supported" >&6; } 8978 if test "$supported" = "yes" ; then 8979 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8980 found="yes" 8981 fi 8982 fi 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998xorg_testset_save_CFLAGS="$CFLAGS" 8999 9000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9003printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9004if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9005then : 9006 printf %s "(cached) " >&6 9007else case e in #( 9008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9009/* end confdefs.h. */ 9010int i; 9011_ACEOF 9012if ac_fn_c_try_compile "$LINENO" 9013then : 9014 xorg_cv_cc_flag_unknown_warning_option=yes 9015else case e in #( 9016 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9017esac 9018fi 9019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9020esac 9021fi 9022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9025 CFLAGS="$xorg_testset_save_CFLAGS" 9026fi 9027 9028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9031 fi 9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9035if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9036then : 9037 printf %s "(cached) " >&6 9038else case e in #( 9039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041int i; 9042_ACEOF 9043if ac_fn_c_try_compile "$LINENO" 9044then : 9045 xorg_cv_cc_flag_unused_command_line_argument=yes 9046else case e in #( 9047 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9048esac 9049fi 9050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9051esac 9052fi 9053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9054printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9056 CFLAGS="$xorg_testset_save_CFLAGS" 9057fi 9058 9059found="no" 9060 9061 if test $found = "no" ; then 9062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9064 fi 9065 9066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9068 fi 9069 9070 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9071 9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9073printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9074 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9075 if eval test \${$cacheid+y} 9076then : 9077 printf %s "(cached) " >&6 9078else case e in #( 9079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9080/* end confdefs.h. */ 9081int i; 9082int 9083main (void) 9084{ 9085 9086 ; 9087 return 0; 9088} 9089_ACEOF 9090if ac_fn_c_try_link "$LINENO" 9091then : 9092 eval $cacheid=yes 9093else case e in #( 9094 e) eval $cacheid=no ;; 9095esac 9096fi 9097rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9098 conftest$ac_exeext conftest.$ac_ext ;; 9099esac 9100fi 9101 9102 9103 CFLAGS="$xorg_testset_save_CFLAGS" 9104 9105 eval supported=\$$cacheid 9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9107printf "%s\n" "$supported" >&6; } 9108 if test "$supported" = "yes" ; then 9109 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9110 found="yes" 9111 fi 9112 fi 9113 9114 if test $found = "no" ; then 9115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9117 fi 9118 9119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9121 fi 9122 9123 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9124 9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9126printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9127 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9128 if eval test \${$cacheid+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; 9135int 9136main (void) 9137{ 9138 9139 ; 9140 return 0; 9141} 9142_ACEOF 9143if ac_fn_c_try_link "$LINENO" 9144then : 9145 eval $cacheid=yes 9146else case e in #( 9147 e) eval $cacheid=no ;; 9148esac 9149fi 9150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9151 conftest$ac_exeext conftest.$ac_ext ;; 9152esac 9153fi 9154 9155 9156 CFLAGS="$xorg_testset_save_CFLAGS" 9157 9158 eval supported=\$$cacheid 9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9160printf "%s\n" "$supported" >&6; } 9161 if test "$supported" = "yes" ; then 9162 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9163 found="yes" 9164 fi 9165 fi 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181xorg_testset_save_CFLAGS="$CFLAGS" 9182 9183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9187if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9188then : 9189 printf %s "(cached) " >&6 9190else case e in #( 9191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9192/* end confdefs.h. */ 9193int i; 9194_ACEOF 9195if ac_fn_c_try_compile "$LINENO" 9196then : 9197 xorg_cv_cc_flag_unknown_warning_option=yes 9198else case e in #( 9199 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9200esac 9201fi 9202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9203esac 9204fi 9205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9208 CFLAGS="$xorg_testset_save_CFLAGS" 9209fi 9210 9211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9214 fi 9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9218if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9219then : 9220 printf %s "(cached) " >&6 9221else case e in #( 9222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9223/* end confdefs.h. */ 9224int i; 9225_ACEOF 9226if ac_fn_c_try_compile "$LINENO" 9227then : 9228 xorg_cv_cc_flag_unused_command_line_argument=yes 9229else case e in #( 9230 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9231esac 9232fi 9233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9234esac 9235fi 9236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9239 CFLAGS="$xorg_testset_save_CFLAGS" 9240fi 9241 9242found="no" 9243 9244 if test $found = "no" ; then 9245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9247 fi 9248 9249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9251 fi 9252 9253 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9254 9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9256printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9257 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9258 if eval test \${$cacheid+y} 9259then : 9260 printf %s "(cached) " >&6 9261else case e in #( 9262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9263/* end confdefs.h. */ 9264int i; 9265int 9266main (void) 9267{ 9268 9269 ; 9270 return 0; 9271} 9272_ACEOF 9273if ac_fn_c_try_link "$LINENO" 9274then : 9275 eval $cacheid=yes 9276else case e in #( 9277 e) eval $cacheid=no ;; 9278esac 9279fi 9280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9281 conftest$ac_exeext conftest.$ac_ext ;; 9282esac 9283fi 9284 9285 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287 9288 eval supported=\$$cacheid 9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9290printf "%s\n" "$supported" >&6; } 9291 if test "$supported" = "yes" ; then 9292 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9293 found="yes" 9294 fi 9295 fi 9296 9297 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9298else 9299{ 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 9300printf "%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;} 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314xorg_testset_save_CFLAGS="$CFLAGS" 9315 9316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9320if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9321then : 9322 printf %s "(cached) " >&6 9323else case e in #( 9324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9325/* end confdefs.h. */ 9326int i; 9327_ACEOF 9328if ac_fn_c_try_compile "$LINENO" 9329then : 9330 xorg_cv_cc_flag_unknown_warning_option=yes 9331else case e in #( 9332 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9333esac 9334fi 9335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9336esac 9337fi 9338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9341 CFLAGS="$xorg_testset_save_CFLAGS" 9342fi 9343 9344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9347 fi 9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9351if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9352then : 9353 printf %s "(cached) " >&6 9354else case e in #( 9355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9356/* end confdefs.h. */ 9357int i; 9358_ACEOF 9359if ac_fn_c_try_compile "$LINENO" 9360then : 9361 xorg_cv_cc_flag_unused_command_line_argument=yes 9362else case e in #( 9363 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9364esac 9365fi 9366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9367esac 9368fi 9369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9370printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9372 CFLAGS="$xorg_testset_save_CFLAGS" 9373fi 9374 9375found="no" 9376 9377 if test $found = "no" ; then 9378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9380 fi 9381 9382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9384 fi 9385 9386 CFLAGS="$CFLAGS -Wimplicit" 9387 9388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9389printf %s "checking if $CC supports -Wimplicit... " >&6; } 9390 cacheid=xorg_cv_cc_flag__Wimplicit 9391 if eval test \${$cacheid+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; 9398int 9399main (void) 9400{ 9401 9402 ; 9403 return 0; 9404} 9405_ACEOF 9406if ac_fn_c_try_link "$LINENO" 9407then : 9408 eval $cacheid=yes 9409else case e in #( 9410 e) eval $cacheid=no ;; 9411esac 9412fi 9413rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9414 conftest$ac_exeext conftest.$ac_ext ;; 9415esac 9416fi 9417 9418 9419 CFLAGS="$xorg_testset_save_CFLAGS" 9420 9421 eval supported=\$$cacheid 9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9423printf "%s\n" "$supported" >&6; } 9424 if test "$supported" = "yes" ; then 9425 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9426 found="yes" 9427 fi 9428 fi 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444xorg_testset_save_CFLAGS="$CFLAGS" 9445 9446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9450if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9451then : 9452 printf %s "(cached) " >&6 9453else case e in #( 9454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9455/* end confdefs.h. */ 9456int i; 9457_ACEOF 9458if ac_fn_c_try_compile "$LINENO" 9459then : 9460 xorg_cv_cc_flag_unknown_warning_option=yes 9461else case e in #( 9462 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9463esac 9464fi 9465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9466esac 9467fi 9468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9469printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9471 CFLAGS="$xorg_testset_save_CFLAGS" 9472fi 9473 9474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9477 fi 9478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9480printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9481if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9482then : 9483 printf %s "(cached) " >&6 9484else case e in #( 9485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9486/* end confdefs.h. */ 9487int i; 9488_ACEOF 9489if ac_fn_c_try_compile "$LINENO" 9490then : 9491 xorg_cv_cc_flag_unused_command_line_argument=yes 9492else case e in #( 9493 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9494esac 9495fi 9496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9497esac 9498fi 9499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9502 CFLAGS="$xorg_testset_save_CFLAGS" 9503fi 9504 9505found="no" 9506 9507 if test $found = "no" ; then 9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9510 fi 9511 9512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9514 fi 9515 9516 CFLAGS="$CFLAGS -Wnonnull" 9517 9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9519printf %s "checking if $CC supports -Wnonnull... " >&6; } 9520 cacheid=xorg_cv_cc_flag__Wnonnull 9521 if eval test \${$cacheid+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; 9528int 9529main (void) 9530{ 9531 9532 ; 9533 return 0; 9534} 9535_ACEOF 9536if ac_fn_c_try_link "$LINENO" 9537then : 9538 eval $cacheid=yes 9539else case e in #( 9540 e) eval $cacheid=no ;; 9541esac 9542fi 9543rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9544 conftest$ac_exeext conftest.$ac_ext ;; 9545esac 9546fi 9547 9548 9549 CFLAGS="$xorg_testset_save_CFLAGS" 9550 9551 eval supported=\$$cacheid 9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9553printf "%s\n" "$supported" >&6; } 9554 if test "$supported" = "yes" ; then 9555 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9556 found="yes" 9557 fi 9558 fi 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574xorg_testset_save_CFLAGS="$CFLAGS" 9575 9576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9580if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9581then : 9582 printf %s "(cached) " >&6 9583else case e in #( 9584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9585/* end confdefs.h. */ 9586int i; 9587_ACEOF 9588if ac_fn_c_try_compile "$LINENO" 9589then : 9590 xorg_cv_cc_flag_unknown_warning_option=yes 9591else case e in #( 9592 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9593esac 9594fi 9595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9596esac 9597fi 9598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9599printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602fi 9603 9604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9607 fi 9608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9610printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9611if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9612then : 9613 printf %s "(cached) " >&6 9614else case e in #( 9615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9616/* end confdefs.h. */ 9617int i; 9618_ACEOF 9619if ac_fn_c_try_compile "$LINENO" 9620then : 9621 xorg_cv_cc_flag_unused_command_line_argument=yes 9622else case e in #( 9623 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9624esac 9625fi 9626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9627esac 9628fi 9629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9632 CFLAGS="$xorg_testset_save_CFLAGS" 9633fi 9634 9635found="no" 9636 9637 if test $found = "no" ; then 9638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9640 fi 9641 9642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9644 fi 9645 9646 CFLAGS="$CFLAGS -Winit-self" 9647 9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9649printf %s "checking if $CC supports -Winit-self... " >&6; } 9650 cacheid=xorg_cv_cc_flag__Winit_self 9651 if eval test \${$cacheid+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; 9658int 9659main (void) 9660{ 9661 9662 ; 9663 return 0; 9664} 9665_ACEOF 9666if ac_fn_c_try_link "$LINENO" 9667then : 9668 eval $cacheid=yes 9669else case e in #( 9670 e) eval $cacheid=no ;; 9671esac 9672fi 9673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9674 conftest$ac_exeext conftest.$ac_ext ;; 9675esac 9676fi 9677 9678 9679 CFLAGS="$xorg_testset_save_CFLAGS" 9680 9681 eval supported=\$$cacheid 9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9683printf "%s\n" "$supported" >&6; } 9684 if test "$supported" = "yes" ; then 9685 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9686 found="yes" 9687 fi 9688 fi 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704xorg_testset_save_CFLAGS="$CFLAGS" 9705 9706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9710if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9711then : 9712 printf %s "(cached) " >&6 9713else case e in #( 9714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9715/* end confdefs.h. */ 9716int i; 9717_ACEOF 9718if ac_fn_c_try_compile "$LINENO" 9719then : 9720 xorg_cv_cc_flag_unknown_warning_option=yes 9721else case e in #( 9722 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9723esac 9724fi 9725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9726esac 9727fi 9728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9729printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732fi 9733 9734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9737 fi 9738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9740printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9741if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9742then : 9743 printf %s "(cached) " >&6 9744else case e in #( 9745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9746/* end confdefs.h. */ 9747int i; 9748_ACEOF 9749if ac_fn_c_try_compile "$LINENO" 9750then : 9751 xorg_cv_cc_flag_unused_command_line_argument=yes 9752else case e in #( 9753 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9754esac 9755fi 9756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9757esac 9758fi 9759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9760printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9762 CFLAGS="$xorg_testset_save_CFLAGS" 9763fi 9764 9765found="no" 9766 9767 if test $found = "no" ; then 9768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9770 fi 9771 9772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9774 fi 9775 9776 CFLAGS="$CFLAGS -Wmain" 9777 9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9779printf %s "checking if $CC supports -Wmain... " >&6; } 9780 cacheid=xorg_cv_cc_flag__Wmain 9781 if eval test \${$cacheid+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; 9788int 9789main (void) 9790{ 9791 9792 ; 9793 return 0; 9794} 9795_ACEOF 9796if ac_fn_c_try_link "$LINENO" 9797then : 9798 eval $cacheid=yes 9799else case e in #( 9800 e) eval $cacheid=no ;; 9801esac 9802fi 9803rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9804 conftest$ac_exeext conftest.$ac_ext ;; 9805esac 9806fi 9807 9808 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810 9811 eval supported=\$$cacheid 9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9813printf "%s\n" "$supported" >&6; } 9814 if test "$supported" = "yes" ; then 9815 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9816 found="yes" 9817 fi 9818 fi 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834xorg_testset_save_CFLAGS="$CFLAGS" 9835 9836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9840if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9841then : 9842 printf %s "(cached) " >&6 9843else case e in #( 9844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9845/* end confdefs.h. */ 9846int i; 9847_ACEOF 9848if ac_fn_c_try_compile "$LINENO" 9849then : 9850 xorg_cv_cc_flag_unknown_warning_option=yes 9851else case e in #( 9852 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9853esac 9854fi 9855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9856esac 9857fi 9858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9861 CFLAGS="$xorg_testset_save_CFLAGS" 9862fi 9863 9864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9867 fi 9868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9871if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9872then : 9873 printf %s "(cached) " >&6 9874else case e in #( 9875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9876/* end confdefs.h. */ 9877int i; 9878_ACEOF 9879if ac_fn_c_try_compile "$LINENO" 9880then : 9881 xorg_cv_cc_flag_unused_command_line_argument=yes 9882else case e in #( 9883 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9884esac 9885fi 9886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9887esac 9888fi 9889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9892 CFLAGS="$xorg_testset_save_CFLAGS" 9893fi 9894 9895found="no" 9896 9897 if test $found = "no" ; then 9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 fi 9901 9902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9904 fi 9905 9906 CFLAGS="$CFLAGS -Wmissing-braces" 9907 9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9909printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9910 cacheid=xorg_cv_cc_flag__Wmissing_braces 9911 if eval test \${$cacheid+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; 9918int 9919main (void) 9920{ 9921 9922 ; 9923 return 0; 9924} 9925_ACEOF 9926if ac_fn_c_try_link "$LINENO" 9927then : 9928 eval $cacheid=yes 9929else case e in #( 9930 e) eval $cacheid=no ;; 9931esac 9932fi 9933rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9934 conftest$ac_exeext conftest.$ac_ext ;; 9935esac 9936fi 9937 9938 9939 CFLAGS="$xorg_testset_save_CFLAGS" 9940 9941 eval supported=\$$cacheid 9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9943printf "%s\n" "$supported" >&6; } 9944 if test "$supported" = "yes" ; then 9945 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9946 found="yes" 9947 fi 9948 fi 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964xorg_testset_save_CFLAGS="$CFLAGS" 9965 9966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9970if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9971then : 9972 printf %s "(cached) " >&6 9973else case e in #( 9974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9975/* end confdefs.h. */ 9976int i; 9977_ACEOF 9978if ac_fn_c_try_compile "$LINENO" 9979then : 9980 xorg_cv_cc_flag_unknown_warning_option=yes 9981else case e in #( 9982 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9983esac 9984fi 9985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9986esac 9987fi 9988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9991 CFLAGS="$xorg_testset_save_CFLAGS" 9992fi 9993 9994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9997 fi 9998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10001if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10002then : 10003 printf %s "(cached) " >&6 10004else case e in #( 10005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10006/* end confdefs.h. */ 10007int i; 10008_ACEOF 10009if ac_fn_c_try_compile "$LINENO" 10010then : 10011 xorg_cv_cc_flag_unused_command_line_argument=yes 10012else case e in #( 10013 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10014esac 10015fi 10016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10017esac 10018fi 10019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10022 CFLAGS="$xorg_testset_save_CFLAGS" 10023fi 10024 10025found="no" 10026 10027 if test $found = "no" ; then 10028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10030 fi 10031 10032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10034 fi 10035 10036 CFLAGS="$CFLAGS -Wsequence-point" 10037 10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10039printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10040 cacheid=xorg_cv_cc_flag__Wsequence_point 10041 if eval test \${$cacheid+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; 10048int 10049main (void) 10050{ 10051 10052 ; 10053 return 0; 10054} 10055_ACEOF 10056if ac_fn_c_try_link "$LINENO" 10057then : 10058 eval $cacheid=yes 10059else case e in #( 10060 e) eval $cacheid=no ;; 10061esac 10062fi 10063rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10064 conftest$ac_exeext conftest.$ac_ext ;; 10065esac 10066fi 10067 10068 10069 CFLAGS="$xorg_testset_save_CFLAGS" 10070 10071 eval supported=\$$cacheid 10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10073printf "%s\n" "$supported" >&6; } 10074 if test "$supported" = "yes" ; then 10075 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10076 found="yes" 10077 fi 10078 fi 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094xorg_testset_save_CFLAGS="$CFLAGS" 10095 10096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10100if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10101then : 10102 printf %s "(cached) " >&6 10103else case e in #( 10104 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10105/* end confdefs.h. */ 10106int i; 10107_ACEOF 10108if ac_fn_c_try_compile "$LINENO" 10109then : 10110 xorg_cv_cc_flag_unknown_warning_option=yes 10111else case e in #( 10112 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10113esac 10114fi 10115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10116esac 10117fi 10118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10121 CFLAGS="$xorg_testset_save_CFLAGS" 10122fi 10123 10124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10127 fi 10128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10131if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10132then : 10133 printf %s "(cached) " >&6 10134else case e in #( 10135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10136/* end confdefs.h. */ 10137int i; 10138_ACEOF 10139if ac_fn_c_try_compile "$LINENO" 10140then : 10141 xorg_cv_cc_flag_unused_command_line_argument=yes 10142else case e in #( 10143 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10144esac 10145fi 10146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10147esac 10148fi 10149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10152 CFLAGS="$xorg_testset_save_CFLAGS" 10153fi 10154 10155found="no" 10156 10157 if test $found = "no" ; then 10158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10160 fi 10161 10162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10164 fi 10165 10166 CFLAGS="$CFLAGS -Wreturn-type" 10167 10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10169printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10170 cacheid=xorg_cv_cc_flag__Wreturn_type 10171 if eval test \${$cacheid+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; 10178int 10179main (void) 10180{ 10181 10182 ; 10183 return 0; 10184} 10185_ACEOF 10186if ac_fn_c_try_link "$LINENO" 10187then : 10188 eval $cacheid=yes 10189else case e in #( 10190 e) eval $cacheid=no ;; 10191esac 10192fi 10193rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10194 conftest$ac_exeext conftest.$ac_ext ;; 10195esac 10196fi 10197 10198 10199 CFLAGS="$xorg_testset_save_CFLAGS" 10200 10201 eval supported=\$$cacheid 10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10203printf "%s\n" "$supported" >&6; } 10204 if test "$supported" = "yes" ; then 10205 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10206 found="yes" 10207 fi 10208 fi 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224xorg_testset_save_CFLAGS="$CFLAGS" 10225 10226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10230if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10231then : 10232 printf %s "(cached) " >&6 10233else case e in #( 10234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235/* end confdefs.h. */ 10236int i; 10237_ACEOF 10238if ac_fn_c_try_compile "$LINENO" 10239then : 10240 xorg_cv_cc_flag_unknown_warning_option=yes 10241else case e in #( 10242 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10243esac 10244fi 10245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10246esac 10247fi 10248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10251 CFLAGS="$xorg_testset_save_CFLAGS" 10252fi 10253 10254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10257 fi 10258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10261if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10262then : 10263 printf %s "(cached) " >&6 10264else case e in #( 10265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10266/* end confdefs.h. */ 10267int i; 10268_ACEOF 10269if ac_fn_c_try_compile "$LINENO" 10270then : 10271 xorg_cv_cc_flag_unused_command_line_argument=yes 10272else case e in #( 10273 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10274esac 10275fi 10276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10277esac 10278fi 10279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10282 CFLAGS="$xorg_testset_save_CFLAGS" 10283fi 10284 10285found="no" 10286 10287 if test $found = "no" ; then 10288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10290 fi 10291 10292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10294 fi 10295 10296 CFLAGS="$CFLAGS -Wtrigraphs" 10297 10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10299printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10300 cacheid=xorg_cv_cc_flag__Wtrigraphs 10301 if eval test \${$cacheid+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; 10308int 10309main (void) 10310{ 10311 10312 ; 10313 return 0; 10314} 10315_ACEOF 10316if ac_fn_c_try_link "$LINENO" 10317then : 10318 eval $cacheid=yes 10319else case e in #( 10320 e) eval $cacheid=no ;; 10321esac 10322fi 10323rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10324 conftest$ac_exeext conftest.$ac_ext ;; 10325esac 10326fi 10327 10328 10329 CFLAGS="$xorg_testset_save_CFLAGS" 10330 10331 eval supported=\$$cacheid 10332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10333printf "%s\n" "$supported" >&6; } 10334 if test "$supported" = "yes" ; then 10335 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10336 found="yes" 10337 fi 10338 fi 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354xorg_testset_save_CFLAGS="$CFLAGS" 10355 10356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10360if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10361then : 10362 printf %s "(cached) " >&6 10363else case e in #( 10364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10365/* end confdefs.h. */ 10366int i; 10367_ACEOF 10368if ac_fn_c_try_compile "$LINENO" 10369then : 10370 xorg_cv_cc_flag_unknown_warning_option=yes 10371else case e in #( 10372 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10373esac 10374fi 10375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10376esac 10377fi 10378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10381 CFLAGS="$xorg_testset_save_CFLAGS" 10382fi 10383 10384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10387 fi 10388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10391if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10392then : 10393 printf %s "(cached) " >&6 10394else case e in #( 10395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10396/* end confdefs.h. */ 10397int i; 10398_ACEOF 10399if ac_fn_c_try_compile "$LINENO" 10400then : 10401 xorg_cv_cc_flag_unused_command_line_argument=yes 10402else case e in #( 10403 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10404esac 10405fi 10406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10407esac 10408fi 10409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10412 CFLAGS="$xorg_testset_save_CFLAGS" 10413fi 10414 10415found="no" 10416 10417 if test $found = "no" ; then 10418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10420 fi 10421 10422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10424 fi 10425 10426 CFLAGS="$CFLAGS -Warray-bounds" 10427 10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10429printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10430 cacheid=xorg_cv_cc_flag__Warray_bounds 10431 if eval test \${$cacheid+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; 10438int 10439main (void) 10440{ 10441 10442 ; 10443 return 0; 10444} 10445_ACEOF 10446if ac_fn_c_try_link "$LINENO" 10447then : 10448 eval $cacheid=yes 10449else case e in #( 10450 e) eval $cacheid=no ;; 10451esac 10452fi 10453rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10454 conftest$ac_exeext conftest.$ac_ext ;; 10455esac 10456fi 10457 10458 10459 CFLAGS="$xorg_testset_save_CFLAGS" 10460 10461 eval supported=\$$cacheid 10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10463printf "%s\n" "$supported" >&6; } 10464 if test "$supported" = "yes" ; then 10465 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10466 found="yes" 10467 fi 10468 fi 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484xorg_testset_save_CFLAGS="$CFLAGS" 10485 10486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10489printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10490if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10491then : 10492 printf %s "(cached) " >&6 10493else case e in #( 10494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10495/* end confdefs.h. */ 10496int i; 10497_ACEOF 10498if ac_fn_c_try_compile "$LINENO" 10499then : 10500 xorg_cv_cc_flag_unknown_warning_option=yes 10501else case e in #( 10502 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10503esac 10504fi 10505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10506esac 10507fi 10508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10511 CFLAGS="$xorg_testset_save_CFLAGS" 10512fi 10513 10514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10517 fi 10518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10521if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10522then : 10523 printf %s "(cached) " >&6 10524else case e in #( 10525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10526/* end confdefs.h. */ 10527int i; 10528_ACEOF 10529if ac_fn_c_try_compile "$LINENO" 10530then : 10531 xorg_cv_cc_flag_unused_command_line_argument=yes 10532else case e in #( 10533 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10534esac 10535fi 10536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10537esac 10538fi 10539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10540printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10542 CFLAGS="$xorg_testset_save_CFLAGS" 10543fi 10544 10545found="no" 10546 10547 if test $found = "no" ; then 10548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10550 fi 10551 10552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10554 fi 10555 10556 CFLAGS="$CFLAGS -Wwrite-strings" 10557 10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10559printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10560 cacheid=xorg_cv_cc_flag__Wwrite_strings 10561 if eval test \${$cacheid+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; 10568int 10569main (void) 10570{ 10571 10572 ; 10573 return 0; 10574} 10575_ACEOF 10576if ac_fn_c_try_link "$LINENO" 10577then : 10578 eval $cacheid=yes 10579else case e in #( 10580 e) eval $cacheid=no ;; 10581esac 10582fi 10583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10584 conftest$ac_exeext conftest.$ac_ext ;; 10585esac 10586fi 10587 10588 10589 CFLAGS="$xorg_testset_save_CFLAGS" 10590 10591 eval supported=\$$cacheid 10592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10593printf "%s\n" "$supported" >&6; } 10594 if test "$supported" = "yes" ; then 10595 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10596 found="yes" 10597 fi 10598 fi 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614xorg_testset_save_CFLAGS="$CFLAGS" 10615 10616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10620if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10621then : 10622 printf %s "(cached) " >&6 10623else case e in #( 10624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10625/* end confdefs.h. */ 10626int i; 10627_ACEOF 10628if ac_fn_c_try_compile "$LINENO" 10629then : 10630 xorg_cv_cc_flag_unknown_warning_option=yes 10631else case e in #( 10632 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10633esac 10634fi 10635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10636esac 10637fi 10638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10641 CFLAGS="$xorg_testset_save_CFLAGS" 10642fi 10643 10644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10647 fi 10648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10651if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10652then : 10653 printf %s "(cached) " >&6 10654else case e in #( 10655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10656/* end confdefs.h. */ 10657int i; 10658_ACEOF 10659if ac_fn_c_try_compile "$LINENO" 10660then : 10661 xorg_cv_cc_flag_unused_command_line_argument=yes 10662else case e in #( 10663 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10664esac 10665fi 10666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10667esac 10668fi 10669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10672 CFLAGS="$xorg_testset_save_CFLAGS" 10673fi 10674 10675found="no" 10676 10677 if test $found = "no" ; then 10678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10680 fi 10681 10682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10684 fi 10685 10686 CFLAGS="$CFLAGS -Waddress" 10687 10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10689printf %s "checking if $CC supports -Waddress... " >&6; } 10690 cacheid=xorg_cv_cc_flag__Waddress 10691 if eval test \${$cacheid+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; 10698int 10699main (void) 10700{ 10701 10702 ; 10703 return 0; 10704} 10705_ACEOF 10706if ac_fn_c_try_link "$LINENO" 10707then : 10708 eval $cacheid=yes 10709else case e in #( 10710 e) eval $cacheid=no ;; 10711esac 10712fi 10713rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10714 conftest$ac_exeext conftest.$ac_ext ;; 10715esac 10716fi 10717 10718 10719 CFLAGS="$xorg_testset_save_CFLAGS" 10720 10721 eval supported=\$$cacheid 10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10723printf "%s\n" "$supported" >&6; } 10724 if test "$supported" = "yes" ; then 10725 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10726 found="yes" 10727 fi 10728 fi 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744xorg_testset_save_CFLAGS="$CFLAGS" 10745 10746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10749printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10750if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10751then : 10752 printf %s "(cached) " >&6 10753else case e in #( 10754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10755/* end confdefs.h. */ 10756int i; 10757_ACEOF 10758if ac_fn_c_try_compile "$LINENO" 10759then : 10760 xorg_cv_cc_flag_unknown_warning_option=yes 10761else case e in #( 10762 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10763esac 10764fi 10765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10766esac 10767fi 10768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10771 CFLAGS="$xorg_testset_save_CFLAGS" 10772fi 10773 10774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10777 fi 10778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10781if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10782then : 10783 printf %s "(cached) " >&6 10784else case e in #( 10785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10786/* end confdefs.h. */ 10787int i; 10788_ACEOF 10789if ac_fn_c_try_compile "$LINENO" 10790then : 10791 xorg_cv_cc_flag_unused_command_line_argument=yes 10792else case e in #( 10793 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10794esac 10795fi 10796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10797esac 10798fi 10799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10802 CFLAGS="$xorg_testset_save_CFLAGS" 10803fi 10804 10805found="no" 10806 10807 if test $found = "no" ; then 10808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10810 fi 10811 10812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10814 fi 10815 10816 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10817 10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10819printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10820 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10821 if eval test \${$cacheid+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; 10828int 10829main (void) 10830{ 10831 10832 ; 10833 return 0; 10834} 10835_ACEOF 10836if ac_fn_c_try_link "$LINENO" 10837then : 10838 eval $cacheid=yes 10839else case e in #( 10840 e) eval $cacheid=no ;; 10841esac 10842fi 10843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10844 conftest$ac_exeext conftest.$ac_ext ;; 10845esac 10846fi 10847 10848 10849 CFLAGS="$xorg_testset_save_CFLAGS" 10850 10851 eval supported=\$$cacheid 10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10853printf "%s\n" "$supported" >&6; } 10854 if test "$supported" = "yes" ; then 10855 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10856 found="yes" 10857 fi 10858 fi 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874xorg_testset_save_CFLAGS="$CFLAGS" 10875 10876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10880if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10881then : 10882 printf %s "(cached) " >&6 10883else case e in #( 10884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10885/* end confdefs.h. */ 10886int i; 10887_ACEOF 10888if ac_fn_c_try_compile "$LINENO" 10889then : 10890 xorg_cv_cc_flag_unknown_warning_option=yes 10891else case e in #( 10892 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10893esac 10894fi 10895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10896esac 10897fi 10898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10901 CFLAGS="$xorg_testset_save_CFLAGS" 10902fi 10903 10904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10907 fi 10908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10911if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10912then : 10913 printf %s "(cached) " >&6 10914else case e in #( 10915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10916/* end confdefs.h. */ 10917int i; 10918_ACEOF 10919if ac_fn_c_try_compile "$LINENO" 10920then : 10921 xorg_cv_cc_flag_unused_command_line_argument=yes 10922else case e in #( 10923 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10924esac 10925fi 10926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10927esac 10928fi 10929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10932 CFLAGS="$xorg_testset_save_CFLAGS" 10933fi 10934 10935found="no" 10936 10937 if test $found = "no" ; then 10938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10940 fi 10941 10942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10944 fi 10945 10946 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10947 10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10949printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10950 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10951 if eval test \${$cacheid+y} 10952then : 10953 printf %s "(cached) " >&6 10954else case e in #( 10955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10956/* end confdefs.h. */ 10957int i; 10958int 10959main (void) 10960{ 10961 10962 ; 10963 return 0; 10964} 10965_ACEOF 10966if ac_fn_c_try_link "$LINENO" 10967then : 10968 eval $cacheid=yes 10969else case e in #( 10970 e) eval $cacheid=no ;; 10971esac 10972fi 10973rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10974 conftest$ac_exeext conftest.$ac_ext ;; 10975esac 10976fi 10977 10978 10979 CFLAGS="$xorg_testset_save_CFLAGS" 10980 10981 eval supported=\$$cacheid 10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10983printf "%s\n" "$supported" >&6; } 10984 if test "$supported" = "yes" ; then 10985 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10986 found="yes" 10987 fi 10988 fi 10989 10990 10991fi 10992 10993 10994 10995 10996 10997 10998 10999 CWARNFLAGS="$BASE_CFLAGS" 11000 if test "x$GCC" = xyes ; then 11001 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11002 fi 11003 11004 11005 11006 11007 11008 11009 11010 11011# Check whether --enable-strict-compilation was given. 11012if test ${enable_strict_compilation+y} 11013then : 11014 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11015else case e in #( 11016 e) STRICT_COMPILE=no ;; 11017esac 11018fi 11019 11020 11021 11022 11023 11024 11025STRICT_CFLAGS="" 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039xorg_testset_save_CFLAGS="$CFLAGS" 11040 11041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11045if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11046then : 11047 printf %s "(cached) " >&6 11048else case e in #( 11049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11050/* end confdefs.h. */ 11051int i; 11052_ACEOF 11053if ac_fn_c_try_compile "$LINENO" 11054then : 11055 xorg_cv_cc_flag_unknown_warning_option=yes 11056else case e in #( 11057 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11058esac 11059fi 11060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11061esac 11062fi 11063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11066 CFLAGS="$xorg_testset_save_CFLAGS" 11067fi 11068 11069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11072 fi 11073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11076if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11077then : 11078 printf %s "(cached) " >&6 11079else case e in #( 11080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11081/* end confdefs.h. */ 11082int i; 11083_ACEOF 11084if ac_fn_c_try_compile "$LINENO" 11085then : 11086 xorg_cv_cc_flag_unused_command_line_argument=yes 11087else case e in #( 11088 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11089esac 11090fi 11091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11092esac 11093fi 11094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11095printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11097 CFLAGS="$xorg_testset_save_CFLAGS" 11098fi 11099 11100found="no" 11101 11102 if test $found = "no" ; then 11103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11105 fi 11106 11107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11109 fi 11110 11111 CFLAGS="$CFLAGS -pedantic" 11112 11113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11114printf %s "checking if $CC supports -pedantic... " >&6; } 11115 cacheid=xorg_cv_cc_flag__pedantic 11116 if eval test \${$cacheid+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; 11123int 11124main (void) 11125{ 11126 11127 ; 11128 return 0; 11129} 11130_ACEOF 11131if ac_fn_c_try_link "$LINENO" 11132then : 11133 eval $cacheid=yes 11134else case e in #( 11135 e) eval $cacheid=no ;; 11136esac 11137fi 11138rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11139 conftest$ac_exeext conftest.$ac_ext ;; 11140esac 11141fi 11142 11143 11144 CFLAGS="$xorg_testset_save_CFLAGS" 11145 11146 eval supported=\$$cacheid 11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11148printf "%s\n" "$supported" >&6; } 11149 if test "$supported" = "yes" ; then 11150 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11151 found="yes" 11152 fi 11153 fi 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169xorg_testset_save_CFLAGS="$CFLAGS" 11170 11171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11175if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11176then : 11177 printf %s "(cached) " >&6 11178else case e in #( 11179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11180/* end confdefs.h. */ 11181int i; 11182_ACEOF 11183if ac_fn_c_try_compile "$LINENO" 11184then : 11185 xorg_cv_cc_flag_unknown_warning_option=yes 11186else case e in #( 11187 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11188esac 11189fi 11190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11191esac 11192fi 11193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11196 CFLAGS="$xorg_testset_save_CFLAGS" 11197fi 11198 11199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11202 fi 11203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11206if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11207then : 11208 printf %s "(cached) " >&6 11209else case e in #( 11210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11211/* end confdefs.h. */ 11212int i; 11213_ACEOF 11214if ac_fn_c_try_compile "$LINENO" 11215then : 11216 xorg_cv_cc_flag_unused_command_line_argument=yes 11217else case e in #( 11218 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11219esac 11220fi 11221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11222esac 11223fi 11224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11227 CFLAGS="$xorg_testset_save_CFLAGS" 11228fi 11229 11230found="no" 11231 11232 if test $found = "no" ; then 11233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11235 fi 11236 11237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11239 fi 11240 11241 CFLAGS="$CFLAGS -Werror" 11242 11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11244printf %s "checking if $CC supports -Werror... " >&6; } 11245 cacheid=xorg_cv_cc_flag__Werror 11246 if eval test \${$cacheid+y} 11247then : 11248 printf %s "(cached) " >&6 11249else case e in #( 11250 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11251/* end confdefs.h. */ 11252int i; 11253int 11254main (void) 11255{ 11256 11257 ; 11258 return 0; 11259} 11260_ACEOF 11261if ac_fn_c_try_link "$LINENO" 11262then : 11263 eval $cacheid=yes 11264else case e in #( 11265 e) eval $cacheid=no ;; 11266esac 11267fi 11268rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11269 conftest$ac_exeext conftest.$ac_ext ;; 11270esac 11271fi 11272 11273 11274 CFLAGS="$xorg_testset_save_CFLAGS" 11275 11276 eval supported=\$$cacheid 11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11278printf "%s\n" "$supported" >&6; } 11279 if test "$supported" = "yes" ; then 11280 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11281 found="yes" 11282 fi 11283 fi 11284 11285 if test $found = "no" ; then 11286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11288 fi 11289 11290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11292 fi 11293 11294 CFLAGS="$CFLAGS -errwarn" 11295 11296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11297printf %s "checking if $CC supports -errwarn... " >&6; } 11298 cacheid=xorg_cv_cc_flag__errwarn 11299 if eval test \${$cacheid+y} 11300then : 11301 printf %s "(cached) " >&6 11302else case e in #( 11303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11304/* end confdefs.h. */ 11305int i; 11306int 11307main (void) 11308{ 11309 11310 ; 11311 return 0; 11312} 11313_ACEOF 11314if ac_fn_c_try_link "$LINENO" 11315then : 11316 eval $cacheid=yes 11317else case e in #( 11318 e) eval $cacheid=no ;; 11319esac 11320fi 11321rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11322 conftest$ac_exeext conftest.$ac_ext ;; 11323esac 11324fi 11325 11326 11327 CFLAGS="$xorg_testset_save_CFLAGS" 11328 11329 eval supported=\$$cacheid 11330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11331printf "%s\n" "$supported" >&6; } 11332 if test "$supported" = "yes" ; then 11333 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11334 found="yes" 11335 fi 11336 fi 11337 11338 11339 11340# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11341# activate it with -Werror, so we add it here explicitly. 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355xorg_testset_save_CFLAGS="$CFLAGS" 11356 11357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11361if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11362then : 11363 printf %s "(cached) " >&6 11364else case e in #( 11365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11366/* end confdefs.h. */ 11367int i; 11368_ACEOF 11369if ac_fn_c_try_compile "$LINENO" 11370then : 11371 xorg_cv_cc_flag_unknown_warning_option=yes 11372else case e in #( 11373 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11374esac 11375fi 11376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11377esac 11378fi 11379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11382 CFLAGS="$xorg_testset_save_CFLAGS" 11383fi 11384 11385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11388 fi 11389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11392if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11393then : 11394 printf %s "(cached) " >&6 11395else case e in #( 11396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397/* end confdefs.h. */ 11398int i; 11399_ACEOF 11400if ac_fn_c_try_compile "$LINENO" 11401then : 11402 xorg_cv_cc_flag_unused_command_line_argument=yes 11403else case e in #( 11404 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11405esac 11406fi 11407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11408esac 11409fi 11410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11411printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11413 CFLAGS="$xorg_testset_save_CFLAGS" 11414fi 11415 11416found="no" 11417 11418 if test $found = "no" ; then 11419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11421 fi 11422 11423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11425 fi 11426 11427 CFLAGS="$CFLAGS -Werror=attributes" 11428 11429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11430printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11431 cacheid=xorg_cv_cc_flag__Werror_attributes 11432 if eval test \${$cacheid+y} 11433then : 11434 printf %s "(cached) " >&6 11435else case e in #( 11436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11437/* end confdefs.h. */ 11438int i; 11439int 11440main (void) 11441{ 11442 11443 ; 11444 return 0; 11445} 11446_ACEOF 11447if ac_fn_c_try_link "$LINENO" 11448then : 11449 eval $cacheid=yes 11450else case e in #( 11451 e) eval $cacheid=no ;; 11452esac 11453fi 11454rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11455 conftest$ac_exeext conftest.$ac_ext ;; 11456esac 11457fi 11458 11459 11460 CFLAGS="$xorg_testset_save_CFLAGS" 11461 11462 eval supported=\$$cacheid 11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11464printf "%s\n" "$supported" >&6; } 11465 if test "$supported" = "yes" ; then 11466 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11467 found="yes" 11468 fi 11469 fi 11470 11471 11472 11473if test "x$STRICT_COMPILE" = "xyes"; then 11474 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11475 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11476fi 11477 11478 11479 11480 11481 11482 11483 11484 11485cat >>confdefs.h <<_ACEOF 11486#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11487_ACEOF 11488 11489 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11490 if test "x$PVM" = "x"; then 11491 PVM="0" 11492 fi 11493 11494printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11495 11496 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11497 if test "x$PVP" = "x"; then 11498 PVP="0" 11499 fi 11500 11501printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11502 11503 11504 11505CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11506mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11507|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11508touch \$(top_srcdir)/ChangeLog; \ 11509echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11510 11511 11512 11513 11514macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11515INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11516mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11517|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11518touch \$(top_srcdir)/INSTALL; \ 11519echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11520 11521 11522 11523 11524 11525 11526case $host_os in 11527 solaris*) 11528 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11529 # check for a man page file found in later versions that use 11530 # traditional section numbers instead 11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11532printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11533if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11534then : 11535 printf %s "(cached) " >&6 11536else case e in #( 11537 e) test "$cross_compiling" = yes && 11538 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11539if test -r "/usr/share/man/man7/attributes.7"; then 11540 ac_cv_file__usr_share_man_man7_attributes_7=yes 11541else 11542 ac_cv_file__usr_share_man_man7_attributes_7=no 11543fi ;; 11544esac 11545fi 11546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11547printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11548if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11549then : 11550 SYSV_MAN_SECTIONS=false 11551else case e in #( 11552 e) SYSV_MAN_SECTIONS=true ;; 11553esac 11554fi 11555 11556 ;; 11557 *) SYSV_MAN_SECTIONS=false ;; 11558esac 11559 11560if test x$APP_MAN_SUFFIX = x ; then 11561 APP_MAN_SUFFIX=1 11562fi 11563if test x$APP_MAN_DIR = x ; then 11564 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11565fi 11566 11567if test x$LIB_MAN_SUFFIX = x ; then 11568 LIB_MAN_SUFFIX=3 11569fi 11570if test x$LIB_MAN_DIR = x ; then 11571 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11572fi 11573 11574if test x$FILE_MAN_SUFFIX = x ; then 11575 case $SYSV_MAN_SECTIONS in 11576 true) FILE_MAN_SUFFIX=4 ;; 11577 *) FILE_MAN_SUFFIX=5 ;; 11578 esac 11579fi 11580if test x$FILE_MAN_DIR = x ; then 11581 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11582fi 11583 11584if test x$MISC_MAN_SUFFIX = x ; then 11585 case $SYSV_MAN_SECTIONS in 11586 true) MISC_MAN_SUFFIX=5 ;; 11587 *) MISC_MAN_SUFFIX=7 ;; 11588 esac 11589fi 11590if test x$MISC_MAN_DIR = x ; then 11591 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11592fi 11593 11594if test x$DRIVER_MAN_SUFFIX = x ; then 11595 case $SYSV_MAN_SECTIONS in 11596 true) DRIVER_MAN_SUFFIX=7 ;; 11597 *) DRIVER_MAN_SUFFIX=4 ;; 11598 esac 11599fi 11600if test x$DRIVER_MAN_DIR = x ; then 11601 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11602fi 11603 11604if test x$ADMIN_MAN_SUFFIX = x ; then 11605 case $SYSV_MAN_SECTIONS in 11606 true) ADMIN_MAN_SUFFIX=1m ;; 11607 *) ADMIN_MAN_SUFFIX=8 ;; 11608 esac 11609fi 11610if test x$ADMIN_MAN_DIR = x ; then 11611 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11612fi 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628XORG_MAN_PAGE="X Version 11" 11629 11630MAN_SUBSTS="\ 11631 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11632 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11633 -e 's|__xservername__|Xorg|g' \ 11634 -e 's|__xconfigfile__|xorg.conf|g' \ 11635 -e 's|__projectroot__|\$(prefix)|g' \ 11636 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11637 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11638 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11639 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11640 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11641 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11642 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11643 11644 11645 11646# Check whether --enable-silent-rules was given. 11647if test ${enable_silent_rules+y} 11648then : 11649 enableval=$enable_silent_rules; 11650fi 11651 11652case $enable_silent_rules in # ((( 11653 yes) AM_DEFAULT_VERBOSITY=0;; 11654 no) AM_DEFAULT_VERBOSITY=1;; 11655 *) AM_DEFAULT_VERBOSITY=0;; 11656esac 11657am_make=${MAKE-make} 11658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11659printf %s "checking whether $am_make supports nested variables... " >&6; } 11660if test ${am_cv_make_support_nested_variables+y} 11661then : 11662 printf %s "(cached) " >&6 11663else case e in #( 11664 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11665BAR0=false 11666BAR1=true 11667V=1 11668am__doit: 11669 @$(TRUE) 11670.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11671 am_cv_make_support_nested_variables=yes 11672else 11673 am_cv_make_support_nested_variables=no 11674fi ;; 11675esac 11676fi 11677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11678printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11679if test $am_cv_make_support_nested_variables = yes; then 11680 AM_V='$(V)' 11681 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11682else 11683 AM_V=$AM_DEFAULT_VERBOSITY 11684 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11685fi 11686AM_BACKSLASH='\' 11687 11688 11689 11690 11691# Checks for typedefs, structures, and compiler characteristics. 11692# Check whether --enable-largefile was given. 11693if test ${enable_largefile+y} 11694then : 11695 enableval=$enable_largefile; 11696fi 11697if test "$enable_largefile,$enable_year2038" != no,no 11698then : 11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11700printf %s "checking for $CC option to enable large file support... " >&6; } 11701if test ${ac_cv_sys_largefile_opts+y} 11702then : 11703 printf %s "(cached) " >&6 11704else case e in #( 11705 e) ac_save_CC="$CC" 11706 ac_opt_found=no 11707 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11708 if test x"$ac_opt" != x"none needed" 11709then : 11710 CC="$ac_save_CC $ac_opt" 11711fi 11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11713/* end confdefs.h. */ 11714#include <sys/types.h> 11715#ifndef FTYPE 11716# define FTYPE off_t 11717#endif 11718 /* Check that FTYPE can represent 2**63 - 1 correctly. 11719 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11720 since some C++ compilers masquerading as C compilers 11721 incorrectly reject 9223372036854775807. */ 11722#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11723 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11724 && LARGE_FTYPE % 2147483647 == 1) 11725 ? 1 : -1]; 11726int 11727main (void) 11728{ 11729 11730 ; 11731 return 0; 11732} 11733_ACEOF 11734if ac_fn_c_try_compile "$LINENO" 11735then : 11736 if test x"$ac_opt" = x"none needed" 11737then : 11738 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11739 CC="$CC -DFTYPE=ino_t" 11740 if ac_fn_c_try_compile "$LINENO" 11741then : 11742 11743else case e in #( 11744 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11745 if ac_fn_c_try_compile "$LINENO" 11746then : 11747 ac_opt='-D_FILE_OFFSET_BITS=64' 11748fi 11749rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11750esac 11751fi 11752rm -f core conftest.err conftest.$ac_objext conftest.beam 11753fi 11754 ac_cv_sys_largefile_opts=$ac_opt 11755 ac_opt_found=yes 11756fi 11757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11758 test $ac_opt_found = no || break 11759 done 11760 CC="$ac_save_CC" 11761 11762 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11763esac 11764fi 11765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11766printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11767 11768ac_have_largefile=yes 11769case $ac_cv_sys_largefile_opts in #( 11770 "none needed") : 11771 ;; #( 11772 "supported through gnulib") : 11773 ;; #( 11774 "support not detected") : 11775 ac_have_largefile=no ;; #( 11776 "-D_FILE_OFFSET_BITS=64") : 11777 11778printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11779 ;; #( 11780 "-D_LARGE_FILES=1") : 11781 11782printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11783 ;; #( 11784 "-n32") : 11785 CC="$CC -n32" ;; #( 11786 *) : 11787 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11788esac 11789 11790if test "$enable_year2038" != no 11791then : 11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11793printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11794if test ${ac_cv_sys_year2038_opts+y} 11795then : 11796 printf %s "(cached) " >&6 11797else case e in #( 11798 e) ac_save_CPPFLAGS="$CPPFLAGS" 11799 ac_opt_found=no 11800 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 11801 if test x"$ac_opt" != x"none needed" 11802then : 11803 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11804fi 11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11806/* end confdefs.h. */ 11807 11808 #include <time.h> 11809 /* Check that time_t can represent 2**32 - 1 correctly. */ 11810 #define LARGE_TIME_T \\ 11811 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11812 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11813 && LARGE_TIME_T % 65537 == 0) 11814 ? 1 : -1]; 11815 11816int 11817main (void) 11818{ 11819 11820 ; 11821 return 0; 11822} 11823_ACEOF 11824if ac_fn_c_try_compile "$LINENO" 11825then : 11826 ac_cv_sys_year2038_opts="$ac_opt" 11827 ac_opt_found=yes 11828fi 11829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11830 test $ac_opt_found = no || break 11831 done 11832 CPPFLAGS="$ac_save_CPPFLAGS" 11833 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11834esac 11835fi 11836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11837printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11838 11839ac_have_year2038=yes 11840case $ac_cv_sys_year2038_opts in #( 11841 "none needed") : 11842 ;; #( 11843 "support not detected") : 11844 ac_have_year2038=no ;; #( 11845 "-D_TIME_BITS=64") : 11846 11847printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11848 ;; #( 11849 "-D__MINGW_USE_VC2005_COMPAT") : 11850 11851printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11852 ;; #( 11853 "-U_USE_32_BIT_TIME_T"*) : 11854 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11855printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11856as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11857will stop working after mid-January 2038. Remove 11858_USE_32BIT_TIME_T from the compiler flags. 11859See 'config.log' for more details" "$LINENO" 5; } ;; #( 11860 *) : 11861 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11862esac 11863 11864fi 11865 11866fi 11867 11868# Checks for library functions. 11869ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 11870if test "x$ac_cv_func_reallocarray" = xyes 11871then : 11872 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 11873 11874fi 11875 11876 11877# Checks for pkg-config packages 11878 11879pkg_failed=no 11880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICEAUTH" >&5 11881printf %s "checking for ICEAUTH... " >&6; } 11882 11883if test -n "$ICEAUTH_CFLAGS"; then 11884 pkg_cv_ICEAUTH_CFLAGS="$ICEAUTH_CFLAGS" 11885 elif test -n "$PKG_CONFIG"; then 11886 if test -n "$PKG_CONFIG" && \ 11887 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5 11888 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5 11889 ac_status=$? 11890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11891 test $ac_status = 0; }; then 11892 pkg_cv_ICEAUTH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 ice" 2>/dev/null` 11893 test "x$?" != "x0" && pkg_failed=yes 11894else 11895 pkg_failed=yes 11896fi 11897 else 11898 pkg_failed=untried 11899fi 11900if test -n "$ICEAUTH_LIBS"; then 11901 pkg_cv_ICEAUTH_LIBS="$ICEAUTH_LIBS" 11902 elif test -n "$PKG_CONFIG"; then 11903 if test -n "$PKG_CONFIG" && \ 11904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5 11905 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5 11906 ac_status=$? 11907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11908 test $ac_status = 0; }; then 11909 pkg_cv_ICEAUTH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 ice" 2>/dev/null` 11910 test "x$?" != "x0" && pkg_failed=yes 11911else 11912 pkg_failed=yes 11913fi 11914 else 11915 pkg_failed=untried 11916fi 11917 11918 11919 11920if test $pkg_failed = yes; then 11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11922printf "%s\n" "no" >&6; } 11923 11924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11925 _pkg_short_errors_supported=yes 11926else 11927 _pkg_short_errors_supported=no 11928fi 11929 if test $_pkg_short_errors_supported = yes; then 11930 ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1` 11931 else 11932 ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 ice" 2>&1` 11933 fi 11934 # Put the nasty error message in config.log where it belongs 11935 echo "$ICEAUTH_PKG_ERRORS" >&5 11936 11937 as_fn_error $? "Package requirements (xproto >= 7.0.22 ice) were not met: 11938 11939$ICEAUTH_PKG_ERRORS 11940 11941Consider adjusting the PKG_CONFIG_PATH environment variable if you 11942installed software in a non-standard prefix. 11943 11944Alternatively, you may set the environment variables ICEAUTH_CFLAGS 11945and ICEAUTH_LIBS to avoid the need to call pkg-config. 11946See the pkg-config man page for more details." "$LINENO" 5 11947elif test $pkg_failed = untried; then 11948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11949printf "%s\n" "no" >&6; } 11950 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11951printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11952as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11953is in your PATH or set the PKG_CONFIG environment variable to the full 11954path to pkg-config. 11955 11956Alternatively, you may set the environment variables ICEAUTH_CFLAGS 11957and ICEAUTH_LIBS to avoid the need to call pkg-config. 11958See the pkg-config man page for more details. 11959 11960To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11961See 'config.log' for more details" "$LINENO" 5; } 11962else 11963 ICEAUTH_CFLAGS=$pkg_cv_ICEAUTH_CFLAGS 11964 ICEAUTH_LIBS=$pkg_cv_ICEAUTH_LIBS 11965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11966printf "%s\n" "yes" >&6; } 11967 11968fi 11969 11970 11971 11972 11973 11974 11975# Check whether --with-lint was given. 11976if test ${with_lint+y} 11977then : 11978 withval=$with_lint; use_lint=$withval 11979else case e in #( 11980 e) use_lint=no ;; 11981esac 11982fi 11983 11984 11985# Obtain platform specific info like program name and options 11986# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11987case $host_os in 11988 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11989 lint_name=splint 11990 lint_options="-badflag" 11991 ;; 11992 *freebsd* | *netbsd*) 11993 lint_name=lint 11994 lint_options="-u -b" 11995 ;; 11996 *solaris*) 11997 lint_name=lint 11998 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11999 ;; 12000esac 12001 12002# Test for the presence of the program (either guessed by the code or spelled out by the user) 12003if test "x$use_lint" = x"yes" ; then 12004 # Extract the first word of "$lint_name", so it can be a program name with args. 12005set dummy $lint_name; ac_word=$2 12006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12007printf %s "checking for $ac_word... " >&6; } 12008if test ${ac_cv_path_LINT+y} 12009then : 12010 printf %s "(cached) " >&6 12011else case e in #( 12012 e) case $LINT in 12013 [\\/]* | ?:[\\/]*) 12014 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 12015 ;; 12016 *) 12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12018for as_dir in $PATH 12019do 12020 IFS=$as_save_IFS 12021 case $as_dir in #((( 12022 '') as_dir=./ ;; 12023 */) ;; 12024 *) as_dir=$as_dir/ ;; 12025 esac 12026 for ac_exec_ext in '' $ac_executable_extensions; do 12027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12028 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 12029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12030 break 2 12031 fi 12032done 12033 done 12034IFS=$as_save_IFS 12035 12036 ;; 12037esac ;; 12038esac 12039fi 12040LINT=$ac_cv_path_LINT 12041if test -n "$LINT"; then 12042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 12043printf "%s\n" "$LINT" >&6; } 12044else 12045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12046printf "%s\n" "no" >&6; } 12047fi 12048 12049 12050 if test "x$LINT" = "x"; then 12051 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 12052 fi 12053elif test "x$use_lint" = x"no" ; then 12054 if test "x$LINT" != "x"; then 12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 12056printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 12057 fi 12058else 12059 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12060fi 12061 12062# User supplied flags override default flags 12063if test "x$LINT_FLAGS" != "x"; then 12064 lint_options=$LINT_FLAGS 12065fi 12066 12067LINT_FLAGS=$lint_options 12068 12069 if test "x$LINT" != x; then 12070 LINT_TRUE= 12071 LINT_FALSE='#' 12072else 12073 LINT_TRUE='#' 12074 LINT_FALSE= 12075fi 12076 12077 12078 12079 12080ac_config_files="$ac_config_files Makefile man/Makefile" 12081 12082cat >confcache <<\_ACEOF 12083# This file is a shell script that caches the results of configure 12084# tests run on this system so they can be shared between configure 12085# scripts and configure runs, see configure's option --config-cache. 12086# It is not useful on other systems. If it contains results you don't 12087# want to keep, you may remove or edit it. 12088# 12089# config.status only pays attention to the cache file if you give it 12090# the --recheck option to rerun configure. 12091# 12092# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12093# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12094# following values. 12095 12096_ACEOF 12097 12098# The following way of writing the cache mishandles newlines in values, 12099# but we know of no workaround that is simple, portable, and efficient. 12100# So, we kill variables containing newlines. 12101# Ultrix sh set writes to stderr and can't be redirected directly, 12102# and sets the high bit in the cache file unless we assign to the vars. 12103( 12104 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12105 eval ac_val=\$$ac_var 12106 case $ac_val in #( 12107 *${as_nl}*) 12108 case $ac_var in #( 12109 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12110printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12111 esac 12112 case $ac_var in #( 12113 _ | IFS | as_nl) ;; #( 12114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12115 *) { eval $ac_var=; unset $ac_var;} ;; 12116 esac ;; 12117 esac 12118 done 12119 12120 (set) 2>&1 | 12121 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12122 *${as_nl}ac_space=\ *) 12123 # 'set' does not quote correctly, so add quotes: double-quote 12124 # substitution turns \\\\ into \\, and sed turns \\ into \. 12125 sed -n \ 12126 "s/'/'\\\\''/g; 12127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12128 ;; #( 12129 *) 12130 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12132 ;; 12133 esac | 12134 sort 12135) | 12136 sed ' 12137 /^ac_cv_env_/b end 12138 t clear 12139 :clear 12140 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12141 t end 12142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12143 :end' >>confcache 12144if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12145 if test -w "$cache_file"; then 12146 if test "x$cache_file" != "x/dev/null"; then 12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12148printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12149 if test ! -f "$cache_file" || test -h "$cache_file"; then 12150 cat confcache >"$cache_file" 12151 else 12152 case $cache_file in #( 12153 */* | ?:*) 12154 mv -f confcache "$cache_file"$$ && 12155 mv -f "$cache_file"$$ "$cache_file" ;; #( 12156 *) 12157 mv -f confcache "$cache_file" ;; 12158 esac 12159 fi 12160 fi 12161 else 12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12163printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12164 fi 12165fi 12166rm -f confcache 12167 12168test "x$prefix" = xNONE && prefix=$ac_default_prefix 12169# Let make expand exec_prefix. 12170test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12171 12172DEFS=-DHAVE_CONFIG_H 12173 12174ac_libobjs= 12175ac_ltlibobjs= 12176U= 12177for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12178 # 1. Remove the extension, and $U if already installed. 12179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12180 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12182 # will be set to the directory where LIBOBJS objects are built. 12183 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12184 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12185done 12186LIBOBJS=$ac_libobjs 12187 12188LTLIBOBJS=$ac_ltlibobjs 12189 12190 12191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12192printf %s "checking that generated files are newer than configure... " >&6; } 12193 if test -n "$am_sleep_pid"; then 12194 # Hide warnings about reused PIDs. 12195 wait $am_sleep_pid 2>/dev/null 12196 fi 12197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12198printf "%s\n" "done" >&6; } 12199if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12200 as_fn_error $? "conditional \"AMDEP\" was never defined. 12201Usually this means the macro was only invoked conditionally." "$LINENO" 5 12202fi 12203if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12204 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12205Usually this means the macro was only invoked conditionally." "$LINENO" 5 12206fi 12207 if test -n "$EXEEXT"; then 12208 am__EXEEXT_TRUE= 12209 am__EXEEXT_FALSE='#' 12210else 12211 am__EXEEXT_TRUE='#' 12212 am__EXEEXT_FALSE= 12213fi 12214 12215# Check whether --enable-year2038 was given. 12216if test ${enable_year2038+y} 12217then : 12218 enableval=$enable_year2038; 12219fi 12220 12221if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12222 as_fn_error $? "conditional \"LINT\" was never defined. 12223Usually this means the macro was only invoked conditionally." "$LINENO" 5 12224fi 12225 12226: "${CONFIG_STATUS=./config.status}" 12227ac_write_fail=0 12228ac_clean_files_save=$ac_clean_files 12229ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12231printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12232as_write_fail=0 12233cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12234#! $SHELL 12235# Generated by $as_me. 12236# Run this file to recreate the current configuration. 12237# Compiler output produced by configure, useful for debugging 12238# configure, is in config.log if it exists. 12239 12240debug=false 12241ac_cs_recheck=false 12242ac_cs_silent=false 12243 12244SHELL=\${CONFIG_SHELL-$SHELL} 12245export SHELL 12246_ASEOF 12247cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12248## -------------------- ## 12249## M4sh Initialization. ## 12250## -------------------- ## 12251 12252# Be more Bourne compatible 12253DUALCASE=1; export DUALCASE # for MKS sh 12254if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12255then : 12256 emulate sh 12257 NULLCMD=: 12258 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12259 # is contrary to our usage. Disable this feature. 12260 alias -g '${1+"$@"}'='"$@"' 12261 setopt NO_GLOB_SUBST 12262else case e in #( 12263 e) case `(set -o) 2>/dev/null` in #( 12264 *posix*) : 12265 set -o posix ;; #( 12266 *) : 12267 ;; 12268esac ;; 12269esac 12270fi 12271 12272 12273 12274# Reset variables that may have inherited troublesome values from 12275# the environment. 12276 12277# IFS needs to be set, to space, tab, and newline, in precisely that order. 12278# (If _AS_PATH_WALK were called with IFS unset, it would have the 12279# side effect of setting IFS to empty, thus disabling word splitting.) 12280# Quoting is to prevent editors from complaining about space-tab. 12281as_nl=' 12282' 12283export as_nl 12284IFS=" "" $as_nl" 12285 12286PS1='$ ' 12287PS2='> ' 12288PS4='+ ' 12289 12290# Ensure predictable behavior from utilities with locale-dependent output. 12291LC_ALL=C 12292export LC_ALL 12293LANGUAGE=C 12294export LANGUAGE 12295 12296# We cannot yet rely on "unset" to work, but we need these variables 12297# to be unset--not just set to an empty or harmless value--now, to 12298# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12299# also avoids known problems related to "unset" and subshell syntax 12300# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12301for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12302do eval test \${$as_var+y} \ 12303 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12304done 12305 12306# Ensure that fds 0, 1, and 2 are open. 12307if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12308if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12309if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12310 12311# The user is always right. 12312if ${PATH_SEPARATOR+false} :; then 12313 PATH_SEPARATOR=: 12314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12316 PATH_SEPARATOR=';' 12317 } 12318fi 12319 12320 12321# Find who we are. Look in the path if we contain no directory separator. 12322as_myself= 12323case $0 in #(( 12324 *[\\/]* ) as_myself=$0 ;; 12325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12326for as_dir in $PATH 12327do 12328 IFS=$as_save_IFS 12329 case $as_dir in #((( 12330 '') as_dir=./ ;; 12331 */) ;; 12332 *) as_dir=$as_dir/ ;; 12333 esac 12334 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12335 done 12336IFS=$as_save_IFS 12337 12338 ;; 12339esac 12340# We did not find ourselves, most probably we were run as 'sh COMMAND' 12341# in which case we are not to be found in the path. 12342if test "x$as_myself" = x; then 12343 as_myself=$0 12344fi 12345if test ! -f "$as_myself"; then 12346 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12347 exit 1 12348fi 12349 12350 12351 12352# as_fn_error STATUS ERROR [LINENO LOG_FD] 12353# ---------------------------------------- 12354# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12355# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12356# script with STATUS, using 1 if that was 0. 12357as_fn_error () 12358{ 12359 as_status=$1; test $as_status -eq 0 && as_status=1 12360 if test "$4"; then 12361 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12363 fi 12364 printf "%s\n" "$as_me: error: $2" >&2 12365 as_fn_exit $as_status 12366} # as_fn_error 12367 12368 12369# as_fn_set_status STATUS 12370# ----------------------- 12371# Set $? to STATUS, without forking. 12372as_fn_set_status () 12373{ 12374 return $1 12375} # as_fn_set_status 12376 12377# as_fn_exit STATUS 12378# ----------------- 12379# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12380as_fn_exit () 12381{ 12382 set +e 12383 as_fn_set_status $1 12384 exit $1 12385} # as_fn_exit 12386 12387# as_fn_unset VAR 12388# --------------- 12389# Portably unset VAR. 12390as_fn_unset () 12391{ 12392 { eval $1=; unset $1;} 12393} 12394as_unset=as_fn_unset 12395 12396# as_fn_append VAR VALUE 12397# ---------------------- 12398# Append the text in VALUE to the end of the definition contained in VAR. Take 12399# advantage of any shell optimizations that allow amortized linear growth over 12400# repeated appends, instead of the typical quadratic growth present in naive 12401# implementations. 12402if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12403then : 12404 eval 'as_fn_append () 12405 { 12406 eval $1+=\$2 12407 }' 12408else case e in #( 12409 e) as_fn_append () 12410 { 12411 eval $1=\$$1\$2 12412 } ;; 12413esac 12414fi # as_fn_append 12415 12416# as_fn_arith ARG... 12417# ------------------ 12418# Perform arithmetic evaluation on the ARGs, and store the result in the 12419# global $as_val. Take advantage of shells that can avoid forks. The arguments 12420# must be portable across $(()) and expr. 12421if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12422then : 12423 eval 'as_fn_arith () 12424 { 12425 as_val=$(( $* )) 12426 }' 12427else case e in #( 12428 e) as_fn_arith () 12429 { 12430 as_val=`expr "$@" || test $? -eq 1` 12431 } ;; 12432esac 12433fi # as_fn_arith 12434 12435 12436if expr a : '\(a\)' >/dev/null 2>&1 && 12437 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12438 as_expr=expr 12439else 12440 as_expr=false 12441fi 12442 12443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12444 as_basename=basename 12445else 12446 as_basename=false 12447fi 12448 12449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12450 as_dirname=dirname 12451else 12452 as_dirname=false 12453fi 12454 12455as_me=`$as_basename -- "$0" || 12456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12457 X"$0" : 'X\(//\)$' \| \ 12458 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12459printf "%s\n" X/"$0" | 12460 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12461 s//\1/ 12462 q 12463 } 12464 /^X\/\(\/\/\)$/{ 12465 s//\1/ 12466 q 12467 } 12468 /^X\/\(\/\).*/{ 12469 s//\1/ 12470 q 12471 } 12472 s/.*/./; q'` 12473 12474# Avoid depending upon Character Ranges. 12475as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12477as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12478as_cr_digits='0123456789' 12479as_cr_alnum=$as_cr_Letters$as_cr_digits 12480 12481 12482# Determine whether it's possible to make 'echo' print without a newline. 12483# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12484# for compatibility with existing Makefiles. 12485ECHO_C= ECHO_N= ECHO_T= 12486case `echo -n x` in #((((( 12487-n*) 12488 case `echo 'xy\c'` in 12489 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12490 xy) ECHO_C='\c';; 12491 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12492 ECHO_T=' ';; 12493 esac;; 12494*) 12495 ECHO_N='-n';; 12496esac 12497 12498# For backward compatibility with old third-party macros, we provide 12499# the shell variables $as_echo and $as_echo_n. New code should use 12500# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12501as_echo='printf %s\n' 12502as_echo_n='printf %s' 12503 12504rm -f conf$$ conf$$.exe conf$$.file 12505if test -d conf$$.dir; then 12506 rm -f conf$$.dir/conf$$.file 12507else 12508 rm -f conf$$.dir 12509 mkdir conf$$.dir 2>/dev/null 12510fi 12511if (echo >conf$$.file) 2>/dev/null; then 12512 if ln -s conf$$.file conf$$ 2>/dev/null; then 12513 as_ln_s='ln -s' 12514 # ... but there are two gotchas: 12515 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12516 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12517 # In both cases, we have to default to 'cp -pR'. 12518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12519 as_ln_s='cp -pR' 12520 elif ln conf$$.file conf$$ 2>/dev/null; then 12521 as_ln_s=ln 12522 else 12523 as_ln_s='cp -pR' 12524 fi 12525else 12526 as_ln_s='cp -pR' 12527fi 12528rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12529rmdir conf$$.dir 2>/dev/null 12530 12531 12532# as_fn_mkdir_p 12533# ------------- 12534# Create "$as_dir" as a directory, including parents if necessary. 12535as_fn_mkdir_p () 12536{ 12537 12538 case $as_dir in #( 12539 -*) as_dir=./$as_dir;; 12540 esac 12541 test -d "$as_dir" || eval $as_mkdir_p || { 12542 as_dirs= 12543 while :; do 12544 case $as_dir in #( 12545 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12546 *) as_qdir=$as_dir;; 12547 esac 12548 as_dirs="'$as_qdir' $as_dirs" 12549 as_dir=`$as_dirname -- "$as_dir" || 12550$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12551 X"$as_dir" : 'X\(//\)[^/]' \| \ 12552 X"$as_dir" : 'X\(//\)$' \| \ 12553 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12554printf "%s\n" X"$as_dir" | 12555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12556 s//\1/ 12557 q 12558 } 12559 /^X\(\/\/\)[^/].*/{ 12560 s//\1/ 12561 q 12562 } 12563 /^X\(\/\/\)$/{ 12564 s//\1/ 12565 q 12566 } 12567 /^X\(\/\).*/{ 12568 s//\1/ 12569 q 12570 } 12571 s/.*/./; q'` 12572 test -d "$as_dir" && break 12573 done 12574 test -z "$as_dirs" || eval "mkdir $as_dirs" 12575 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12576 12577 12578} # as_fn_mkdir_p 12579if mkdir -p . 2>/dev/null; then 12580 as_mkdir_p='mkdir -p "$as_dir"' 12581else 12582 test -d ./-p && rmdir ./-p 12583 as_mkdir_p=false 12584fi 12585 12586 12587# as_fn_executable_p FILE 12588# ----------------------- 12589# Test if FILE is an executable regular file. 12590as_fn_executable_p () 12591{ 12592 test -f "$1" && test -x "$1" 12593} # as_fn_executable_p 12594as_test_x='test -x' 12595as_executable_p=as_fn_executable_p 12596 12597# Sed expression to map a string onto a valid CPP name. 12598as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12599as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12600 12601# Sed expression to map a string onto a valid variable name. 12602as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12603as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12604 12605 12606exec 6>&1 12607## ----------------------------------- ## 12608## Main body of $CONFIG_STATUS script. ## 12609## ----------------------------------- ## 12610_ASEOF 12611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12612 12613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12614# Save the log message, to keep $0 and so on meaningful, and to 12615# report actual input values of CONFIG_FILES etc. instead of their 12616# values after options handling. 12617ac_log=" 12618This file was extended by iceauth $as_me 1.0.10, which was 12619generated by GNU Autoconf 2.72. Invocation command line was 12620 12621 CONFIG_FILES = $CONFIG_FILES 12622 CONFIG_HEADERS = $CONFIG_HEADERS 12623 CONFIG_LINKS = $CONFIG_LINKS 12624 CONFIG_COMMANDS = $CONFIG_COMMANDS 12625 $ $0 $@ 12626 12627on `(hostname || uname -n) 2>/dev/null | sed 1q` 12628" 12629 12630_ACEOF 12631 12632case $ac_config_files in *" 12633"*) set x $ac_config_files; shift; ac_config_files=$*;; 12634esac 12635 12636case $ac_config_headers in *" 12637"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12638esac 12639 12640 12641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12642# Files that config.status was made for. 12643config_files="$ac_config_files" 12644config_headers="$ac_config_headers" 12645config_commands="$ac_config_commands" 12646 12647_ACEOF 12648 12649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12650ac_cs_usage="\ 12651'$as_me' instantiates files and other configuration actions 12652from templates according to the current configuration. Unless the files 12653and actions are specified as TAGs, all are instantiated by default. 12654 12655Usage: $0 [OPTION]... [TAG]... 12656 12657 -h, --help print this help, then exit 12658 -V, --version print version number and configuration settings, then exit 12659 --config print configuration, then exit 12660 -q, --quiet, --silent 12661 do not print progress messages 12662 -d, --debug don't remove temporary files 12663 --recheck update $as_me by reconfiguring in the same conditions 12664 --file=FILE[:TEMPLATE] 12665 instantiate the configuration file FILE 12666 --header=FILE[:TEMPLATE] 12667 instantiate the configuration header FILE 12668 12669Configuration files: 12670$config_files 12671 12672Configuration headers: 12673$config_headers 12674 12675Configuration commands: 12676$config_commands 12677 12678Report bugs to <https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues>." 12679 12680_ACEOF 12681ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12682ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12684ac_cs_config='$ac_cs_config_escaped' 12685ac_cs_version="\\ 12686iceauth config.status 1.0.10 12687configured by $0, generated by GNU Autoconf 2.72, 12688 with options \\"\$ac_cs_config\\" 12689 12690Copyright (C) 2023 Free Software Foundation, Inc. 12691This config.status script is free software; the Free Software Foundation 12692gives unlimited permission to copy, distribute and modify it." 12693 12694ac_pwd='$ac_pwd' 12695srcdir='$srcdir' 12696INSTALL='$INSTALL' 12697MKDIR_P='$MKDIR_P' 12698AWK='$AWK' 12699test -n "\$AWK" || AWK=awk 12700_ACEOF 12701 12702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12703# The default lists apply if the user does not specify any file. 12704ac_need_defaults=: 12705while test $# != 0 12706do 12707 case $1 in 12708 --*=?*) 12709 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12710 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12711 ac_shift=: 12712 ;; 12713 --*=) 12714 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12715 ac_optarg= 12716 ac_shift=: 12717 ;; 12718 *) 12719 ac_option=$1 12720 ac_optarg=$2 12721 ac_shift=shift 12722 ;; 12723 esac 12724 12725 case $ac_option in 12726 # Handling of the options. 12727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12728 ac_cs_recheck=: ;; 12729 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12730 printf "%s\n" "$ac_cs_version"; exit ;; 12731 --config | --confi | --conf | --con | --co | --c ) 12732 printf "%s\n" "$ac_cs_config"; exit ;; 12733 --debug | --debu | --deb | --de | --d | -d ) 12734 debug=: ;; 12735 --file | --fil | --fi | --f ) 12736 $ac_shift 12737 case $ac_optarg in 12738 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12739 '') as_fn_error $? "missing file argument" ;; 12740 esac 12741 as_fn_append CONFIG_FILES " '$ac_optarg'" 12742 ac_need_defaults=false;; 12743 --header | --heade | --head | --hea ) 12744 $ac_shift 12745 case $ac_optarg in 12746 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12747 esac 12748 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12749 ac_need_defaults=false;; 12750 --he | --h) 12751 # Conflict between --help and --header 12752 as_fn_error $? "ambiguous option: '$1' 12753Try '$0 --help' for more information.";; 12754 --help | --hel | -h ) 12755 printf "%s\n" "$ac_cs_usage"; exit ;; 12756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12757 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12758 ac_cs_silent=: ;; 12759 12760 # This is an error. 12761 -*) as_fn_error $? "unrecognized option: '$1' 12762Try '$0 --help' for more information." ;; 12763 12764 *) as_fn_append ac_config_targets " $1" 12765 ac_need_defaults=false ;; 12766 12767 esac 12768 shift 12769done 12770 12771ac_configure_extra_args= 12772 12773if $ac_cs_silent; then 12774 exec 6>/dev/null 12775 ac_configure_extra_args="$ac_configure_extra_args --silent" 12776fi 12777 12778_ACEOF 12779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12780if \$ac_cs_recheck; then 12781 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12782 shift 12783 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12784 CONFIG_SHELL='$SHELL' 12785 export CONFIG_SHELL 12786 exec "\$@" 12787fi 12788 12789_ACEOF 12790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12791exec 5>>config.log 12792{ 12793 echo 12794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12795## Running $as_me. ## 12796_ASBOX 12797 printf "%s\n" "$ac_log" 12798} >&5 12799 12800_ACEOF 12801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12802# 12803# INIT-COMMANDS 12804# 12805AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12806 12807_ACEOF 12808 12809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12810 12811# Handling of arguments. 12812for ac_config_target in $ac_config_targets 12813do 12814 case $ac_config_target in 12815 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12816 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12817 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12818 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12819 12820 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12821 esac 12822done 12823 12824 12825# If the user did not use the arguments to specify the items to instantiate, 12826# then the envvar interface is used. Set only those that are not. 12827# We use the long form for the default assignment because of an extremely 12828# bizarre bug on SunOS 4.1.3. 12829if $ac_need_defaults; then 12830 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12831 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12832 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12833fi 12834 12835# Have a temporary directory for convenience. Make it in the build tree 12836# simply because there is no reason against having it here, and in addition, 12837# creating and moving files from /tmp can sometimes cause problems. 12838# Hook for its removal unless debugging. 12839# Note that there is a small window in which the directory will not be cleaned: 12840# after its creation but before its name has been assigned to '$tmp'. 12841$debug || 12842{ 12843 tmp= ac_tmp= 12844 trap 'exit_status=$? 12845 : "${ac_tmp:=$tmp}" 12846 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12847' 0 12848 trap 'as_fn_exit 1' 1 2 13 15 12849} 12850# Create a (secure) tmp directory for tmp files. 12851 12852{ 12853 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12854 test -d "$tmp" 12855} || 12856{ 12857 tmp=./conf$$-$RANDOM 12858 (umask 077 && mkdir "$tmp") 12859} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12860ac_tmp=$tmp 12861 12862# Set up the scripts for CONFIG_FILES section. 12863# No need to generate them if there are no CONFIG_FILES. 12864# This happens for instance with './config.status config.h'. 12865if test -n "$CONFIG_FILES"; then 12866 12867 12868ac_cr=`echo X | tr X '\015'` 12869# On cygwin, bash can eat \r inside `` if the user requested igncr. 12870# But we know of no other shell where ac_cr would be empty at this 12871# point, so we can use a bashism as a fallback. 12872if test "x$ac_cr" = x; then 12873 eval ac_cr=\$\'\\r\' 12874fi 12875ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12876if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12877 ac_cs_awk_cr='\\r' 12878else 12879 ac_cs_awk_cr=$ac_cr 12880fi 12881 12882echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12883_ACEOF 12884 12885 12886{ 12887 echo "cat >conf$$subs.awk <<_ACEOF" && 12888 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12889 echo "_ACEOF" 12890} >conf$$subs.sh || 12891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12892ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12893ac_delim='%!_!# ' 12894for ac_last_try in false false false false false :; do 12895 . ./conf$$subs.sh || 12896 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12897 12898 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12899 if test $ac_delim_n = $ac_delim_num; then 12900 break 12901 elif $ac_last_try; then 12902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12903 else 12904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12905 fi 12906done 12907rm -f conf$$subs.sh 12908 12909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12910cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12911_ACEOF 12912sed -n ' 12913h 12914s/^/S["/; s/!.*/"]=/ 12915p 12916g 12917s/^[^!]*!// 12918:repl 12919t repl 12920s/'"$ac_delim"'$// 12921t delim 12922:nl 12923h 12924s/\(.\{148\}\)..*/\1/ 12925t more1 12926s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12927p 12928n 12929b repl 12930:more1 12931s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12932p 12933g 12934s/.\{148\}// 12935t nl 12936:delim 12937h 12938s/\(.\{148\}\)..*/\1/ 12939t more2 12940s/["\\]/\\&/g; s/^/"/; s/$/"/ 12941p 12942b 12943:more2 12944s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12945p 12946g 12947s/.\{148\}// 12948t delim 12949' <conf$$subs.awk | sed ' 12950/^[^""]/{ 12951 N 12952 s/\n// 12953} 12954' >>$CONFIG_STATUS || ac_write_fail=1 12955rm -f conf$$subs.awk 12956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12957_ACAWK 12958cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12959 for (key in S) S_is_set[key] = 1 12960 FS = "" 12961 12962} 12963{ 12964 line = $ 0 12965 nfields = split(line, field, "@") 12966 substed = 0 12967 len = length(field[1]) 12968 for (i = 2; i < nfields; i++) { 12969 key = field[i] 12970 keylen = length(key) 12971 if (S_is_set[key]) { 12972 value = S[key] 12973 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12974 len += length(value) + length(field[++i]) 12975 substed = 1 12976 } else 12977 len += 1 + keylen 12978 } 12979 12980 print line 12981} 12982 12983_ACAWK 12984_ACEOF 12985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12986if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12987 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12988else 12989 cat 12990fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12991 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12992_ACEOF 12993 12994# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12995# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12996# trailing colons and then remove the whole line if VPATH becomes empty 12997# (actually we leave an empty line to preserve line numbers). 12998if test "x$srcdir" = x.; then 12999 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13000h 13001s/// 13002s/^/:/ 13003s/[ ]*$/:/ 13004s/:\$(srcdir):/:/g 13005s/:\${srcdir}:/:/g 13006s/:@srcdir@:/:/g 13007s/^:*// 13008s/:*$// 13009x 13010s/\(=[ ]*\).*/\1/ 13011G 13012s/\n// 13013s/^[^=]*=[ ]*$// 13014}' 13015fi 13016 13017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13018fi # test -n "$CONFIG_FILES" 13019 13020# Set up the scripts for CONFIG_HEADERS section. 13021# No need to generate them if there are no CONFIG_HEADERS. 13022# This happens for instance with './config.status Makefile'. 13023if test -n "$CONFIG_HEADERS"; then 13024cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13025BEGIN { 13026_ACEOF 13027 13028# Transform confdefs.h into an awk script 'defines.awk', embedded as 13029# here-document in config.status, that substitutes the proper values into 13030# config.h.in to produce config.h. 13031 13032# Create a delimiter string that does not exist in confdefs.h, to ease 13033# handling of long lines. 13034ac_delim='%!_!# ' 13035for ac_last_try in false false :; do 13036 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13037 if test -z "$ac_tt"; then 13038 break 13039 elif $ac_last_try; then 13040 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13041 else 13042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13043 fi 13044done 13045 13046# For the awk script, D is an array of macro values keyed by name, 13047# likewise P contains macro parameters if any. Preserve backslash 13048# newline sequences. 13049 13050ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13051sed -n ' 13052s/.\{148\}/&'"$ac_delim"'/g 13053t rset 13054:rset 13055s/^[ ]*#[ ]*define[ ][ ]*/ / 13056t def 13057d 13058:def 13059s/\\$// 13060t bsnl 13061s/["\\]/\\&/g 13062s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13063D["\1"]=" \3"/p 13064s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13065d 13066:bsnl 13067s/["\\]/\\&/g 13068s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13069D["\1"]=" \3\\\\\\n"\\/p 13070t cont 13071s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13072t cont 13073d 13074:cont 13075n 13076s/.\{148\}/&'"$ac_delim"'/g 13077t clear 13078:clear 13079s/\\$// 13080t bsnlc 13081s/["\\]/\\&/g; s/^/"/; s/$/"/p 13082d 13083:bsnlc 13084s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13085b cont 13086' <confdefs.h | sed ' 13087s/'"$ac_delim"'/"\\\ 13088"/g' >>$CONFIG_STATUS || ac_write_fail=1 13089 13090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13091 for (key in D) D_is_set[key] = 1 13092 FS = "" 13093} 13094/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13095 line = \$ 0 13096 split(line, arg, " ") 13097 if (arg[1] == "#") { 13098 defundef = arg[2] 13099 mac1 = arg[3] 13100 } else { 13101 defundef = substr(arg[1], 2) 13102 mac1 = arg[2] 13103 } 13104 split(mac1, mac2, "(") #) 13105 macro = mac2[1] 13106 prefix = substr(line, 1, index(line, defundef) - 1) 13107 if (D_is_set[macro]) { 13108 # Preserve the white space surrounding the "#". 13109 print prefix "define", macro P[macro] D[macro] 13110 next 13111 } else { 13112 # Replace #undef with comments. This is necessary, for example, 13113 # in the case of _POSIX_SOURCE, which is predefined and required 13114 # on some systems where configure will not decide to define it. 13115 if (defundef == "undef") { 13116 print "/*", prefix defundef, macro, "*/" 13117 next 13118 } 13119 } 13120} 13121{ print } 13122_ACAWK 13123_ACEOF 13124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13125 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13126fi # test -n "$CONFIG_HEADERS" 13127 13128 13129eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13130shift 13131for ac_tag 13132do 13133 case $ac_tag in 13134 :[FHLC]) ac_mode=$ac_tag; continue;; 13135 esac 13136 case $ac_mode$ac_tag in 13137 :[FHL]*:*);; 13138 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13139 :[FH]-) ac_tag=-:-;; 13140 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13141 esac 13142 ac_save_IFS=$IFS 13143 IFS=: 13144 set x $ac_tag 13145 IFS=$ac_save_IFS 13146 shift 13147 ac_file=$1 13148 shift 13149 13150 case $ac_mode in 13151 :L) ac_source=$1;; 13152 :[FH]) 13153 ac_file_inputs= 13154 for ac_f 13155 do 13156 case $ac_f in 13157 -) ac_f="$ac_tmp/stdin";; 13158 *) # Look for the file first in the build tree, then in the source tree 13159 # (if the path is not absolute). The absolute path cannot be DOS-style, 13160 # because $ac_f cannot contain ':'. 13161 test -f "$ac_f" || 13162 case $ac_f in 13163 [\\/$]*) false;; 13164 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13165 esac || 13166 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13167 esac 13168 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13169 as_fn_append ac_file_inputs " '$ac_f'" 13170 done 13171 13172 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13173 # use $as_me), people would be surprised to read: 13174 # /* config.h. Generated by config.status. */ 13175 configure_input='Generated from '` 13176 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13177 `' by configure.' 13178 if test x"$ac_file" != x-; then 13179 configure_input="$ac_file. $configure_input" 13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13181printf "%s\n" "$as_me: creating $ac_file" >&6;} 13182 fi 13183 # Neutralize special characters interpreted by sed in replacement strings. 13184 case $configure_input in #( 13185 *\&* | *\|* | *\\* ) 13186 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13187 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13188 *) ac_sed_conf_input=$configure_input;; 13189 esac 13190 13191 case $ac_tag in 13192 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13194 esac 13195 ;; 13196 esac 13197 13198 ac_dir=`$as_dirname -- "$ac_file" || 13199$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13200 X"$ac_file" : 'X\(//\)[^/]' \| \ 13201 X"$ac_file" : 'X\(//\)$' \| \ 13202 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13203printf "%s\n" X"$ac_file" | 13204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13205 s//\1/ 13206 q 13207 } 13208 /^X\(\/\/\)[^/].*/{ 13209 s//\1/ 13210 q 13211 } 13212 /^X\(\/\/\)$/{ 13213 s//\1/ 13214 q 13215 } 13216 /^X\(\/\).*/{ 13217 s//\1/ 13218 q 13219 } 13220 s/.*/./; q'` 13221 as_dir="$ac_dir"; as_fn_mkdir_p 13222 ac_builddir=. 13223 13224case "$ac_dir" in 13225.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13226*) 13227 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13228 # A ".." for each directory in $ac_dir_suffix. 13229 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13230 case $ac_top_builddir_sub in 13231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13233 esac ;; 13234esac 13235ac_abs_top_builddir=$ac_pwd 13236ac_abs_builddir=$ac_pwd$ac_dir_suffix 13237# for backward compatibility: 13238ac_top_builddir=$ac_top_build_prefix 13239 13240case $srcdir in 13241 .) # We are building in place. 13242 ac_srcdir=. 13243 ac_top_srcdir=$ac_top_builddir_sub 13244 ac_abs_top_srcdir=$ac_pwd ;; 13245 [\\/]* | ?:[\\/]* ) # Absolute name. 13246 ac_srcdir=$srcdir$ac_dir_suffix; 13247 ac_top_srcdir=$srcdir 13248 ac_abs_top_srcdir=$srcdir ;; 13249 *) # Relative name. 13250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13251 ac_top_srcdir=$ac_top_build_prefix$srcdir 13252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13253esac 13254ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13255 13256 13257 case $ac_mode in 13258 :F) 13259 # 13260 # CONFIG_FILE 13261 # 13262 13263 case $INSTALL in 13264 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13265 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13266 esac 13267 ac_MKDIR_P=$MKDIR_P 13268 case $MKDIR_P in 13269 [\\/$]* | ?:[\\/]* ) ;; 13270 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13271 esac 13272_ACEOF 13273 13274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13275# If the template does not know about datarootdir, expand it. 13276# FIXME: This hack should be removed a few years after 2.60. 13277ac_datarootdir_hack=; ac_datarootdir_seen= 13278ac_sed_dataroot=' 13279/datarootdir/ { 13280 p 13281 q 13282} 13283/@datadir@/p 13284/@docdir@/p 13285/@infodir@/p 13286/@localedir@/p 13287/@mandir@/p' 13288case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13289*datarootdir*) ac_datarootdir_seen=yes;; 13290*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13292printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13293_ACEOF 13294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13295 ac_datarootdir_hack=' 13296 s&@datadir@&$datadir&g 13297 s&@docdir@&$docdir&g 13298 s&@infodir@&$infodir&g 13299 s&@localedir@&$localedir&g 13300 s&@mandir@&$mandir&g 13301 s&\\\${datarootdir}&$datarootdir&g' ;; 13302esac 13303_ACEOF 13304 13305# Neutralize VPATH when '$srcdir' = '.'. 13306# Shell code in configure.ac might set extrasub. 13307# FIXME: do we really want to maintain this feature? 13308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13309ac_sed_extra="$ac_vpsub 13310$extrasub 13311_ACEOF 13312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13313:t 13314/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13315s|@configure_input@|$ac_sed_conf_input|;t t 13316s&@top_builddir@&$ac_top_builddir_sub&;t t 13317s&@top_build_prefix@&$ac_top_build_prefix&;t t 13318s&@srcdir@&$ac_srcdir&;t t 13319s&@abs_srcdir@&$ac_abs_srcdir&;t t 13320s&@top_srcdir@&$ac_top_srcdir&;t t 13321s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13322s&@builddir@&$ac_builddir&;t t 13323s&@abs_builddir@&$ac_abs_builddir&;t t 13324s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13325s&@INSTALL@&$ac_INSTALL&;t t 13326s&@MKDIR_P@&$ac_MKDIR_P&;t t 13327$ac_datarootdir_hack 13328" 13329eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13330 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13331 13332test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13333 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13335 "$ac_tmp/out"`; test -z "$ac_out"; } && 13336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13337which seems to be undefined. Please make sure it is defined" >&5 13338printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13339which seems to be undefined. Please make sure it is defined" >&2;} 13340 13341 rm -f "$ac_tmp/stdin" 13342 case $ac_file in 13343 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13344 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13345 esac \ 13346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13347 ;; 13348 :H) 13349 # 13350 # CONFIG_HEADER 13351 # 13352 if test x"$ac_file" != x-; then 13353 { 13354 printf "%s\n" "/* $configure_input */" >&1 \ 13355 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13356 } >"$ac_tmp/config.h" \ 13357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13358 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13360printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13361 else 13362 rm -f "$ac_file" 13363 mv "$ac_tmp/config.h" "$ac_file" \ 13364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13365 fi 13366 else 13367 printf "%s\n" "/* $configure_input */" >&1 \ 13368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13369 || as_fn_error $? "could not create -" "$LINENO" 5 13370 fi 13371# Compute "$ac_file"'s index in $config_headers. 13372_am_arg="$ac_file" 13373_am_stamp_count=1 13374for _am_header in $config_headers :; do 13375 case $_am_header in 13376 $_am_arg | $_am_arg:* ) 13377 break ;; 13378 * ) 13379 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13380 esac 13381done 13382echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13383$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13384 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13385 X"$_am_arg" : 'X\(//\)$' \| \ 13386 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13387printf "%s\n" X"$_am_arg" | 13388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13389 s//\1/ 13390 q 13391 } 13392 /^X\(\/\/\)[^/].*/{ 13393 s//\1/ 13394 q 13395 } 13396 /^X\(\/\/\)$/{ 13397 s//\1/ 13398 q 13399 } 13400 /^X\(\/\).*/{ 13401 s//\1/ 13402 q 13403 } 13404 s/.*/./; q'`/stamp-h$_am_stamp_count 13405 ;; 13406 13407 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13408printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13409 ;; 13410 esac 13411 13412 13413 case $ac_file$ac_mode in 13414 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13415 # Older Autoconf quotes --file arguments for eval, but not when files 13416 # are listed without --file. Let's play safe and only enable the eval 13417 # if we detect the quoting. 13418 # TODO: see whether this extra hack can be removed once we start 13419 # requiring Autoconf 2.70 or later. 13420 case $CONFIG_FILES in #( 13421 *\'*) : 13422 eval set x "$CONFIG_FILES" ;; #( 13423 *) : 13424 set x $CONFIG_FILES ;; #( 13425 *) : 13426 ;; 13427esac 13428 shift 13429 # Used to flag and report bootstrapping failures. 13430 am_rc=0 13431 for am_mf 13432 do 13433 # Strip MF so we end up with the name of the file. 13434 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13435 # Check whether this is an Automake generated Makefile which includes 13436 # dependency-tracking related rules and includes. 13437 # Grep'ing the whole file directly is not great: AIX grep has a line 13438 # limit of 2048, but all sed's we know have understand at least 4000. 13439 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13440 || continue 13441 am_dirpart=`$as_dirname -- "$am_mf" || 13442$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13443 X"$am_mf" : 'X\(//\)[^/]' \| \ 13444 X"$am_mf" : 'X\(//\)$' \| \ 13445 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13446printf "%s\n" X"$am_mf" | 13447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13448 s//\1/ 13449 q 13450 } 13451 /^X\(\/\/\)[^/].*/{ 13452 s//\1/ 13453 q 13454 } 13455 /^X\(\/\/\)$/{ 13456 s//\1/ 13457 q 13458 } 13459 /^X\(\/\).*/{ 13460 s//\1/ 13461 q 13462 } 13463 s/.*/./; q'` 13464 am_filepart=`$as_basename -- "$am_mf" || 13465$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13466 X"$am_mf" : 'X\(//\)$' \| \ 13467 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13468printf "%s\n" X/"$am_mf" | 13469 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13470 s//\1/ 13471 q 13472 } 13473 /^X\/\(\/\/\)$/{ 13474 s//\1/ 13475 q 13476 } 13477 /^X\/\(\/\).*/{ 13478 s//\1/ 13479 q 13480 } 13481 s/.*/./; q'` 13482 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13483 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13484 | $MAKE -f - am--depfiles" >&5 13485 (cd "$am_dirpart" \ 13486 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13487 | $MAKE -f - am--depfiles) >&5 2>&5 13488 ac_status=$? 13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13490 (exit $ac_status); } || am_rc=$? 13491 done 13492 if test $am_rc -ne 0; then 13493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13494printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13495as_fn_error $? "Something went wrong bootstrapping makefile fragments 13496 for automatic dependency tracking. If GNU make was not used, consider 13497 re-running the configure script with MAKE=\"gmake\" (or whatever is 13498 necessary). You can also try re-running configure with the 13499 '--disable-dependency-tracking' option to at least be able to build 13500 the package (albeit without support for automatic dependency tracking). 13501See 'config.log' for more details" "$LINENO" 5; } 13502 fi 13503 { am_dirpart=; unset am_dirpart;} 13504 { am_filepart=; unset am_filepart;} 13505 { am_mf=; unset am_mf;} 13506 { am_rc=; unset am_rc;} 13507 rm -f conftest-deps.mk 13508} 13509 ;; 13510 13511 esac 13512done # for ac_tag 13513 13514 13515as_fn_exit 0 13516_ACEOF 13517ac_clean_files=$ac_clean_files_save 13518 13519test $ac_write_fail = 0 || 13520 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13521 13522 13523# configure is writing to config.log, and then calls config.status. 13524# config.status does its own redirection, appending to config.log. 13525# Unfortunately, on DOS this fails, as config.log is still kept open 13526# by configure, so config.status won't be able to write to it; its 13527# output is simply discarded. So we exec the FD to /dev/null, 13528# effectively closing config.log, so it can be properly (re)opened and 13529# appended to by config.status. When coming back to configure, we 13530# need to make the FD available again. 13531if test "$no_create" != yes; then 13532 ac_cs_success=: 13533 ac_config_status_args= 13534 test "$silent" = yes && 13535 ac_config_status_args="$ac_config_status_args --quiet" 13536 exec 5>/dev/null 13537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13538 exec 5>>config.log 13539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13540 # would make configure fail if this is the last instruction. 13541 $ac_cs_success || as_fn_exit 1 13542fi 13543if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13545printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13546fi 13547 13548 13549