1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xbiff 1.0.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xbiff/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/xbiff/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='xbiff' 607PACKAGE_TARNAME='xbiff' 608PACKAGE_VERSION='1.0.5' 609PACKAGE_STRING='xbiff 1.0.5' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xbiff/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 651XBIFF_LIBS 652XBIFF_CFLAGS 653MAN_SUBSTS 654XORG_MAN_PAGE 655ADMIN_MAN_DIR 656DRIVER_MAN_DIR 657MISC_MAN_DIR 658FILE_MAN_DIR 659LIB_MAN_DIR 660APP_MAN_DIR 661ADMIN_MAN_SUFFIX 662DRIVER_MAN_SUFFIX 663MISC_MAN_SUFFIX 664FILE_MAN_SUFFIX 665LIB_MAN_SUFFIX 666APP_MAN_SUFFIX 667SED 668host_os 669host_vendor 670host_cpu 671host 672build_os 673build_vendor 674build_cpu 675build 676INSTALL_CMD 677PKG_CONFIG_LIBDIR 678PKG_CONFIG_PATH 679PKG_CONFIG 680CHANGELOG_CMD 681STRICT_CFLAGS 682CWARNFLAGS 683BASE_CFLAGS 684am__fastdepCC_FALSE 685am__fastdepCC_TRUE 686CCDEPMODE 687am__nodep 688AMDEPBACKSLASH 689AMDEP_FALSE 690AMDEP_TRUE 691am__include 692DEPDIR 693OBJEXT 694EXEEXT 695ac_ct_CC 696CPPFLAGS 697LDFLAGS 698CFLAGS 699CC 700AM_BACKSLASH 701AM_DEFAULT_VERBOSITY 702AM_DEFAULT_V 703AM_V 704CSCOPE 705ETAGS 706CTAGS 707am__untar 708am__tar 709AMTAR 710am__leading_dot 711SET_MAKE 712AWK 713mkdir_p 714MKDIR_P 715INSTALL_STRIP_PROGRAM 716STRIP 717install_sh 718MAKEINFO 719AUTOHEADER 720AUTOMAKE 721AUTOCONF 722ACLOCAL 723VERSION 724PACKAGE 725CYGPATH_W 726am__isrc 727INSTALL_DATA 728INSTALL_SCRIPT 729INSTALL_PROGRAM 730target_alias 731host_alias 732build_alias 733LIBS 734ECHO_T 735ECHO_N 736ECHO_C 737DEFS 738mandir 739localedir 740libdir 741psdir 742pdfdir 743dvidir 744htmldir 745infodir 746docdir 747oldincludedir 748includedir 749runstatedir 750localstatedir 751sharedstatedir 752sysconfdir 753datadir 754datarootdir 755libexecdir 756sbindir 757bindir 758program_transform_name 759prefix 760exec_prefix 761PACKAGE_URL 762PACKAGE_BUGREPORT 763PACKAGE_STRING 764PACKAGE_VERSION 765PACKAGE_TARNAME 766PACKAGE_NAME 767PATH_SEPARATOR 768SHELL 769am__quote' 770ac_subst_files='' 771ac_user_opts=' 772enable_option_checking 773enable_silent_rules 774enable_dependency_tracking 775enable_selective_werror 776enable_strict_compilation 777enable_largefile 778with_mailbox_directory 779enable_year2038 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789PKG_CONFIG 790PKG_CONFIG_PATH 791PKG_CONFIG_LIBDIR 792XBIFF_CFLAGS 793XBIFF_LIBS' 794 795 796# Initialize some variables set by options. 797ac_init_help= 798ac_init_version=false 799ac_unrecognized_opts= 800ac_unrecognized_sep= 801# The variables have the same names as the options, with 802# dashes changed to underlines. 803cache_file=/dev/null 804exec_prefix=NONE 805no_create= 806no_recursion= 807prefix=NONE 808program_prefix=NONE 809program_suffix=NONE 810program_transform_name=s,x,x, 811silent= 812site= 813srcdir= 814verbose= 815x_includes=NONE 816x_libraries=NONE 817 818# Installation directory options. 819# These are left unexpanded so users can "make install exec_prefix=/foo" 820# and all the variables that are supposed to be based on exec_prefix 821# by default will actually change. 822# Use braces instead of parens because sh, perl, etc. also accept them. 823# (The list follows the same order as the GNU Coding Standards.) 824bindir='${exec_prefix}/bin' 825sbindir='${exec_prefix}/sbin' 826libexecdir='${exec_prefix}/libexec' 827datarootdir='${prefix}/share' 828datadir='${datarootdir}' 829sysconfdir='${prefix}/etc' 830sharedstatedir='${prefix}/com' 831localstatedir='${prefix}/var' 832runstatedir='${localstatedir}/run' 833includedir='${prefix}/include' 834oldincludedir='/usr/include' 835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 836infodir='${datarootdir}/info' 837htmldir='${docdir}' 838dvidir='${docdir}' 839pdfdir='${docdir}' 840psdir='${docdir}' 841libdir='${exec_prefix}/lib' 842localedir='${datarootdir}/locale' 843mandir='${datarootdir}/man' 844 845ac_prev= 846ac_dashdash= 847for ac_option 848do 849 # If the previous option needs an argument, assign it. 850 if test -n "$ac_prev"; then 851 eval $ac_prev=\$ac_option 852 ac_prev= 853 continue 854 fi 855 856 case $ac_option in 857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 858 *=) ac_optarg= ;; 859 *) ac_optarg=yes ;; 860 esac 861 862 case $ac_dashdash$ac_option in 863 --) 864 ac_dashdash=yes ;; 865 866 -bindir | --bindir | --bindi | --bind | --bin | --bi) 867 ac_prev=bindir ;; 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 869 bindir=$ac_optarg ;; 870 871 -build | --build | --buil | --bui | --bu) 872 ac_prev=build_alias ;; 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 874 build_alias=$ac_optarg ;; 875 876 -cache-file | --cache-file | --cache-fil | --cache-fi \ 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 878 ac_prev=cache_file ;; 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 881 cache_file=$ac_optarg ;; 882 883 --config-cache | -C) 884 cache_file=config.cache ;; 885 886 -datadir | --datadir | --datadi | --datad) 887 ac_prev=datadir ;; 888 -datadir=* | --datadir=* | --datadi=* | --datad=*) 889 datadir=$ac_optarg ;; 890 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 892 | --dataroo | --dataro | --datar) 893 ac_prev=datarootdir ;; 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 896 datarootdir=$ac_optarg ;; 897 898 -disable-* | --disable-*) 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 900 # Reject names that are not valid shell variable names. 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 902 as_fn_error $? "invalid feature name: '$ac_useropt'" 903 ac_useropt_orig=$ac_useropt 904 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 905 case $ac_user_opts in 906 *" 907"enable_$ac_useropt" 908"*) ;; 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 910 ac_unrecognized_sep=', ';; 911 esac 912 eval enable_$ac_useropt=no ;; 913 914 -docdir | --docdir | --docdi | --doc | --do) 915 ac_prev=docdir ;; 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 917 docdir=$ac_optarg ;; 918 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 920 ac_prev=dvidir ;; 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 922 dvidir=$ac_optarg ;; 923 924 -enable-* | --enable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: '$ac_useropt'" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=\$ac_optarg ;; 939 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 942 | --exec | --exe | --ex) 943 ac_prev=exec_prefix ;; 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 946 | --exec=* | --exe=* | --ex=*) 947 exec_prefix=$ac_optarg ;; 948 949 -gas | --gas | --ga | --g) 950 # Obsolete; use --with-gas. 951 with_gas=yes ;; 952 953 -help | --help | --hel | --he | -h) 954 ac_init_help=long ;; 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 956 ac_init_help=recursive ;; 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 958 ac_init_help=short ;; 959 960 -host | --host | --hos | --ho) 961 ac_prev=host_alias ;; 962 -host=* | --host=* | --hos=* | --ho=*) 963 host_alias=$ac_optarg ;; 964 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 966 ac_prev=htmldir ;; 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 968 | --ht=*) 969 htmldir=$ac_optarg ;; 970 971 -includedir | --includedir | --includedi | --included | --include \ 972 | --includ | --inclu | --incl | --inc) 973 ac_prev=includedir ;; 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 975 | --includ=* | --inclu=* | --incl=* | --inc=*) 976 includedir=$ac_optarg ;; 977 978 -infodir | --infodir | --infodi | --infod | --info | --inf) 979 ac_prev=infodir ;; 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 981 infodir=$ac_optarg ;; 982 983 -libdir | --libdir | --libdi | --libd) 984 ac_prev=libdir ;; 985 -libdir=* | --libdir=* | --libdi=* | --libd=*) 986 libdir=$ac_optarg ;; 987 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 989 | --libexe | --libex | --libe) 990 ac_prev=libexecdir ;; 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 992 | --libexe=* | --libex=* | --libe=*) 993 libexecdir=$ac_optarg ;; 994 995 -localedir | --localedir | --localedi | --localed | --locale) 996 ac_prev=localedir ;; 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 998 localedir=$ac_optarg ;; 999 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1001 | --localstate | --localstat | --localsta | --localst | --locals) 1002 ac_prev=localstatedir ;; 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1005 localstatedir=$ac_optarg ;; 1006 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1008 ac_prev=mandir ;; 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1010 mandir=$ac_optarg ;; 1011 1012 -nfp | --nfp | --nf) 1013 # Obsolete; use --without-fp. 1014 with_fp=no ;; 1015 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1017 | --no-cr | --no-c | -n) 1018 no_create=yes ;; 1019 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1022 no_recursion=yes ;; 1023 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1026 | --oldin | --oldi | --old | --ol | --o) 1027 ac_prev=oldincludedir ;; 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1031 oldincludedir=$ac_optarg ;; 1032 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1034 ac_prev=prefix ;; 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1036 prefix=$ac_optarg ;; 1037 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1039 | --program-pre | --program-pr | --program-p) 1040 ac_prev=program_prefix ;; 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1043 program_prefix=$ac_optarg ;; 1044 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1046 | --program-suf | --program-su | --program-s) 1047 ac_prev=program_suffix ;; 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1050 program_suffix=$ac_optarg ;; 1051 1052 -program-transform-name | --program-transform-name \ 1053 | --program-transform-nam | --program-transform-na \ 1054 | --program-transform-n | --program-transform- \ 1055 | --program-transform | --program-transfor \ 1056 | --program-transfo | --program-transf \ 1057 | --program-trans | --program-tran \ 1058 | --progr-tra | --program-tr | --program-t) 1059 ac_prev=program_transform_name ;; 1060 -program-transform-name=* | --program-transform-name=* \ 1061 | --program-transform-nam=* | --program-transform-na=* \ 1062 | --program-transform-n=* | --program-transform-=* \ 1063 | --program-transform=* | --program-transfor=* \ 1064 | --program-transfo=* | --program-transf=* \ 1065 | --program-trans=* | --program-tran=* \ 1066 | --progr-tra=* | --program-tr=* | --program-t=*) 1067 program_transform_name=$ac_optarg ;; 1068 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1070 ac_prev=pdfdir ;; 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1072 pdfdir=$ac_optarg ;; 1073 1074 -psdir | --psdir | --psdi | --psd | --ps) 1075 ac_prev=psdir ;; 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1077 psdir=$ac_optarg ;; 1078 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 | -silent | --silent | --silen | --sile | --sil) 1081 silent=yes ;; 1082 1083 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1084 | --runstate | --runstat | --runsta | --runst | --runs \ 1085 | --run | --ru | --r) 1086 ac_prev=runstatedir ;; 1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1089 | --run=* | --ru=* | --r=*) 1090 runstatedir=$ac_optarg ;; 1091 1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1093 ac_prev=sbindir ;; 1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1095 | --sbi=* | --sb=*) 1096 sbindir=$ac_optarg ;; 1097 1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1100 | --sharedst | --shareds | --shared | --share | --shar \ 1101 | --sha | --sh) 1102 ac_prev=sharedstatedir ;; 1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1106 | --sha=* | --sh=*) 1107 sharedstatedir=$ac_optarg ;; 1108 1109 -site | --site | --sit) 1110 ac_prev=site ;; 1111 -site=* | --site=* | --sit=*) 1112 site=$ac_optarg ;; 1113 1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1115 ac_prev=srcdir ;; 1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1117 srcdir=$ac_optarg ;; 1118 1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1120 | --syscon | --sysco | --sysc | --sys | --sy) 1121 ac_prev=sysconfdir ;; 1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1124 sysconfdir=$ac_optarg ;; 1125 1126 -target | --target | --targe | --targ | --tar | --ta | --t) 1127 ac_prev=target_alias ;; 1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1129 target_alias=$ac_optarg ;; 1130 1131 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1132 verbose=yes ;; 1133 1134 -version | --version | --versio | --versi | --vers | -V) 1135 ac_init_version=: ;; 1136 1137 -with-* | --with-*) 1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 as_fn_error $? "invalid package name: '$ac_useropt'" 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146"with_$ac_useropt" 1147"*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=\$ac_optarg ;; 1152 1153 -without-* | --without-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: '$ac_useropt'" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=no ;; 1168 1169 --x) 1170 # Obsolete; use --with-x. 1171 with_x=yes ;; 1172 1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1174 | --x-incl | --x-inc | --x-in | --x-i) 1175 ac_prev=x_includes ;; 1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1178 x_includes=$ac_optarg ;; 1179 1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1182 ac_prev=x_libraries ;; 1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1185 x_libraries=$ac_optarg ;; 1186 1187 -*) as_fn_error $? "unrecognized option: '$ac_option' 1188Try '$0 --help' for more information" 1189 ;; 1190 1191 *=*) 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1193 # Reject names that are not valid shell variable names. 1194 case $ac_envvar in #( 1195 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1196 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1197 esac 1198 eval $ac_envvar=\$ac_optarg 1199 export $ac_envvar ;; 1200 1201 *) 1202 # FIXME: should be removed in autoconf 3.0. 1203 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1205 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1207 ;; 1208 1209 esac 1210done 1211 1212if test -n "$ac_prev"; then 1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1214 as_fn_error $? "missing argument to $ac_option" 1215fi 1216 1217if test -n "$ac_unrecognized_opts"; then 1218 case $enable_option_checking in 1219 no) ;; 1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1221 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1222 esac 1223fi 1224 1225# Check all directory arguments for consistency. 1226for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1227 datadir sysconfdir sharedstatedir localstatedir includedir \ 1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1229 libdir localedir mandir runstatedir 1230do 1231 eval ac_val=\$$ac_var 1232 # Remove trailing slashes. 1233 case $ac_val in 1234 */ ) 1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1236 eval $ac_var=\$ac_val;; 1237 esac 1238 # Be sure to have absolute directory names. 1239 case $ac_val in 1240 [\\/$]* | ?:[\\/]* ) continue;; 1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1242 esac 1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1244done 1245 1246# There might be people who depend on the old broken behavior: '$host' 1247# used to hold the argument of --host etc. 1248# FIXME: To remove some day. 1249build=$build_alias 1250host=$host_alias 1251target=$target_alias 1252 1253# FIXME: To remove some day. 1254if test "x$host_alias" != x; then 1255 if test "x$build_alias" = x; then 1256 cross_compiling=maybe 1257 elif test "x$build_alias" != "x$host_alias"; then 1258 cross_compiling=yes 1259 fi 1260fi 1261 1262ac_tool_prefix= 1263test -n "$host_alias" && ac_tool_prefix=$host_alias- 1264 1265test "$silent" = yes && exec 6>/dev/null 1266 1267 1268ac_pwd=`pwd` && test -n "$ac_pwd" && 1269ac_ls_di=`ls -di .` && 1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1271 as_fn_error $? "working directory cannot be determined" 1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1273 as_fn_error $? "pwd does not report name of working directory" 1274 1275 1276# Find the source files, if location was not specified. 1277if test -z "$srcdir"; then 1278 ac_srcdir_defaulted=yes 1279 # Try the directory containing this script, then the parent directory. 1280 ac_confdir=`$as_dirname -- "$as_myself" || 1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1282 X"$as_myself" : 'X\(//\)[^/]' \| \ 1283 X"$as_myself" : 'X\(//\)$' \| \ 1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285printf "%s\n" X"$as_myself" | 1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)[^/].*/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\).*/{ 1299 s//\1/ 1300 q 1301 } 1302 s/.*/./; q'` 1303 srcdir=$ac_confdir 1304 if test ! -r "$srcdir/$ac_unique_file"; then 1305 srcdir=.. 1306 fi 1307else 1308 ac_srcdir_defaulted=no 1309fi 1310if test ! -r "$srcdir/$ac_unique_file"; then 1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1313fi 1314ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1315ac_abs_confdir=`( 1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1317 pwd)` 1318# When building in place, set srcdir=. 1319if test "$ac_abs_confdir" = "$ac_pwd"; then 1320 srcdir=. 1321fi 1322# Remove unnecessary trailing slashes from srcdir. 1323# Double slashes in file names in object file debugging info 1324# mess up M-x gdb in Emacs. 1325case $srcdir in 1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1327esac 1328for ac_var in $ac_precious_vars; do 1329 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_env_${ac_var}_value=\$${ac_var} 1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1333done 1334 1335# 1336# Report the --help message. 1337# 1338if test "$ac_init_help" = "long"; then 1339 # Omit some internal or obsolete options to make the list less imposing. 1340 # This message is too long to be a string in the A/UX 3.1 sh. 1341 cat <<_ACEOF 1342'configure' configures xbiff 1.0.5 to adapt to many kinds of systems. 1343 1344Usage: $0 [OPTION]... [VAR=VALUE]... 1345 1346To assign environment variables (e.g., CC, CFLAGS...), specify them as 1347VAR=VALUE. See below for descriptions of some of the useful variables. 1348 1349Defaults for the options are specified in brackets. 1350 1351Configuration: 1352 -h, --help display this help and exit 1353 --help=short display options specific to this package 1354 --help=recursive display the short help of all the included packages 1355 -V, --version display version information and exit 1356 -q, --quiet, --silent do not print 'checking ...' messages 1357 --cache-file=FILE cache test results in FILE [disabled] 1358 -C, --config-cache alias for '--cache-file=config.cache' 1359 -n, --no-create do not create output files 1360 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1361 1362Installation directories: 1363 --prefix=PREFIX install architecture-independent files in PREFIX 1364 [$ac_default_prefix] 1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1366 [PREFIX] 1367 1368By default, 'make install' will install all the files in 1369'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1370an installation prefix other than '$ac_default_prefix' using '--prefix', 1371for instance '--prefix=\$HOME'. 1372 1373For better control, use the options below. 1374 1375Fine tuning of the installation directories: 1376 --bindir=DIR user executables [EPREFIX/bin] 1377 --sbindir=DIR system admin executables [EPREFIX/sbin] 1378 --libexecdir=DIR program executables [EPREFIX/libexec] 1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root [DATAROOTDIR/doc/xbiff] 1392 --htmldir=DIR html documentation [DOCDIR] 1393 --dvidir=DIR dvi documentation [DOCDIR] 1394 --pdfdir=DIR pdf documentation [DOCDIR] 1395 --psdir=DIR ps documentation [DOCDIR] 1396_ACEOF 1397 1398 cat <<\_ACEOF 1399 1400Program names: 1401 --program-prefix=PREFIX prepend PREFIX to installed program names 1402 --program-suffix=SUFFIX append SUFFIX to installed program names 1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1404 1405System types: 1406 --build=BUILD configure for building on BUILD [guessed] 1407 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1408_ACEOF 1409fi 1410 1411if test -n "$ac_init_help"; then 1412 case $ac_init_help in 1413 short | recursive ) echo "Configuration of xbiff 1.0.5:";; 1414 esac 1415 cat <<\_ACEOF 1416 1417Optional Features: 1418 --disable-option-checking ignore unrecognized --enable/--with options 1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1421 --enable-silent-rules less verbose build output (undo: "make V=1") 1422 --disable-silent-rules verbose build output (undo: "make V=0") 1423 --enable-dependency-tracking 1424 do not reject slow dependency extractors 1425 --disable-dependency-tracking 1426 speeds up one-time build 1427 --disable-selective-werror 1428 Turn off selective compiler errors. (default: 1429 enabled) 1430 --enable-strict-compilation 1431 Enable all warnings from compiler and make them 1432 errors (default: disabled) 1433 --disable-largefile omit support for large files 1434 --enable-year2038 support timestamps after 2038 1435 1436Optional Packages: 1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1439 --with-mailbox-directory=PATH 1440 specify directory to check for system mailboxes 1441 1442Some influential environment variables: 1443 CC C compiler command 1444 CFLAGS C compiler flags 1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1446 nonstandard directory <lib dir> 1447 LIBS libraries to pass to the linker, e.g. -l<library> 1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1449 you have headers in a nonstandard directory <include dir> 1450 PKG_CONFIG path to pkg-config utility 1451 PKG_CONFIG_PATH 1452 directories to add to pkg-config's search path 1453 PKG_CONFIG_LIBDIR 1454 path overriding pkg-config's built-in search path 1455 XBIFF_CFLAGS 1456 C compiler flags for XBIFF, overriding pkg-config 1457 XBIFF_LIBS linker flags for XBIFF, overriding pkg-config 1458 1459Use these variables to override the choices made by 'configure' or to help 1460it to find libraries and programs with nonstandard names/locations. 1461 1462Report bugs to <https://gitlab.freedesktop.org/xorg/app/xbiff/issues>. 1463_ACEOF 1464ac_status=$? 1465fi 1466 1467if test "$ac_init_help" = "recursive"; then 1468 # If there are subdirs, report their specific --help. 1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1470 test -d "$ac_dir" || 1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1472 continue 1473 ac_builddir=. 1474 1475case "$ac_dir" in 1476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1477*) 1478 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1479 # A ".." for each directory in $ac_dir_suffix. 1480 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1481 case $ac_top_builddir_sub in 1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1484 esac ;; 1485esac 1486ac_abs_top_builddir=$ac_pwd 1487ac_abs_builddir=$ac_pwd$ac_dir_suffix 1488# for backward compatibility: 1489ac_top_builddir=$ac_top_build_prefix 1490 1491case $srcdir in 1492 .) # We are building in place. 1493 ac_srcdir=. 1494 ac_top_srcdir=$ac_top_builddir_sub 1495 ac_abs_top_srcdir=$ac_pwd ;; 1496 [\\/]* | ?:[\\/]* ) # Absolute name. 1497 ac_srcdir=$srcdir$ac_dir_suffix; 1498 ac_top_srcdir=$srcdir 1499 ac_abs_top_srcdir=$srcdir ;; 1500 *) # Relative name. 1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1502 ac_top_srcdir=$ac_top_build_prefix$srcdir 1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1504esac 1505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1506 1507 cd "$ac_dir" || { ac_status=$?; continue; } 1508 # Check for configure.gnu first; this name is used for a wrapper for 1509 # Metaconfig's "Configure" on case-insensitive file systems. 1510 if test -f "$ac_srcdir/configure.gnu"; then 1511 echo && 1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1513 elif test -f "$ac_srcdir/configure"; then 1514 echo && 1515 $SHELL "$ac_srcdir/configure" --help=recursive 1516 else 1517 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1518 fi || ac_status=$? 1519 cd "$ac_pwd" || { ac_status=$?; break; } 1520 done 1521fi 1522 1523test -n "$ac_init_help" && exit $ac_status 1524if $ac_init_version; then 1525 cat <<\_ACEOF 1526xbiff configure 1.0.5 1527generated by GNU Autoconf 2.72 1528 1529Copyright (C) 2023 Free Software Foundation, Inc. 1530This configure script is free software; the Free Software Foundation 1531gives unlimited permission to copy, distribute and modify it. 1532_ACEOF 1533 exit 1534fi 1535 1536## ------------------------ ## 1537## Autoconf initialization. ## 1538## ------------------------ ## 1539 1540# ac_fn_c_try_compile LINENO 1541# -------------------------- 1542# Try to compile conftest.$ac_ext, and return whether this succeeded. 1543ac_fn_c_try_compile () 1544{ 1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1546 rm -f conftest.$ac_objext conftest.beam 1547 if { { ac_try="$ac_compile" 1548case "(($ac_try" in 1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1550 *) ac_try_echo=$ac_try;; 1551esac 1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1553printf "%s\n" "$ac_try_echo"; } >&5 1554 (eval "$ac_compile") 2>conftest.err 1555 ac_status=$? 1556 if test -s conftest.err; then 1557 grep -v '^ *+' conftest.err >conftest.er1 1558 cat conftest.er1 >&5 1559 mv -f conftest.er1 conftest.err 1560 fi 1561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1562 test $ac_status = 0; } && { 1563 test -z "$ac_c_werror_flag" || 1564 test ! -s conftest.err 1565 } && test -s conftest.$ac_objext 1566then : 1567 ac_retval=0 1568else case e in #( 1569 e) printf "%s\n" "$as_me: failed program was:" >&5 1570sed 's/^/| /' conftest.$ac_ext >&5 1571 1572 ac_retval=1 ;; 1573esac 1574fi 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 as_fn_set_status $ac_retval 1577 1578} # ac_fn_c_try_compile 1579 1580# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1581# ------------------------------------------------------------------ 1582# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1583# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1584ac_fn_check_decl () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 as_decl_name=`echo $2|sed 's/ *(.*//'` 1588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1589printf %s "checking whether $as_decl_name is declared... " >&6; } 1590if eval test \${$3+y} 1591then : 1592 printf %s "(cached) " >&6 1593else case e in #( 1594 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1595 eval ac_save_FLAGS=\$$6 1596 as_fn_append $6 " $5" 1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1598/* end confdefs.h. */ 1599$4 1600int 1601main (void) 1602{ 1603#ifndef $as_decl_name 1604#ifdef __cplusplus 1605 (void) $as_decl_use; 1606#else 1607 (void) $as_decl_name; 1608#endif 1609#endif 1610 1611 ; 1612 return 0; 1613} 1614_ACEOF 1615if ac_fn_c_try_compile "$LINENO" 1616then : 1617 eval "$3=yes" 1618else case e in #( 1619 e) eval "$3=no" ;; 1620esac 1621fi 1622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1623 eval $6=\$ac_save_FLAGS 1624 ;; 1625esac 1626fi 1627eval ac_res=\$$3 1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1629printf "%s\n" "$ac_res" >&6; } 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 1632} # ac_fn_check_decl 1633 1634# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1635# ------------------------------------------------------- 1636# Tests whether HEADER exists and can be compiled using the include files in 1637# INCLUDES, setting the cache variable VAR accordingly. 1638ac_fn_c_check_header_compile () 1639{ 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1642printf %s "checking for $2... " >&6; } 1643if eval test \${$3+y} 1644then : 1645 printf %s "(cached) " >&6 1646else case e in #( 1647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1648/* end confdefs.h. */ 1649$4 1650#include <$2> 1651_ACEOF 1652if ac_fn_c_try_compile "$LINENO" 1653then : 1654 eval "$3=yes" 1655else case e in #( 1656 e) eval "$3=no" ;; 1657esac 1658fi 1659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1660esac 1661fi 1662eval ac_res=\$$3 1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1664printf "%s\n" "$ac_res" >&6; } 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 1667} # ac_fn_c_check_header_compile 1668 1669# ac_fn_c_try_link LINENO 1670# ----------------------- 1671# Try to link conftest.$ac_ext, and return whether this succeeded. 1672ac_fn_c_try_link () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1676 if { { ac_try="$ac_link" 1677case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682printf "%s\n" "$ac_try_echo"; } >&5 1683 (eval "$ac_link") 2>conftest.err 1684 ac_status=$? 1685 if test -s conftest.err; then 1686 grep -v '^ *+' conftest.err >conftest.er1 1687 cat conftest.er1 >&5 1688 mv -f conftest.er1 conftest.err 1689 fi 1690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { 1692 test -z "$ac_c_werror_flag" || 1693 test ! -s conftest.err 1694 } && test -s conftest$ac_exeext && { 1695 test "$cross_compiling" = yes || 1696 test -x conftest$ac_exeext 1697 } 1698then : 1699 ac_retval=0 1700else case e in #( 1701 e) printf "%s\n" "$as_me: failed program was:" >&5 1702sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=1 ;; 1705esac 1706fi 1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1709 # interfere with the next link command; also delete a directory that is 1710 # left behind by Apple's compiler. We do this before executing the actions. 1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715} # ac_fn_c_try_link 1716ac_configure_args_raw= 1717for ac_arg 1718do 1719 case $ac_arg in 1720 *\'*) 1721 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1722 esac 1723 as_fn_append ac_configure_args_raw " '$ac_arg'" 1724done 1725 1726case $ac_configure_args_raw in 1727 *$as_nl*) 1728 ac_safe_unquote= ;; 1729 *) 1730 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1731 ac_unsafe_a="$ac_unsafe_z#~" 1732 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1733 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1734esac 1735 1736cat >config.log <<_ACEOF 1737This file contains any messages produced by compilers while 1738running configure, to aid debugging if configure makes a mistake. 1739 1740It was created by xbiff $as_me 1.0.5, which was 1741generated by GNU Autoconf 2.72. Invocation command line was 1742 1743 $ $0$ac_configure_args_raw 1744 1745_ACEOF 1746exec 5>>config.log 1747{ 1748cat <<_ASUNAME 1749## --------- ## 1750## Platform. ## 1751## --------- ## 1752 1753hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1754uname -m = `(uname -m) 2>/dev/null || echo unknown` 1755uname -r = `(uname -r) 2>/dev/null || echo unknown` 1756uname -s = `(uname -s) 2>/dev/null || echo unknown` 1757uname -v = `(uname -v) 2>/dev/null || echo unknown` 1758 1759/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1760/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1761 1762/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1763/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1764/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1765/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1766/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1767/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1768/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1769 1770_ASUNAME 1771 1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1773for as_dir in $PATH 1774do 1775 IFS=$as_save_IFS 1776 case $as_dir in #((( 1777 '') as_dir=./ ;; 1778 */) ;; 1779 *) as_dir=$as_dir/ ;; 1780 esac 1781 printf "%s\n" "PATH: $as_dir" 1782 done 1783IFS=$as_save_IFS 1784 1785} >&5 1786 1787cat >&5 <<_ACEOF 1788 1789 1790## ----------- ## 1791## Core tests. ## 1792## ----------- ## 1793 1794_ACEOF 1795 1796 1797# Keep a trace of the command line. 1798# Strip out --no-create and --no-recursion so they do not pile up. 1799# Strip out --silent because we don't want to record it for future runs. 1800# Also quote any args containing shell meta-characters. 1801# Make two passes to allow for proper duplicate-argument suppression. 1802ac_configure_args= 1803ac_configure_args0= 1804ac_configure_args1= 1805ac_must_keep_next=false 1806for ac_pass in 1 2 1807do 1808 for ac_arg 1809 do 1810 case $ac_arg in 1811 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1813 | -silent | --silent | --silen | --sile | --sil) 1814 continue ;; 1815 *\'*) 1816 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1817 esac 1818 case $ac_pass in 1819 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1820 2) 1821 as_fn_append ac_configure_args1 " '$ac_arg'" 1822 if test $ac_must_keep_next = true; then 1823 ac_must_keep_next=false # Got value, back to normal. 1824 else 1825 case $ac_arg in 1826 *=* | --config-cache | -C | -disable-* | --disable-* \ 1827 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1828 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1829 | -with-* | --with-* | -without-* | --without-* | --x) 1830 case "$ac_configure_args0 " in 1831 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1832 esac 1833 ;; 1834 -* ) ac_must_keep_next=true ;; 1835 esac 1836 fi 1837 as_fn_append ac_configure_args " '$ac_arg'" 1838 ;; 1839 esac 1840 done 1841done 1842{ ac_configure_args0=; unset ac_configure_args0;} 1843{ ac_configure_args1=; unset ac_configure_args1;} 1844 1845# When interrupted or exit'd, cleanup temporary files, and complete 1846# config.log. We remove comments because anyway the quotes in there 1847# would cause problems or look ugly. 1848# WARNING: Use '\'' to represent an apostrophe within the trap. 1849# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1850trap 'exit_status=$? 1851 # Sanitize IFS. 1852 IFS=" "" $as_nl" 1853 # Save into config.log some information that might help in debugging. 1854 { 1855 echo 1856 1857 printf "%s\n" "## ---------------- ## 1858## Cache variables. ## 1859## ---------------- ##" 1860 echo 1861 # The following way of writing the cache mishandles newlines in values, 1862( 1863 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1864 eval ac_val=\$$ac_var 1865 case $ac_val in #( 1866 *${as_nl}*) 1867 case $ac_var in #( 1868 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1869printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1870 esac 1871 case $ac_var in #( 1872 _ | IFS | as_nl) ;; #( 1873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1874 *) { eval $ac_var=; unset $ac_var;} ;; 1875 esac ;; 1876 esac 1877 done 1878 (set) 2>&1 | 1879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1880 *${as_nl}ac_space=\ *) 1881 sed -n \ 1882 "s/'\''/'\''\\\\'\'''\''/g; 1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1884 ;; #( 1885 *) 1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1887 ;; 1888 esac | 1889 sort 1890) 1891 echo 1892 1893 printf "%s\n" "## ----------------- ## 1894## Output variables. ## 1895## ----------------- ##" 1896 echo 1897 for ac_var in $ac_subst_vars 1898 do 1899 eval ac_val=\$$ac_var 1900 case $ac_val in 1901 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1902 esac 1903 printf "%s\n" "$ac_var='\''$ac_val'\''" 1904 done | sort 1905 echo 1906 1907 if test -n "$ac_subst_files"; then 1908 printf "%s\n" "## ------------------- ## 1909## File substitutions. ## 1910## ------------------- ##" 1911 echo 1912 for ac_var in $ac_subst_files 1913 do 1914 eval ac_val=\$$ac_var 1915 case $ac_val in 1916 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1917 esac 1918 printf "%s\n" "$ac_var='\''$ac_val'\''" 1919 done | sort 1920 echo 1921 fi 1922 1923 if test -s confdefs.h; then 1924 printf "%s\n" "## ----------- ## 1925## confdefs.h. ## 1926## ----------- ##" 1927 echo 1928 cat confdefs.h 1929 echo 1930 fi 1931 test "$ac_signal" != 0 && 1932 printf "%s\n" "$as_me: caught signal $ac_signal" 1933 printf "%s\n" "$as_me: exit $exit_status" 1934 } >&5 1935 rm -f core *.core core.conftest.* && 1936 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1937 exit $exit_status 1938' 0 1939for ac_signal in 1 2 13 15; do 1940 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1941done 1942ac_signal=0 1943 1944# confdefs.h avoids OS command line length limits that DEFS can exceed. 1945rm -f -r conftest* confdefs.h 1946 1947printf "%s\n" "/* confdefs.h */" > confdefs.h 1948 1949# Predefined preprocessor variables. 1950 1951printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1952 1953printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1954 1955printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1956 1957printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1958 1959printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1960 1961printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1962 1963 1964# Let the site file select an alternate cache file if it wants to. 1965# Prefer an explicitly selected file to automatically selected ones. 1966if test -n "$CONFIG_SITE"; then 1967 ac_site_files="$CONFIG_SITE" 1968elif test "x$prefix" != xNONE; then 1969 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1970else 1971 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1972fi 1973 1974for ac_site_file in $ac_site_files 1975do 1976 case $ac_site_file in #( 1977 */*) : 1978 ;; #( 1979 *) : 1980 ac_site_file=./$ac_site_file ;; 1981esac 1982 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1984printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1985 sed 's/^/| /' "$ac_site_file" >&5 1986 . "$ac_site_file" \ 1987 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1988printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1989as_fn_error $? "failed to load site script $ac_site_file 1990See 'config.log' for more details" "$LINENO" 5; } 1991 fi 1992done 1993 1994if test -r "$cache_file"; then 1995 # Some versions of bash will fail to source /dev/null (special files 1996 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1997 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1999printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2000 case $cache_file in 2001 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2002 *) . "./$cache_file";; 2003 esac 2004 fi 2005else 2006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2007printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2008 >$cache_file 2009fi 2010 2011# Test code for whether the C compiler supports C89 (global declarations) 2012ac_c_conftest_c89_globals=' 2013/* Does the compiler advertise C89 conformance? 2014 Do not test the value of __STDC__, because some compilers set it to 0 2015 while being otherwise adequately conformant. */ 2016#if !defined __STDC__ 2017# error "Compiler does not advertise C89 conformance" 2018#endif 2019 2020#include <stddef.h> 2021#include <stdarg.h> 2022struct stat; 2023/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2024struct buf { int x; }; 2025struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2026static char *e (char **p, int i) 2027{ 2028 return p[i]; 2029} 2030static char *f (char * (*g) (char **, int), char **p, ...) 2031{ 2032 char *s; 2033 va_list v; 2034 va_start (v,p); 2035 s = g (p, va_arg (v,int)); 2036 va_end (v); 2037 return s; 2038} 2039 2040/* C89 style stringification. */ 2041#define noexpand_stringify(a) #a 2042const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2043 2044/* C89 style token pasting. Exercises some of the corner cases that 2045 e.g. old MSVC gets wrong, but not very hard. */ 2046#define noexpand_concat(a,b) a##b 2047#define expand_concat(a,b) noexpand_concat(a,b) 2048extern int vA; 2049extern int vbee; 2050#define aye A 2051#define bee B 2052int *pvA = &expand_concat(v,aye); 2053int *pvbee = &noexpand_concat(v,bee); 2054 2055/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2056 function prototypes and stuff, but not \xHH hex character constants. 2057 These do not provoke an error unfortunately, instead are silently treated 2058 as an "x". The following induces an error, until -std is added to get 2059 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2060 array size at least. It is necessary to write \x00 == 0 to get something 2061 that is true only with -std. */ 2062int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2063 2064/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2065 inside strings and character constants. */ 2066#define FOO(x) '\''x'\'' 2067int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2068 2069int test (int i, double x); 2070struct s1 {int (*f) (int a);}; 2071struct s2 {int (*f) (double a);}; 2072int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2073 int, int);' 2074 2075# Test code for whether the C compiler supports C89 (body of main). 2076ac_c_conftest_c89_main=' 2077ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2078' 2079 2080# Test code for whether the C compiler supports C99 (global declarations) 2081ac_c_conftest_c99_globals=' 2082/* Does the compiler advertise C99 conformance? */ 2083#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2084# error "Compiler does not advertise C99 conformance" 2085#endif 2086 2087// See if C++-style comments work. 2088 2089#include <stdbool.h> 2090extern int puts (const char *); 2091extern int printf (const char *, ...); 2092extern int dprintf (int, const char *, ...); 2093extern void *malloc (size_t); 2094extern void free (void *); 2095 2096// Check varargs macros. These examples are taken from C99 6.10.3.5. 2097// dprintf is used instead of fprintf to avoid needing to declare 2098// FILE and stderr. 2099#define debug(...) dprintf (2, __VA_ARGS__) 2100#define showlist(...) puts (#__VA_ARGS__) 2101#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2102static void 2103test_varargs_macros (void) 2104{ 2105 int x = 1234; 2106 int y = 5678; 2107 debug ("Flag"); 2108 debug ("X = %d\n", x); 2109 showlist (The first, second, and third items.); 2110 report (x>y, "x is %d but y is %d", x, y); 2111} 2112 2113// Check long long types. 2114#define BIG64 18446744073709551615ull 2115#define BIG32 4294967295ul 2116#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2117#if !BIG_OK 2118 #error "your preprocessor is broken" 2119#endif 2120#if BIG_OK 2121#else 2122 #error "your preprocessor is broken" 2123#endif 2124static long long int bignum = -9223372036854775807LL; 2125static unsigned long long int ubignum = BIG64; 2126 2127struct incomplete_array 2128{ 2129 int datasize; 2130 double data[]; 2131}; 2132 2133struct named_init { 2134 int number; 2135 const wchar_t *name; 2136 double average; 2137}; 2138 2139typedef const char *ccp; 2140 2141static inline int 2142test_restrict (ccp restrict text) 2143{ 2144 // Iterate through items via the restricted pointer. 2145 // Also check for declarations in for loops. 2146 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2147 continue; 2148 return 0; 2149} 2150 2151// Check varargs and va_copy. 2152static bool 2153test_varargs (const char *format, ...) 2154{ 2155 va_list args; 2156 va_start (args, format); 2157 va_list args_copy; 2158 va_copy (args_copy, args); 2159 2160 const char *str = ""; 2161 int number = 0; 2162 float fnumber = 0; 2163 2164 while (*format) 2165 { 2166 switch (*format++) 2167 { 2168 case '\''s'\'': // string 2169 str = va_arg (args_copy, const char *); 2170 break; 2171 case '\''d'\'': // int 2172 number = va_arg (args_copy, int); 2173 break; 2174 case '\''f'\'': // float 2175 fnumber = va_arg (args_copy, double); 2176 break; 2177 default: 2178 break; 2179 } 2180 } 2181 va_end (args_copy); 2182 va_end (args); 2183 2184 return *str && number && fnumber; 2185} 2186' 2187 2188# Test code for whether the C compiler supports C99 (body of main). 2189ac_c_conftest_c99_main=' 2190 // Check bool. 2191 _Bool success = false; 2192 success |= (argc != 0); 2193 2194 // Check restrict. 2195 if (test_restrict ("String literal") == 0) 2196 success = true; 2197 char *restrict newvar = "Another string"; 2198 2199 // Check varargs. 2200 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2201 test_varargs_macros (); 2202 2203 // Check flexible array members. 2204 struct incomplete_array *ia = 2205 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2206 ia->datasize = 10; 2207 for (int i = 0; i < ia->datasize; ++i) 2208 ia->data[i] = i * 1.234; 2209 // Work around memory leak warnings. 2210 free (ia); 2211 2212 // Check named initializers. 2213 struct named_init ni = { 2214 .number = 34, 2215 .name = L"Test wide string", 2216 .average = 543.34343, 2217 }; 2218 2219 ni.number = 58; 2220 2221 int dynamic_array[ni.number]; 2222 dynamic_array[0] = argv[0][0]; 2223 dynamic_array[ni.number - 1] = 543; 2224 2225 // work around unused variable warnings 2226 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2227 || dynamic_array[ni.number - 1] != 543); 2228' 2229 2230# Test code for whether the C compiler supports C11 (global declarations) 2231ac_c_conftest_c11_globals=' 2232/* Does the compiler advertise C11 conformance? */ 2233#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2234# error "Compiler does not advertise C11 conformance" 2235#endif 2236 2237// Check _Alignas. 2238char _Alignas (double) aligned_as_double; 2239char _Alignas (0) no_special_alignment; 2240extern char aligned_as_int; 2241char _Alignas (0) _Alignas (int) aligned_as_int; 2242 2243// Check _Alignof. 2244enum 2245{ 2246 int_alignment = _Alignof (int), 2247 int_array_alignment = _Alignof (int[100]), 2248 char_alignment = _Alignof (char) 2249}; 2250_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2251 2252// Check _Noreturn. 2253int _Noreturn does_not_return (void) { for (;;) continue; } 2254 2255// Check _Static_assert. 2256struct test_static_assert 2257{ 2258 int x; 2259 _Static_assert (sizeof (int) <= sizeof (long int), 2260 "_Static_assert does not work in struct"); 2261 long int y; 2262}; 2263 2264// Check UTF-8 literals. 2265#define u8 syntax error! 2266char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2267 2268// Check duplicate typedefs. 2269typedef long *long_ptr; 2270typedef long int *long_ptr; 2271typedef long_ptr long_ptr; 2272 2273// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2274struct anonymous 2275{ 2276 union { 2277 struct { int i; int j; }; 2278 struct { int k; long int l; } w; 2279 }; 2280 int m; 2281} v1; 2282' 2283 2284# Test code for whether the C compiler supports C11 (body of main). 2285ac_c_conftest_c11_main=' 2286 _Static_assert ((offsetof (struct anonymous, i) 2287 == offsetof (struct anonymous, w.k)), 2288 "Anonymous union alignment botch"); 2289 v1.i = 2; 2290 v1.w.k = 5; 2291 ok |= v1.i != 5; 2292' 2293 2294# Test code for whether the C compiler supports C11 (complete). 2295ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2296${ac_c_conftest_c99_globals} 2297${ac_c_conftest_c11_globals} 2298 2299int 2300main (int argc, char **argv) 2301{ 2302 int ok = 0; 2303 ${ac_c_conftest_c89_main} 2304 ${ac_c_conftest_c99_main} 2305 ${ac_c_conftest_c11_main} 2306 return ok; 2307} 2308" 2309 2310# Test code for whether the C compiler supports C99 (complete). 2311ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2312${ac_c_conftest_c99_globals} 2313 2314int 2315main (int argc, char **argv) 2316{ 2317 int ok = 0; 2318 ${ac_c_conftest_c89_main} 2319 ${ac_c_conftest_c99_main} 2320 return ok; 2321} 2322" 2323 2324# Test code for whether the C compiler supports C89 (complete). 2325ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2326 2327int 2328main (int argc, char **argv) 2329{ 2330 int ok = 0; 2331 ${ac_c_conftest_c89_main} 2332 return ok; 2333} 2334" 2335 2336as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2337as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2338as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2339as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2340as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2341as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2342as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2343as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2344as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2345 2346# Auxiliary files required by this configure script. 2347ac_aux_files="config.guess config.sub compile missing install-sh" 2348 2349# Locations in which to look for auxiliary files. 2350ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2351 2352# Search for a directory containing all of the required auxiliary files, 2353# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2354# If we don't find one directory that contains all the files we need, 2355# we report the set of missing files from the *first* directory in 2356# $ac_aux_dir_candidates and give up. 2357ac_missing_aux_files="" 2358ac_first_candidate=: 2359printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361as_found=false 2362for as_dir in $ac_aux_dir_candidates 2363do 2364 IFS=$as_save_IFS 2365 case $as_dir in #((( 2366 '') as_dir=./ ;; 2367 */) ;; 2368 *) as_dir=$as_dir/ ;; 2369 esac 2370 as_found=: 2371 2372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2373 ac_aux_dir_found=yes 2374 ac_install_sh= 2375 for ac_aux in $ac_aux_files 2376 do 2377 # As a special case, if "install-sh" is required, that requirement 2378 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2379 # and $ac_install_sh is set appropriately for whichever one is found. 2380 if test x"$ac_aux" = x"install-sh" 2381 then 2382 if test -f "${as_dir}install-sh"; then 2383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2384 ac_install_sh="${as_dir}install-sh -c" 2385 elif test -f "${as_dir}install.sh"; then 2386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2387 ac_install_sh="${as_dir}install.sh -c" 2388 elif test -f "${as_dir}shtool"; then 2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2390 ac_install_sh="${as_dir}shtool install -c" 2391 else 2392 ac_aux_dir_found=no 2393 if $ac_first_candidate; then 2394 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2395 else 2396 break 2397 fi 2398 fi 2399 else 2400 if test -f "${as_dir}${ac_aux}"; then 2401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2402 else 2403 ac_aux_dir_found=no 2404 if $ac_first_candidate; then 2405 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2406 else 2407 break 2408 fi 2409 fi 2410 fi 2411 done 2412 if test "$ac_aux_dir_found" = yes; then 2413 ac_aux_dir="$as_dir" 2414 break 2415 fi 2416 ac_first_candidate=false 2417 2418 as_found=false 2419done 2420IFS=$as_save_IFS 2421if $as_found 2422then : 2423 2424else case e in #( 2425 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2426esac 2427fi 2428 2429 2430# These three variables are undocumented and unsupported, 2431# and are intended to be withdrawn in a future Autoconf release. 2432# They can cause serious problems if a builder's source tree is in a directory 2433# whose full name contains unusual characters. 2434if test -f "${ac_aux_dir}config.guess"; then 2435 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2436fi 2437if test -f "${ac_aux_dir}config.sub"; then 2438 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2439fi 2440if test -f "$ac_aux_dir/configure"; then 2441 ac_configure="$SHELL ${ac_aux_dir}configure" 2442fi 2443 2444# Check that the precious variables saved in the cache have kept the same 2445# value. 2446ac_cache_corrupted=false 2447for ac_var in $ac_precious_vars; do 2448 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2449 eval ac_new_set=\$ac_env_${ac_var}_set 2450 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2451 eval ac_new_val=\$ac_env_${ac_var}_value 2452 case $ac_old_set,$ac_new_set in 2453 set,) 2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2455printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2456 ac_cache_corrupted=: ;; 2457 ,set) 2458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2459printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2460 ac_cache_corrupted=: ;; 2461 ,);; 2462 *) 2463 if test "x$ac_old_val" != "x$ac_new_val"; then 2464 # differences in whitespace do not lead to failure. 2465 ac_old_val_w=`echo x $ac_old_val` 2466 ac_new_val_w=`echo x $ac_new_val` 2467 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2469printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2470 ac_cache_corrupted=: 2471 else 2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2473printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2474 eval $ac_var=\$ac_old_val 2475 fi 2476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2477printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2479printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2480 fi;; 2481 esac 2482 # Pass precious variables to config.status. 2483 if test "$ac_new_set" = set; then 2484 case $ac_new_val in 2485 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2486 *) ac_arg=$ac_var=$ac_new_val ;; 2487 esac 2488 case " $ac_configure_args " in 2489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2490 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2491 esac 2492 fi 2493done 2494if $ac_cache_corrupted; then 2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2496printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2498printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2499 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2500 and start over" "$LINENO" 5 2501fi 2502## -------------------- ## 2503## Main body of script. ## 2504## -------------------- ## 2505 2506ac_ext=c 2507ac_cpp='$CPP $CPPFLAGS' 2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2510ac_compiler_gnu=$ac_cv_c_compiler_gnu 2511 2512 2513 2514ac_config_headers="$ac_config_headers config.h" 2515 2516 2517# Initialize Automake 2518am__api_version='1.16' 2519 2520 2521 2522 # Find a good install program. We prefer a C program (faster), 2523# so one script is as good as another. But avoid the broken or 2524# incompatible versions: 2525# SysV /etc/install, /usr/sbin/install 2526# SunOS /usr/etc/install 2527# IRIX /sbin/install 2528# AIX /bin/install 2529# AmigaOS /C/install, which installs bootblocks on floppy discs 2530# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2531# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2532# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2533# OS/2's system install, which has a completely different semantic 2534# ./install, which can be erroneously created by make from ./install.sh. 2535# Reject install programs that cannot install multiple files. 2536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2537printf %s "checking for a BSD-compatible install... " >&6; } 2538if test -z "$INSTALL"; then 2539if test ${ac_cv_path_install+y} 2540then : 2541 printf %s "(cached) " >&6 2542else case e in #( 2543 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2544for as_dir in $PATH 2545do 2546 IFS=$as_save_IFS 2547 case $as_dir in #((( 2548 '') as_dir=./ ;; 2549 */) ;; 2550 *) as_dir=$as_dir/ ;; 2551 esac 2552 # Account for fact that we put trailing slashes in our PATH walk. 2553case $as_dir in #(( 2554 ./ | /[cC]/* | \ 2555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2557 /usr/ucb/* ) ;; 2558 *) 2559 # OSF1 and SCO ODT 3.0 have their own names for install. 2560 # Don't use installbsd from OSF since it installs stuff as root 2561 # by default. 2562 for ac_prog in ginstall scoinst install; do 2563 for ac_exec_ext in '' $ac_executable_extensions; do 2564 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2565 if test $ac_prog = install && 2566 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2567 # AIX install. It has an incompatible calling convention. 2568 : 2569 elif test $ac_prog = install && 2570 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2571 # program-specific install script used by HP pwplus--don't use. 2572 : 2573 else 2574 rm -rf conftest.one conftest.two conftest.dir 2575 echo one > conftest.one 2576 echo two > conftest.two 2577 mkdir conftest.dir 2578 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2579 test -s conftest.one && test -s conftest.two && 2580 test -s conftest.dir/conftest.one && 2581 test -s conftest.dir/conftest.two 2582 then 2583 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2584 break 3 2585 fi 2586 fi 2587 fi 2588 done 2589 done 2590 ;; 2591esac 2592 2593 done 2594IFS=$as_save_IFS 2595 2596rm -rf conftest.one conftest.two conftest.dir 2597 ;; 2598esac 2599fi 2600 if test ${ac_cv_path_install+y}; then 2601 INSTALL=$ac_cv_path_install 2602 else 2603 # As a last resort, use the slow shell script. Don't cache a 2604 # value for INSTALL within a source directory, because that will 2605 # break other packages using the cache if that directory is 2606 # removed, or if the value is a relative name. 2607 INSTALL=$ac_install_sh 2608 fi 2609fi 2610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2611printf "%s\n" "$INSTALL" >&6; } 2612 2613# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2614# It thinks the first close brace ends the variable substitution. 2615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2616 2617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2618 2619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2620 2621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2622printf %s "checking whether build environment is sane... " >&6; } 2623# Reject unsafe characters in $srcdir or the absolute working directory 2624# name. Accept space and tab only in the latter. 2625am_lf=' 2626' 2627case `pwd` in 2628 *[\\\"\#\$\&\'\`$am_lf]*) 2629 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2630esac 2631case $srcdir in 2632 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2633 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2634esac 2635 2636# Do 'set' in a subshell so we don't clobber the current shell's 2637# arguments. Must try -L first in case configure is actually a 2638# symlink; some systems play weird games with the mod time of symlinks 2639# (eg FreeBSD returns the mod time of the symlink's containing 2640# directory). 2641if ( 2642 am_has_slept=no 2643 for am_try in 1 2; do 2644 echo "timestamp, slept: $am_has_slept" > conftest.file 2645 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2646 if test "$*" = "X"; then 2647 # -L didn't work. 2648 set X `ls -t "$srcdir/configure" conftest.file` 2649 fi 2650 if test "$*" != "X $srcdir/configure conftest.file" \ 2651 && test "$*" != "X conftest.file $srcdir/configure"; then 2652 2653 # If neither matched, then we have a broken ls. This can happen 2654 # if, for instance, CONFIG_SHELL is bash and it inherits a 2655 # broken ls alias from the environment. This has actually 2656 # happened. Such a system could not be considered "sane". 2657 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2658 alias in your environment" "$LINENO" 5 2659 fi 2660 if test "$2" = conftest.file || test $am_try -eq 2; then 2661 break 2662 fi 2663 # Just in case. 2664 sleep 1 2665 am_has_slept=yes 2666 done 2667 test "$2" = conftest.file 2668 ) 2669then 2670 # Ok. 2671 : 2672else 2673 as_fn_error $? "newly created file is older than distributed files! 2674Check your system clock" "$LINENO" 5 2675fi 2676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2677printf "%s\n" "yes" >&6; } 2678# If we didn't sleep, we still need to ensure time stamps of config.status and 2679# generated files are strictly newer. 2680am_sleep_pid= 2681if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2682 ( sleep 1 ) & 2683 am_sleep_pid=$! 2684fi 2685 2686rm -f conftest.file 2687 2688test "$program_prefix" != NONE && 2689 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2690# Use a double $ so make ignores it. 2691test "$program_suffix" != NONE && 2692 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2693# Double any \ or $. 2694# By default was 's,x,x', remove it if useless. 2695ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2696program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2697 2698 2699# Expand $ac_aux_dir to an absolute path. 2700am_aux_dir=`cd "$ac_aux_dir" && pwd` 2701 2702 2703 if test x"${MISSING+set}" != xset; then 2704 MISSING="\${SHELL} '$am_aux_dir/missing'" 2705fi 2706# Use eval to expand $SHELL 2707if eval "$MISSING --is-lightweight"; then 2708 am_missing_run="$MISSING " 2709else 2710 am_missing_run= 2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2712printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2713fi 2714 2715if test x"${install_sh+set}" != xset; then 2716 case $am_aux_dir in 2717 *\ * | *\ *) 2718 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2719 *) 2720 install_sh="\${SHELL} $am_aux_dir/install-sh" 2721 esac 2722fi 2723 2724# Installed binaries are usually stripped using 'strip' when the user 2725# run "make install-strip". However 'strip' might not be the right 2726# tool to use in cross-compilation environments, therefore Automake 2727# will honor the 'STRIP' environment variable to overrule this program. 2728if test "$cross_compiling" != no; then 2729 if test -n "$ac_tool_prefix"; then 2730 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2731set dummy ${ac_tool_prefix}strip; ac_word=$2 2732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2733printf %s "checking for $ac_word... " >&6; } 2734if test ${ac_cv_prog_STRIP+y} 2735then : 2736 printf %s "(cached) " >&6 2737else case e in #( 2738 e) if test -n "$STRIP"; then 2739 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2740else 2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2742for as_dir in $PATH 2743do 2744 IFS=$as_save_IFS 2745 case $as_dir in #((( 2746 '') as_dir=./ ;; 2747 */) ;; 2748 *) as_dir=$as_dir/ ;; 2749 esac 2750 for ac_exec_ext in '' $ac_executable_extensions; do 2751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2752 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2754 break 2 2755 fi 2756done 2757 done 2758IFS=$as_save_IFS 2759 2760fi ;; 2761esac 2762fi 2763STRIP=$ac_cv_prog_STRIP 2764if test -n "$STRIP"; then 2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2766printf "%s\n" "$STRIP" >&6; } 2767else 2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2769printf "%s\n" "no" >&6; } 2770fi 2771 2772 2773fi 2774if test -z "$ac_cv_prog_STRIP"; then 2775 ac_ct_STRIP=$STRIP 2776 # Extract the first word of "strip", so it can be a program name with args. 2777set dummy strip; ac_word=$2 2778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2779printf %s "checking for $ac_word... " >&6; } 2780if test ${ac_cv_prog_ac_ct_STRIP+y} 2781then : 2782 printf %s "(cached) " >&6 2783else case e in #( 2784 e) if test -n "$ac_ct_STRIP"; then 2785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2786else 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 case $as_dir in #((( 2792 '') as_dir=./ ;; 2793 */) ;; 2794 *) as_dir=$as_dir/ ;; 2795 esac 2796 for ac_exec_ext in '' $ac_executable_extensions; do 2797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2798 ac_cv_prog_ac_ct_STRIP="strip" 2799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2800 break 2 2801 fi 2802done 2803 done 2804IFS=$as_save_IFS 2805 2806fi ;; 2807esac 2808fi 2809ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2810if test -n "$ac_ct_STRIP"; then 2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2812printf "%s\n" "$ac_ct_STRIP" >&6; } 2813else 2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2815printf "%s\n" "no" >&6; } 2816fi 2817 2818 if test "x$ac_ct_STRIP" = x; then 2819 STRIP=":" 2820 else 2821 case $cross_compiling:$ac_tool_warned in 2822yes:) 2823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2824printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2825ac_tool_warned=yes ;; 2826esac 2827 STRIP=$ac_ct_STRIP 2828 fi 2829else 2830 STRIP="$ac_cv_prog_STRIP" 2831fi 2832 2833fi 2834INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2835 2836 2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2838printf %s "checking for a race-free mkdir -p... " >&6; } 2839if test -z "$MKDIR_P"; then 2840 if test ${ac_cv_path_mkdir+y} 2841then : 2842 printf %s "(cached) " >&6 2843else case e in #( 2844 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2846do 2847 IFS=$as_save_IFS 2848 case $as_dir in #((( 2849 '') as_dir=./ ;; 2850 */) ;; 2851 *) as_dir=$as_dir/ ;; 2852 esac 2853 for ac_prog in mkdir gmkdir; do 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2855 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2856 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2857 'mkdir ('*'coreutils) '* | \ 2858 *'BusyBox '* | \ 2859 'mkdir (fileutils) '4.1*) 2860 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2861 break 3;; 2862 esac 2863 done 2864 done 2865 done 2866IFS=$as_save_IFS 2867 ;; 2868esac 2869fi 2870 2871 test -d ./--version && rmdir ./--version 2872 if test ${ac_cv_path_mkdir+y}; then 2873 MKDIR_P="$ac_cv_path_mkdir -p" 2874 else 2875 # As a last resort, use plain mkdir -p, 2876 # in the hope it doesn't have the bugs of ancient mkdir. 2877 MKDIR_P='mkdir -p' 2878 fi 2879fi 2880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2881printf "%s\n" "$MKDIR_P" >&6; } 2882 2883for ac_prog in gawk mawk nawk awk 2884do 2885 # Extract the first word of "$ac_prog", so it can be a program name with args. 2886set dummy $ac_prog; ac_word=$2 2887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888printf %s "checking for $ac_word... " >&6; } 2889if test ${ac_cv_prog_AWK+y} 2890then : 2891 printf %s "(cached) " >&6 2892else case e in #( 2893 e) if test -n "$AWK"; then 2894 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 case $as_dir in #((( 2901 '') as_dir=./ ;; 2902 */) ;; 2903 *) as_dir=$as_dir/ ;; 2904 esac 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2907 ac_cv_prog_AWK="$ac_prog" 2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911done 2912 done 2913IFS=$as_save_IFS 2914 2915fi ;; 2916esac 2917fi 2918AWK=$ac_cv_prog_AWK 2919if test -n "$AWK"; then 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2921printf "%s\n" "$AWK" >&6; } 2922else 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924printf "%s\n" "no" >&6; } 2925fi 2926 2927 2928 test -n "$AWK" && break 2929done 2930 2931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2932printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2933set x ${MAKE-make} 2934ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2935if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2936then : 2937 printf %s "(cached) " >&6 2938else case e in #( 2939 e) cat >conftest.make <<\_ACEOF 2940SHELL = /bin/sh 2941all: 2942 @echo '@@@%%%=$(MAKE)=@@@%%%' 2943_ACEOF 2944# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2945case `${MAKE-make} -f conftest.make 2>/dev/null` in 2946 *@@@%%%=?*=@@@%%%*) 2947 eval ac_cv_prog_make_${ac_make}_set=yes;; 2948 *) 2949 eval ac_cv_prog_make_${ac_make}_set=no;; 2950esac 2951rm -f conftest.make ;; 2952esac 2953fi 2954if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2956printf "%s\n" "yes" >&6; } 2957 SET_MAKE= 2958else 2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960printf "%s\n" "no" >&6; } 2961 SET_MAKE="MAKE=${MAKE-make}" 2962fi 2963 2964rm -rf .tst 2>/dev/null 2965mkdir .tst 2>/dev/null 2966if test -d .tst; then 2967 am__leading_dot=. 2968else 2969 am__leading_dot=_ 2970fi 2971rmdir .tst 2>/dev/null 2972 2973# Check whether --enable-silent-rules was given. 2974if test ${enable_silent_rules+y} 2975then : 2976 enableval=$enable_silent_rules; 2977fi 2978 2979case $enable_silent_rules in # ((( 2980 yes) AM_DEFAULT_VERBOSITY=0;; 2981 no) AM_DEFAULT_VERBOSITY=1;; 2982 *) AM_DEFAULT_VERBOSITY=1;; 2983esac 2984am_make=${MAKE-make} 2985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2986printf %s "checking whether $am_make supports nested variables... " >&6; } 2987if test ${am_cv_make_support_nested_variables+y} 2988then : 2989 printf %s "(cached) " >&6 2990else case e in #( 2991 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 2992BAR0=false 2993BAR1=true 2994V=1 2995am__doit: 2996 @$(TRUE) 2997.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2998 am_cv_make_support_nested_variables=yes 2999else 3000 am_cv_make_support_nested_variables=no 3001fi ;; 3002esac 3003fi 3004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3005printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3006if test $am_cv_make_support_nested_variables = yes; then 3007 AM_V='$(V)' 3008 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3009else 3010 AM_V=$AM_DEFAULT_VERBOSITY 3011 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3012fi 3013AM_BACKSLASH='\' 3014 3015if test "`cd $srcdir && pwd`" != "`pwd`"; then 3016 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3017 # is not polluted with repeated "-I." 3018 am__isrc=' -I$(srcdir)' 3019 # test to see if srcdir already configured 3020 if test -f $srcdir/config.status; then 3021 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3022 fi 3023fi 3024 3025# test whether we have cygpath 3026if test -z "$CYGPATH_W"; then 3027 if (cygpath --version) >/dev/null 2>/dev/null; then 3028 CYGPATH_W='cygpath -w' 3029 else 3030 CYGPATH_W=echo 3031 fi 3032fi 3033 3034 3035# Define the identity of the package. 3036 PACKAGE='xbiff' 3037 VERSION='1.0.5' 3038 3039 3040printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3041 3042 3043printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3044 3045# Some tools Automake needs. 3046 3047ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3048 3049 3050AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3051 3052 3053AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3054 3055 3056AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3057 3058 3059MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3060 3061# For better backward compatibility. To be removed once Automake 1.9.x 3062# dies out for good. For more background, see: 3063# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3064# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3065mkdir_p='$(MKDIR_P)' 3066 3067# We need awk for the "check" target (and possibly the TAP driver). The 3068# system "awk" is bad on some platforms. 3069# Always define AMTAR for backward compatibility. Yes, it's still used 3070# in the wild :-( We should find a proper way to deprecate it ... 3071AMTAR='$${TAR-tar}' 3072 3073 3074# We'll loop over all known methods to create a tar archive until one works. 3075_am_tools='gnutar pax cpio none' 3076 3077am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3078 3079 3080 3081 3082 3083# Variables for tags utilities; see am/tags.am 3084if test -z "$CTAGS"; then 3085 CTAGS=ctags 3086fi 3087 3088if test -z "$ETAGS"; then 3089 ETAGS=etags 3090fi 3091 3092if test -z "$CSCOPE"; then 3093 CSCOPE=cscope 3094fi 3095 3096 3097 3098# POSIX will say in a future version that running "rm -f" with no argument 3099# is OK; and we want to be able to make that assumption in our Makefile 3100# recipes. So use an aggressive probe to check that the usage we want is 3101# actually supported "in the wild" to an acceptable degree. 3102# See automake bug#10828. 3103# To make any issue more visible, cause the running configure to be aborted 3104# by default if the 'rm' program in use doesn't match our expectations; the 3105# user can still override this though. 3106if rm -f && rm -fr && rm -rf; then : OK; else 3107 cat >&2 <<'END' 3108Oops! 3109 3110Your 'rm' program seems unable to run without file operands specified 3111on the command line, even when the '-f' option is present. This is contrary 3112to the behaviour of most rm programs out there, and not conforming with 3113the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3114 3115Please tell bug-automake@gnu.org about your system, including the value 3116of your $PATH and any error possibly output before this message. This 3117can help us improve future automake versions. 3118 3119END 3120 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3121 echo 'Configuration will proceed anyway, since you have set the' >&2 3122 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3123 echo >&2 3124 else 3125 cat >&2 <<'END' 3126Aborting the configuration process, to ensure you take notice of the issue. 3127 3128You can download and install GNU coreutils to get an 'rm' implementation 3129that behaves properly: <https://www.gnu.org/software/coreutils/>. 3130 3131If you want to complete the configuration process using your problematic 3132'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3133to "yes", and re-run configure. 3134 3135END 3136 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3137 fi 3138fi 3139 3140 3141# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162DEPDIR="${am__leading_dot}deps" 3163 3164ac_config_commands="$ac_config_commands depfiles" 3165 3166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3167printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3168cat > confinc.mk << 'END' 3169am__doit: 3170 @echo this is the am__doit target >confinc.out 3171.PHONY: am__doit 3172END 3173am__include="#" 3174am__quote= 3175# BSD make does it like this. 3176echo '.include "confinc.mk" # ignored' > confmf.BSD 3177# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3178echo 'include confinc.mk # ignored' > confmf.GNU 3179_am_result=no 3180for s in GNU BSD; do 3181 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3182 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3183 ac_status=$? 3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3185 (exit $ac_status); } 3186 case $?:`cat confinc.out 2>/dev/null` in #( 3187 '0:this is the am__doit target') : 3188 case $s in #( 3189 BSD) : 3190 am__include='.include' am__quote='"' ;; #( 3191 *) : 3192 am__include='include' am__quote='' ;; 3193esac ;; #( 3194 *) : 3195 ;; 3196esac 3197 if test "$am__include" != "#"; then 3198 _am_result="yes ($s style)" 3199 break 3200 fi 3201done 3202rm -f confinc.* confmf.* 3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3204printf "%s\n" "${_am_result}" >&6; } 3205 3206# Check whether --enable-dependency-tracking was given. 3207if test ${enable_dependency_tracking+y} 3208then : 3209 enableval=$enable_dependency_tracking; 3210fi 3211 3212if test "x$enable_dependency_tracking" != xno; then 3213 am_depcomp="$ac_aux_dir/depcomp" 3214 AMDEPBACKSLASH='\' 3215 am__nodep='_no' 3216fi 3217 if test "x$enable_dependency_tracking" != xno; then 3218 AMDEP_TRUE= 3219 AMDEP_FALSE='#' 3220else 3221 AMDEP_TRUE='#' 3222 AMDEP_FALSE= 3223fi 3224 3225 3226ac_ext=c 3227ac_cpp='$CPP $CPPFLAGS' 3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3230ac_compiler_gnu=$ac_cv_c_compiler_gnu 3231if test -n "$ac_tool_prefix"; then 3232 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3233set dummy ${ac_tool_prefix}gcc; ac_word=$2 3234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3235printf %s "checking for $ac_word... " >&6; } 3236if test ${ac_cv_prog_CC+y} 3237then : 3238 printf %s "(cached) " >&6 3239else case e in #( 3240 e) if test -n "$CC"; then 3241 ac_cv_prog_CC="$CC" # Let the user override the test. 3242else 3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3244for as_dir in $PATH 3245do 3246 IFS=$as_save_IFS 3247 case $as_dir in #((( 3248 '') as_dir=./ ;; 3249 */) ;; 3250 *) as_dir=$as_dir/ ;; 3251 esac 3252 for ac_exec_ext in '' $ac_executable_extensions; do 3253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3254 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3256 break 2 3257 fi 3258done 3259 done 3260IFS=$as_save_IFS 3261 3262fi ;; 3263esac 3264fi 3265CC=$ac_cv_prog_CC 3266if test -n "$CC"; then 3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3268printf "%s\n" "$CC" >&6; } 3269else 3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271printf "%s\n" "no" >&6; } 3272fi 3273 3274 3275fi 3276if test -z "$ac_cv_prog_CC"; then 3277 ac_ct_CC=$CC 3278 # Extract the first word of "gcc", so it can be a program name with args. 3279set dummy gcc; ac_word=$2 3280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3281printf %s "checking for $ac_word... " >&6; } 3282if test ${ac_cv_prog_ac_ct_CC+y} 3283then : 3284 printf %s "(cached) " >&6 3285else case e in #( 3286 e) if test -n "$ac_ct_CC"; then 3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3288else 3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 case $as_dir in #((( 3294 '') as_dir=./ ;; 3295 */) ;; 3296 *) as_dir=$as_dir/ ;; 3297 esac 3298 for ac_exec_ext in '' $ac_executable_extensions; do 3299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3300 ac_cv_prog_ac_ct_CC="gcc" 3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3302 break 2 3303 fi 3304done 3305 done 3306IFS=$as_save_IFS 3307 3308fi ;; 3309esac 3310fi 3311ac_ct_CC=$ac_cv_prog_ac_ct_CC 3312if test -n "$ac_ct_CC"; then 3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3314printf "%s\n" "$ac_ct_CC" >&6; } 3315else 3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3317printf "%s\n" "no" >&6; } 3318fi 3319 3320 if test "x$ac_ct_CC" = x; then 3321 CC="" 3322 else 3323 case $cross_compiling:$ac_tool_warned in 3324yes:) 3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3326printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3327ac_tool_warned=yes ;; 3328esac 3329 CC=$ac_ct_CC 3330 fi 3331else 3332 CC="$ac_cv_prog_CC" 3333fi 3334 3335if test -z "$CC"; then 3336 if test -n "$ac_tool_prefix"; then 3337 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3338set dummy ${ac_tool_prefix}cc; ac_word=$2 3339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3340printf %s "checking for $ac_word... " >&6; } 3341if test ${ac_cv_prog_CC+y} 3342then : 3343 printf %s "(cached) " >&6 3344else case e in #( 3345 e) if test -n "$CC"; then 3346 ac_cv_prog_CC="$CC" # Let the user override the test. 3347else 3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3349for as_dir in $PATH 3350do 3351 IFS=$as_save_IFS 3352 case $as_dir in #((( 3353 '') as_dir=./ ;; 3354 */) ;; 3355 *) as_dir=$as_dir/ ;; 3356 esac 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3359 ac_cv_prog_CC="${ac_tool_prefix}cc" 3360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363done 3364 done 3365IFS=$as_save_IFS 3366 3367fi ;; 3368esac 3369fi 3370CC=$ac_cv_prog_CC 3371if test -n "$CC"; then 3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3373printf "%s\n" "$CC" >&6; } 3374else 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3376printf "%s\n" "no" >&6; } 3377fi 3378 3379 3380 fi 3381fi 3382if test -z "$CC"; then 3383 # Extract the first word of "cc", so it can be a program name with args. 3384set dummy cc; ac_word=$2 3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3386printf %s "checking for $ac_word... " >&6; } 3387if test ${ac_cv_prog_CC+y} 3388then : 3389 printf %s "(cached) " >&6 3390else case e in #( 3391 e) if test -n "$CC"; then 3392 ac_cv_prog_CC="$CC" # Let the user override the test. 3393else 3394 ac_prog_rejected=no 3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3396for as_dir in $PATH 3397do 3398 IFS=$as_save_IFS 3399 case $as_dir in #((( 3400 '') as_dir=./ ;; 3401 */) ;; 3402 *) as_dir=$as_dir/ ;; 3403 esac 3404 for ac_exec_ext in '' $ac_executable_extensions; do 3405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3406 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3407 ac_prog_rejected=yes 3408 continue 3409 fi 3410 ac_cv_prog_CC="cc" 3411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3412 break 2 3413 fi 3414done 3415 done 3416IFS=$as_save_IFS 3417 3418if test $ac_prog_rejected = yes; then 3419 # We found a bogon in the path, so make sure we never use it. 3420 set dummy $ac_cv_prog_CC 3421 shift 3422 if test $# != 0; then 3423 # We chose a different compiler from the bogus one. 3424 # However, it has the same basename, so the bogon will be chosen 3425 # first if we set CC to just the basename; use the full file name. 3426 shift 3427 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3428 fi 3429fi 3430fi ;; 3431esac 3432fi 3433CC=$ac_cv_prog_CC 3434if test -n "$CC"; then 3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3436printf "%s\n" "$CC" >&6; } 3437else 3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439printf "%s\n" "no" >&6; } 3440fi 3441 3442 3443fi 3444if test -z "$CC"; then 3445 if test -n "$ac_tool_prefix"; then 3446 for ac_prog in cl.exe 3447 do 3448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3449set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3451printf %s "checking for $ac_word... " >&6; } 3452if test ${ac_cv_prog_CC+y} 3453then : 3454 printf %s "(cached) " >&6 3455else case e in #( 3456 e) if test -n "$CC"; then 3457 ac_cv_prog_CC="$CC" # Let the user override the test. 3458else 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH 3461do 3462 IFS=$as_save_IFS 3463 case $as_dir in #((( 3464 '') as_dir=./ ;; 3465 */) ;; 3466 *) as_dir=$as_dir/ ;; 3467 esac 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478fi ;; 3479esac 3480fi 3481CC=$ac_cv_prog_CC 3482if test -n "$CC"; then 3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3484printf "%s\n" "$CC" >&6; } 3485else 3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3487printf "%s\n" "no" >&6; } 3488fi 3489 3490 3491 test -n "$CC" && break 3492 done 3493fi 3494if test -z "$CC"; then 3495 ac_ct_CC=$CC 3496 for ac_prog in cl.exe 3497do 3498 # Extract the first word of "$ac_prog", so it can be a program name with args. 3499set dummy $ac_prog; ac_word=$2 3500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501printf %s "checking for $ac_word... " >&6; } 3502if test ${ac_cv_prog_ac_ct_CC+y} 3503then : 3504 printf %s "(cached) " >&6 3505else case e in #( 3506 e) if test -n "$ac_ct_CC"; then 3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3508else 3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510for as_dir in $PATH 3511do 3512 IFS=$as_save_IFS 3513 case $as_dir in #((( 3514 '') as_dir=./ ;; 3515 */) ;; 3516 *) as_dir=$as_dir/ ;; 3517 esac 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3520 ac_cv_prog_ac_ct_CC="$ac_prog" 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524done 3525 done 3526IFS=$as_save_IFS 3527 3528fi ;; 3529esac 3530fi 3531ac_ct_CC=$ac_cv_prog_ac_ct_CC 3532if test -n "$ac_ct_CC"; then 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3534printf "%s\n" "$ac_ct_CC" >&6; } 3535else 3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537printf "%s\n" "no" >&6; } 3538fi 3539 3540 3541 test -n "$ac_ct_CC" && break 3542done 3543 3544 if test "x$ac_ct_CC" = x; then 3545 CC="" 3546 else 3547 case $cross_compiling:$ac_tool_warned in 3548yes:) 3549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3550printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3551ac_tool_warned=yes ;; 3552esac 3553 CC=$ac_ct_CC 3554 fi 3555fi 3556 3557fi 3558if test -z "$CC"; then 3559 if test -n "$ac_tool_prefix"; then 3560 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3561set dummy ${ac_tool_prefix}clang; ac_word=$2 3562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3563printf %s "checking for $ac_word... " >&6; } 3564if test ${ac_cv_prog_CC+y} 3565then : 3566 printf %s "(cached) " >&6 3567else case e in #( 3568 e) if test -n "$CC"; then 3569 ac_cv_prog_CC="$CC" # Let the user override the test. 3570else 3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572for as_dir in $PATH 3573do 3574 IFS=$as_save_IFS 3575 case $as_dir in #((( 3576 '') as_dir=./ ;; 3577 */) ;; 3578 *) as_dir=$as_dir/ ;; 3579 esac 3580 for ac_exec_ext in '' $ac_executable_extensions; do 3581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3582 ac_cv_prog_CC="${ac_tool_prefix}clang" 3583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3584 break 2 3585 fi 3586done 3587 done 3588IFS=$as_save_IFS 3589 3590fi ;; 3591esac 3592fi 3593CC=$ac_cv_prog_CC 3594if test -n "$CC"; then 3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3596printf "%s\n" "$CC" >&6; } 3597else 3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3599printf "%s\n" "no" >&6; } 3600fi 3601 3602 3603fi 3604if test -z "$ac_cv_prog_CC"; then 3605 ac_ct_CC=$CC 3606 # Extract the first word of "clang", so it can be a program name with args. 3607set dummy clang; ac_word=$2 3608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3609printf %s "checking for $ac_word... " >&6; } 3610if test ${ac_cv_prog_ac_ct_CC+y} 3611then : 3612 printf %s "(cached) " >&6 3613else case e in #( 3614 e) if test -n "$ac_ct_CC"; then 3615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3616else 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH 3619do 3620 IFS=$as_save_IFS 3621 case $as_dir in #((( 3622 '') as_dir=./ ;; 3623 */) ;; 3624 *) as_dir=$as_dir/ ;; 3625 esac 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3628 ac_cv_prog_ac_ct_CC="clang" 3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3630 break 2 3631 fi 3632done 3633 done 3634IFS=$as_save_IFS 3635 3636fi ;; 3637esac 3638fi 3639ac_ct_CC=$ac_cv_prog_ac_ct_CC 3640if test -n "$ac_ct_CC"; then 3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3642printf "%s\n" "$ac_ct_CC" >&6; } 3643else 3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3645printf "%s\n" "no" >&6; } 3646fi 3647 3648 if test "x$ac_ct_CC" = x; then 3649 CC="" 3650 else 3651 case $cross_compiling:$ac_tool_warned in 3652yes:) 3653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3654printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3655ac_tool_warned=yes ;; 3656esac 3657 CC=$ac_ct_CC 3658 fi 3659else 3660 CC="$ac_cv_prog_CC" 3661fi 3662 3663fi 3664 3665 3666test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3667printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3668as_fn_error $? "no acceptable C compiler found in \$PATH 3669See 'config.log' for more details" "$LINENO" 5; } 3670 3671# Provide some information about the compiler. 3672printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3673set X $ac_compile 3674ac_compiler=$2 3675for ac_option in --version -v -V -qversion -version; do 3676 { { ac_try="$ac_compiler $ac_option >&5" 3677case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3682printf "%s\n" "$ac_try_echo"; } >&5 3683 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3684 ac_status=$? 3685 if test -s conftest.err; then 3686 sed '10a\ 3687... rest of stderr output deleted ... 3688 10q' conftest.err >conftest.er1 3689 cat conftest.er1 >&5 3690 fi 3691 rm -f conftest.er1 conftest.err 3692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3693 test $ac_status = 0; } 3694done 3695 3696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698 3699int 3700main (void) 3701{ 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707ac_clean_files_save=$ac_clean_files 3708ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3709# Try to create an executable without -o first, disregard a.out. 3710# It will help us diagnose broken compilers, and finding out an intuition 3711# of exeext. 3712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3713printf %s "checking whether the C compiler works... " >&6; } 3714ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3715 3716# The possible output files: 3717ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3718 3719ac_rmfiles= 3720for ac_file in $ac_files 3721do 3722 case $ac_file in 3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3724 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3725 esac 3726done 3727rm -f $ac_rmfiles 3728 3729if { { ac_try="$ac_link_default" 3730case "(($ac_try" in 3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3732 *) ac_try_echo=$ac_try;; 3733esac 3734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3735printf "%s\n" "$ac_try_echo"; } >&5 3736 (eval "$ac_link_default") 2>&5 3737 ac_status=$? 3738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3739 test $ac_status = 0; } 3740then : 3741 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3742# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3743# in a Makefile. We should not override ac_cv_exeext if it was cached, 3744# so that the user can short-circuit this test for compilers unknown to 3745# Autoconf. 3746for ac_file in $ac_files '' 3747do 3748 test -f "$ac_file" || continue 3749 case $ac_file in 3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3751 ;; 3752 [ab].out ) 3753 # We found the default executable, but exeext='' is most 3754 # certainly right. 3755 break;; 3756 *.* ) 3757 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3758 then :; else 3759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3760 fi 3761 # We set ac_cv_exeext here because the later test for it is not 3762 # safe: cross compilers may not add the suffix if given an '-o' 3763 # argument, so we may need to know it at that point already. 3764 # Even if this section looks crufty: it has the advantage of 3765 # actually working. 3766 break;; 3767 * ) 3768 break;; 3769 esac 3770done 3771test "$ac_cv_exeext" = no && ac_cv_exeext= 3772 3773else case e in #( 3774 e) ac_file='' ;; 3775esac 3776fi 3777if test -z "$ac_file" 3778then : 3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3780printf "%s\n" "no" >&6; } 3781printf "%s\n" "$as_me: failed program was:" >&5 3782sed 's/^/| /' conftest.$ac_ext >&5 3783 3784{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3785printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3786as_fn_error 77 "C compiler cannot create executables 3787See 'config.log' for more details" "$LINENO" 5; } 3788else case e in #( 3789 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3790printf "%s\n" "yes" >&6; } ;; 3791esac 3792fi 3793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3794printf %s "checking for C compiler default output file name... " >&6; } 3795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3796printf "%s\n" "$ac_file" >&6; } 3797ac_exeext=$ac_cv_exeext 3798 3799rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3800ac_clean_files=$ac_clean_files_save 3801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3802printf %s "checking for suffix of executables... " >&6; } 3803if { { ac_try="$ac_link" 3804case "(($ac_try" in 3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3806 *) ac_try_echo=$ac_try;; 3807esac 3808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3809printf "%s\n" "$ac_try_echo"; } >&5 3810 (eval "$ac_link") 2>&5 3811 ac_status=$? 3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3813 test $ac_status = 0; } 3814then : 3815 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3816# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3817# work properly (i.e., refer to 'conftest.exe'), while it won't with 3818# 'rm'. 3819for ac_file in conftest.exe conftest conftest.*; do 3820 test -f "$ac_file" || continue 3821 case $ac_file in 3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3823 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3824 break;; 3825 * ) break;; 3826 esac 3827done 3828else case e in #( 3829 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3830printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3831as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3832See 'config.log' for more details" "$LINENO" 5; } ;; 3833esac 3834fi 3835rm -f conftest conftest$ac_cv_exeext 3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3837printf "%s\n" "$ac_cv_exeext" >&6; } 3838 3839rm -f conftest.$ac_ext 3840EXEEXT=$ac_cv_exeext 3841ac_exeext=$EXEEXT 3842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3843/* end confdefs.h. */ 3844#include <stdio.h> 3845int 3846main (void) 3847{ 3848FILE *f = fopen ("conftest.out", "w"); 3849 if (!f) 3850 return 1; 3851 return ferror (f) || fclose (f) != 0; 3852 3853 ; 3854 return 0; 3855} 3856_ACEOF 3857ac_clean_files="$ac_clean_files conftest.out" 3858# Check that the compiler produces executables we can run. If not, either 3859# the compiler is broken, or we cross compile. 3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3861printf %s "checking whether we are cross compiling... " >&6; } 3862if test "$cross_compiling" != yes; then 3863 { { ac_try="$ac_link" 3864case "(($ac_try" in 3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3866 *) ac_try_echo=$ac_try;; 3867esac 3868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3869printf "%s\n" "$ac_try_echo"; } >&5 3870 (eval "$ac_link") 2>&5 3871 ac_status=$? 3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3873 test $ac_status = 0; } 3874 if { ac_try='./conftest$ac_cv_exeext' 3875 { { case "(($ac_try" in 3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3877 *) ac_try_echo=$ac_try;; 3878esac 3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3880printf "%s\n" "$ac_try_echo"; } >&5 3881 (eval "$ac_try") 2>&5 3882 ac_status=$? 3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3884 test $ac_status = 0; }; }; then 3885 cross_compiling=no 3886 else 3887 if test "$cross_compiling" = maybe; then 3888 cross_compiling=yes 3889 else 3890 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3891printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3892as_fn_error 77 "cannot run C compiled programs. 3893If you meant to cross compile, use '--host'. 3894See 'config.log' for more details" "$LINENO" 5; } 3895 fi 3896 fi 3897fi 3898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3899printf "%s\n" "$cross_compiling" >&6; } 3900 3901rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3902 conftest.o conftest.obj conftest.out 3903ac_clean_files=$ac_clean_files_save 3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3905printf %s "checking for suffix of object files... " >&6; } 3906if test ${ac_cv_objext+y} 3907then : 3908 printf %s "(cached) " >&6 3909else case e in #( 3910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3911/* end confdefs.h. */ 3912 3913int 3914main (void) 3915{ 3916 3917 ; 3918 return 0; 3919} 3920_ACEOF 3921rm -f conftest.o conftest.obj 3922if { { ac_try="$ac_compile" 3923case "(($ac_try" in 3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3925 *) ac_try_echo=$ac_try;; 3926esac 3927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3928printf "%s\n" "$ac_try_echo"; } >&5 3929 (eval "$ac_compile") 2>&5 3930 ac_status=$? 3931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3932 test $ac_status = 0; } 3933then : 3934 for ac_file in conftest.o conftest.obj conftest.*; do 3935 test -f "$ac_file" || continue; 3936 case $ac_file in 3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3939 break;; 3940 esac 3941done 3942else case e in #( 3943 e) printf "%s\n" "$as_me: failed program was:" >&5 3944sed 's/^/| /' conftest.$ac_ext >&5 3945 3946{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3947printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3948as_fn_error $? "cannot compute suffix of object files: cannot compile 3949See 'config.log' for more details" "$LINENO" 5; } ;; 3950esac 3951fi 3952rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3953esac 3954fi 3955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3956printf "%s\n" "$ac_cv_objext" >&6; } 3957OBJEXT=$ac_cv_objext 3958ac_objext=$OBJEXT 3959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3960printf %s "checking whether the compiler supports GNU C... " >&6; } 3961if test ${ac_cv_c_compiler_gnu+y} 3962then : 3963 printf %s "(cached) " >&6 3964else case e in #( 3965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967 3968int 3969main (void) 3970{ 3971#ifndef __GNUC__ 3972 choke me 3973#endif 3974 3975 ; 3976 return 0; 3977} 3978_ACEOF 3979if ac_fn_c_try_compile "$LINENO" 3980then : 3981 ac_compiler_gnu=yes 3982else case e in #( 3983 e) ac_compiler_gnu=no ;; 3984esac 3985fi 3986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3987ac_cv_c_compiler_gnu=$ac_compiler_gnu 3988 ;; 3989esac 3990fi 3991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3992printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3993ac_compiler_gnu=$ac_cv_c_compiler_gnu 3994 3995if test $ac_compiler_gnu = yes; then 3996 GCC=yes 3997else 3998 GCC= 3999fi 4000ac_test_CFLAGS=${CFLAGS+y} 4001ac_save_CFLAGS=$CFLAGS 4002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4003printf %s "checking whether $CC accepts -g... " >&6; } 4004if test ${ac_cv_prog_cc_g+y} 4005then : 4006 printf %s "(cached) " >&6 4007else case e in #( 4008 e) ac_save_c_werror_flag=$ac_c_werror_flag 4009 ac_c_werror_flag=yes 4010 ac_cv_prog_cc_g=no 4011 CFLAGS="-g" 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014 4015int 4016main (void) 4017{ 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023if ac_fn_c_try_compile "$LINENO" 4024then : 4025 ac_cv_prog_cc_g=yes 4026else case e in #( 4027 e) CFLAGS="" 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030 4031int 4032main (void) 4033{ 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039if ac_fn_c_try_compile "$LINENO" 4040then : 4041 4042else case e in #( 4043 e) ac_c_werror_flag=$ac_save_c_werror_flag 4044 CFLAGS="-g" 4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046/* end confdefs.h. */ 4047 4048int 4049main (void) 4050{ 4051 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056if ac_fn_c_try_compile "$LINENO" 4057then : 4058 ac_cv_prog_cc_g=yes 4059fi 4060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4061esac 4062fi 4063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4064esac 4065fi 4066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4067 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4068esac 4069fi 4070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4071printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4072if test $ac_test_CFLAGS; then 4073 CFLAGS=$ac_save_CFLAGS 4074elif test $ac_cv_prog_cc_g = yes; then 4075 if test "$GCC" = yes; then 4076 CFLAGS="-g -O2" 4077 else 4078 CFLAGS="-g" 4079 fi 4080else 4081 if test "$GCC" = yes; then 4082 CFLAGS="-O2" 4083 else 4084 CFLAGS= 4085 fi 4086fi 4087ac_prog_cc_stdc=no 4088if test x$ac_prog_cc_stdc = xno 4089then : 4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4091printf %s "checking for $CC option to enable C11 features... " >&6; } 4092if test ${ac_cv_prog_cc_c11+y} 4093then : 4094 printf %s "(cached) " >&6 4095else case e in #( 4096 e) ac_cv_prog_cc_c11=no 4097ac_save_CC=$CC 4098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4099/* end confdefs.h. */ 4100$ac_c_conftest_c11_program 4101_ACEOF 4102for ac_arg in '' -std=gnu11 4103do 4104 CC="$ac_save_CC $ac_arg" 4105 if ac_fn_c_try_compile "$LINENO" 4106then : 4107 ac_cv_prog_cc_c11=$ac_arg 4108fi 4109rm -f core conftest.err conftest.$ac_objext conftest.beam 4110 test "x$ac_cv_prog_cc_c11" != "xno" && break 4111done 4112rm -f conftest.$ac_ext 4113CC=$ac_save_CC ;; 4114esac 4115fi 4116 4117if test "x$ac_cv_prog_cc_c11" = xno 4118then : 4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4120printf "%s\n" "unsupported" >&6; } 4121else case e in #( 4122 e) if test "x$ac_cv_prog_cc_c11" = x 4123then : 4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4125printf "%s\n" "none needed" >&6; } 4126else case e in #( 4127 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4128printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4129 CC="$CC $ac_cv_prog_cc_c11" ;; 4130esac 4131fi 4132 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4133 ac_prog_cc_stdc=c11 ;; 4134esac 4135fi 4136fi 4137if test x$ac_prog_cc_stdc = xno 4138then : 4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4140printf %s "checking for $CC option to enable C99 features... " >&6; } 4141if test ${ac_cv_prog_cc_c99+y} 4142then : 4143 printf %s "(cached) " >&6 4144else case e in #( 4145 e) ac_cv_prog_cc_c99=no 4146ac_save_CC=$CC 4147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4148/* end confdefs.h. */ 4149$ac_c_conftest_c99_program 4150_ACEOF 4151for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4152do 4153 CC="$ac_save_CC $ac_arg" 4154 if ac_fn_c_try_compile "$LINENO" 4155then : 4156 ac_cv_prog_cc_c99=$ac_arg 4157fi 4158rm -f core conftest.err conftest.$ac_objext conftest.beam 4159 test "x$ac_cv_prog_cc_c99" != "xno" && break 4160done 4161rm -f conftest.$ac_ext 4162CC=$ac_save_CC ;; 4163esac 4164fi 4165 4166if test "x$ac_cv_prog_cc_c99" = xno 4167then : 4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4169printf "%s\n" "unsupported" >&6; } 4170else case e in #( 4171 e) if test "x$ac_cv_prog_cc_c99" = x 4172then : 4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4174printf "%s\n" "none needed" >&6; } 4175else case e in #( 4176 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4177printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4178 CC="$CC $ac_cv_prog_cc_c99" ;; 4179esac 4180fi 4181 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4182 ac_prog_cc_stdc=c99 ;; 4183esac 4184fi 4185fi 4186if test x$ac_prog_cc_stdc = xno 4187then : 4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4189printf %s "checking for $CC option to enable C89 features... " >&6; } 4190if test ${ac_cv_prog_cc_c89+y} 4191then : 4192 printf %s "(cached) " >&6 4193else case e in #( 4194 e) ac_cv_prog_cc_c89=no 4195ac_save_CC=$CC 4196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198$ac_c_conftest_c89_program 4199_ACEOF 4200for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4201do 4202 CC="$ac_save_CC $ac_arg" 4203 if ac_fn_c_try_compile "$LINENO" 4204then : 4205 ac_cv_prog_cc_c89=$ac_arg 4206fi 4207rm -f core conftest.err conftest.$ac_objext conftest.beam 4208 test "x$ac_cv_prog_cc_c89" != "xno" && break 4209done 4210rm -f conftest.$ac_ext 4211CC=$ac_save_CC ;; 4212esac 4213fi 4214 4215if test "x$ac_cv_prog_cc_c89" = xno 4216then : 4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4218printf "%s\n" "unsupported" >&6; } 4219else case e in #( 4220 e) if test "x$ac_cv_prog_cc_c89" = x 4221then : 4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4223printf "%s\n" "none needed" >&6; } 4224else case e in #( 4225 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4226printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4227 CC="$CC $ac_cv_prog_cc_c89" ;; 4228esac 4229fi 4230 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4231 ac_prog_cc_stdc=c89 ;; 4232esac 4233fi 4234fi 4235 4236ac_ext=c 4237ac_cpp='$CPP $CPPFLAGS' 4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4240ac_compiler_gnu=$ac_cv_c_compiler_gnu 4241 4242 4243 ac_ext=c 4244ac_cpp='$CPP $CPPFLAGS' 4245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4247ac_compiler_gnu=$ac_cv_c_compiler_gnu 4248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4249printf %s "checking whether $CC understands -c and -o together... " >&6; } 4250if test ${am_cv_prog_cc_c_o+y} 4251then : 4252 printf %s "(cached) " >&6 4253else case e in #( 4254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4255/* end confdefs.h. */ 4256 4257int 4258main (void) 4259{ 4260 4261 ; 4262 return 0; 4263} 4264_ACEOF 4265 # Make sure it works both with $CC and with simple cc. 4266 # Following AC_PROG_CC_C_O, we do the test twice because some 4267 # compilers refuse to overwrite an existing .o file with -o, 4268 # though they will create one. 4269 am_cv_prog_cc_c_o=yes 4270 for am_i in 1 2; do 4271 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4272 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4273 ac_status=$? 4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4275 (exit $ac_status); } \ 4276 && test -f conftest2.$ac_objext; then 4277 : OK 4278 else 4279 am_cv_prog_cc_c_o=no 4280 break 4281 fi 4282 done 4283 rm -f core conftest* 4284 unset am_i ;; 4285esac 4286fi 4287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4288printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4289if test "$am_cv_prog_cc_c_o" != yes; then 4290 # Losing compiler, so override with the script. 4291 # FIXME: It is wrong to rewrite CC. 4292 # But if we don't then we get into trouble of one sort or another. 4293 # A longer-term fix would be to have automake use am__CC in this case, 4294 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4295 CC="$am_aux_dir/compile $CC" 4296fi 4297ac_ext=c 4298ac_cpp='$CPP $CPPFLAGS' 4299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4301ac_compiler_gnu=$ac_cv_c_compiler_gnu 4302 4303 4304depcc="$CC" am_compiler_list= 4305 4306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4307printf %s "checking dependency style of $depcc... " >&6; } 4308if test ${am_cv_CC_dependencies_compiler_type+y} 4309then : 4310 printf %s "(cached) " >&6 4311else case e in #( 4312 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4313 # We make a subdir and do the tests there. Otherwise we can end up 4314 # making bogus files that we don't know about and never remove. For 4315 # instance it was reported that on HP-UX the gcc test will end up 4316 # making a dummy file named 'D' -- because '-MD' means "put the output 4317 # in D". 4318 rm -rf conftest.dir 4319 mkdir conftest.dir 4320 # Copy depcomp to subdir because otherwise we won't find it if we're 4321 # using a relative directory. 4322 cp "$am_depcomp" conftest.dir 4323 cd conftest.dir 4324 # We will build objects and dependencies in a subdirectory because 4325 # it helps to detect inapplicable dependency modes. For instance 4326 # both Tru64's cc and ICC support -MD to output dependencies as a 4327 # side effect of compilation, but ICC will put the dependencies in 4328 # the current directory while Tru64 will put them in the object 4329 # directory. 4330 mkdir sub 4331 4332 am_cv_CC_dependencies_compiler_type=none 4333 if test "$am_compiler_list" = ""; then 4334 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4335 fi 4336 am__universal=false 4337 case " $depcc " in #( 4338 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4339 esac 4340 4341 for depmode in $am_compiler_list; do 4342 # Setup a source with many dependencies, because some compilers 4343 # like to wrap large dependency lists on column 80 (with \), and 4344 # we should not choose a depcomp mode which is confused by this. 4345 # 4346 # We need to recreate these files for each test, as the compiler may 4347 # overwrite some of them when testing with obscure command lines. 4348 # This happens at least with the AIX C compiler. 4349 : > sub/conftest.c 4350 for i in 1 2 3 4 5 6; do 4351 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4352 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4353 # Solaris 10 /bin/sh. 4354 echo '/* dummy */' > sub/conftst$i.h 4355 done 4356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4357 4358 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4359 # mode. It turns out that the SunPro C++ compiler does not properly 4360 # handle '-M -o', and we need to detect this. Also, some Intel 4361 # versions had trouble with output in subdirs. 4362 am__obj=sub/conftest.${OBJEXT-o} 4363 am__minus_obj="-o $am__obj" 4364 case $depmode in 4365 gcc) 4366 # This depmode causes a compiler race in universal mode. 4367 test "$am__universal" = false || continue 4368 ;; 4369 nosideeffect) 4370 # After this tag, mechanisms are not by side-effect, so they'll 4371 # only be used when explicitly requested. 4372 if test "x$enable_dependency_tracking" = xyes; then 4373 continue 4374 else 4375 break 4376 fi 4377 ;; 4378 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4379 # This compiler won't grok '-c -o', but also, the minuso test has 4380 # not run yet. These depmodes are late enough in the game, and 4381 # so weak that their functioning should not be impacted. 4382 am__obj=conftest.${OBJEXT-o} 4383 am__minus_obj= 4384 ;; 4385 none) break ;; 4386 esac 4387 if depmode=$depmode \ 4388 source=sub/conftest.c object=$am__obj \ 4389 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4390 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4391 >/dev/null 2>conftest.err && 4392 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4393 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4394 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4395 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4396 # icc doesn't choke on unknown options, it will just issue warnings 4397 # or remarks (even with -Werror). So we grep stderr for any message 4398 # that says an option was ignored or not supported. 4399 # When given -MP, icc 7.0 and 7.1 complain thusly: 4400 # icc: Command line warning: ignoring option '-M'; no argument required 4401 # The diagnosis changed in icc 8.0: 4402 # icc: Command line remark: option '-MP' not supported 4403 if (grep 'ignoring option' conftest.err || 4404 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4405 am_cv_CC_dependencies_compiler_type=$depmode 4406 break 4407 fi 4408 fi 4409 done 4410 4411 cd .. 4412 rm -rf conftest.dir 4413else 4414 am_cv_CC_dependencies_compiler_type=none 4415fi 4416 ;; 4417esac 4418fi 4419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4420printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4421CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4422 4423 if 4424 test "x$enable_dependency_tracking" != xno \ 4425 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4426 am__fastdepCC_TRUE= 4427 am__fastdepCC_FALSE='#' 4428else 4429 am__fastdepCC_TRUE='#' 4430 am__fastdepCC_FALSE= 4431fi 4432 4433 4434 4435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4436printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4437if test ${ac_cv_c_undeclared_builtin_options+y} 4438then : 4439 printf %s "(cached) " >&6 4440else case e in #( 4441 e) ac_save_CFLAGS=$CFLAGS 4442 ac_cv_c_undeclared_builtin_options='cannot detect' 4443 for ac_arg in '' -fno-builtin; do 4444 CFLAGS="$ac_save_CFLAGS $ac_arg" 4445 # This test program should *not* compile successfully. 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447/* end confdefs.h. */ 4448 4449int 4450main (void) 4451{ 4452(void) strchr; 4453 ; 4454 return 0; 4455} 4456_ACEOF 4457if ac_fn_c_try_compile "$LINENO" 4458then : 4459 4460else case e in #( 4461 e) # This test program should compile successfully. 4462 # No library function is consistently available on 4463 # freestanding implementations, so test against a dummy 4464 # declaration. Include always-available headers on the 4465 # off chance that they somehow elicit warnings. 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467/* end confdefs.h. */ 4468#include <float.h> 4469#include <limits.h> 4470#include <stdarg.h> 4471#include <stddef.h> 4472extern void ac_decl (int, char *); 4473 4474int 4475main (void) 4476{ 4477(void) ac_decl (0, (char *) 0); 4478 (void) ac_decl; 4479 4480 ; 4481 return 0; 4482} 4483_ACEOF 4484if ac_fn_c_try_compile "$LINENO" 4485then : 4486 if test x"$ac_arg" = x 4487then : 4488 ac_cv_c_undeclared_builtin_options='none needed' 4489else case e in #( 4490 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4491esac 4492fi 4493 break 4494fi 4495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4496esac 4497fi 4498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4499 done 4500 CFLAGS=$ac_save_CFLAGS 4501 ;; 4502esac 4503fi 4504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4505printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4506 case $ac_cv_c_undeclared_builtin_options in #( 4507 'cannot detect') : 4508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4509printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4510as_fn_error $? "cannot make $CC report undeclared builtins 4511See 'config.log' for more details" "$LINENO" 5; } ;; #( 4512 'none needed') : 4513 ac_c_undeclared_builtin_options='' ;; #( 4514 *) : 4515 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4516esac 4517 4518ac_header= ac_cache= 4519for ac_item in $ac_header_c_list 4520do 4521 if test $ac_cache; then 4522 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4523 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4524 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4525 fi 4526 ac_header= ac_cache= 4527 elif test $ac_header; then 4528 ac_cache=$ac_item 4529 else 4530 ac_header=$ac_item 4531 fi 4532done 4533 4534 4535 4536 4537 4538 4539 4540 4541if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4542then : 4543 4544printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4545 4546fi 4547 4548 4549 4550 4551ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4552if test "x$ac_cv_have_decl___clang__" = xyes 4553then : 4554 CLANGCC="yes" 4555else case e in #( 4556 e) CLANGCC="no" ;; 4557esac 4558fi 4559ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4560if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4561then : 4562 INTELCC="yes" 4563else case e in #( 4564 e) INTELCC="no" ;; 4565esac 4566fi 4567ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4568if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4569then : 4570 SUNCC="yes" 4571else case e in #( 4572 e) SUNCC="no" ;; 4573esac 4574fi 4575 4576 4577 4578 4579 4580 4581 4582 4583if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4584 if test -n "$ac_tool_prefix"; then 4585 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4586set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4588printf %s "checking for $ac_word... " >&6; } 4589if test ${ac_cv_path_PKG_CONFIG+y} 4590then : 4591 printf %s "(cached) " >&6 4592else case e in #( 4593 e) case $PKG_CONFIG in 4594 [\\/]* | ?:[\\/]*) 4595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4596 ;; 4597 *) 4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4599for as_dir in $PATH 4600do 4601 IFS=$as_save_IFS 4602 case $as_dir in #((( 4603 '') as_dir=./ ;; 4604 */) ;; 4605 *) as_dir=$as_dir/ ;; 4606 esac 4607 for ac_exec_ext in '' $ac_executable_extensions; do 4608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4609 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4611 break 2 4612 fi 4613done 4614 done 4615IFS=$as_save_IFS 4616 4617 ;; 4618esac ;; 4619esac 4620fi 4621PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4622if test -n "$PKG_CONFIG"; then 4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4624printf "%s\n" "$PKG_CONFIG" >&6; } 4625else 4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4627printf "%s\n" "no" >&6; } 4628fi 4629 4630 4631fi 4632if test -z "$ac_cv_path_PKG_CONFIG"; then 4633 ac_pt_PKG_CONFIG=$PKG_CONFIG 4634 # Extract the first word of "pkg-config", so it can be a program name with args. 4635set dummy pkg-config; ac_word=$2 4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4637printf %s "checking for $ac_word... " >&6; } 4638if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4639then : 4640 printf %s "(cached) " >&6 4641else case e in #( 4642 e) case $ac_pt_PKG_CONFIG in 4643 [\\/]* | ?:[\\/]*) 4644 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4645 ;; 4646 *) 4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4648for as_dir in $PATH 4649do 4650 IFS=$as_save_IFS 4651 case $as_dir in #((( 4652 '') as_dir=./ ;; 4653 */) ;; 4654 *) as_dir=$as_dir/ ;; 4655 esac 4656 for ac_exec_ext in '' $ac_executable_extensions; do 4657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4658 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4660 break 2 4661 fi 4662done 4663 done 4664IFS=$as_save_IFS 4665 4666 ;; 4667esac ;; 4668esac 4669fi 4670ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4671if test -n "$ac_pt_PKG_CONFIG"; then 4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4673printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4674else 4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4676printf "%s\n" "no" >&6; } 4677fi 4678 4679 if test "x$ac_pt_PKG_CONFIG" = x; then 4680 PKG_CONFIG="" 4681 else 4682 case $cross_compiling:$ac_tool_warned in 4683yes:) 4684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4685printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4686ac_tool_warned=yes ;; 4687esac 4688 PKG_CONFIG=$ac_pt_PKG_CONFIG 4689 fi 4690else 4691 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4692fi 4693 4694fi 4695if test -n "$PKG_CONFIG"; then 4696 _pkg_min_version=0.9.0 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4698printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4699 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4701printf "%s\n" "yes" >&6; } 4702 else 4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4704printf "%s\n" "no" >&6; } 4705 PKG_CONFIG="" 4706 fi 4707fi 4708 4709 4710 # Make sure we can run config.sub. 4711$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4712 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4713 4714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4715printf %s "checking build system type... " >&6; } 4716if test ${ac_cv_build+y} 4717then : 4718 printf %s "(cached) " >&6 4719else case e in #( 4720 e) ac_build_alias=$build_alias 4721test "x$ac_build_alias" = x && 4722 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4723test "x$ac_build_alias" = x && 4724 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4725ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4726 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4727 ;; 4728esac 4729fi 4730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4731printf "%s\n" "$ac_cv_build" >&6; } 4732case $ac_cv_build in 4733*-*-*) ;; 4734*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4735esac 4736build=$ac_cv_build 4737ac_save_IFS=$IFS; IFS='-' 4738set x $ac_cv_build 4739shift 4740build_cpu=$1 4741build_vendor=$2 4742shift; shift 4743# Remember, the first character of IFS is used to create $*, 4744# except with old shells: 4745build_os=$* 4746IFS=$ac_save_IFS 4747case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4748 4749 4750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4751printf %s "checking host system type... " >&6; } 4752if test ${ac_cv_host+y} 4753then : 4754 printf %s "(cached) " >&6 4755else case e in #( 4756 e) if test "x$host_alias" = x; then 4757 ac_cv_host=$ac_cv_build 4758else 4759 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4760 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4761fi 4762 ;; 4763esac 4764fi 4765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4766printf "%s\n" "$ac_cv_host" >&6; } 4767case $ac_cv_host in 4768*-*-*) ;; 4769*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4770esac 4771host=$ac_cv_host 4772ac_save_IFS=$IFS; IFS='-' 4773set x $ac_cv_host 4774shift 4775host_cpu=$1 4776host_vendor=$2 4777shift; shift 4778# Remember, the first character of IFS is used to create $*, 4779# except with old shells: 4780host_os=$* 4781IFS=$ac_save_IFS 4782case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4783 4784 4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4786printf %s "checking for a sed that does not truncate output... " >&6; } 4787if test ${ac_cv_path_SED+y} 4788then : 4789 printf %s "(cached) " >&6 4790else case e in #( 4791 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4792 for ac_i in 1 2 3 4 5 6 7; do 4793 ac_script="$ac_script$as_nl$ac_script" 4794 done 4795 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4796 { ac_script=; unset ac_script;} 4797 if test -z "$SED"; then 4798 ac_path_SED_found=false 4799 # Loop through the user's path and test for each of PROGNAME-LIST 4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4801for as_dir in $PATH 4802do 4803 IFS=$as_save_IFS 4804 case $as_dir in #((( 4805 '') as_dir=./ ;; 4806 */) ;; 4807 *) as_dir=$as_dir/ ;; 4808 esac 4809 for ac_prog in sed gsed 4810 do 4811 for ac_exec_ext in '' $ac_executable_extensions; do 4812 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4813 as_fn_executable_p "$ac_path_SED" || continue 4814# Check for GNU ac_path_SED and select it if it is found. 4815 # Check for GNU $ac_path_SED 4816case `"$ac_path_SED" --version 2>&1` in #( 4817*GNU*) 4818 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4819#( 4820*) 4821 ac_count=0 4822 printf %s 0123456789 >"conftest.in" 4823 while : 4824 do 4825 cat "conftest.in" "conftest.in" >"conftest.tmp" 4826 mv "conftest.tmp" "conftest.in" 4827 cp "conftest.in" "conftest.nl" 4828 printf "%s\n" '' >> "conftest.nl" 4829 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4831 as_fn_arith $ac_count + 1 && ac_count=$as_val 4832 if test $ac_count -gt ${ac_path_SED_max-0}; then 4833 # Best one so far, save it but keep looking for a better one 4834 ac_cv_path_SED="$ac_path_SED" 4835 ac_path_SED_max=$ac_count 4836 fi 4837 # 10*(2^10) chars as input seems more than enough 4838 test $ac_count -gt 10 && break 4839 done 4840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4841esac 4842 4843 $ac_path_SED_found && break 3 4844 done 4845 done 4846 done 4847IFS=$as_save_IFS 4848 if test -z "$ac_cv_path_SED"; then 4849 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4850 fi 4851else 4852 ac_cv_path_SED=$SED 4853fi 4854 ;; 4855esac 4856fi 4857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4858printf "%s\n" "$ac_cv_path_SED" >&6; } 4859 SED="$ac_cv_path_SED" 4860 rm -f conftest.sed 4861 4862 4863 4864 4865 4866 4867# Check whether --enable-selective-werror was given. 4868if test ${enable_selective_werror+y} 4869then : 4870 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4871else case e in #( 4872 e) SELECTIVE_WERROR=yes ;; 4873esac 4874fi 4875 4876 4877 4878 4879 4880# -v is too short to test reliably with XORG_TESTSET_CFLAG 4881if test "x$SUNCC" = "xyes"; then 4882 BASE_CFLAGS="-v" 4883else 4884 BASE_CFLAGS="" 4885fi 4886 4887# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901xorg_testset_save_CFLAGS="$CFLAGS" 4902 4903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4907if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4908then : 4909 printf %s "(cached) " >&6 4910else case e in #( 4911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912/* end confdefs.h. */ 4913int i; 4914_ACEOF 4915if ac_fn_c_try_compile "$LINENO" 4916then : 4917 xorg_cv_cc_flag_unknown_warning_option=yes 4918else case e in #( 4919 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4920esac 4921fi 4922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4923esac 4924fi 4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4928 CFLAGS="$xorg_testset_save_CFLAGS" 4929fi 4930 4931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4934 fi 4935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4938if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4939then : 4940 printf %s "(cached) " >&6 4941else case e in #( 4942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4943/* end confdefs.h. */ 4944int i; 4945_ACEOF 4946if ac_fn_c_try_compile "$LINENO" 4947then : 4948 xorg_cv_cc_flag_unused_command_line_argument=yes 4949else case e in #( 4950 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4951esac 4952fi 4953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4954esac 4955fi 4956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4959 CFLAGS="$xorg_testset_save_CFLAGS" 4960fi 4961 4962found="no" 4963 4964 if test $found = "no" ; then 4965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4967 fi 4968 4969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4971 fi 4972 4973 CFLAGS="$CFLAGS -Wall" 4974 4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4976printf %s "checking if $CC supports -Wall... " >&6; } 4977 cacheid=xorg_cv_cc_flag__Wall 4978 if eval test \${$cacheid+y} 4979then : 4980 printf %s "(cached) " >&6 4981else case e in #( 4982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984int i; 4985int 4986main (void) 4987{ 4988 4989 ; 4990 return 0; 4991} 4992_ACEOF 4993if ac_fn_c_try_link "$LINENO" 4994then : 4995 eval $cacheid=yes 4996else case e in #( 4997 e) eval $cacheid=no ;; 4998esac 4999fi 5000rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5001 conftest$ac_exeext conftest.$ac_ext ;; 5002esac 5003fi 5004 5005 5006 CFLAGS="$xorg_testset_save_CFLAGS" 5007 5008 eval supported=\$$cacheid 5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5010printf "%s\n" "$supported" >&6; } 5011 if test "$supported" = "yes" ; then 5012 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5013 found="yes" 5014 fi 5015 fi 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031xorg_testset_save_CFLAGS="$CFLAGS" 5032 5033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5037if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5038then : 5039 printf %s "(cached) " >&6 5040else case e in #( 5041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5042/* end confdefs.h. */ 5043int i; 5044_ACEOF 5045if ac_fn_c_try_compile "$LINENO" 5046then : 5047 xorg_cv_cc_flag_unknown_warning_option=yes 5048else case e in #( 5049 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5050esac 5051fi 5052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5053esac 5054fi 5055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5058 CFLAGS="$xorg_testset_save_CFLAGS" 5059fi 5060 5061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5064 fi 5065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5068if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5069then : 5070 printf %s "(cached) " >&6 5071else case e in #( 5072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5073/* end confdefs.h. */ 5074int i; 5075_ACEOF 5076if ac_fn_c_try_compile "$LINENO" 5077then : 5078 xorg_cv_cc_flag_unused_command_line_argument=yes 5079else case e in #( 5080 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5081esac 5082fi 5083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5084esac 5085fi 5086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5089 CFLAGS="$xorg_testset_save_CFLAGS" 5090fi 5091 5092found="no" 5093 5094 if test $found = "no" ; then 5095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5097 fi 5098 5099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5101 fi 5102 5103 CFLAGS="$CFLAGS -Wpointer-arith" 5104 5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5106printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5107 cacheid=xorg_cv_cc_flag__Wpointer_arith 5108 if eval test \${$cacheid+y} 5109then : 5110 printf %s "(cached) " >&6 5111else case e in #( 5112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113/* end confdefs.h. */ 5114int i; 5115int 5116main (void) 5117{ 5118 5119 ; 5120 return 0; 5121} 5122_ACEOF 5123if ac_fn_c_try_link "$LINENO" 5124then : 5125 eval $cacheid=yes 5126else case e in #( 5127 e) eval $cacheid=no ;; 5128esac 5129fi 5130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5131 conftest$ac_exeext conftest.$ac_ext ;; 5132esac 5133fi 5134 5135 5136 CFLAGS="$xorg_testset_save_CFLAGS" 5137 5138 eval supported=\$$cacheid 5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5140printf "%s\n" "$supported" >&6; } 5141 if test "$supported" = "yes" ; then 5142 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5143 found="yes" 5144 fi 5145 fi 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161xorg_testset_save_CFLAGS="$CFLAGS" 5162 5163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5167if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5168then : 5169 printf %s "(cached) " >&6 5170else case e in #( 5171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5172/* end confdefs.h. */ 5173int i; 5174_ACEOF 5175if ac_fn_c_try_compile "$LINENO" 5176then : 5177 xorg_cv_cc_flag_unknown_warning_option=yes 5178else case e in #( 5179 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5180esac 5181fi 5182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5183esac 5184fi 5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5188 CFLAGS="$xorg_testset_save_CFLAGS" 5189fi 5190 5191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5194 fi 5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5198if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5199then : 5200 printf %s "(cached) " >&6 5201else case e in #( 5202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5203/* end confdefs.h. */ 5204int i; 5205_ACEOF 5206if ac_fn_c_try_compile "$LINENO" 5207then : 5208 xorg_cv_cc_flag_unused_command_line_argument=yes 5209else case e in #( 5210 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5211esac 5212fi 5213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5214esac 5215fi 5216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5219 CFLAGS="$xorg_testset_save_CFLAGS" 5220fi 5221 5222found="no" 5223 5224 if test $found = "no" ; then 5225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5227 fi 5228 5229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5231 fi 5232 5233 CFLAGS="$CFLAGS -Wmissing-declarations" 5234 5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5236printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5237 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5238 if eval test \${$cacheid+y} 5239then : 5240 printf %s "(cached) " >&6 5241else case e in #( 5242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243/* end confdefs.h. */ 5244int i; 5245int 5246main (void) 5247{ 5248 5249 ; 5250 return 0; 5251} 5252_ACEOF 5253if ac_fn_c_try_link "$LINENO" 5254then : 5255 eval $cacheid=yes 5256else case e in #( 5257 e) eval $cacheid=no ;; 5258esac 5259fi 5260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5261 conftest$ac_exeext conftest.$ac_ext ;; 5262esac 5263fi 5264 5265 5266 CFLAGS="$xorg_testset_save_CFLAGS" 5267 5268 eval supported=\$$cacheid 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5270printf "%s\n" "$supported" >&6; } 5271 if test "$supported" = "yes" ; then 5272 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5273 found="yes" 5274 fi 5275 fi 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291xorg_testset_save_CFLAGS="$CFLAGS" 5292 5293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5296printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5297if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5298then : 5299 printf %s "(cached) " >&6 5300else case e in #( 5301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5302/* end confdefs.h. */ 5303int i; 5304_ACEOF 5305if ac_fn_c_try_compile "$LINENO" 5306then : 5307 xorg_cv_cc_flag_unknown_warning_option=yes 5308else case e in #( 5309 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5310esac 5311fi 5312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5313esac 5314fi 5315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5316printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5318 CFLAGS="$xorg_testset_save_CFLAGS" 5319fi 5320 5321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5324 fi 5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5327printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5328if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5329then : 5330 printf %s "(cached) " >&6 5331else case e in #( 5332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333/* end confdefs.h. */ 5334int i; 5335_ACEOF 5336if ac_fn_c_try_compile "$LINENO" 5337then : 5338 xorg_cv_cc_flag_unused_command_line_argument=yes 5339else case e in #( 5340 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5341esac 5342fi 5343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5344esac 5345fi 5346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5349 CFLAGS="$xorg_testset_save_CFLAGS" 5350fi 5351 5352found="no" 5353 5354 if test $found = "no" ; then 5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5357 fi 5358 5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5361 fi 5362 5363 CFLAGS="$CFLAGS -Wformat=2" 5364 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5366printf %s "checking if $CC supports -Wformat=2... " >&6; } 5367 cacheid=xorg_cv_cc_flag__Wformat_2 5368 if eval test \${$cacheid+y} 5369then : 5370 printf %s "(cached) " >&6 5371else case e in #( 5372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5373/* end confdefs.h. */ 5374int i; 5375int 5376main (void) 5377{ 5378 5379 ; 5380 return 0; 5381} 5382_ACEOF 5383if ac_fn_c_try_link "$LINENO" 5384then : 5385 eval $cacheid=yes 5386else case e in #( 5387 e) eval $cacheid=no ;; 5388esac 5389fi 5390rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5391 conftest$ac_exeext conftest.$ac_ext ;; 5392esac 5393fi 5394 5395 5396 CFLAGS="$xorg_testset_save_CFLAGS" 5397 5398 eval supported=\$$cacheid 5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5400printf "%s\n" "$supported" >&6; } 5401 if test "$supported" = "yes" ; then 5402 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5403 found="yes" 5404 fi 5405 fi 5406 5407 if test $found = "no" ; then 5408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5410 fi 5411 5412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5414 fi 5415 5416 CFLAGS="$CFLAGS -Wformat" 5417 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5419printf %s "checking if $CC supports -Wformat... " >&6; } 5420 cacheid=xorg_cv_cc_flag__Wformat 5421 if eval test \${$cacheid+y} 5422then : 5423 printf %s "(cached) " >&6 5424else case e in #( 5425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5426/* end confdefs.h. */ 5427int i; 5428int 5429main (void) 5430{ 5431 5432 ; 5433 return 0; 5434} 5435_ACEOF 5436if ac_fn_c_try_link "$LINENO" 5437then : 5438 eval $cacheid=yes 5439else case e in #( 5440 e) eval $cacheid=no ;; 5441esac 5442fi 5443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5444 conftest$ac_exeext conftest.$ac_ext ;; 5445esac 5446fi 5447 5448 5449 CFLAGS="$xorg_testset_save_CFLAGS" 5450 5451 eval supported=\$$cacheid 5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5453printf "%s\n" "$supported" >&6; } 5454 if test "$supported" = "yes" ; then 5455 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5456 found="yes" 5457 fi 5458 fi 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476xorg_testset_save_CFLAGS="$CFLAGS" 5477 5478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5482if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5483then : 5484 printf %s "(cached) " >&6 5485else case e in #( 5486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5487/* end confdefs.h. */ 5488int i; 5489_ACEOF 5490if ac_fn_c_try_compile "$LINENO" 5491then : 5492 xorg_cv_cc_flag_unknown_warning_option=yes 5493else case e in #( 5494 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5495esac 5496fi 5497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5498esac 5499fi 5500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5503 CFLAGS="$xorg_testset_save_CFLAGS" 5504fi 5505 5506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5509 fi 5510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5513if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5514then : 5515 printf %s "(cached) " >&6 5516else case e in #( 5517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5518/* end confdefs.h. */ 5519int i; 5520_ACEOF 5521if ac_fn_c_try_compile "$LINENO" 5522then : 5523 xorg_cv_cc_flag_unused_command_line_argument=yes 5524else case e in #( 5525 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5526esac 5527fi 5528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5529esac 5530fi 5531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5534 CFLAGS="$xorg_testset_save_CFLAGS" 5535fi 5536 5537found="no" 5538 5539 if test $found = "no" ; then 5540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5542 fi 5543 5544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5546 fi 5547 5548 CFLAGS="$CFLAGS -Wstrict-prototypes" 5549 5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5551printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5552 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5553 if eval test \${$cacheid+y} 5554then : 5555 printf %s "(cached) " >&6 5556else case e in #( 5557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5558/* end confdefs.h. */ 5559int i; 5560int 5561main (void) 5562{ 5563 5564 ; 5565 return 0; 5566} 5567_ACEOF 5568if ac_fn_c_try_link "$LINENO" 5569then : 5570 eval $cacheid=yes 5571else case e in #( 5572 e) eval $cacheid=no ;; 5573esac 5574fi 5575rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5576 conftest$ac_exeext conftest.$ac_ext ;; 5577esac 5578fi 5579 5580 5581 CFLAGS="$xorg_testset_save_CFLAGS" 5582 5583 eval supported=\$$cacheid 5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5585printf "%s\n" "$supported" >&6; } 5586 if test "$supported" = "yes" ; then 5587 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5588 found="yes" 5589 fi 5590 fi 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606xorg_testset_save_CFLAGS="$CFLAGS" 5607 5608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5611printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5612if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5613then : 5614 printf %s "(cached) " >&6 5615else case e in #( 5616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5617/* end confdefs.h. */ 5618int i; 5619_ACEOF 5620if ac_fn_c_try_compile "$LINENO" 5621then : 5622 xorg_cv_cc_flag_unknown_warning_option=yes 5623else case e in #( 5624 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5625esac 5626fi 5627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5628esac 5629fi 5630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5633 CFLAGS="$xorg_testset_save_CFLAGS" 5634fi 5635 5636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5639 fi 5640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5643if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5644then : 5645 printf %s "(cached) " >&6 5646else case e in #( 5647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5648/* end confdefs.h. */ 5649int i; 5650_ACEOF 5651if ac_fn_c_try_compile "$LINENO" 5652then : 5653 xorg_cv_cc_flag_unused_command_line_argument=yes 5654else case e in #( 5655 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5656esac 5657fi 5658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5659esac 5660fi 5661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5664 CFLAGS="$xorg_testset_save_CFLAGS" 5665fi 5666 5667found="no" 5668 5669 if test $found = "no" ; then 5670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5672 fi 5673 5674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5676 fi 5677 5678 CFLAGS="$CFLAGS -Wmissing-prototypes" 5679 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5681printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5682 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5683 if eval test \${$cacheid+y} 5684then : 5685 printf %s "(cached) " >&6 5686else case e in #( 5687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689int i; 5690int 5691main (void) 5692{ 5693 5694 ; 5695 return 0; 5696} 5697_ACEOF 5698if ac_fn_c_try_link "$LINENO" 5699then : 5700 eval $cacheid=yes 5701else case e in #( 5702 e) eval $cacheid=no ;; 5703esac 5704fi 5705rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5706 conftest$ac_exeext conftest.$ac_ext ;; 5707esac 5708fi 5709 5710 5711 CFLAGS="$xorg_testset_save_CFLAGS" 5712 5713 eval supported=\$$cacheid 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5715printf "%s\n" "$supported" >&6; } 5716 if test "$supported" = "yes" ; then 5717 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5718 found="yes" 5719 fi 5720 fi 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736xorg_testset_save_CFLAGS="$CFLAGS" 5737 5738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5742if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5743then : 5744 printf %s "(cached) " >&6 5745else case e in #( 5746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5747/* end confdefs.h. */ 5748int i; 5749_ACEOF 5750if ac_fn_c_try_compile "$LINENO" 5751then : 5752 xorg_cv_cc_flag_unknown_warning_option=yes 5753else case e in #( 5754 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5755esac 5756fi 5757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5758esac 5759fi 5760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5763 CFLAGS="$xorg_testset_save_CFLAGS" 5764fi 5765 5766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5769 fi 5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5773if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5774then : 5775 printf %s "(cached) " >&6 5776else case e in #( 5777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779int i; 5780_ACEOF 5781if ac_fn_c_try_compile "$LINENO" 5782then : 5783 xorg_cv_cc_flag_unused_command_line_argument=yes 5784else case e in #( 5785 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5786esac 5787fi 5788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5789esac 5790fi 5791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5794 CFLAGS="$xorg_testset_save_CFLAGS" 5795fi 5796 5797found="no" 5798 5799 if test $found = "no" ; then 5800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5802 fi 5803 5804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5806 fi 5807 5808 CFLAGS="$CFLAGS -Wnested-externs" 5809 5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5811printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5812 cacheid=xorg_cv_cc_flag__Wnested_externs 5813 if eval test \${$cacheid+y} 5814then : 5815 printf %s "(cached) " >&6 5816else case e in #( 5817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819int i; 5820int 5821main (void) 5822{ 5823 5824 ; 5825 return 0; 5826} 5827_ACEOF 5828if ac_fn_c_try_link "$LINENO" 5829then : 5830 eval $cacheid=yes 5831else case e in #( 5832 e) eval $cacheid=no ;; 5833esac 5834fi 5835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5836 conftest$ac_exeext conftest.$ac_ext ;; 5837esac 5838fi 5839 5840 5841 CFLAGS="$xorg_testset_save_CFLAGS" 5842 5843 eval supported=\$$cacheid 5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5845printf "%s\n" "$supported" >&6; } 5846 if test "$supported" = "yes" ; then 5847 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5848 found="yes" 5849 fi 5850 fi 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866xorg_testset_save_CFLAGS="$CFLAGS" 5867 5868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5872if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5873then : 5874 printf %s "(cached) " >&6 5875else case e in #( 5876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5877/* end confdefs.h. */ 5878int i; 5879_ACEOF 5880if ac_fn_c_try_compile "$LINENO" 5881then : 5882 xorg_cv_cc_flag_unknown_warning_option=yes 5883else case e in #( 5884 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5885esac 5886fi 5887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5888esac 5889fi 5890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5891printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5893 CFLAGS="$xorg_testset_save_CFLAGS" 5894fi 5895 5896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5899 fi 5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5902printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5903if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5904then : 5905 printf %s "(cached) " >&6 5906else case e in #( 5907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909int i; 5910_ACEOF 5911if ac_fn_c_try_compile "$LINENO" 5912then : 5913 xorg_cv_cc_flag_unused_command_line_argument=yes 5914else case e in #( 5915 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5916esac 5917fi 5918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5919esac 5920fi 5921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5922printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5924 CFLAGS="$xorg_testset_save_CFLAGS" 5925fi 5926 5927found="no" 5928 5929 if test $found = "no" ; then 5930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5932 fi 5933 5934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5936 fi 5937 5938 CFLAGS="$CFLAGS -Wbad-function-cast" 5939 5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5941printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5942 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5943 if eval test \${$cacheid+y} 5944then : 5945 printf %s "(cached) " >&6 5946else case e in #( 5947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5948/* end confdefs.h. */ 5949int i; 5950int 5951main (void) 5952{ 5953 5954 ; 5955 return 0; 5956} 5957_ACEOF 5958if ac_fn_c_try_link "$LINENO" 5959then : 5960 eval $cacheid=yes 5961else case e in #( 5962 e) eval $cacheid=no ;; 5963esac 5964fi 5965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5966 conftest$ac_exeext conftest.$ac_ext ;; 5967esac 5968fi 5969 5970 5971 CFLAGS="$xorg_testset_save_CFLAGS" 5972 5973 eval supported=\$$cacheid 5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5975printf "%s\n" "$supported" >&6; } 5976 if test "$supported" = "yes" ; then 5977 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5978 found="yes" 5979 fi 5980 fi 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996xorg_testset_save_CFLAGS="$CFLAGS" 5997 5998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6001printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6002if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6003then : 6004 printf %s "(cached) " >&6 6005else case e in #( 6006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6007/* end confdefs.h. */ 6008int i; 6009_ACEOF 6010if ac_fn_c_try_compile "$LINENO" 6011then : 6012 xorg_cv_cc_flag_unknown_warning_option=yes 6013else case e in #( 6014 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6015esac 6016fi 6017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6018esac 6019fi 6020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6021printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6023 CFLAGS="$xorg_testset_save_CFLAGS" 6024fi 6025 6026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6029 fi 6030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6032printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6033if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6034then : 6035 printf %s "(cached) " >&6 6036else case e in #( 6037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6038/* end confdefs.h. */ 6039int i; 6040_ACEOF 6041if ac_fn_c_try_compile "$LINENO" 6042then : 6043 xorg_cv_cc_flag_unused_command_line_argument=yes 6044else case e in #( 6045 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6046esac 6047fi 6048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6049esac 6050fi 6051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6052printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6054 CFLAGS="$xorg_testset_save_CFLAGS" 6055fi 6056 6057found="no" 6058 6059 if test $found = "no" ; then 6060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6062 fi 6063 6064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6066 fi 6067 6068 CFLAGS="$CFLAGS -Wold-style-definition" 6069 6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6071printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6072 cacheid=xorg_cv_cc_flag__Wold_style_definition 6073 if eval test \${$cacheid+y} 6074then : 6075 printf %s "(cached) " >&6 6076else case e in #( 6077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6078/* end confdefs.h. */ 6079int i; 6080int 6081main (void) 6082{ 6083 6084 ; 6085 return 0; 6086} 6087_ACEOF 6088if ac_fn_c_try_link "$LINENO" 6089then : 6090 eval $cacheid=yes 6091else case e in #( 6092 e) eval $cacheid=no ;; 6093esac 6094fi 6095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6096 conftest$ac_exeext conftest.$ac_ext ;; 6097esac 6098fi 6099 6100 6101 CFLAGS="$xorg_testset_save_CFLAGS" 6102 6103 eval supported=\$$cacheid 6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6105printf "%s\n" "$supported" >&6; } 6106 if test "$supported" = "yes" ; then 6107 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6108 found="yes" 6109 fi 6110 fi 6111 6112 if test $found = "no" ; then 6113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6115 fi 6116 6117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6119 fi 6120 6121 CFLAGS="$CFLAGS -fd" 6122 6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6124printf %s "checking if $CC supports -fd... " >&6; } 6125 cacheid=xorg_cv_cc_flag__fd 6126 if eval test \${$cacheid+y} 6127then : 6128 printf %s "(cached) " >&6 6129else case e in #( 6130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131/* end confdefs.h. */ 6132int i; 6133int 6134main (void) 6135{ 6136 6137 ; 6138 return 0; 6139} 6140_ACEOF 6141if ac_fn_c_try_link "$LINENO" 6142then : 6143 eval $cacheid=yes 6144else case e in #( 6145 e) eval $cacheid=no ;; 6146esac 6147fi 6148rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6149 conftest$ac_exeext conftest.$ac_ext ;; 6150esac 6151fi 6152 6153 6154 CFLAGS="$xorg_testset_save_CFLAGS" 6155 6156 eval supported=\$$cacheid 6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6158printf "%s\n" "$supported" >&6; } 6159 if test "$supported" = "yes" ; then 6160 BASE_CFLAGS="$BASE_CFLAGS -fd" 6161 found="yes" 6162 fi 6163 fi 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179xorg_testset_save_CFLAGS="$CFLAGS" 6180 6181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6184printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6185if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6186then : 6187 printf %s "(cached) " >&6 6188else case e in #( 6189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6190/* end confdefs.h. */ 6191int i; 6192_ACEOF 6193if ac_fn_c_try_compile "$LINENO" 6194then : 6195 xorg_cv_cc_flag_unknown_warning_option=yes 6196else case e in #( 6197 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6198esac 6199fi 6200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6201esac 6202fi 6203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6206 CFLAGS="$xorg_testset_save_CFLAGS" 6207fi 6208 6209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6212 fi 6213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6216if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6217then : 6218 printf %s "(cached) " >&6 6219else case e in #( 6220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6221/* end confdefs.h. */ 6222int i; 6223_ACEOF 6224if ac_fn_c_try_compile "$LINENO" 6225then : 6226 xorg_cv_cc_flag_unused_command_line_argument=yes 6227else case e in #( 6228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6229esac 6230fi 6231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6232esac 6233fi 6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6237 CFLAGS="$xorg_testset_save_CFLAGS" 6238fi 6239 6240found="no" 6241 6242 if test $found = "no" ; then 6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6245 fi 6246 6247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6249 fi 6250 6251 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6252 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6254printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6255 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6256 if eval test \${$cacheid+y} 6257then : 6258 printf %s "(cached) " >&6 6259else case e in #( 6260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6261/* end confdefs.h. */ 6262int i; 6263int 6264main (void) 6265{ 6266 6267 ; 6268 return 0; 6269} 6270_ACEOF 6271if ac_fn_c_try_link "$LINENO" 6272then : 6273 eval $cacheid=yes 6274else case e in #( 6275 e) eval $cacheid=no ;; 6276esac 6277fi 6278rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6279 conftest$ac_exeext conftest.$ac_ext ;; 6280esac 6281fi 6282 6283 6284 CFLAGS="$xorg_testset_save_CFLAGS" 6285 6286 eval supported=\$$cacheid 6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6288printf "%s\n" "$supported" >&6; } 6289 if test "$supported" = "yes" ; then 6290 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6291 found="yes" 6292 fi 6293 fi 6294 6295 6296 6297 6298 6299# This chunk adds additional warnings that could catch undesired effects. 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313xorg_testset_save_CFLAGS="$CFLAGS" 6314 6315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6319if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6320then : 6321 printf %s "(cached) " >&6 6322else case e in #( 6323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6324/* end confdefs.h. */ 6325int i; 6326_ACEOF 6327if ac_fn_c_try_compile "$LINENO" 6328then : 6329 xorg_cv_cc_flag_unknown_warning_option=yes 6330else case e in #( 6331 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6332esac 6333fi 6334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6335esac 6336fi 6337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6340 CFLAGS="$xorg_testset_save_CFLAGS" 6341fi 6342 6343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6346 fi 6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6350if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6351then : 6352 printf %s "(cached) " >&6 6353else case e in #( 6354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355/* end confdefs.h. */ 6356int i; 6357_ACEOF 6358if ac_fn_c_try_compile "$LINENO" 6359then : 6360 xorg_cv_cc_flag_unused_command_line_argument=yes 6361else case e in #( 6362 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6363esac 6364fi 6365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6366esac 6367fi 6368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6371 CFLAGS="$xorg_testset_save_CFLAGS" 6372fi 6373 6374found="no" 6375 6376 if test $found = "no" ; then 6377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6379 fi 6380 6381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6383 fi 6384 6385 CFLAGS="$CFLAGS -Wunused" 6386 6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6388printf %s "checking if $CC supports -Wunused... " >&6; } 6389 cacheid=xorg_cv_cc_flag__Wunused 6390 if eval test \${$cacheid+y} 6391then : 6392 printf %s "(cached) " >&6 6393else case e in #( 6394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6395/* end confdefs.h. */ 6396int i; 6397int 6398main (void) 6399{ 6400 6401 ; 6402 return 0; 6403} 6404_ACEOF 6405if ac_fn_c_try_link "$LINENO" 6406then : 6407 eval $cacheid=yes 6408else case e in #( 6409 e) eval $cacheid=no ;; 6410esac 6411fi 6412rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6413 conftest$ac_exeext conftest.$ac_ext ;; 6414esac 6415fi 6416 6417 6418 CFLAGS="$xorg_testset_save_CFLAGS" 6419 6420 eval supported=\$$cacheid 6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6422printf "%s\n" "$supported" >&6; } 6423 if test "$supported" = "yes" ; then 6424 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6425 found="yes" 6426 fi 6427 fi 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443xorg_testset_save_CFLAGS="$CFLAGS" 6444 6445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6449if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6450then : 6451 printf %s "(cached) " >&6 6452else case e in #( 6453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6454/* end confdefs.h. */ 6455int i; 6456_ACEOF 6457if ac_fn_c_try_compile "$LINENO" 6458then : 6459 xorg_cv_cc_flag_unknown_warning_option=yes 6460else case e in #( 6461 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6462esac 6463fi 6464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6465esac 6466fi 6467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6468printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6470 CFLAGS="$xorg_testset_save_CFLAGS" 6471fi 6472 6473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6476 fi 6477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6479printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6480if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6481then : 6482 printf %s "(cached) " >&6 6483else case e in #( 6484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6485/* end confdefs.h. */ 6486int i; 6487_ACEOF 6488if ac_fn_c_try_compile "$LINENO" 6489then : 6490 xorg_cv_cc_flag_unused_command_line_argument=yes 6491else case e in #( 6492 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6493esac 6494fi 6495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6496esac 6497fi 6498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6499printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6501 CFLAGS="$xorg_testset_save_CFLAGS" 6502fi 6503 6504found="no" 6505 6506 if test $found = "no" ; then 6507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6509 fi 6510 6511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6513 fi 6514 6515 CFLAGS="$CFLAGS -Wuninitialized" 6516 6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6518printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6519 cacheid=xorg_cv_cc_flag__Wuninitialized 6520 if eval test \${$cacheid+y} 6521then : 6522 printf %s "(cached) " >&6 6523else case e in #( 6524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6525/* end confdefs.h. */ 6526int i; 6527int 6528main (void) 6529{ 6530 6531 ; 6532 return 0; 6533} 6534_ACEOF 6535if ac_fn_c_try_link "$LINENO" 6536then : 6537 eval $cacheid=yes 6538else case e in #( 6539 e) eval $cacheid=no ;; 6540esac 6541fi 6542rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6543 conftest$ac_exeext conftest.$ac_ext ;; 6544esac 6545fi 6546 6547 6548 CFLAGS="$xorg_testset_save_CFLAGS" 6549 6550 eval supported=\$$cacheid 6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6552printf "%s\n" "$supported" >&6; } 6553 if test "$supported" = "yes" ; then 6554 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6555 found="yes" 6556 fi 6557 fi 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573xorg_testset_save_CFLAGS="$CFLAGS" 6574 6575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6578printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6579if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6580then : 6581 printf %s "(cached) " >&6 6582else case e in #( 6583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585int i; 6586_ACEOF 6587if ac_fn_c_try_compile "$LINENO" 6588then : 6589 xorg_cv_cc_flag_unknown_warning_option=yes 6590else case e in #( 6591 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6592esac 6593fi 6594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6595esac 6596fi 6597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6598printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6600 CFLAGS="$xorg_testset_save_CFLAGS" 6601fi 6602 6603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6606 fi 6607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6609printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6610if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6611then : 6612 printf %s "(cached) " >&6 6613else case e in #( 6614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6615/* end confdefs.h. */ 6616int i; 6617_ACEOF 6618if ac_fn_c_try_compile "$LINENO" 6619then : 6620 xorg_cv_cc_flag_unused_command_line_argument=yes 6621else case e in #( 6622 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6623esac 6624fi 6625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6626esac 6627fi 6628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6629printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6631 CFLAGS="$xorg_testset_save_CFLAGS" 6632fi 6633 6634found="no" 6635 6636 if test $found = "no" ; then 6637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6639 fi 6640 6641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6643 fi 6644 6645 CFLAGS="$CFLAGS -Wshadow" 6646 6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6648printf %s "checking if $CC supports -Wshadow... " >&6; } 6649 cacheid=xorg_cv_cc_flag__Wshadow 6650 if eval test \${$cacheid+y} 6651then : 6652 printf %s "(cached) " >&6 6653else case e in #( 6654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655/* end confdefs.h. */ 6656int i; 6657int 6658main (void) 6659{ 6660 6661 ; 6662 return 0; 6663} 6664_ACEOF 6665if ac_fn_c_try_link "$LINENO" 6666then : 6667 eval $cacheid=yes 6668else case e in #( 6669 e) eval $cacheid=no ;; 6670esac 6671fi 6672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6673 conftest$ac_exeext conftest.$ac_ext ;; 6674esac 6675fi 6676 6677 6678 CFLAGS="$xorg_testset_save_CFLAGS" 6679 6680 eval supported=\$$cacheid 6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6682printf "%s\n" "$supported" >&6; } 6683 if test "$supported" = "yes" ; then 6684 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6685 found="yes" 6686 fi 6687 fi 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703xorg_testset_save_CFLAGS="$CFLAGS" 6704 6705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6709if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6710then : 6711 printf %s "(cached) " >&6 6712else case e in #( 6713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714/* end confdefs.h. */ 6715int i; 6716_ACEOF 6717if ac_fn_c_try_compile "$LINENO" 6718then : 6719 xorg_cv_cc_flag_unknown_warning_option=yes 6720else case e in #( 6721 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6722esac 6723fi 6724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6725esac 6726fi 6727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6728printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6730 CFLAGS="$xorg_testset_save_CFLAGS" 6731fi 6732 6733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6736 fi 6737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6739printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6740if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6741then : 6742 printf %s "(cached) " >&6 6743else case e in #( 6744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745/* end confdefs.h. */ 6746int i; 6747_ACEOF 6748if ac_fn_c_try_compile "$LINENO" 6749then : 6750 xorg_cv_cc_flag_unused_command_line_argument=yes 6751else case e in #( 6752 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6753esac 6754fi 6755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6756esac 6757fi 6758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6761 CFLAGS="$xorg_testset_save_CFLAGS" 6762fi 6763 6764found="no" 6765 6766 if test $found = "no" ; then 6767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6769 fi 6770 6771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6773 fi 6774 6775 CFLAGS="$CFLAGS -Wmissing-noreturn" 6776 6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6778printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6779 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6780 if eval test \${$cacheid+y} 6781then : 6782 printf %s "(cached) " >&6 6783else case e in #( 6784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6785/* end confdefs.h. */ 6786int i; 6787int 6788main (void) 6789{ 6790 6791 ; 6792 return 0; 6793} 6794_ACEOF 6795if ac_fn_c_try_link "$LINENO" 6796then : 6797 eval $cacheid=yes 6798else case e in #( 6799 e) eval $cacheid=no ;; 6800esac 6801fi 6802rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6803 conftest$ac_exeext conftest.$ac_ext ;; 6804esac 6805fi 6806 6807 6808 CFLAGS="$xorg_testset_save_CFLAGS" 6809 6810 eval supported=\$$cacheid 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6812printf "%s\n" "$supported" >&6; } 6813 if test "$supported" = "yes" ; then 6814 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6815 found="yes" 6816 fi 6817 fi 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833xorg_testset_save_CFLAGS="$CFLAGS" 6834 6835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6839if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6840then : 6841 printf %s "(cached) " >&6 6842else case e in #( 6843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6844/* end confdefs.h. */ 6845int i; 6846_ACEOF 6847if ac_fn_c_try_compile "$LINENO" 6848then : 6849 xorg_cv_cc_flag_unknown_warning_option=yes 6850else case e in #( 6851 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6852esac 6853fi 6854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6855esac 6856fi 6857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6860 CFLAGS="$xorg_testset_save_CFLAGS" 6861fi 6862 6863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6866 fi 6867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6870if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6871then : 6872 printf %s "(cached) " >&6 6873else case e in #( 6874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875/* end confdefs.h. */ 6876int i; 6877_ACEOF 6878if ac_fn_c_try_compile "$LINENO" 6879then : 6880 xorg_cv_cc_flag_unused_command_line_argument=yes 6881else case e in #( 6882 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6883esac 6884fi 6885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6886esac 6887fi 6888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6889printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6891 CFLAGS="$xorg_testset_save_CFLAGS" 6892fi 6893 6894found="no" 6895 6896 if test $found = "no" ; then 6897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6899 fi 6900 6901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6903 fi 6904 6905 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6906 6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6908printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6909 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6910 if eval test \${$cacheid+y} 6911then : 6912 printf %s "(cached) " >&6 6913else case e in #( 6914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6915/* end confdefs.h. */ 6916int i; 6917int 6918main (void) 6919{ 6920 6921 ; 6922 return 0; 6923} 6924_ACEOF 6925if ac_fn_c_try_link "$LINENO" 6926then : 6927 eval $cacheid=yes 6928else case e in #( 6929 e) eval $cacheid=no ;; 6930esac 6931fi 6932rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6933 conftest$ac_exeext conftest.$ac_ext ;; 6934esac 6935fi 6936 6937 6938 CFLAGS="$xorg_testset_save_CFLAGS" 6939 6940 eval supported=\$$cacheid 6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6942printf "%s\n" "$supported" >&6; } 6943 if test "$supported" = "yes" ; then 6944 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6945 found="yes" 6946 fi 6947 fi 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963xorg_testset_save_CFLAGS="$CFLAGS" 6964 6965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6969if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6970then : 6971 printf %s "(cached) " >&6 6972else case e in #( 6973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975int i; 6976_ACEOF 6977if ac_fn_c_try_compile "$LINENO" 6978then : 6979 xorg_cv_cc_flag_unknown_warning_option=yes 6980else case e in #( 6981 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6982esac 6983fi 6984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6985esac 6986fi 6987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6990 CFLAGS="$xorg_testset_save_CFLAGS" 6991fi 6992 6993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6996 fi 6997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7000if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7001then : 7002 printf %s "(cached) " >&6 7003else case e in #( 7004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7005/* end confdefs.h. */ 7006int i; 7007_ACEOF 7008if ac_fn_c_try_compile "$LINENO" 7009then : 7010 xorg_cv_cc_flag_unused_command_line_argument=yes 7011else case e in #( 7012 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7013esac 7014fi 7015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7016esac 7017fi 7018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7019printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7021 CFLAGS="$xorg_testset_save_CFLAGS" 7022fi 7023 7024found="no" 7025 7026 if test $found = "no" ; then 7027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7029 fi 7030 7031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7033 fi 7034 7035 CFLAGS="$CFLAGS -Wredundant-decls" 7036 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7038printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7039 cacheid=xorg_cv_cc_flag__Wredundant_decls 7040 if eval test \${$cacheid+y} 7041then : 7042 printf %s "(cached) " >&6 7043else case e in #( 7044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7045/* end confdefs.h. */ 7046int i; 7047int 7048main (void) 7049{ 7050 7051 ; 7052 return 0; 7053} 7054_ACEOF 7055if ac_fn_c_try_link "$LINENO" 7056then : 7057 eval $cacheid=yes 7058else case e in #( 7059 e) eval $cacheid=no ;; 7060esac 7061fi 7062rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7063 conftest$ac_exeext conftest.$ac_ext ;; 7064esac 7065fi 7066 7067 7068 CFLAGS="$xorg_testset_save_CFLAGS" 7069 7070 eval supported=\$$cacheid 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7072printf "%s\n" "$supported" >&6; } 7073 if test "$supported" = "yes" ; then 7074 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7075 found="yes" 7076 fi 7077 fi 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093xorg_testset_save_CFLAGS="$CFLAGS" 7094 7095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7098printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7099if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7100then : 7101 printf %s "(cached) " >&6 7102else case e in #( 7103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7104/* end confdefs.h. */ 7105int i; 7106_ACEOF 7107if ac_fn_c_try_compile "$LINENO" 7108then : 7109 xorg_cv_cc_flag_unknown_warning_option=yes 7110else case e in #( 7111 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7112esac 7113fi 7114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7115esac 7116fi 7117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7118printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7120 CFLAGS="$xorg_testset_save_CFLAGS" 7121fi 7122 7123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7126 fi 7127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7129printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7130if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7131then : 7132 printf %s "(cached) " >&6 7133else case e in #( 7134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135/* end confdefs.h. */ 7136int i; 7137_ACEOF 7138if ac_fn_c_try_compile "$LINENO" 7139then : 7140 xorg_cv_cc_flag_unused_command_line_argument=yes 7141else case e in #( 7142 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7143esac 7144fi 7145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7146esac 7147fi 7148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7151 CFLAGS="$xorg_testset_save_CFLAGS" 7152fi 7153 7154found="no" 7155 7156 if test $found = "no" ; then 7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7159 fi 7160 7161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7163 fi 7164 7165 CFLAGS="$CFLAGS -Wlogical-op" 7166 7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7168printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7169 cacheid=xorg_cv_cc_flag__Wlogical_op 7170 if eval test \${$cacheid+y} 7171then : 7172 printf %s "(cached) " >&6 7173else case e in #( 7174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7175/* end confdefs.h. */ 7176int i; 7177int 7178main (void) 7179{ 7180 7181 ; 7182 return 0; 7183} 7184_ACEOF 7185if ac_fn_c_try_link "$LINENO" 7186then : 7187 eval $cacheid=yes 7188else case e in #( 7189 e) eval $cacheid=no ;; 7190esac 7191fi 7192rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7193 conftest$ac_exeext conftest.$ac_ext ;; 7194esac 7195fi 7196 7197 7198 CFLAGS="$xorg_testset_save_CFLAGS" 7199 7200 eval supported=\$$cacheid 7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7202printf "%s\n" "$supported" >&6; } 7203 if test "$supported" = "yes" ; then 7204 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7205 found="yes" 7206 fi 7207 fi 7208 7209 7210 7211# These are currently disabled because they are noisy. They will be enabled 7212# in the future once the codebase is sufficiently modernized to silence 7213# them. For now, I don't want them to drown out the other warnings. 7214# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7215# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7216# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7217 7218# Turn some warnings into errors, so we don't accidentally get successful builds 7219# when there are problems that should be fixed. 7220 7221if test "x$SELECTIVE_WERROR" = "xyes" ; then 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235xorg_testset_save_CFLAGS="$CFLAGS" 7236 7237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7240printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7241if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7242then : 7243 printf %s "(cached) " >&6 7244else case e in #( 7245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247int i; 7248_ACEOF 7249if ac_fn_c_try_compile "$LINENO" 7250then : 7251 xorg_cv_cc_flag_unknown_warning_option=yes 7252else case e in #( 7253 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7254esac 7255fi 7256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7257esac 7258fi 7259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7260printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7262 CFLAGS="$xorg_testset_save_CFLAGS" 7263fi 7264 7265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7268 fi 7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7271printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7272if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7273then : 7274 printf %s "(cached) " >&6 7275else case e in #( 7276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7277/* end confdefs.h. */ 7278int i; 7279_ACEOF 7280if ac_fn_c_try_compile "$LINENO" 7281then : 7282 xorg_cv_cc_flag_unused_command_line_argument=yes 7283else case e in #( 7284 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7285esac 7286fi 7287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7288esac 7289fi 7290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7291printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7293 CFLAGS="$xorg_testset_save_CFLAGS" 7294fi 7295 7296found="no" 7297 7298 if test $found = "no" ; then 7299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7301 fi 7302 7303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7305 fi 7306 7307 CFLAGS="$CFLAGS -Werror=implicit" 7308 7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7310printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7311 cacheid=xorg_cv_cc_flag__Werror_implicit 7312 if eval test \${$cacheid+y} 7313then : 7314 printf %s "(cached) " >&6 7315else case e in #( 7316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7317/* end confdefs.h. */ 7318int i; 7319int 7320main (void) 7321{ 7322 7323 ; 7324 return 0; 7325} 7326_ACEOF 7327if ac_fn_c_try_link "$LINENO" 7328then : 7329 eval $cacheid=yes 7330else case e in #( 7331 e) eval $cacheid=no ;; 7332esac 7333fi 7334rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7335 conftest$ac_exeext conftest.$ac_ext ;; 7336esac 7337fi 7338 7339 7340 CFLAGS="$xorg_testset_save_CFLAGS" 7341 7342 eval supported=\$$cacheid 7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7344printf "%s\n" "$supported" >&6; } 7345 if test "$supported" = "yes" ; then 7346 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7347 found="yes" 7348 fi 7349 fi 7350 7351 if test $found = "no" ; then 7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7354 fi 7355 7356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7358 fi 7359 7360 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7361 7362 { 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 7363printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7364 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7365 if eval test \${$cacheid+y} 7366then : 7367 printf %s "(cached) " >&6 7368else case e in #( 7369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7370/* end confdefs.h. */ 7371int i; 7372int 7373main (void) 7374{ 7375 7376 ; 7377 return 0; 7378} 7379_ACEOF 7380if ac_fn_c_try_link "$LINENO" 7381then : 7382 eval $cacheid=yes 7383else case e in #( 7384 e) eval $cacheid=no ;; 7385esac 7386fi 7387rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7388 conftest$ac_exeext conftest.$ac_ext ;; 7389esac 7390fi 7391 7392 7393 CFLAGS="$xorg_testset_save_CFLAGS" 7394 7395 eval supported=\$$cacheid 7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7397printf "%s\n" "$supported" >&6; } 7398 if test "$supported" = "yes" ; then 7399 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7400 found="yes" 7401 fi 7402 fi 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418xorg_testset_save_CFLAGS="$CFLAGS" 7419 7420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7424if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7425then : 7426 printf %s "(cached) " >&6 7427else case e in #( 7428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7429/* end confdefs.h. */ 7430int i; 7431_ACEOF 7432if ac_fn_c_try_compile "$LINENO" 7433then : 7434 xorg_cv_cc_flag_unknown_warning_option=yes 7435else case e in #( 7436 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7437esac 7438fi 7439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7440esac 7441fi 7442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7445 CFLAGS="$xorg_testset_save_CFLAGS" 7446fi 7447 7448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7451 fi 7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7455if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7456then : 7457 printf %s "(cached) " >&6 7458else case e in #( 7459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7460/* end confdefs.h. */ 7461int i; 7462_ACEOF 7463if ac_fn_c_try_compile "$LINENO" 7464then : 7465 xorg_cv_cc_flag_unused_command_line_argument=yes 7466else case e in #( 7467 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7468esac 7469fi 7470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7471esac 7472fi 7473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7474printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7476 CFLAGS="$xorg_testset_save_CFLAGS" 7477fi 7478 7479found="no" 7480 7481 if test $found = "no" ; then 7482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7484 fi 7485 7486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7488 fi 7489 7490 CFLAGS="$CFLAGS -Werror=nonnull" 7491 7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7493printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7494 cacheid=xorg_cv_cc_flag__Werror_nonnull 7495 if eval test \${$cacheid+y} 7496then : 7497 printf %s "(cached) " >&6 7498else case e in #( 7499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7500/* end confdefs.h. */ 7501int i; 7502int 7503main (void) 7504{ 7505 7506 ; 7507 return 0; 7508} 7509_ACEOF 7510if ac_fn_c_try_link "$LINENO" 7511then : 7512 eval $cacheid=yes 7513else case e in #( 7514 e) eval $cacheid=no ;; 7515esac 7516fi 7517rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7518 conftest$ac_exeext conftest.$ac_ext ;; 7519esac 7520fi 7521 7522 7523 CFLAGS="$xorg_testset_save_CFLAGS" 7524 7525 eval supported=\$$cacheid 7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7527printf "%s\n" "$supported" >&6; } 7528 if test "$supported" = "yes" ; then 7529 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7530 found="yes" 7531 fi 7532 fi 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548xorg_testset_save_CFLAGS="$CFLAGS" 7549 7550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7554if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7555then : 7556 printf %s "(cached) " >&6 7557else case e in #( 7558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7559/* end confdefs.h. */ 7560int i; 7561_ACEOF 7562if ac_fn_c_try_compile "$LINENO" 7563then : 7564 xorg_cv_cc_flag_unknown_warning_option=yes 7565else case e in #( 7566 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7567esac 7568fi 7569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7570esac 7571fi 7572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7573printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7575 CFLAGS="$xorg_testset_save_CFLAGS" 7576fi 7577 7578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7581 fi 7582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7584printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7585if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7586then : 7587 printf %s "(cached) " >&6 7588else case e in #( 7589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7590/* end confdefs.h. */ 7591int i; 7592_ACEOF 7593if ac_fn_c_try_compile "$LINENO" 7594then : 7595 xorg_cv_cc_flag_unused_command_line_argument=yes 7596else case e in #( 7597 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7598esac 7599fi 7600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7601esac 7602fi 7603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7604printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7606 CFLAGS="$xorg_testset_save_CFLAGS" 7607fi 7608 7609found="no" 7610 7611 if test $found = "no" ; then 7612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7614 fi 7615 7616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7618 fi 7619 7620 CFLAGS="$CFLAGS -Werror=init-self" 7621 7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7623printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7624 cacheid=xorg_cv_cc_flag__Werror_init_self 7625 if eval test \${$cacheid+y} 7626then : 7627 printf %s "(cached) " >&6 7628else case e in #( 7629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7630/* end confdefs.h. */ 7631int i; 7632int 7633main (void) 7634{ 7635 7636 ; 7637 return 0; 7638} 7639_ACEOF 7640if ac_fn_c_try_link "$LINENO" 7641then : 7642 eval $cacheid=yes 7643else case e in #( 7644 e) eval $cacheid=no ;; 7645esac 7646fi 7647rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7648 conftest$ac_exeext conftest.$ac_ext ;; 7649esac 7650fi 7651 7652 7653 CFLAGS="$xorg_testset_save_CFLAGS" 7654 7655 eval supported=\$$cacheid 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7657printf "%s\n" "$supported" >&6; } 7658 if test "$supported" = "yes" ; then 7659 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7660 found="yes" 7661 fi 7662 fi 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678xorg_testset_save_CFLAGS="$CFLAGS" 7679 7680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7683printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7684if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7685then : 7686 printf %s "(cached) " >&6 7687else case e in #( 7688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690int i; 7691_ACEOF 7692if ac_fn_c_try_compile "$LINENO" 7693then : 7694 xorg_cv_cc_flag_unknown_warning_option=yes 7695else case e in #( 7696 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7697esac 7698fi 7699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7700esac 7701fi 7702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7703printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7705 CFLAGS="$xorg_testset_save_CFLAGS" 7706fi 7707 7708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7711 fi 7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7714printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7715if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7716then : 7717 printf %s "(cached) " >&6 7718else case e in #( 7719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721int i; 7722_ACEOF 7723if ac_fn_c_try_compile "$LINENO" 7724then : 7725 xorg_cv_cc_flag_unused_command_line_argument=yes 7726else case e in #( 7727 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7728esac 7729fi 7730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7731esac 7732fi 7733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7734printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7736 CFLAGS="$xorg_testset_save_CFLAGS" 7737fi 7738 7739found="no" 7740 7741 if test $found = "no" ; then 7742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7744 fi 7745 7746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7748 fi 7749 7750 CFLAGS="$CFLAGS -Werror=main" 7751 7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7753printf %s "checking if $CC supports -Werror=main... " >&6; } 7754 cacheid=xorg_cv_cc_flag__Werror_main 7755 if eval test \${$cacheid+y} 7756then : 7757 printf %s "(cached) " >&6 7758else case e in #( 7759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760/* end confdefs.h. */ 7761int i; 7762int 7763main (void) 7764{ 7765 7766 ; 7767 return 0; 7768} 7769_ACEOF 7770if ac_fn_c_try_link "$LINENO" 7771then : 7772 eval $cacheid=yes 7773else case e in #( 7774 e) eval $cacheid=no ;; 7775esac 7776fi 7777rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7778 conftest$ac_exeext conftest.$ac_ext ;; 7779esac 7780fi 7781 7782 7783 CFLAGS="$xorg_testset_save_CFLAGS" 7784 7785 eval supported=\$$cacheid 7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7787printf "%s\n" "$supported" >&6; } 7788 if test "$supported" = "yes" ; then 7789 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7790 found="yes" 7791 fi 7792 fi 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808xorg_testset_save_CFLAGS="$CFLAGS" 7809 7810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7813printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7814if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7815then : 7816 printf %s "(cached) " >&6 7817else case e in #( 7818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820int i; 7821_ACEOF 7822if ac_fn_c_try_compile "$LINENO" 7823then : 7824 xorg_cv_cc_flag_unknown_warning_option=yes 7825else case e in #( 7826 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7827esac 7828fi 7829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7830esac 7831fi 7832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7833printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7835 CFLAGS="$xorg_testset_save_CFLAGS" 7836fi 7837 7838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7841 fi 7842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7844printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7845if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7846then : 7847 printf %s "(cached) " >&6 7848else case e in #( 7849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850/* end confdefs.h. */ 7851int i; 7852_ACEOF 7853if ac_fn_c_try_compile "$LINENO" 7854then : 7855 xorg_cv_cc_flag_unused_command_line_argument=yes 7856else case e in #( 7857 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7858esac 7859fi 7860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7861esac 7862fi 7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7866 CFLAGS="$xorg_testset_save_CFLAGS" 7867fi 7868 7869found="no" 7870 7871 if test $found = "no" ; then 7872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7874 fi 7875 7876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7878 fi 7879 7880 CFLAGS="$CFLAGS -Werror=missing-braces" 7881 7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7883printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7884 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7885 if eval test \${$cacheid+y} 7886then : 7887 printf %s "(cached) " >&6 7888else case e in #( 7889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7890/* end confdefs.h. */ 7891int i; 7892int 7893main (void) 7894{ 7895 7896 ; 7897 return 0; 7898} 7899_ACEOF 7900if ac_fn_c_try_link "$LINENO" 7901then : 7902 eval $cacheid=yes 7903else case e in #( 7904 e) eval $cacheid=no ;; 7905esac 7906fi 7907rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7908 conftest$ac_exeext conftest.$ac_ext ;; 7909esac 7910fi 7911 7912 7913 CFLAGS="$xorg_testset_save_CFLAGS" 7914 7915 eval supported=\$$cacheid 7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7917printf "%s\n" "$supported" >&6; } 7918 if test "$supported" = "yes" ; then 7919 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7920 found="yes" 7921 fi 7922 fi 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938xorg_testset_save_CFLAGS="$CFLAGS" 7939 7940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7944if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7945then : 7946 printf %s "(cached) " >&6 7947else case e in #( 7948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949/* end confdefs.h. */ 7950int i; 7951_ACEOF 7952if ac_fn_c_try_compile "$LINENO" 7953then : 7954 xorg_cv_cc_flag_unknown_warning_option=yes 7955else case e in #( 7956 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7957esac 7958fi 7959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7960esac 7961fi 7962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7965 CFLAGS="$xorg_testset_save_CFLAGS" 7966fi 7967 7968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7971 fi 7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7975if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7976then : 7977 printf %s "(cached) " >&6 7978else case e in #( 7979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980/* end confdefs.h. */ 7981int i; 7982_ACEOF 7983if ac_fn_c_try_compile "$LINENO" 7984then : 7985 xorg_cv_cc_flag_unused_command_line_argument=yes 7986else case e in #( 7987 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7988esac 7989fi 7990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7991esac 7992fi 7993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7994printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7996 CFLAGS="$xorg_testset_save_CFLAGS" 7997fi 7998 7999found="no" 8000 8001 if test $found = "no" ; then 8002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8004 fi 8005 8006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8008 fi 8009 8010 CFLAGS="$CFLAGS -Werror=sequence-point" 8011 8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8013printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8014 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8015 if eval test \${$cacheid+y} 8016then : 8017 printf %s "(cached) " >&6 8018else case e in #( 8019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8020/* end confdefs.h. */ 8021int i; 8022int 8023main (void) 8024{ 8025 8026 ; 8027 return 0; 8028} 8029_ACEOF 8030if ac_fn_c_try_link "$LINENO" 8031then : 8032 eval $cacheid=yes 8033else case e in #( 8034 e) eval $cacheid=no ;; 8035esac 8036fi 8037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8038 conftest$ac_exeext conftest.$ac_ext ;; 8039esac 8040fi 8041 8042 8043 CFLAGS="$xorg_testset_save_CFLAGS" 8044 8045 eval supported=\$$cacheid 8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8047printf "%s\n" "$supported" >&6; } 8048 if test "$supported" = "yes" ; then 8049 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8050 found="yes" 8051 fi 8052 fi 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068xorg_testset_save_CFLAGS="$CFLAGS" 8069 8070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8074if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8075then : 8076 printf %s "(cached) " >&6 8077else case e in #( 8078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8079/* end confdefs.h. */ 8080int i; 8081_ACEOF 8082if ac_fn_c_try_compile "$LINENO" 8083then : 8084 xorg_cv_cc_flag_unknown_warning_option=yes 8085else case e in #( 8086 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8087esac 8088fi 8089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8090esac 8091fi 8092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8093printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8095 CFLAGS="$xorg_testset_save_CFLAGS" 8096fi 8097 8098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8101 fi 8102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8104printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8105if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8106then : 8107 printf %s "(cached) " >&6 8108else case e in #( 8109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8110/* end confdefs.h. */ 8111int i; 8112_ACEOF 8113if ac_fn_c_try_compile "$LINENO" 8114then : 8115 xorg_cv_cc_flag_unused_command_line_argument=yes 8116else case e in #( 8117 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8118esac 8119fi 8120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8121esac 8122fi 8123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8126 CFLAGS="$xorg_testset_save_CFLAGS" 8127fi 8128 8129found="no" 8130 8131 if test $found = "no" ; then 8132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8134 fi 8135 8136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8138 fi 8139 8140 CFLAGS="$CFLAGS -Werror=return-type" 8141 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8143printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8144 cacheid=xorg_cv_cc_flag__Werror_return_type 8145 if eval test \${$cacheid+y} 8146then : 8147 printf %s "(cached) " >&6 8148else case e in #( 8149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8150/* end confdefs.h. */ 8151int i; 8152int 8153main (void) 8154{ 8155 8156 ; 8157 return 0; 8158} 8159_ACEOF 8160if ac_fn_c_try_link "$LINENO" 8161then : 8162 eval $cacheid=yes 8163else case e in #( 8164 e) eval $cacheid=no ;; 8165esac 8166fi 8167rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8168 conftest$ac_exeext conftest.$ac_ext ;; 8169esac 8170fi 8171 8172 8173 CFLAGS="$xorg_testset_save_CFLAGS" 8174 8175 eval supported=\$$cacheid 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8177printf "%s\n" "$supported" >&6; } 8178 if test "$supported" = "yes" ; then 8179 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8180 found="yes" 8181 fi 8182 fi 8183 8184 if test $found = "no" ; then 8185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8187 fi 8188 8189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8191 fi 8192 8193 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8194 8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8196printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8197 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8198 if eval test \${$cacheid+y} 8199then : 8200 printf %s "(cached) " >&6 8201else case e in #( 8202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8203/* end confdefs.h. */ 8204int i; 8205int 8206main (void) 8207{ 8208 8209 ; 8210 return 0; 8211} 8212_ACEOF 8213if ac_fn_c_try_link "$LINENO" 8214then : 8215 eval $cacheid=yes 8216else case e in #( 8217 e) eval $cacheid=no ;; 8218esac 8219fi 8220rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8221 conftest$ac_exeext conftest.$ac_ext ;; 8222esac 8223fi 8224 8225 8226 CFLAGS="$xorg_testset_save_CFLAGS" 8227 8228 eval supported=\$$cacheid 8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8230printf "%s\n" "$supported" >&6; } 8231 if test "$supported" = "yes" ; then 8232 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8233 found="yes" 8234 fi 8235 fi 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251xorg_testset_save_CFLAGS="$CFLAGS" 8252 8253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8257if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8258then : 8259 printf %s "(cached) " >&6 8260else case e in #( 8261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8262/* end confdefs.h. */ 8263int i; 8264_ACEOF 8265if ac_fn_c_try_compile "$LINENO" 8266then : 8267 xorg_cv_cc_flag_unknown_warning_option=yes 8268else case e in #( 8269 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8270esac 8271fi 8272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8273esac 8274fi 8275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8278 CFLAGS="$xorg_testset_save_CFLAGS" 8279fi 8280 8281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8284 fi 8285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8288if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8289then : 8290 printf %s "(cached) " >&6 8291else case e in #( 8292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8293/* end confdefs.h. */ 8294int i; 8295_ACEOF 8296if ac_fn_c_try_compile "$LINENO" 8297then : 8298 xorg_cv_cc_flag_unused_command_line_argument=yes 8299else case e in #( 8300 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8301esac 8302fi 8303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8304esac 8305fi 8306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8307printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8309 CFLAGS="$xorg_testset_save_CFLAGS" 8310fi 8311 8312found="no" 8313 8314 if test $found = "no" ; then 8315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8317 fi 8318 8319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8321 fi 8322 8323 CFLAGS="$CFLAGS -Werror=trigraphs" 8324 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8326printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8327 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8328 if eval test \${$cacheid+y} 8329then : 8330 printf %s "(cached) " >&6 8331else case e in #( 8332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8333/* end confdefs.h. */ 8334int i; 8335int 8336main (void) 8337{ 8338 8339 ; 8340 return 0; 8341} 8342_ACEOF 8343if ac_fn_c_try_link "$LINENO" 8344then : 8345 eval $cacheid=yes 8346else case e in #( 8347 e) eval $cacheid=no ;; 8348esac 8349fi 8350rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8351 conftest$ac_exeext conftest.$ac_ext ;; 8352esac 8353fi 8354 8355 8356 CFLAGS="$xorg_testset_save_CFLAGS" 8357 8358 eval supported=\$$cacheid 8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8360printf "%s\n" "$supported" >&6; } 8361 if test "$supported" = "yes" ; then 8362 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8363 found="yes" 8364 fi 8365 fi 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381xorg_testset_save_CFLAGS="$CFLAGS" 8382 8383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8387if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8388then : 8389 printf %s "(cached) " >&6 8390else case e in #( 8391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8392/* end confdefs.h. */ 8393int i; 8394_ACEOF 8395if ac_fn_c_try_compile "$LINENO" 8396then : 8397 xorg_cv_cc_flag_unknown_warning_option=yes 8398else case e in #( 8399 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8400esac 8401fi 8402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8403esac 8404fi 8405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8406printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8408 CFLAGS="$xorg_testset_save_CFLAGS" 8409fi 8410 8411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8414 fi 8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8417printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8418if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8419then : 8420 printf %s "(cached) " >&6 8421else case e in #( 8422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8423/* end confdefs.h. */ 8424int i; 8425_ACEOF 8426if ac_fn_c_try_compile "$LINENO" 8427then : 8428 xorg_cv_cc_flag_unused_command_line_argument=yes 8429else case e in #( 8430 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8431esac 8432fi 8433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8434esac 8435fi 8436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8439 CFLAGS="$xorg_testset_save_CFLAGS" 8440fi 8441 8442found="no" 8443 8444 if test $found = "no" ; then 8445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8447 fi 8448 8449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8451 fi 8452 8453 CFLAGS="$CFLAGS -Werror=array-bounds" 8454 8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8456printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8457 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8458 if eval test \${$cacheid+y} 8459then : 8460 printf %s "(cached) " >&6 8461else case e in #( 8462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8463/* end confdefs.h. */ 8464int i; 8465int 8466main (void) 8467{ 8468 8469 ; 8470 return 0; 8471} 8472_ACEOF 8473if ac_fn_c_try_link "$LINENO" 8474then : 8475 eval $cacheid=yes 8476else case e in #( 8477 e) eval $cacheid=no ;; 8478esac 8479fi 8480rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8481 conftest$ac_exeext conftest.$ac_ext ;; 8482esac 8483fi 8484 8485 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487 8488 eval supported=\$$cacheid 8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8490printf "%s\n" "$supported" >&6; } 8491 if test "$supported" = "yes" ; then 8492 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8493 found="yes" 8494 fi 8495 fi 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511xorg_testset_save_CFLAGS="$CFLAGS" 8512 8513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8516printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8517if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8518then : 8519 printf %s "(cached) " >&6 8520else case e in #( 8521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8522/* end confdefs.h. */ 8523int i; 8524_ACEOF 8525if ac_fn_c_try_compile "$LINENO" 8526then : 8527 xorg_cv_cc_flag_unknown_warning_option=yes 8528else case e in #( 8529 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8530esac 8531fi 8532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8533esac 8534fi 8535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8538 CFLAGS="$xorg_testset_save_CFLAGS" 8539fi 8540 8541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8544 fi 8545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8548if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8549then : 8550 printf %s "(cached) " >&6 8551else case e in #( 8552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8553/* end confdefs.h. */ 8554int i; 8555_ACEOF 8556if ac_fn_c_try_compile "$LINENO" 8557then : 8558 xorg_cv_cc_flag_unused_command_line_argument=yes 8559else case e in #( 8560 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8561esac 8562fi 8563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8564esac 8565fi 8566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8567printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8569 CFLAGS="$xorg_testset_save_CFLAGS" 8570fi 8571 8572found="no" 8573 8574 if test $found = "no" ; then 8575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8577 fi 8578 8579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8581 fi 8582 8583 CFLAGS="$CFLAGS -Werror=write-strings" 8584 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8586printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8587 cacheid=xorg_cv_cc_flag__Werror_write_strings 8588 if eval test \${$cacheid+y} 8589then : 8590 printf %s "(cached) " >&6 8591else case e in #( 8592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8593/* end confdefs.h. */ 8594int i; 8595int 8596main (void) 8597{ 8598 8599 ; 8600 return 0; 8601} 8602_ACEOF 8603if ac_fn_c_try_link "$LINENO" 8604then : 8605 eval $cacheid=yes 8606else case e in #( 8607 e) eval $cacheid=no ;; 8608esac 8609fi 8610rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8611 conftest$ac_exeext conftest.$ac_ext ;; 8612esac 8613fi 8614 8615 8616 CFLAGS="$xorg_testset_save_CFLAGS" 8617 8618 eval supported=\$$cacheid 8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8620printf "%s\n" "$supported" >&6; } 8621 if test "$supported" = "yes" ; then 8622 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8623 found="yes" 8624 fi 8625 fi 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641xorg_testset_save_CFLAGS="$CFLAGS" 8642 8643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8646printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8647if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8648then : 8649 printf %s "(cached) " >&6 8650else case e in #( 8651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8652/* end confdefs.h. */ 8653int i; 8654_ACEOF 8655if ac_fn_c_try_compile "$LINENO" 8656then : 8657 xorg_cv_cc_flag_unknown_warning_option=yes 8658else case e in #( 8659 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8660esac 8661fi 8662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8663esac 8664fi 8665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8666printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8668 CFLAGS="$xorg_testset_save_CFLAGS" 8669fi 8670 8671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8674 fi 8675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8677printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8678if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8679then : 8680 printf %s "(cached) " >&6 8681else case e in #( 8682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683/* end confdefs.h. */ 8684int i; 8685_ACEOF 8686if ac_fn_c_try_compile "$LINENO" 8687then : 8688 xorg_cv_cc_flag_unused_command_line_argument=yes 8689else case e in #( 8690 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8691esac 8692fi 8693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8694esac 8695fi 8696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8699 CFLAGS="$xorg_testset_save_CFLAGS" 8700fi 8701 8702found="no" 8703 8704 if test $found = "no" ; then 8705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8707 fi 8708 8709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8711 fi 8712 8713 CFLAGS="$CFLAGS -Werror=address" 8714 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8716printf %s "checking if $CC supports -Werror=address... " >&6; } 8717 cacheid=xorg_cv_cc_flag__Werror_address 8718 if eval test \${$cacheid+y} 8719then : 8720 printf %s "(cached) " >&6 8721else case e in #( 8722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8723/* end confdefs.h. */ 8724int i; 8725int 8726main (void) 8727{ 8728 8729 ; 8730 return 0; 8731} 8732_ACEOF 8733if ac_fn_c_try_link "$LINENO" 8734then : 8735 eval $cacheid=yes 8736else case e in #( 8737 e) eval $cacheid=no ;; 8738esac 8739fi 8740rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8741 conftest$ac_exeext conftest.$ac_ext ;; 8742esac 8743fi 8744 8745 8746 CFLAGS="$xorg_testset_save_CFLAGS" 8747 8748 eval supported=\$$cacheid 8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8750printf "%s\n" "$supported" >&6; } 8751 if test "$supported" = "yes" ; then 8752 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8753 found="yes" 8754 fi 8755 fi 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771xorg_testset_save_CFLAGS="$CFLAGS" 8772 8773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8777if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8778then : 8779 printf %s "(cached) " >&6 8780else case e in #( 8781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8782/* end confdefs.h. */ 8783int i; 8784_ACEOF 8785if ac_fn_c_try_compile "$LINENO" 8786then : 8787 xorg_cv_cc_flag_unknown_warning_option=yes 8788else case e in #( 8789 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8790esac 8791fi 8792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8793esac 8794fi 8795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8798 CFLAGS="$xorg_testset_save_CFLAGS" 8799fi 8800 8801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8804 fi 8805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8809then : 8810 printf %s "(cached) " >&6 8811else case e in #( 8812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813/* end confdefs.h. */ 8814int i; 8815_ACEOF 8816if ac_fn_c_try_compile "$LINENO" 8817then : 8818 xorg_cv_cc_flag_unused_command_line_argument=yes 8819else case e in #( 8820 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8821esac 8822fi 8823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8824esac 8825fi 8826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8827printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8829 CFLAGS="$xorg_testset_save_CFLAGS" 8830fi 8831 8832found="no" 8833 8834 if test $found = "no" ; then 8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8837 fi 8838 8839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8841 fi 8842 8843 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8844 8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8846printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8847 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8848 if eval test \${$cacheid+y} 8849then : 8850 printf %s "(cached) " >&6 8851else case e in #( 8852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8853/* end confdefs.h. */ 8854int i; 8855int 8856main (void) 8857{ 8858 8859 ; 8860 return 0; 8861} 8862_ACEOF 8863if ac_fn_c_try_link "$LINENO" 8864then : 8865 eval $cacheid=yes 8866else case e in #( 8867 e) eval $cacheid=no ;; 8868esac 8869fi 8870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8871 conftest$ac_exeext conftest.$ac_ext ;; 8872esac 8873fi 8874 8875 8876 CFLAGS="$xorg_testset_save_CFLAGS" 8877 8878 eval supported=\$$cacheid 8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8880printf "%s\n" "$supported" >&6; } 8881 if test "$supported" = "yes" ; then 8882 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8883 found="yes" 8884 fi 8885 fi 8886 8887 if test $found = "no" ; then 8888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8890 fi 8891 8892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8894 fi 8895 8896 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8897 8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8899printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8900 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8901 if eval test \${$cacheid+y} 8902then : 8903 printf %s "(cached) " >&6 8904else case e in #( 8905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907int i; 8908int 8909main (void) 8910{ 8911 8912 ; 8913 return 0; 8914} 8915_ACEOF 8916if ac_fn_c_try_link "$LINENO" 8917then : 8918 eval $cacheid=yes 8919else case e in #( 8920 e) eval $cacheid=no ;; 8921esac 8922fi 8923rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8924 conftest$ac_exeext conftest.$ac_ext ;; 8925esac 8926fi 8927 8928 8929 CFLAGS="$xorg_testset_save_CFLAGS" 8930 8931 eval supported=\$$cacheid 8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8933printf "%s\n" "$supported" >&6; } 8934 if test "$supported" = "yes" ; then 8935 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8936 found="yes" 8937 fi 8938 fi 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954xorg_testset_save_CFLAGS="$CFLAGS" 8955 8956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8960if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8961then : 8962 printf %s "(cached) " >&6 8963else case e in #( 8964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8965/* end confdefs.h. */ 8966int i; 8967_ACEOF 8968if ac_fn_c_try_compile "$LINENO" 8969then : 8970 xorg_cv_cc_flag_unknown_warning_option=yes 8971else case e in #( 8972 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8973esac 8974fi 8975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8976esac 8977fi 8978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8979printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8981 CFLAGS="$xorg_testset_save_CFLAGS" 8982fi 8983 8984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8987 fi 8988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8990printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8991if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8992then : 8993 printf %s "(cached) " >&6 8994else case e in #( 8995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8996/* end confdefs.h. */ 8997int i; 8998_ACEOF 8999if ac_fn_c_try_compile "$LINENO" 9000then : 9001 xorg_cv_cc_flag_unused_command_line_argument=yes 9002else case e in #( 9003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9004esac 9005fi 9006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9007esac 9008fi 9009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9012 CFLAGS="$xorg_testset_save_CFLAGS" 9013fi 9014 9015found="no" 9016 9017 if test $found = "no" ; then 9018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9020 fi 9021 9022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9024 fi 9025 9026 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9027 9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9029printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9030 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9031 if eval test \${$cacheid+y} 9032then : 9033 printf %s "(cached) " >&6 9034else case e in #( 9035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9036/* end confdefs.h. */ 9037int i; 9038int 9039main (void) 9040{ 9041 9042 ; 9043 return 0; 9044} 9045_ACEOF 9046if ac_fn_c_try_link "$LINENO" 9047then : 9048 eval $cacheid=yes 9049else case e in #( 9050 e) eval $cacheid=no ;; 9051esac 9052fi 9053rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9054 conftest$ac_exeext conftest.$ac_ext ;; 9055esac 9056fi 9057 9058 9059 CFLAGS="$xorg_testset_save_CFLAGS" 9060 9061 eval supported=\$$cacheid 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9063printf "%s\n" "$supported" >&6; } 9064 if test "$supported" = "yes" ; then 9065 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9066 found="yes" 9067 fi 9068 fi 9069 9070 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9071else 9072{ 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 9073printf "%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;} 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087xorg_testset_save_CFLAGS="$CFLAGS" 9088 9089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9093if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9094then : 9095 printf %s "(cached) " >&6 9096else case e in #( 9097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9098/* end confdefs.h. */ 9099int i; 9100_ACEOF 9101if ac_fn_c_try_compile "$LINENO" 9102then : 9103 xorg_cv_cc_flag_unknown_warning_option=yes 9104else case e in #( 9105 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9106esac 9107fi 9108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9109esac 9110fi 9111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9114 CFLAGS="$xorg_testset_save_CFLAGS" 9115fi 9116 9117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9120 fi 9121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9124if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9125then : 9126 printf %s "(cached) " >&6 9127else case e in #( 9128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9129/* end confdefs.h. */ 9130int i; 9131_ACEOF 9132if ac_fn_c_try_compile "$LINENO" 9133then : 9134 xorg_cv_cc_flag_unused_command_line_argument=yes 9135else case e in #( 9136 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9137esac 9138fi 9139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9140esac 9141fi 9142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9145 CFLAGS="$xorg_testset_save_CFLAGS" 9146fi 9147 9148found="no" 9149 9150 if test $found = "no" ; then 9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9153 fi 9154 9155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9157 fi 9158 9159 CFLAGS="$CFLAGS -Wimplicit" 9160 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9162printf %s "checking if $CC supports -Wimplicit... " >&6; } 9163 cacheid=xorg_cv_cc_flag__Wimplicit 9164 if eval test \${$cacheid+y} 9165then : 9166 printf %s "(cached) " >&6 9167else case e in #( 9168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9169/* end confdefs.h. */ 9170int i; 9171int 9172main (void) 9173{ 9174 9175 ; 9176 return 0; 9177} 9178_ACEOF 9179if ac_fn_c_try_link "$LINENO" 9180then : 9181 eval $cacheid=yes 9182else case e in #( 9183 e) eval $cacheid=no ;; 9184esac 9185fi 9186rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9187 conftest$ac_exeext conftest.$ac_ext ;; 9188esac 9189fi 9190 9191 9192 CFLAGS="$xorg_testset_save_CFLAGS" 9193 9194 eval supported=\$$cacheid 9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9196printf "%s\n" "$supported" >&6; } 9197 if test "$supported" = "yes" ; then 9198 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9199 found="yes" 9200 fi 9201 fi 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217xorg_testset_save_CFLAGS="$CFLAGS" 9218 9219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9222printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9223if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9224then : 9225 printf %s "(cached) " >&6 9226else case e in #( 9227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9228/* end confdefs.h. */ 9229int i; 9230_ACEOF 9231if ac_fn_c_try_compile "$LINENO" 9232then : 9233 xorg_cv_cc_flag_unknown_warning_option=yes 9234else case e in #( 9235 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9236esac 9237fi 9238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9239esac 9240fi 9241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9242printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9244 CFLAGS="$xorg_testset_save_CFLAGS" 9245fi 9246 9247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9250 fi 9251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9253printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9254if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9255then : 9256 printf %s "(cached) " >&6 9257else case e in #( 9258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9259/* end confdefs.h. */ 9260int i; 9261_ACEOF 9262if ac_fn_c_try_compile "$LINENO" 9263then : 9264 xorg_cv_cc_flag_unused_command_line_argument=yes 9265else case e in #( 9266 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9267esac 9268fi 9269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9270esac 9271fi 9272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9275 CFLAGS="$xorg_testset_save_CFLAGS" 9276fi 9277 9278found="no" 9279 9280 if test $found = "no" ; then 9281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9283 fi 9284 9285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9287 fi 9288 9289 CFLAGS="$CFLAGS -Wnonnull" 9290 9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9292printf %s "checking if $CC supports -Wnonnull... " >&6; } 9293 cacheid=xorg_cv_cc_flag__Wnonnull 9294 if eval test \${$cacheid+y} 9295then : 9296 printf %s "(cached) " >&6 9297else case e in #( 9298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9299/* end confdefs.h. */ 9300int i; 9301int 9302main (void) 9303{ 9304 9305 ; 9306 return 0; 9307} 9308_ACEOF 9309if ac_fn_c_try_link "$LINENO" 9310then : 9311 eval $cacheid=yes 9312else case e in #( 9313 e) eval $cacheid=no ;; 9314esac 9315fi 9316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9317 conftest$ac_exeext conftest.$ac_ext ;; 9318esac 9319fi 9320 9321 9322 CFLAGS="$xorg_testset_save_CFLAGS" 9323 9324 eval supported=\$$cacheid 9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9326printf "%s\n" "$supported" >&6; } 9327 if test "$supported" = "yes" ; then 9328 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9329 found="yes" 9330 fi 9331 fi 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347xorg_testset_save_CFLAGS="$CFLAGS" 9348 9349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9352printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9353if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9354then : 9355 printf %s "(cached) " >&6 9356else case e in #( 9357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9358/* end confdefs.h. */ 9359int i; 9360_ACEOF 9361if ac_fn_c_try_compile "$LINENO" 9362then : 9363 xorg_cv_cc_flag_unknown_warning_option=yes 9364else case e in #( 9365 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9366esac 9367fi 9368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9369esac 9370fi 9371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9374 CFLAGS="$xorg_testset_save_CFLAGS" 9375fi 9376 9377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9380 fi 9381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9384if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9385then : 9386 printf %s "(cached) " >&6 9387else case e in #( 9388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9389/* end confdefs.h. */ 9390int i; 9391_ACEOF 9392if ac_fn_c_try_compile "$LINENO" 9393then : 9394 xorg_cv_cc_flag_unused_command_line_argument=yes 9395else case e in #( 9396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9397esac 9398fi 9399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9400esac 9401fi 9402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9405 CFLAGS="$xorg_testset_save_CFLAGS" 9406fi 9407 9408found="no" 9409 9410 if test $found = "no" ; then 9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9413 fi 9414 9415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9417 fi 9418 9419 CFLAGS="$CFLAGS -Winit-self" 9420 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9422printf %s "checking if $CC supports -Winit-self... " >&6; } 9423 cacheid=xorg_cv_cc_flag__Winit_self 9424 if eval test \${$cacheid+y} 9425then : 9426 printf %s "(cached) " >&6 9427else case e in #( 9428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9429/* end confdefs.h. */ 9430int i; 9431int 9432main (void) 9433{ 9434 9435 ; 9436 return 0; 9437} 9438_ACEOF 9439if ac_fn_c_try_link "$LINENO" 9440then : 9441 eval $cacheid=yes 9442else case e in #( 9443 e) eval $cacheid=no ;; 9444esac 9445fi 9446rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9447 conftest$ac_exeext conftest.$ac_ext ;; 9448esac 9449fi 9450 9451 9452 CFLAGS="$xorg_testset_save_CFLAGS" 9453 9454 eval supported=\$$cacheid 9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9456printf "%s\n" "$supported" >&6; } 9457 if test "$supported" = "yes" ; then 9458 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9459 found="yes" 9460 fi 9461 fi 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477xorg_testset_save_CFLAGS="$CFLAGS" 9478 9479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9482printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9483if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9484then : 9485 printf %s "(cached) " >&6 9486else case e in #( 9487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9488/* end confdefs.h. */ 9489int i; 9490_ACEOF 9491if ac_fn_c_try_compile "$LINENO" 9492then : 9493 xorg_cv_cc_flag_unknown_warning_option=yes 9494else case e in #( 9495 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9496esac 9497fi 9498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9499esac 9500fi 9501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9504 CFLAGS="$xorg_testset_save_CFLAGS" 9505fi 9506 9507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9510 fi 9511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9514if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9515then : 9516 printf %s "(cached) " >&6 9517else case e in #( 9518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9519/* end confdefs.h. */ 9520int i; 9521_ACEOF 9522if ac_fn_c_try_compile "$LINENO" 9523then : 9524 xorg_cv_cc_flag_unused_command_line_argument=yes 9525else case e in #( 9526 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9527esac 9528fi 9529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9530esac 9531fi 9532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9535 CFLAGS="$xorg_testset_save_CFLAGS" 9536fi 9537 9538found="no" 9539 9540 if test $found = "no" ; then 9541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9543 fi 9544 9545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9547 fi 9548 9549 CFLAGS="$CFLAGS -Wmain" 9550 9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9552printf %s "checking if $CC supports -Wmain... " >&6; } 9553 cacheid=xorg_cv_cc_flag__Wmain 9554 if eval test \${$cacheid+y} 9555then : 9556 printf %s "(cached) " >&6 9557else case e in #( 9558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9559/* end confdefs.h. */ 9560int i; 9561int 9562main (void) 9563{ 9564 9565 ; 9566 return 0; 9567} 9568_ACEOF 9569if ac_fn_c_try_link "$LINENO" 9570then : 9571 eval $cacheid=yes 9572else case e in #( 9573 e) eval $cacheid=no ;; 9574esac 9575fi 9576rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9577 conftest$ac_exeext conftest.$ac_ext ;; 9578esac 9579fi 9580 9581 9582 CFLAGS="$xorg_testset_save_CFLAGS" 9583 9584 eval supported=\$$cacheid 9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9586printf "%s\n" "$supported" >&6; } 9587 if test "$supported" = "yes" ; then 9588 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9589 found="yes" 9590 fi 9591 fi 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607xorg_testset_save_CFLAGS="$CFLAGS" 9608 9609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9613if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9614then : 9615 printf %s "(cached) " >&6 9616else case e in #( 9617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9618/* end confdefs.h. */ 9619int i; 9620_ACEOF 9621if ac_fn_c_try_compile "$LINENO" 9622then : 9623 xorg_cv_cc_flag_unknown_warning_option=yes 9624else case e in #( 9625 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9626esac 9627fi 9628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9629esac 9630fi 9631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9634 CFLAGS="$xorg_testset_save_CFLAGS" 9635fi 9636 9637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9640 fi 9641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9644if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9645then : 9646 printf %s "(cached) " >&6 9647else case e in #( 9648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9649/* end confdefs.h. */ 9650int i; 9651_ACEOF 9652if ac_fn_c_try_compile "$LINENO" 9653then : 9654 xorg_cv_cc_flag_unused_command_line_argument=yes 9655else case e in #( 9656 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9657esac 9658fi 9659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9660esac 9661fi 9662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9663printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9665 CFLAGS="$xorg_testset_save_CFLAGS" 9666fi 9667 9668found="no" 9669 9670 if test $found = "no" ; then 9671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9673 fi 9674 9675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9677 fi 9678 9679 CFLAGS="$CFLAGS -Wmissing-braces" 9680 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9682printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9683 cacheid=xorg_cv_cc_flag__Wmissing_braces 9684 if eval test \${$cacheid+y} 9685then : 9686 printf %s "(cached) " >&6 9687else case e in #( 9688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9689/* end confdefs.h. */ 9690int i; 9691int 9692main (void) 9693{ 9694 9695 ; 9696 return 0; 9697} 9698_ACEOF 9699if ac_fn_c_try_link "$LINENO" 9700then : 9701 eval $cacheid=yes 9702else case e in #( 9703 e) eval $cacheid=no ;; 9704esac 9705fi 9706rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9707 conftest$ac_exeext conftest.$ac_ext ;; 9708esac 9709fi 9710 9711 9712 CFLAGS="$xorg_testset_save_CFLAGS" 9713 9714 eval supported=\$$cacheid 9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9716printf "%s\n" "$supported" >&6; } 9717 if test "$supported" = "yes" ; then 9718 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9719 found="yes" 9720 fi 9721 fi 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737xorg_testset_save_CFLAGS="$CFLAGS" 9738 9739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9743if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9744then : 9745 printf %s "(cached) " >&6 9746else case e in #( 9747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9748/* end confdefs.h. */ 9749int i; 9750_ACEOF 9751if ac_fn_c_try_compile "$LINENO" 9752then : 9753 xorg_cv_cc_flag_unknown_warning_option=yes 9754else case e in #( 9755 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9756esac 9757fi 9758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9759esac 9760fi 9761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9762printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9764 CFLAGS="$xorg_testset_save_CFLAGS" 9765fi 9766 9767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9770 fi 9771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9773printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9774if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9775then : 9776 printf %s "(cached) " >&6 9777else case e in #( 9778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9779/* end confdefs.h. */ 9780int i; 9781_ACEOF 9782if ac_fn_c_try_compile "$LINENO" 9783then : 9784 xorg_cv_cc_flag_unused_command_line_argument=yes 9785else case e in #( 9786 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9787esac 9788fi 9789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9790esac 9791fi 9792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9793printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9795 CFLAGS="$xorg_testset_save_CFLAGS" 9796fi 9797 9798found="no" 9799 9800 if test $found = "no" ; then 9801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9803 fi 9804 9805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9807 fi 9808 9809 CFLAGS="$CFLAGS -Wsequence-point" 9810 9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9812printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9813 cacheid=xorg_cv_cc_flag__Wsequence_point 9814 if eval test \${$cacheid+y} 9815then : 9816 printf %s "(cached) " >&6 9817else case e in #( 9818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9819/* end confdefs.h. */ 9820int i; 9821int 9822main (void) 9823{ 9824 9825 ; 9826 return 0; 9827} 9828_ACEOF 9829if ac_fn_c_try_link "$LINENO" 9830then : 9831 eval $cacheid=yes 9832else case e in #( 9833 e) eval $cacheid=no ;; 9834esac 9835fi 9836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9837 conftest$ac_exeext conftest.$ac_ext ;; 9838esac 9839fi 9840 9841 9842 CFLAGS="$xorg_testset_save_CFLAGS" 9843 9844 eval supported=\$$cacheid 9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9846printf "%s\n" "$supported" >&6; } 9847 if test "$supported" = "yes" ; then 9848 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9849 found="yes" 9850 fi 9851 fi 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867xorg_testset_save_CFLAGS="$CFLAGS" 9868 9869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9872printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9873if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9874then : 9875 printf %s "(cached) " >&6 9876else case e in #( 9877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9878/* end confdefs.h. */ 9879int i; 9880_ACEOF 9881if ac_fn_c_try_compile "$LINENO" 9882then : 9883 xorg_cv_cc_flag_unknown_warning_option=yes 9884else case e in #( 9885 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9886esac 9887fi 9888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9889esac 9890fi 9891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9892printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9894 CFLAGS="$xorg_testset_save_CFLAGS" 9895fi 9896 9897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 fi 9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9903printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9904if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9905then : 9906 printf %s "(cached) " >&6 9907else case e in #( 9908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909/* end confdefs.h. */ 9910int i; 9911_ACEOF 9912if ac_fn_c_try_compile "$LINENO" 9913then : 9914 xorg_cv_cc_flag_unused_command_line_argument=yes 9915else case e in #( 9916 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9917esac 9918fi 9919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9920esac 9921fi 9922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9923printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926fi 9927 9928found="no" 9929 9930 if test $found = "no" ; then 9931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9933 fi 9934 9935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9937 fi 9938 9939 CFLAGS="$CFLAGS -Wreturn-type" 9940 9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9942printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9943 cacheid=xorg_cv_cc_flag__Wreturn_type 9944 if eval test \${$cacheid+y} 9945then : 9946 printf %s "(cached) " >&6 9947else case e in #( 9948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9949/* end confdefs.h. */ 9950int i; 9951int 9952main (void) 9953{ 9954 9955 ; 9956 return 0; 9957} 9958_ACEOF 9959if ac_fn_c_try_link "$LINENO" 9960then : 9961 eval $cacheid=yes 9962else case e in #( 9963 e) eval $cacheid=no ;; 9964esac 9965fi 9966rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9967 conftest$ac_exeext conftest.$ac_ext ;; 9968esac 9969fi 9970 9971 9972 CFLAGS="$xorg_testset_save_CFLAGS" 9973 9974 eval supported=\$$cacheid 9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9976printf "%s\n" "$supported" >&6; } 9977 if test "$supported" = "yes" ; then 9978 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9979 found="yes" 9980 fi 9981 fi 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997xorg_testset_save_CFLAGS="$CFLAGS" 9998 9999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10003if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10004then : 10005 printf %s "(cached) " >&6 10006else case e in #( 10007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10008/* end confdefs.h. */ 10009int i; 10010_ACEOF 10011if ac_fn_c_try_compile "$LINENO" 10012then : 10013 xorg_cv_cc_flag_unknown_warning_option=yes 10014else case e in #( 10015 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10016esac 10017fi 10018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10019esac 10020fi 10021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10022printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10024 CFLAGS="$xorg_testset_save_CFLAGS" 10025fi 10026 10027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10030 fi 10031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10033printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10034if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10035then : 10036 printf %s "(cached) " >&6 10037else case e in #( 10038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10039/* end confdefs.h. */ 10040int i; 10041_ACEOF 10042if ac_fn_c_try_compile "$LINENO" 10043then : 10044 xorg_cv_cc_flag_unused_command_line_argument=yes 10045else case e in #( 10046 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10047esac 10048fi 10049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10050esac 10051fi 10052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10053printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10055 CFLAGS="$xorg_testset_save_CFLAGS" 10056fi 10057 10058found="no" 10059 10060 if test $found = "no" ; then 10061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10063 fi 10064 10065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10067 fi 10068 10069 CFLAGS="$CFLAGS -Wtrigraphs" 10070 10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10072printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10073 cacheid=xorg_cv_cc_flag__Wtrigraphs 10074 if eval test \${$cacheid+y} 10075then : 10076 printf %s "(cached) " >&6 10077else case e in #( 10078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10079/* end confdefs.h. */ 10080int i; 10081int 10082main (void) 10083{ 10084 10085 ; 10086 return 0; 10087} 10088_ACEOF 10089if ac_fn_c_try_link "$LINENO" 10090then : 10091 eval $cacheid=yes 10092else case e in #( 10093 e) eval $cacheid=no ;; 10094esac 10095fi 10096rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10097 conftest$ac_exeext conftest.$ac_ext ;; 10098esac 10099fi 10100 10101 10102 CFLAGS="$xorg_testset_save_CFLAGS" 10103 10104 eval supported=\$$cacheid 10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10106printf "%s\n" "$supported" >&6; } 10107 if test "$supported" = "yes" ; then 10108 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10109 found="yes" 10110 fi 10111 fi 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127xorg_testset_save_CFLAGS="$CFLAGS" 10128 10129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10132printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10133if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10134then : 10135 printf %s "(cached) " >&6 10136else case e in #( 10137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10138/* end confdefs.h. */ 10139int i; 10140_ACEOF 10141if ac_fn_c_try_compile "$LINENO" 10142then : 10143 xorg_cv_cc_flag_unknown_warning_option=yes 10144else case e in #( 10145 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10146esac 10147fi 10148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10149esac 10150fi 10151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10154 CFLAGS="$xorg_testset_save_CFLAGS" 10155fi 10156 10157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10160 fi 10161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10164if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10165then : 10166 printf %s "(cached) " >&6 10167else case e in #( 10168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169/* end confdefs.h. */ 10170int i; 10171_ACEOF 10172if ac_fn_c_try_compile "$LINENO" 10173then : 10174 xorg_cv_cc_flag_unused_command_line_argument=yes 10175else case e in #( 10176 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10177esac 10178fi 10179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10180esac 10181fi 10182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10183printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10185 CFLAGS="$xorg_testset_save_CFLAGS" 10186fi 10187 10188found="no" 10189 10190 if test $found = "no" ; then 10191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10193 fi 10194 10195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10197 fi 10198 10199 CFLAGS="$CFLAGS -Warray-bounds" 10200 10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10202printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10203 cacheid=xorg_cv_cc_flag__Warray_bounds 10204 if eval test \${$cacheid+y} 10205then : 10206 printf %s "(cached) " >&6 10207else case e in #( 10208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10209/* end confdefs.h. */ 10210int i; 10211int 10212main (void) 10213{ 10214 10215 ; 10216 return 0; 10217} 10218_ACEOF 10219if ac_fn_c_try_link "$LINENO" 10220then : 10221 eval $cacheid=yes 10222else case e in #( 10223 e) eval $cacheid=no ;; 10224esac 10225fi 10226rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10227 conftest$ac_exeext conftest.$ac_ext ;; 10228esac 10229fi 10230 10231 10232 CFLAGS="$xorg_testset_save_CFLAGS" 10233 10234 eval supported=\$$cacheid 10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10236printf "%s\n" "$supported" >&6; } 10237 if test "$supported" = "yes" ; then 10238 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10239 found="yes" 10240 fi 10241 fi 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257xorg_testset_save_CFLAGS="$CFLAGS" 10258 10259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10262printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10263if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10264then : 10265 printf %s "(cached) " >&6 10266else case e in #( 10267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10268/* end confdefs.h. */ 10269int i; 10270_ACEOF 10271if ac_fn_c_try_compile "$LINENO" 10272then : 10273 xorg_cv_cc_flag_unknown_warning_option=yes 10274else case e in #( 10275 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10276esac 10277fi 10278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10279esac 10280fi 10281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10282printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10284 CFLAGS="$xorg_testset_save_CFLAGS" 10285fi 10286 10287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10290 fi 10291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10293printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10294if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10295then : 10296 printf %s "(cached) " >&6 10297else case e in #( 10298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10299/* end confdefs.h. */ 10300int i; 10301_ACEOF 10302if ac_fn_c_try_compile "$LINENO" 10303then : 10304 xorg_cv_cc_flag_unused_command_line_argument=yes 10305else case e in #( 10306 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10307esac 10308fi 10309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10310esac 10311fi 10312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10313printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10315 CFLAGS="$xorg_testset_save_CFLAGS" 10316fi 10317 10318found="no" 10319 10320 if test $found = "no" ; then 10321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10323 fi 10324 10325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10327 fi 10328 10329 CFLAGS="$CFLAGS -Wwrite-strings" 10330 10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10332printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10333 cacheid=xorg_cv_cc_flag__Wwrite_strings 10334 if eval test \${$cacheid+y} 10335then : 10336 printf %s "(cached) " >&6 10337else case e in #( 10338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10339/* end confdefs.h. */ 10340int i; 10341int 10342main (void) 10343{ 10344 10345 ; 10346 return 0; 10347} 10348_ACEOF 10349if ac_fn_c_try_link "$LINENO" 10350then : 10351 eval $cacheid=yes 10352else case e in #( 10353 e) eval $cacheid=no ;; 10354esac 10355fi 10356rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10357 conftest$ac_exeext conftest.$ac_ext ;; 10358esac 10359fi 10360 10361 10362 CFLAGS="$xorg_testset_save_CFLAGS" 10363 10364 eval supported=\$$cacheid 10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10366printf "%s\n" "$supported" >&6; } 10367 if test "$supported" = "yes" ; then 10368 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10369 found="yes" 10370 fi 10371 fi 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387xorg_testset_save_CFLAGS="$CFLAGS" 10388 10389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10393if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10394then : 10395 printf %s "(cached) " >&6 10396else case e in #( 10397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10398/* end confdefs.h. */ 10399int i; 10400_ACEOF 10401if ac_fn_c_try_compile "$LINENO" 10402then : 10403 xorg_cv_cc_flag_unknown_warning_option=yes 10404else case e in #( 10405 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10406esac 10407fi 10408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10409esac 10410fi 10411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10414 CFLAGS="$xorg_testset_save_CFLAGS" 10415fi 10416 10417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10420 fi 10421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10424if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10425then : 10426 printf %s "(cached) " >&6 10427else case e in #( 10428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10429/* end confdefs.h. */ 10430int i; 10431_ACEOF 10432if ac_fn_c_try_compile "$LINENO" 10433then : 10434 xorg_cv_cc_flag_unused_command_line_argument=yes 10435else case e in #( 10436 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10437esac 10438fi 10439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10440esac 10441fi 10442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10443printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10445 CFLAGS="$xorg_testset_save_CFLAGS" 10446fi 10447 10448found="no" 10449 10450 if test $found = "no" ; then 10451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10453 fi 10454 10455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10457 fi 10458 10459 CFLAGS="$CFLAGS -Waddress" 10460 10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10462printf %s "checking if $CC supports -Waddress... " >&6; } 10463 cacheid=xorg_cv_cc_flag__Waddress 10464 if eval test \${$cacheid+y} 10465then : 10466 printf %s "(cached) " >&6 10467else case e in #( 10468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10469/* end confdefs.h. */ 10470int i; 10471int 10472main (void) 10473{ 10474 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479if ac_fn_c_try_link "$LINENO" 10480then : 10481 eval $cacheid=yes 10482else case e in #( 10483 e) eval $cacheid=no ;; 10484esac 10485fi 10486rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10487 conftest$ac_exeext conftest.$ac_ext ;; 10488esac 10489fi 10490 10491 10492 CFLAGS="$xorg_testset_save_CFLAGS" 10493 10494 eval supported=\$$cacheid 10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10496printf "%s\n" "$supported" >&6; } 10497 if test "$supported" = "yes" ; then 10498 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10499 found="yes" 10500 fi 10501 fi 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517xorg_testset_save_CFLAGS="$CFLAGS" 10518 10519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10522printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10523if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10524then : 10525 printf %s "(cached) " >&6 10526else case e in #( 10527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10528/* end confdefs.h. */ 10529int i; 10530_ACEOF 10531if ac_fn_c_try_compile "$LINENO" 10532then : 10533 xorg_cv_cc_flag_unknown_warning_option=yes 10534else case e in #( 10535 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10536esac 10537fi 10538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10539esac 10540fi 10541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10542printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10544 CFLAGS="$xorg_testset_save_CFLAGS" 10545fi 10546 10547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10550 fi 10551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10553printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10554if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10555then : 10556 printf %s "(cached) " >&6 10557else case e in #( 10558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10559/* end confdefs.h. */ 10560int i; 10561_ACEOF 10562if ac_fn_c_try_compile "$LINENO" 10563then : 10564 xorg_cv_cc_flag_unused_command_line_argument=yes 10565else case e in #( 10566 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10567esac 10568fi 10569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10570esac 10571fi 10572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10575 CFLAGS="$xorg_testset_save_CFLAGS" 10576fi 10577 10578found="no" 10579 10580 if test $found = "no" ; then 10581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10583 fi 10584 10585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10587 fi 10588 10589 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10590 10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10592printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10593 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10594 if eval test \${$cacheid+y} 10595then : 10596 printf %s "(cached) " >&6 10597else case e in #( 10598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10599/* end confdefs.h. */ 10600int i; 10601int 10602main (void) 10603{ 10604 10605 ; 10606 return 0; 10607} 10608_ACEOF 10609if ac_fn_c_try_link "$LINENO" 10610then : 10611 eval $cacheid=yes 10612else case e in #( 10613 e) eval $cacheid=no ;; 10614esac 10615fi 10616rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10617 conftest$ac_exeext conftest.$ac_ext ;; 10618esac 10619fi 10620 10621 10622 CFLAGS="$xorg_testset_save_CFLAGS" 10623 10624 eval supported=\$$cacheid 10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10626printf "%s\n" "$supported" >&6; } 10627 if test "$supported" = "yes" ; then 10628 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10629 found="yes" 10630 fi 10631 fi 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647xorg_testset_save_CFLAGS="$CFLAGS" 10648 10649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10652printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10653if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10654then : 10655 printf %s "(cached) " >&6 10656else case e in #( 10657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10658/* end confdefs.h. */ 10659int i; 10660_ACEOF 10661if ac_fn_c_try_compile "$LINENO" 10662then : 10663 xorg_cv_cc_flag_unknown_warning_option=yes 10664else case e in #( 10665 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10666esac 10667fi 10668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10669esac 10670fi 10671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10674 CFLAGS="$xorg_testset_save_CFLAGS" 10675fi 10676 10677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10680 fi 10681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10684if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10685then : 10686 printf %s "(cached) " >&6 10687else case e in #( 10688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10689/* end confdefs.h. */ 10690int i; 10691_ACEOF 10692if ac_fn_c_try_compile "$LINENO" 10693then : 10694 xorg_cv_cc_flag_unused_command_line_argument=yes 10695else case e in #( 10696 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10697esac 10698fi 10699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10700esac 10701fi 10702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10703printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10705 CFLAGS="$xorg_testset_save_CFLAGS" 10706fi 10707 10708found="no" 10709 10710 if test $found = "no" ; then 10711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10713 fi 10714 10715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10717 fi 10718 10719 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10720 10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10722printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10723 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10724 if eval test \${$cacheid+y} 10725then : 10726 printf %s "(cached) " >&6 10727else case e in #( 10728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10729/* end confdefs.h. */ 10730int i; 10731int 10732main (void) 10733{ 10734 10735 ; 10736 return 0; 10737} 10738_ACEOF 10739if ac_fn_c_try_link "$LINENO" 10740then : 10741 eval $cacheid=yes 10742else case e in #( 10743 e) eval $cacheid=no ;; 10744esac 10745fi 10746rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10747 conftest$ac_exeext conftest.$ac_ext ;; 10748esac 10749fi 10750 10751 10752 CFLAGS="$xorg_testset_save_CFLAGS" 10753 10754 eval supported=\$$cacheid 10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10756printf "%s\n" "$supported" >&6; } 10757 if test "$supported" = "yes" ; then 10758 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10759 found="yes" 10760 fi 10761 fi 10762 10763 10764fi 10765 10766 10767 10768 10769 10770 10771 10772 CWARNFLAGS="$BASE_CFLAGS" 10773 if test "x$GCC" = xyes ; then 10774 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10775 fi 10776 10777 10778 10779 10780 10781 10782 10783 10784# Check whether --enable-strict-compilation was given. 10785if test ${enable_strict_compilation+y} 10786then : 10787 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10788else case e in #( 10789 e) STRICT_COMPILE=no ;; 10790esac 10791fi 10792 10793 10794 10795 10796 10797 10798STRICT_CFLAGS="" 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812xorg_testset_save_CFLAGS="$CFLAGS" 10813 10814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10818if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10819then : 10820 printf %s "(cached) " >&6 10821else case e in #( 10822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10823/* end confdefs.h. */ 10824int i; 10825_ACEOF 10826if ac_fn_c_try_compile "$LINENO" 10827then : 10828 xorg_cv_cc_flag_unknown_warning_option=yes 10829else case e in #( 10830 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10831esac 10832fi 10833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10834esac 10835fi 10836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10839 CFLAGS="$xorg_testset_save_CFLAGS" 10840fi 10841 10842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10845 fi 10846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10849if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10850then : 10851 printf %s "(cached) " >&6 10852else case e in #( 10853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10854/* end confdefs.h. */ 10855int i; 10856_ACEOF 10857if ac_fn_c_try_compile "$LINENO" 10858then : 10859 xorg_cv_cc_flag_unused_command_line_argument=yes 10860else case e in #( 10861 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10862esac 10863fi 10864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10865esac 10866fi 10867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10870 CFLAGS="$xorg_testset_save_CFLAGS" 10871fi 10872 10873found="no" 10874 10875 if test $found = "no" ; then 10876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10878 fi 10879 10880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10882 fi 10883 10884 CFLAGS="$CFLAGS -pedantic" 10885 10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10887printf %s "checking if $CC supports -pedantic... " >&6; } 10888 cacheid=xorg_cv_cc_flag__pedantic 10889 if eval test \${$cacheid+y} 10890then : 10891 printf %s "(cached) " >&6 10892else case e in #( 10893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10894/* end confdefs.h. */ 10895int i; 10896int 10897main (void) 10898{ 10899 10900 ; 10901 return 0; 10902} 10903_ACEOF 10904if ac_fn_c_try_link "$LINENO" 10905then : 10906 eval $cacheid=yes 10907else case e in #( 10908 e) eval $cacheid=no ;; 10909esac 10910fi 10911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10912 conftest$ac_exeext conftest.$ac_ext ;; 10913esac 10914fi 10915 10916 10917 CFLAGS="$xorg_testset_save_CFLAGS" 10918 10919 eval supported=\$$cacheid 10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10921printf "%s\n" "$supported" >&6; } 10922 if test "$supported" = "yes" ; then 10923 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10924 found="yes" 10925 fi 10926 fi 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942xorg_testset_save_CFLAGS="$CFLAGS" 10943 10944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10948if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10949then : 10950 printf %s "(cached) " >&6 10951else case e in #( 10952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10953/* end confdefs.h. */ 10954int i; 10955_ACEOF 10956if ac_fn_c_try_compile "$LINENO" 10957then : 10958 xorg_cv_cc_flag_unknown_warning_option=yes 10959else case e in #( 10960 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10961esac 10962fi 10963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10964esac 10965fi 10966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10969 CFLAGS="$xorg_testset_save_CFLAGS" 10970fi 10971 10972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10975 fi 10976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10979if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10980then : 10981 printf %s "(cached) " >&6 10982else case e in #( 10983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10984/* end confdefs.h. */ 10985int i; 10986_ACEOF 10987if ac_fn_c_try_compile "$LINENO" 10988then : 10989 xorg_cv_cc_flag_unused_command_line_argument=yes 10990else case e in #( 10991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10992esac 10993fi 10994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10995esac 10996fi 10997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11000 CFLAGS="$xorg_testset_save_CFLAGS" 11001fi 11002 11003found="no" 11004 11005 if test $found = "no" ; then 11006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11008 fi 11009 11010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11012 fi 11013 11014 CFLAGS="$CFLAGS -Werror" 11015 11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11017printf %s "checking if $CC supports -Werror... " >&6; } 11018 cacheid=xorg_cv_cc_flag__Werror 11019 if eval test \${$cacheid+y} 11020then : 11021 printf %s "(cached) " >&6 11022else case e in #( 11023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11024/* end confdefs.h. */ 11025int i; 11026int 11027main (void) 11028{ 11029 11030 ; 11031 return 0; 11032} 11033_ACEOF 11034if ac_fn_c_try_link "$LINENO" 11035then : 11036 eval $cacheid=yes 11037else case e in #( 11038 e) eval $cacheid=no ;; 11039esac 11040fi 11041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11042 conftest$ac_exeext conftest.$ac_ext ;; 11043esac 11044fi 11045 11046 11047 CFLAGS="$xorg_testset_save_CFLAGS" 11048 11049 eval supported=\$$cacheid 11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11051printf "%s\n" "$supported" >&6; } 11052 if test "$supported" = "yes" ; then 11053 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11054 found="yes" 11055 fi 11056 fi 11057 11058 if test $found = "no" ; then 11059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11061 fi 11062 11063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11065 fi 11066 11067 CFLAGS="$CFLAGS -errwarn" 11068 11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11070printf %s "checking if $CC supports -errwarn... " >&6; } 11071 cacheid=xorg_cv_cc_flag__errwarn 11072 if eval test \${$cacheid+y} 11073then : 11074 printf %s "(cached) " >&6 11075else case e in #( 11076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11077/* end confdefs.h. */ 11078int i; 11079int 11080main (void) 11081{ 11082 11083 ; 11084 return 0; 11085} 11086_ACEOF 11087if ac_fn_c_try_link "$LINENO" 11088then : 11089 eval $cacheid=yes 11090else case e in #( 11091 e) eval $cacheid=no ;; 11092esac 11093fi 11094rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11095 conftest$ac_exeext conftest.$ac_ext ;; 11096esac 11097fi 11098 11099 11100 CFLAGS="$xorg_testset_save_CFLAGS" 11101 11102 eval supported=\$$cacheid 11103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11104printf "%s\n" "$supported" >&6; } 11105 if test "$supported" = "yes" ; then 11106 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11107 found="yes" 11108 fi 11109 fi 11110 11111 11112 11113# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11114# activate it with -Werror, so we add it here explicitly. 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128xorg_testset_save_CFLAGS="$CFLAGS" 11129 11130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11134if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11135then : 11136 printf %s "(cached) " >&6 11137else case e in #( 11138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11139/* end confdefs.h. */ 11140int i; 11141_ACEOF 11142if ac_fn_c_try_compile "$LINENO" 11143then : 11144 xorg_cv_cc_flag_unknown_warning_option=yes 11145else case e in #( 11146 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11147esac 11148fi 11149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11150esac 11151fi 11152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11155 CFLAGS="$xorg_testset_save_CFLAGS" 11156fi 11157 11158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11161 fi 11162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11165if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11166then : 11167 printf %s "(cached) " >&6 11168else case e in #( 11169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11170/* end confdefs.h. */ 11171int i; 11172_ACEOF 11173if ac_fn_c_try_compile "$LINENO" 11174then : 11175 xorg_cv_cc_flag_unused_command_line_argument=yes 11176else case e in #( 11177 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11178esac 11179fi 11180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11181esac 11182fi 11183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11184printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11186 CFLAGS="$xorg_testset_save_CFLAGS" 11187fi 11188 11189found="no" 11190 11191 if test $found = "no" ; then 11192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11194 fi 11195 11196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11198 fi 11199 11200 CFLAGS="$CFLAGS -Werror=attributes" 11201 11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11203printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11204 cacheid=xorg_cv_cc_flag__Werror_attributes 11205 if eval test \${$cacheid+y} 11206then : 11207 printf %s "(cached) " >&6 11208else case e in #( 11209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11210/* end confdefs.h. */ 11211int i; 11212int 11213main (void) 11214{ 11215 11216 ; 11217 return 0; 11218} 11219_ACEOF 11220if ac_fn_c_try_link "$LINENO" 11221then : 11222 eval $cacheid=yes 11223else case e in #( 11224 e) eval $cacheid=no ;; 11225esac 11226fi 11227rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11228 conftest$ac_exeext conftest.$ac_ext ;; 11229esac 11230fi 11231 11232 11233 CFLAGS="$xorg_testset_save_CFLAGS" 11234 11235 eval supported=\$$cacheid 11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11237printf "%s\n" "$supported" >&6; } 11238 if test "$supported" = "yes" ; then 11239 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11240 found="yes" 11241 fi 11242 fi 11243 11244 11245 11246if test "x$STRICT_COMPILE" = "xyes"; then 11247 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11248 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11249fi 11250 11251 11252 11253 11254 11255 11256 11257 11258cat >>confdefs.h <<_ACEOF 11259#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11260_ACEOF 11261 11262 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11263 if test "x$PVM" = "x"; then 11264 PVM="0" 11265 fi 11266 11267printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11268 11269 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11270 if test "x$PVP" = "x"; then 11271 PVP="0" 11272 fi 11273 11274printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11275 11276 11277 11278CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11279mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11280|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11281touch \$(top_srcdir)/ChangeLog; \ 11282echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11283 11284 11285 11286 11287macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11288INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11289mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11290|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11291touch \$(top_srcdir)/INSTALL; \ 11292echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11293 11294 11295 11296 11297 11298 11299case $host_os in 11300 solaris*) 11301 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11302 # check for a man page file found in later versions that use 11303 # traditional section numbers instead 11304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11305printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11306if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11307then : 11308 printf %s "(cached) " >&6 11309else case e in #( 11310 e) test "$cross_compiling" = yes && 11311 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11312if test -r "/usr/share/man/man7/attributes.7"; then 11313 ac_cv_file__usr_share_man_man7_attributes_7=yes 11314else 11315 ac_cv_file__usr_share_man_man7_attributes_7=no 11316fi ;; 11317esac 11318fi 11319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11320printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11321if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11322then : 11323 SYSV_MAN_SECTIONS=false 11324else case e in #( 11325 e) SYSV_MAN_SECTIONS=true ;; 11326esac 11327fi 11328 11329 ;; 11330 *) SYSV_MAN_SECTIONS=false ;; 11331esac 11332 11333if test x$APP_MAN_SUFFIX = x ; then 11334 APP_MAN_SUFFIX=1 11335fi 11336if test x$APP_MAN_DIR = x ; then 11337 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11338fi 11339 11340if test x$LIB_MAN_SUFFIX = x ; then 11341 LIB_MAN_SUFFIX=3 11342fi 11343if test x$LIB_MAN_DIR = x ; then 11344 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11345fi 11346 11347if test x$FILE_MAN_SUFFIX = x ; then 11348 case $SYSV_MAN_SECTIONS in 11349 true) FILE_MAN_SUFFIX=4 ;; 11350 *) FILE_MAN_SUFFIX=5 ;; 11351 esac 11352fi 11353if test x$FILE_MAN_DIR = x ; then 11354 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11355fi 11356 11357if test x$MISC_MAN_SUFFIX = x ; then 11358 case $SYSV_MAN_SECTIONS in 11359 true) MISC_MAN_SUFFIX=5 ;; 11360 *) MISC_MAN_SUFFIX=7 ;; 11361 esac 11362fi 11363if test x$MISC_MAN_DIR = x ; then 11364 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11365fi 11366 11367if test x$DRIVER_MAN_SUFFIX = x ; then 11368 case $SYSV_MAN_SECTIONS in 11369 true) DRIVER_MAN_SUFFIX=7 ;; 11370 *) DRIVER_MAN_SUFFIX=4 ;; 11371 esac 11372fi 11373if test x$DRIVER_MAN_DIR = x ; then 11374 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11375fi 11376 11377if test x$ADMIN_MAN_SUFFIX = x ; then 11378 case $SYSV_MAN_SECTIONS in 11379 true) ADMIN_MAN_SUFFIX=1m ;; 11380 *) ADMIN_MAN_SUFFIX=8 ;; 11381 esac 11382fi 11383if test x$ADMIN_MAN_DIR = x ; then 11384 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11385fi 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401XORG_MAN_PAGE="X Version 11" 11402 11403MAN_SUBSTS="\ 11404 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11405 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11406 -e 's|__xservername__|Xorg|g' \ 11407 -e 's|__xconfigfile__|xorg.conf|g' \ 11408 -e 's|__projectroot__|\$(prefix)|g' \ 11409 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11410 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11411 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11412 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11413 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11414 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11415 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11416 11417 11418 11419# Check whether --enable-silent-rules was given. 11420if test ${enable_silent_rules+y} 11421then : 11422 enableval=$enable_silent_rules; 11423fi 11424 11425case $enable_silent_rules in # ((( 11426 yes) AM_DEFAULT_VERBOSITY=0;; 11427 no) AM_DEFAULT_VERBOSITY=1;; 11428 *) AM_DEFAULT_VERBOSITY=0;; 11429esac 11430am_make=${MAKE-make} 11431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11432printf %s "checking whether $am_make supports nested variables... " >&6; } 11433if test ${am_cv_make_support_nested_variables+y} 11434then : 11435 printf %s "(cached) " >&6 11436else case e in #( 11437 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11438BAR0=false 11439BAR1=true 11440V=1 11441am__doit: 11442 @$(TRUE) 11443.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11444 am_cv_make_support_nested_variables=yes 11445else 11446 am_cv_make_support_nested_variables=no 11447fi ;; 11448esac 11449fi 11450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11451printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11452if test $am_cv_make_support_nested_variables = yes; then 11453 AM_V='$(V)' 11454 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11455else 11456 AM_V=$AM_DEFAULT_VERBOSITY 11457 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11458fi 11459AM_BACKSLASH='\' 11460 11461 11462 11463 11464# Checks for pkg-config packages 11465 11466pkg_failed=no 11467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XBIFF" >&5 11468printf %s "checking for XBIFF... " >&6; } 11469 11470if test -n "$XBIFF_CFLAGS"; then 11471 pkg_cv_XBIFF_CFLAGS="$XBIFF_CFLAGS" 11472 elif test -n "$PKG_CONFIG"; then 11473 if test -n "$PKG_CONFIG" && \ 11474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25\""; } >&5 11475 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25") 2>&5 11476 ac_status=$? 11477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11478 test $ac_status = 0; }; then 11479 pkg_cv_XBIFF_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25" 2>/dev/null` 11480 test "x$?" != "x0" && pkg_failed=yes 11481else 11482 pkg_failed=yes 11483fi 11484 else 11485 pkg_failed=untried 11486fi 11487if test -n "$XBIFF_LIBS"; then 11488 pkg_cv_XBIFF_LIBS="$XBIFF_LIBS" 11489 elif test -n "$PKG_CONFIG"; then 11490 if test -n "$PKG_CONFIG" && \ 11491 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25\""; } >&5 11492 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25") 2>&5 11493 ac_status=$? 11494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11495 test $ac_status = 0; }; then 11496 pkg_cv_XBIFF_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25" 2>/dev/null` 11497 test "x$?" != "x0" && pkg_failed=yes 11498else 11499 pkg_failed=yes 11500fi 11501 else 11502 pkg_failed=untried 11503fi 11504 11505 11506 11507if test $pkg_failed = yes; then 11508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11509printf "%s\n" "no" >&6; } 11510 11511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11512 _pkg_short_errors_supported=yes 11513else 11514 _pkg_short_errors_supported=no 11515fi 11516 if test $_pkg_short_errors_supported = yes; then 11517 XBIFF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25" 2>&1` 11518 else 11519 XBIFF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25" 2>&1` 11520 fi 11521 # Put the nasty error message in config.log where it belongs 11522 echo "$XBIFF_PKG_ERRORS" >&5 11523 11524 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.1 xbitmaps xext x11 xproto >= 7.0.25) were not met: 11525 11526$XBIFF_PKG_ERRORS 11527 11528Consider adjusting the PKG_CONFIG_PATH environment variable if you 11529installed software in a non-standard prefix. 11530 11531Alternatively, you may set the environment variables XBIFF_CFLAGS 11532and XBIFF_LIBS to avoid the need to call pkg-config. 11533See the pkg-config man page for more details." "$LINENO" 5 11534elif test $pkg_failed = untried; then 11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11536printf "%s\n" "no" >&6; } 11537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11538printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11539as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11540is in your PATH or set the PKG_CONFIG environment variable to the full 11541path to pkg-config. 11542 11543Alternatively, you may set the environment variables XBIFF_CFLAGS 11544and XBIFF_LIBS to avoid the need to call pkg-config. 11545See the pkg-config man page for more details. 11546 11547To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11548See 'config.log' for more details" "$LINENO" 5; } 11549else 11550 XBIFF_CFLAGS=$pkg_cv_XBIFF_CFLAGS 11551 XBIFF_LIBS=$pkg_cv_XBIFF_LIBS 11552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11553printf "%s\n" "yes" >&6; } 11554 11555fi 11556 11557# Checks for headers 11558ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" 11559if test "x$ac_cv_header_paths_h" = xyes 11560then : 11561 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h 11562 11563fi 11564 11565 11566# Checks for typedefs, structures, and compiler characteristics. 11567# Check whether --enable-largefile was given. 11568if test ${enable_largefile+y} 11569then : 11570 enableval=$enable_largefile; 11571fi 11572if test "$enable_largefile,$enable_year2038" != no,no 11573then : 11574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11575printf %s "checking for $CC option to enable large file support... " >&6; } 11576if test ${ac_cv_sys_largefile_opts+y} 11577then : 11578 printf %s "(cached) " >&6 11579else case e in #( 11580 e) ac_save_CC="$CC" 11581 ac_opt_found=no 11582 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11583 if test x"$ac_opt" != x"none needed" 11584then : 11585 CC="$ac_save_CC $ac_opt" 11586fi 11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11588/* end confdefs.h. */ 11589#include <sys/types.h> 11590#ifndef FTYPE 11591# define FTYPE off_t 11592#endif 11593 /* Check that FTYPE can represent 2**63 - 1 correctly. 11594 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11595 since some C++ compilers masquerading as C compilers 11596 incorrectly reject 9223372036854775807. */ 11597#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11598 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11599 && LARGE_FTYPE % 2147483647 == 1) 11600 ? 1 : -1]; 11601int 11602main (void) 11603{ 11604 11605 ; 11606 return 0; 11607} 11608_ACEOF 11609if ac_fn_c_try_compile "$LINENO" 11610then : 11611 if test x"$ac_opt" = x"none needed" 11612then : 11613 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11614 CC="$CC -DFTYPE=ino_t" 11615 if ac_fn_c_try_compile "$LINENO" 11616then : 11617 11618else case e in #( 11619 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11620 if ac_fn_c_try_compile "$LINENO" 11621then : 11622 ac_opt='-D_FILE_OFFSET_BITS=64' 11623fi 11624rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11625esac 11626fi 11627rm -f core conftest.err conftest.$ac_objext conftest.beam 11628fi 11629 ac_cv_sys_largefile_opts=$ac_opt 11630 ac_opt_found=yes 11631fi 11632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11633 test $ac_opt_found = no || break 11634 done 11635 CC="$ac_save_CC" 11636 11637 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11638esac 11639fi 11640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11641printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11642 11643ac_have_largefile=yes 11644case $ac_cv_sys_largefile_opts in #( 11645 "none needed") : 11646 ;; #( 11647 "supported through gnulib") : 11648 ;; #( 11649 "support not detected") : 11650 ac_have_largefile=no ;; #( 11651 "-D_FILE_OFFSET_BITS=64") : 11652 11653printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11654 ;; #( 11655 "-D_LARGE_FILES=1") : 11656 11657printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11658 ;; #( 11659 "-n32") : 11660 CC="$CC -n32" ;; #( 11661 *) : 11662 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11663esac 11664 11665if test "$enable_year2038" != no 11666then : 11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11668printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11669if test ${ac_cv_sys_year2038_opts+y} 11670then : 11671 printf %s "(cached) " >&6 11672else case e in #( 11673 e) ac_save_CPPFLAGS="$CPPFLAGS" 11674 ac_opt_found=no 11675 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 11676 if test x"$ac_opt" != x"none needed" 11677then : 11678 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11679fi 11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11681/* end confdefs.h. */ 11682 11683 #include <time.h> 11684 /* Check that time_t can represent 2**32 - 1 correctly. */ 11685 #define LARGE_TIME_T \\ 11686 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11687 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11688 && LARGE_TIME_T % 65537 == 0) 11689 ? 1 : -1]; 11690 11691int 11692main (void) 11693{ 11694 11695 ; 11696 return 0; 11697} 11698_ACEOF 11699if ac_fn_c_try_compile "$LINENO" 11700then : 11701 ac_cv_sys_year2038_opts="$ac_opt" 11702 ac_opt_found=yes 11703fi 11704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11705 test $ac_opt_found = no || break 11706 done 11707 CPPFLAGS="$ac_save_CPPFLAGS" 11708 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11709esac 11710fi 11711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11712printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11713 11714ac_have_year2038=yes 11715case $ac_cv_sys_year2038_opts in #( 11716 "none needed") : 11717 ;; #( 11718 "support not detected") : 11719 ac_have_year2038=no ;; #( 11720 "-D_TIME_BITS=64") : 11721 11722printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11723 ;; #( 11724 "-D__MINGW_USE_VC2005_COMPAT") : 11725 11726printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11727 ;; #( 11728 "-U_USE_32_BIT_TIME_T"*) : 11729 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11730printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11731as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11732will stop working after mid-January 2038. Remove 11733_USE_32BIT_TIME_T from the compiler flags. 11734See 'config.log' for more details" "$LINENO" 5; } ;; #( 11735 *) : 11736 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11737esac 11738 11739fi 11740 11741fi 11742 11743# Allow builder to set path to look for mailboxes 11744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mailbox directory" >&5 11745printf %s "checking for mailbox directory... " >&6; } 11746 11747# Check whether --with-mailbox-directory was given. 11748if test ${with_mailbox_directory+y} 11749then : 11750 withval=$with_mailbox_directory; mailbox_directory=$with_mailbox_directory 11751fi 11752 11753 11754if test "x$mailbox_directory" != "x"; then 11755 11756printf "%s\n" "#define MAILBOX_DIRECTORY \"$mailbox_directory\"" >>confdefs.h 11757 11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mailbox_directory" >&5 11759printf "%s\n" "$mailbox_directory" >&6; } 11760else 11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 11762printf "%s\n" "not set" >&6; } 11763fi 11764 11765ac_config_files="$ac_config_files Makefile man/Makefile" 11766 11767cat >confcache <<\_ACEOF 11768# This file is a shell script that caches the results of configure 11769# tests run on this system so they can be shared between configure 11770# scripts and configure runs, see configure's option --config-cache. 11771# It is not useful on other systems. If it contains results you don't 11772# want to keep, you may remove or edit it. 11773# 11774# config.status only pays attention to the cache file if you give it 11775# the --recheck option to rerun configure. 11776# 11777# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11778# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11779# following values. 11780 11781_ACEOF 11782 11783# The following way of writing the cache mishandles newlines in values, 11784# but we know of no workaround that is simple, portable, and efficient. 11785# So, we kill variables containing newlines. 11786# Ultrix sh set writes to stderr and can't be redirected directly, 11787# and sets the high bit in the cache file unless we assign to the vars. 11788( 11789 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11790 eval ac_val=\$$ac_var 11791 case $ac_val in #( 11792 *${as_nl}*) 11793 case $ac_var in #( 11794 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11795printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11796 esac 11797 case $ac_var in #( 11798 _ | IFS | as_nl) ;; #( 11799 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11800 *) { eval $ac_var=; unset $ac_var;} ;; 11801 esac ;; 11802 esac 11803 done 11804 11805 (set) 2>&1 | 11806 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11807 *${as_nl}ac_space=\ *) 11808 # 'set' does not quote correctly, so add quotes: double-quote 11809 # substitution turns \\\\ into \\, and sed turns \\ into \. 11810 sed -n \ 11811 "s/'/'\\\\''/g; 11812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11813 ;; #( 11814 *) 11815 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11817 ;; 11818 esac | 11819 sort 11820) | 11821 sed ' 11822 /^ac_cv_env_/b end 11823 t clear 11824 :clear 11825 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11826 t end 11827 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11828 :end' >>confcache 11829if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11830 if test -w "$cache_file"; then 11831 if test "x$cache_file" != "x/dev/null"; then 11832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11833printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11834 if test ! -f "$cache_file" || test -h "$cache_file"; then 11835 cat confcache >"$cache_file" 11836 else 11837 case $cache_file in #( 11838 */* | ?:*) 11839 mv -f confcache "$cache_file"$$ && 11840 mv -f "$cache_file"$$ "$cache_file" ;; #( 11841 *) 11842 mv -f confcache "$cache_file" ;; 11843 esac 11844 fi 11845 fi 11846 else 11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11848printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11849 fi 11850fi 11851rm -f confcache 11852 11853test "x$prefix" = xNONE && prefix=$ac_default_prefix 11854# Let make expand exec_prefix. 11855test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11856 11857DEFS=-DHAVE_CONFIG_H 11858 11859ac_libobjs= 11860ac_ltlibobjs= 11861U= 11862for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11863 # 1. Remove the extension, and $U if already installed. 11864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11865 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11867 # will be set to the directory where LIBOBJS objects are built. 11868 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11869 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11870done 11871LIBOBJS=$ac_libobjs 11872 11873LTLIBOBJS=$ac_ltlibobjs 11874 11875 11876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11877printf %s "checking that generated files are newer than configure... " >&6; } 11878 if test -n "$am_sleep_pid"; then 11879 # Hide warnings about reused PIDs. 11880 wait $am_sleep_pid 2>/dev/null 11881 fi 11882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11883printf "%s\n" "done" >&6; } 11884 if test -n "$EXEEXT"; then 11885 am__EXEEXT_TRUE= 11886 am__EXEEXT_FALSE='#' 11887else 11888 am__EXEEXT_TRUE='#' 11889 am__EXEEXT_FALSE= 11890fi 11891 11892if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11893 as_fn_error $? "conditional \"AMDEP\" was never defined. 11894Usually this means the macro was only invoked conditionally." "$LINENO" 5 11895fi 11896if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11897 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11898Usually this means the macro was only invoked conditionally." "$LINENO" 5 11899fi 11900# Check whether --enable-year2038 was given. 11901if test ${enable_year2038+y} 11902then : 11903 enableval=$enable_year2038; 11904fi 11905 11906 11907: "${CONFIG_STATUS=./config.status}" 11908ac_write_fail=0 11909ac_clean_files_save=$ac_clean_files 11910ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11912printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11913as_write_fail=0 11914cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11915#! $SHELL 11916# Generated by $as_me. 11917# Run this file to recreate the current configuration. 11918# Compiler output produced by configure, useful for debugging 11919# configure, is in config.log if it exists. 11920 11921debug=false 11922ac_cs_recheck=false 11923ac_cs_silent=false 11924 11925SHELL=\${CONFIG_SHELL-$SHELL} 11926export SHELL 11927_ASEOF 11928cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11929## -------------------- ## 11930## M4sh Initialization. ## 11931## -------------------- ## 11932 11933# Be more Bourne compatible 11934DUALCASE=1; export DUALCASE # for MKS sh 11935if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11936then : 11937 emulate sh 11938 NULLCMD=: 11939 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11940 # is contrary to our usage. Disable this feature. 11941 alias -g '${1+"$@"}'='"$@"' 11942 setopt NO_GLOB_SUBST 11943else case e in #( 11944 e) case `(set -o) 2>/dev/null` in #( 11945 *posix*) : 11946 set -o posix ;; #( 11947 *) : 11948 ;; 11949esac ;; 11950esac 11951fi 11952 11953 11954 11955# Reset variables that may have inherited troublesome values from 11956# the environment. 11957 11958# IFS needs to be set, to space, tab, and newline, in precisely that order. 11959# (If _AS_PATH_WALK were called with IFS unset, it would have the 11960# side effect of setting IFS to empty, thus disabling word splitting.) 11961# Quoting is to prevent editors from complaining about space-tab. 11962as_nl=' 11963' 11964export as_nl 11965IFS=" "" $as_nl" 11966 11967PS1='$ ' 11968PS2='> ' 11969PS4='+ ' 11970 11971# Ensure predictable behavior from utilities with locale-dependent output. 11972LC_ALL=C 11973export LC_ALL 11974LANGUAGE=C 11975export LANGUAGE 11976 11977# We cannot yet rely on "unset" to work, but we need these variables 11978# to be unset--not just set to an empty or harmless value--now, to 11979# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11980# also avoids known problems related to "unset" and subshell syntax 11981# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11982for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11983do eval test \${$as_var+y} \ 11984 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11985done 11986 11987# Ensure that fds 0, 1, and 2 are open. 11988if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11989if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11990if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11991 11992# The user is always right. 11993if ${PATH_SEPARATOR+false} :; then 11994 PATH_SEPARATOR=: 11995 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11996 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11997 PATH_SEPARATOR=';' 11998 } 11999fi 12000 12001 12002# Find who we are. Look in the path if we contain no directory separator. 12003as_myself= 12004case $0 in #(( 12005 *[\\/]* ) as_myself=$0 ;; 12006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12007for as_dir in $PATH 12008do 12009 IFS=$as_save_IFS 12010 case $as_dir in #((( 12011 '') as_dir=./ ;; 12012 */) ;; 12013 *) as_dir=$as_dir/ ;; 12014 esac 12015 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12016 done 12017IFS=$as_save_IFS 12018 12019 ;; 12020esac 12021# We did not find ourselves, most probably we were run as 'sh COMMAND' 12022# in which case we are not to be found in the path. 12023if test "x$as_myself" = x; then 12024 as_myself=$0 12025fi 12026if test ! -f "$as_myself"; then 12027 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12028 exit 1 12029fi 12030 12031 12032 12033# as_fn_error STATUS ERROR [LINENO LOG_FD] 12034# ---------------------------------------- 12035# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12036# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12037# script with STATUS, using 1 if that was 0. 12038as_fn_error () 12039{ 12040 as_status=$1; test $as_status -eq 0 && as_status=1 12041 if test "$4"; then 12042 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12044 fi 12045 printf "%s\n" "$as_me: error: $2" >&2 12046 as_fn_exit $as_status 12047} # as_fn_error 12048 12049 12050# as_fn_set_status STATUS 12051# ----------------------- 12052# Set $? to STATUS, without forking. 12053as_fn_set_status () 12054{ 12055 return $1 12056} # as_fn_set_status 12057 12058# as_fn_exit STATUS 12059# ----------------- 12060# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12061as_fn_exit () 12062{ 12063 set +e 12064 as_fn_set_status $1 12065 exit $1 12066} # as_fn_exit 12067 12068# as_fn_unset VAR 12069# --------------- 12070# Portably unset VAR. 12071as_fn_unset () 12072{ 12073 { eval $1=; unset $1;} 12074} 12075as_unset=as_fn_unset 12076 12077# as_fn_append VAR VALUE 12078# ---------------------- 12079# Append the text in VALUE to the end of the definition contained in VAR. Take 12080# advantage of any shell optimizations that allow amortized linear growth over 12081# repeated appends, instead of the typical quadratic growth present in naive 12082# implementations. 12083if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12084then : 12085 eval 'as_fn_append () 12086 { 12087 eval $1+=\$2 12088 }' 12089else case e in #( 12090 e) as_fn_append () 12091 { 12092 eval $1=\$$1\$2 12093 } ;; 12094esac 12095fi # as_fn_append 12096 12097# as_fn_arith ARG... 12098# ------------------ 12099# Perform arithmetic evaluation on the ARGs, and store the result in the 12100# global $as_val. Take advantage of shells that can avoid forks. The arguments 12101# must be portable across $(()) and expr. 12102if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12103then : 12104 eval 'as_fn_arith () 12105 { 12106 as_val=$(( $* )) 12107 }' 12108else case e in #( 12109 e) as_fn_arith () 12110 { 12111 as_val=`expr "$@" || test $? -eq 1` 12112 } ;; 12113esac 12114fi # as_fn_arith 12115 12116 12117if expr a : '\(a\)' >/dev/null 2>&1 && 12118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12119 as_expr=expr 12120else 12121 as_expr=false 12122fi 12123 12124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12125 as_basename=basename 12126else 12127 as_basename=false 12128fi 12129 12130if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12131 as_dirname=dirname 12132else 12133 as_dirname=false 12134fi 12135 12136as_me=`$as_basename -- "$0" || 12137$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12138 X"$0" : 'X\(//\)$' \| \ 12139 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12140printf "%s\n" X/"$0" | 12141 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12142 s//\1/ 12143 q 12144 } 12145 /^X\/\(\/\/\)$/{ 12146 s//\1/ 12147 q 12148 } 12149 /^X\/\(\/\).*/{ 12150 s//\1/ 12151 q 12152 } 12153 s/.*/./; q'` 12154 12155# Avoid depending upon Character Ranges. 12156as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12157as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12158as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12159as_cr_digits='0123456789' 12160as_cr_alnum=$as_cr_Letters$as_cr_digits 12161 12162 12163# Determine whether it's possible to make 'echo' print without a newline. 12164# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12165# for compatibility with existing Makefiles. 12166ECHO_C= ECHO_N= ECHO_T= 12167case `echo -n x` in #((((( 12168-n*) 12169 case `echo 'xy\c'` in 12170 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12171 xy) ECHO_C='\c';; 12172 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12173 ECHO_T=' ';; 12174 esac;; 12175*) 12176 ECHO_N='-n';; 12177esac 12178 12179# For backward compatibility with old third-party macros, we provide 12180# the shell variables $as_echo and $as_echo_n. New code should use 12181# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12182as_echo='printf %s\n' 12183as_echo_n='printf %s' 12184 12185rm -f conf$$ conf$$.exe conf$$.file 12186if test -d conf$$.dir; then 12187 rm -f conf$$.dir/conf$$.file 12188else 12189 rm -f conf$$.dir 12190 mkdir conf$$.dir 2>/dev/null 12191fi 12192if (echo >conf$$.file) 2>/dev/null; then 12193 if ln -s conf$$.file conf$$ 2>/dev/null; then 12194 as_ln_s='ln -s' 12195 # ... but there are two gotchas: 12196 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12197 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12198 # In both cases, we have to default to 'cp -pR'. 12199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12200 as_ln_s='cp -pR' 12201 elif ln conf$$.file conf$$ 2>/dev/null; then 12202 as_ln_s=ln 12203 else 12204 as_ln_s='cp -pR' 12205 fi 12206else 12207 as_ln_s='cp -pR' 12208fi 12209rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12210rmdir conf$$.dir 2>/dev/null 12211 12212 12213# as_fn_mkdir_p 12214# ------------- 12215# Create "$as_dir" as a directory, including parents if necessary. 12216as_fn_mkdir_p () 12217{ 12218 12219 case $as_dir in #( 12220 -*) as_dir=./$as_dir;; 12221 esac 12222 test -d "$as_dir" || eval $as_mkdir_p || { 12223 as_dirs= 12224 while :; do 12225 case $as_dir in #( 12226 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12227 *) as_qdir=$as_dir;; 12228 esac 12229 as_dirs="'$as_qdir' $as_dirs" 12230 as_dir=`$as_dirname -- "$as_dir" || 12231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12232 X"$as_dir" : 'X\(//\)[^/]' \| \ 12233 X"$as_dir" : 'X\(//\)$' \| \ 12234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12235printf "%s\n" X"$as_dir" | 12236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12237 s//\1/ 12238 q 12239 } 12240 /^X\(\/\/\)[^/].*/{ 12241 s//\1/ 12242 q 12243 } 12244 /^X\(\/\/\)$/{ 12245 s//\1/ 12246 q 12247 } 12248 /^X\(\/\).*/{ 12249 s//\1/ 12250 q 12251 } 12252 s/.*/./; q'` 12253 test -d "$as_dir" && break 12254 done 12255 test -z "$as_dirs" || eval "mkdir $as_dirs" 12256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12257 12258 12259} # as_fn_mkdir_p 12260if mkdir -p . 2>/dev/null; then 12261 as_mkdir_p='mkdir -p "$as_dir"' 12262else 12263 test -d ./-p && rmdir ./-p 12264 as_mkdir_p=false 12265fi 12266 12267 12268# as_fn_executable_p FILE 12269# ----------------------- 12270# Test if FILE is an executable regular file. 12271as_fn_executable_p () 12272{ 12273 test -f "$1" && test -x "$1" 12274} # as_fn_executable_p 12275as_test_x='test -x' 12276as_executable_p=as_fn_executable_p 12277 12278# Sed expression to map a string onto a valid CPP name. 12279as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12280as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12281 12282# Sed expression to map a string onto a valid variable name. 12283as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12284as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12285 12286 12287exec 6>&1 12288## ----------------------------------- ## 12289## Main body of $CONFIG_STATUS script. ## 12290## ----------------------------------- ## 12291_ASEOF 12292test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12293 12294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12295# Save the log message, to keep $0 and so on meaningful, and to 12296# report actual input values of CONFIG_FILES etc. instead of their 12297# values after options handling. 12298ac_log=" 12299This file was extended by xbiff $as_me 1.0.5, which was 12300generated by GNU Autoconf 2.72. Invocation command line was 12301 12302 CONFIG_FILES = $CONFIG_FILES 12303 CONFIG_HEADERS = $CONFIG_HEADERS 12304 CONFIG_LINKS = $CONFIG_LINKS 12305 CONFIG_COMMANDS = $CONFIG_COMMANDS 12306 $ $0 $@ 12307 12308on `(hostname || uname -n) 2>/dev/null | sed 1q` 12309" 12310 12311_ACEOF 12312 12313case $ac_config_files in *" 12314"*) set x $ac_config_files; shift; ac_config_files=$*;; 12315esac 12316 12317case $ac_config_headers in *" 12318"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12319esac 12320 12321 12322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12323# Files that config.status was made for. 12324config_files="$ac_config_files" 12325config_headers="$ac_config_headers" 12326config_commands="$ac_config_commands" 12327 12328_ACEOF 12329 12330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12331ac_cs_usage="\ 12332'$as_me' instantiates files and other configuration actions 12333from templates according to the current configuration. Unless the files 12334and actions are specified as TAGs, all are instantiated by default. 12335 12336Usage: $0 [OPTION]... [TAG]... 12337 12338 -h, --help print this help, then exit 12339 -V, --version print version number and configuration settings, then exit 12340 --config print configuration, then exit 12341 -q, --quiet, --silent 12342 do not print progress messages 12343 -d, --debug don't remove temporary files 12344 --recheck update $as_me by reconfiguring in the same conditions 12345 --file=FILE[:TEMPLATE] 12346 instantiate the configuration file FILE 12347 --header=FILE[:TEMPLATE] 12348 instantiate the configuration header FILE 12349 12350Configuration files: 12351$config_files 12352 12353Configuration headers: 12354$config_headers 12355 12356Configuration commands: 12357$config_commands 12358 12359Report bugs to <https://gitlab.freedesktop.org/xorg/app/xbiff/issues>." 12360 12361_ACEOF 12362ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12363ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12365ac_cs_config='$ac_cs_config_escaped' 12366ac_cs_version="\\ 12367xbiff config.status 1.0.5 12368configured by $0, generated by GNU Autoconf 2.72, 12369 with options \\"\$ac_cs_config\\" 12370 12371Copyright (C) 2023 Free Software Foundation, Inc. 12372This config.status script is free software; the Free Software Foundation 12373gives unlimited permission to copy, distribute and modify it." 12374 12375ac_pwd='$ac_pwd' 12376srcdir='$srcdir' 12377INSTALL='$INSTALL' 12378MKDIR_P='$MKDIR_P' 12379AWK='$AWK' 12380test -n "\$AWK" || AWK=awk 12381_ACEOF 12382 12383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12384# The default lists apply if the user does not specify any file. 12385ac_need_defaults=: 12386while test $# != 0 12387do 12388 case $1 in 12389 --*=?*) 12390 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12391 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12392 ac_shift=: 12393 ;; 12394 --*=) 12395 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12396 ac_optarg= 12397 ac_shift=: 12398 ;; 12399 *) 12400 ac_option=$1 12401 ac_optarg=$2 12402 ac_shift=shift 12403 ;; 12404 esac 12405 12406 case $ac_option in 12407 # Handling of the options. 12408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12409 ac_cs_recheck=: ;; 12410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12411 printf "%s\n" "$ac_cs_version"; exit ;; 12412 --config | --confi | --conf | --con | --co | --c ) 12413 printf "%s\n" "$ac_cs_config"; exit ;; 12414 --debug | --debu | --deb | --de | --d | -d ) 12415 debug=: ;; 12416 --file | --fil | --fi | --f ) 12417 $ac_shift 12418 case $ac_optarg in 12419 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12420 '') as_fn_error $? "missing file argument" ;; 12421 esac 12422 as_fn_append CONFIG_FILES " '$ac_optarg'" 12423 ac_need_defaults=false;; 12424 --header | --heade | --head | --hea ) 12425 $ac_shift 12426 case $ac_optarg in 12427 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12428 esac 12429 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12430 ac_need_defaults=false;; 12431 --he | --h) 12432 # Conflict between --help and --header 12433 as_fn_error $? "ambiguous option: '$1' 12434Try '$0 --help' for more information.";; 12435 --help | --hel | -h ) 12436 printf "%s\n" "$ac_cs_usage"; exit ;; 12437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12438 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12439 ac_cs_silent=: ;; 12440 12441 # This is an error. 12442 -*) as_fn_error $? "unrecognized option: '$1' 12443Try '$0 --help' for more information." ;; 12444 12445 *) as_fn_append ac_config_targets " $1" 12446 ac_need_defaults=false ;; 12447 12448 esac 12449 shift 12450done 12451 12452ac_configure_extra_args= 12453 12454if $ac_cs_silent; then 12455 exec 6>/dev/null 12456 ac_configure_extra_args="$ac_configure_extra_args --silent" 12457fi 12458 12459_ACEOF 12460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12461if \$ac_cs_recheck; then 12462 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12463 shift 12464 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12465 CONFIG_SHELL='$SHELL' 12466 export CONFIG_SHELL 12467 exec "\$@" 12468fi 12469 12470_ACEOF 12471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12472exec 5>>config.log 12473{ 12474 echo 12475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12476## Running $as_me. ## 12477_ASBOX 12478 printf "%s\n" "$ac_log" 12479} >&5 12480 12481_ACEOF 12482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12483# 12484# INIT-COMMANDS 12485# 12486AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12487 12488_ACEOF 12489 12490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12491 12492# Handling of arguments. 12493for ac_config_target in $ac_config_targets 12494do 12495 case $ac_config_target in 12496 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12497 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12499 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12500 12501 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12502 esac 12503done 12504 12505 12506# If the user did not use the arguments to specify the items to instantiate, 12507# then the envvar interface is used. Set only those that are not. 12508# We use the long form for the default assignment because of an extremely 12509# bizarre bug on SunOS 4.1.3. 12510if $ac_need_defaults; then 12511 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12512 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12513 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12514fi 12515 12516# Have a temporary directory for convenience. Make it in the build tree 12517# simply because there is no reason against having it here, and in addition, 12518# creating and moving files from /tmp can sometimes cause problems. 12519# Hook for its removal unless debugging. 12520# Note that there is a small window in which the directory will not be cleaned: 12521# after its creation but before its name has been assigned to '$tmp'. 12522$debug || 12523{ 12524 tmp= ac_tmp= 12525 trap 'exit_status=$? 12526 : "${ac_tmp:=$tmp}" 12527 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12528' 0 12529 trap 'as_fn_exit 1' 1 2 13 15 12530} 12531# Create a (secure) tmp directory for tmp files. 12532 12533{ 12534 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12535 test -d "$tmp" 12536} || 12537{ 12538 tmp=./conf$$-$RANDOM 12539 (umask 077 && mkdir "$tmp") 12540} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12541ac_tmp=$tmp 12542 12543# Set up the scripts for CONFIG_FILES section. 12544# No need to generate them if there are no CONFIG_FILES. 12545# This happens for instance with './config.status config.h'. 12546if test -n "$CONFIG_FILES"; then 12547 12548 12549ac_cr=`echo X | tr X '\015'` 12550# On cygwin, bash can eat \r inside `` if the user requested igncr. 12551# But we know of no other shell where ac_cr would be empty at this 12552# point, so we can use a bashism as a fallback. 12553if test "x$ac_cr" = x; then 12554 eval ac_cr=\$\'\\r\' 12555fi 12556ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12557if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12558 ac_cs_awk_cr='\\r' 12559else 12560 ac_cs_awk_cr=$ac_cr 12561fi 12562 12563echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12564_ACEOF 12565 12566 12567{ 12568 echo "cat >conf$$subs.awk <<_ACEOF" && 12569 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12570 echo "_ACEOF" 12571} >conf$$subs.sh || 12572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12573ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12574ac_delim='%!_!# ' 12575for ac_last_try in false false false false false :; do 12576 . ./conf$$subs.sh || 12577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12578 12579 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12580 if test $ac_delim_n = $ac_delim_num; then 12581 break 12582 elif $ac_last_try; then 12583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12584 else 12585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12586 fi 12587done 12588rm -f conf$$subs.sh 12589 12590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12591cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12592_ACEOF 12593sed -n ' 12594h 12595s/^/S["/; s/!.*/"]=/ 12596p 12597g 12598s/^[^!]*!// 12599:repl 12600t repl 12601s/'"$ac_delim"'$// 12602t delim 12603:nl 12604h 12605s/\(.\{148\}\)..*/\1/ 12606t more1 12607s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12608p 12609n 12610b repl 12611:more1 12612s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12613p 12614g 12615s/.\{148\}// 12616t nl 12617:delim 12618h 12619s/\(.\{148\}\)..*/\1/ 12620t more2 12621s/["\\]/\\&/g; s/^/"/; s/$/"/ 12622p 12623b 12624:more2 12625s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12626p 12627g 12628s/.\{148\}// 12629t delim 12630' <conf$$subs.awk | sed ' 12631/^[^""]/{ 12632 N 12633 s/\n// 12634} 12635' >>$CONFIG_STATUS || ac_write_fail=1 12636rm -f conf$$subs.awk 12637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12638_ACAWK 12639cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12640 for (key in S) S_is_set[key] = 1 12641 FS = "" 12642 12643} 12644{ 12645 line = $ 0 12646 nfields = split(line, field, "@") 12647 substed = 0 12648 len = length(field[1]) 12649 for (i = 2; i < nfields; i++) { 12650 key = field[i] 12651 keylen = length(key) 12652 if (S_is_set[key]) { 12653 value = S[key] 12654 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12655 len += length(value) + length(field[++i]) 12656 substed = 1 12657 } else 12658 len += 1 + keylen 12659 } 12660 12661 print line 12662} 12663 12664_ACAWK 12665_ACEOF 12666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12667if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12668 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12669else 12670 cat 12671fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12672 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12673_ACEOF 12674 12675# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12676# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12677# trailing colons and then remove the whole line if VPATH becomes empty 12678# (actually we leave an empty line to preserve line numbers). 12679if test "x$srcdir" = x.; then 12680 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12681h 12682s/// 12683s/^/:/ 12684s/[ ]*$/:/ 12685s/:\$(srcdir):/:/g 12686s/:\${srcdir}:/:/g 12687s/:@srcdir@:/:/g 12688s/^:*// 12689s/:*$// 12690x 12691s/\(=[ ]*\).*/\1/ 12692G 12693s/\n// 12694s/^[^=]*=[ ]*$// 12695}' 12696fi 12697 12698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12699fi # test -n "$CONFIG_FILES" 12700 12701# Set up the scripts for CONFIG_HEADERS section. 12702# No need to generate them if there are no CONFIG_HEADERS. 12703# This happens for instance with './config.status Makefile'. 12704if test -n "$CONFIG_HEADERS"; then 12705cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12706BEGIN { 12707_ACEOF 12708 12709# Transform confdefs.h into an awk script 'defines.awk', embedded as 12710# here-document in config.status, that substitutes the proper values into 12711# config.h.in to produce config.h. 12712 12713# Create a delimiter string that does not exist in confdefs.h, to ease 12714# handling of long lines. 12715ac_delim='%!_!# ' 12716for ac_last_try in false false :; do 12717 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12718 if test -z "$ac_tt"; then 12719 break 12720 elif $ac_last_try; then 12721 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12722 else 12723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12724 fi 12725done 12726 12727# For the awk script, D is an array of macro values keyed by name, 12728# likewise P contains macro parameters if any. Preserve backslash 12729# newline sequences. 12730 12731ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12732sed -n ' 12733s/.\{148\}/&'"$ac_delim"'/g 12734t rset 12735:rset 12736s/^[ ]*#[ ]*define[ ][ ]*/ / 12737t def 12738d 12739:def 12740s/\\$// 12741t bsnl 12742s/["\\]/\\&/g 12743s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12744D["\1"]=" \3"/p 12745s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12746d 12747:bsnl 12748s/["\\]/\\&/g 12749s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12750D["\1"]=" \3\\\\\\n"\\/p 12751t cont 12752s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12753t cont 12754d 12755:cont 12756n 12757s/.\{148\}/&'"$ac_delim"'/g 12758t clear 12759:clear 12760s/\\$// 12761t bsnlc 12762s/["\\]/\\&/g; s/^/"/; s/$/"/p 12763d 12764:bsnlc 12765s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12766b cont 12767' <confdefs.h | sed ' 12768s/'"$ac_delim"'/"\\\ 12769"/g' >>$CONFIG_STATUS || ac_write_fail=1 12770 12771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12772 for (key in D) D_is_set[key] = 1 12773 FS = "" 12774} 12775/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12776 line = \$ 0 12777 split(line, arg, " ") 12778 if (arg[1] == "#") { 12779 defundef = arg[2] 12780 mac1 = arg[3] 12781 } else { 12782 defundef = substr(arg[1], 2) 12783 mac1 = arg[2] 12784 } 12785 split(mac1, mac2, "(") #) 12786 macro = mac2[1] 12787 prefix = substr(line, 1, index(line, defundef) - 1) 12788 if (D_is_set[macro]) { 12789 # Preserve the white space surrounding the "#". 12790 print prefix "define", macro P[macro] D[macro] 12791 next 12792 } else { 12793 # Replace #undef with comments. This is necessary, for example, 12794 # in the case of _POSIX_SOURCE, which is predefined and required 12795 # on some systems where configure will not decide to define it. 12796 if (defundef == "undef") { 12797 print "/*", prefix defundef, macro, "*/" 12798 next 12799 } 12800 } 12801} 12802{ print } 12803_ACAWK 12804_ACEOF 12805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12806 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12807fi # test -n "$CONFIG_HEADERS" 12808 12809 12810eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12811shift 12812for ac_tag 12813do 12814 case $ac_tag in 12815 :[FHLC]) ac_mode=$ac_tag; continue;; 12816 esac 12817 case $ac_mode$ac_tag in 12818 :[FHL]*:*);; 12819 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12820 :[FH]-) ac_tag=-:-;; 12821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12822 esac 12823 ac_save_IFS=$IFS 12824 IFS=: 12825 set x $ac_tag 12826 IFS=$ac_save_IFS 12827 shift 12828 ac_file=$1 12829 shift 12830 12831 case $ac_mode in 12832 :L) ac_source=$1;; 12833 :[FH]) 12834 ac_file_inputs= 12835 for ac_f 12836 do 12837 case $ac_f in 12838 -) ac_f="$ac_tmp/stdin";; 12839 *) # Look for the file first in the build tree, then in the source tree 12840 # (if the path is not absolute). The absolute path cannot be DOS-style, 12841 # because $ac_f cannot contain ':'. 12842 test -f "$ac_f" || 12843 case $ac_f in 12844 [\\/$]*) false;; 12845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12846 esac || 12847 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12848 esac 12849 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12850 as_fn_append ac_file_inputs " '$ac_f'" 12851 done 12852 12853 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12854 # use $as_me), people would be surprised to read: 12855 # /* config.h. Generated by config.status. */ 12856 configure_input='Generated from '` 12857 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12858 `' by configure.' 12859 if test x"$ac_file" != x-; then 12860 configure_input="$ac_file. $configure_input" 12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12862printf "%s\n" "$as_me: creating $ac_file" >&6;} 12863 fi 12864 # Neutralize special characters interpreted by sed in replacement strings. 12865 case $configure_input in #( 12866 *\&* | *\|* | *\\* ) 12867 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12868 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12869 *) ac_sed_conf_input=$configure_input;; 12870 esac 12871 12872 case $ac_tag in 12873 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12875 esac 12876 ;; 12877 esac 12878 12879 ac_dir=`$as_dirname -- "$ac_file" || 12880$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12881 X"$ac_file" : 'X\(//\)[^/]' \| \ 12882 X"$ac_file" : 'X\(//\)$' \| \ 12883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12884printf "%s\n" X"$ac_file" | 12885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12886 s//\1/ 12887 q 12888 } 12889 /^X\(\/\/\)[^/].*/{ 12890 s//\1/ 12891 q 12892 } 12893 /^X\(\/\/\)$/{ 12894 s//\1/ 12895 q 12896 } 12897 /^X\(\/\).*/{ 12898 s//\1/ 12899 q 12900 } 12901 s/.*/./; q'` 12902 as_dir="$ac_dir"; as_fn_mkdir_p 12903 ac_builddir=. 12904 12905case "$ac_dir" in 12906.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12907*) 12908 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12909 # A ".." for each directory in $ac_dir_suffix. 12910 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12911 case $ac_top_builddir_sub in 12912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12914 esac ;; 12915esac 12916ac_abs_top_builddir=$ac_pwd 12917ac_abs_builddir=$ac_pwd$ac_dir_suffix 12918# for backward compatibility: 12919ac_top_builddir=$ac_top_build_prefix 12920 12921case $srcdir in 12922 .) # We are building in place. 12923 ac_srcdir=. 12924 ac_top_srcdir=$ac_top_builddir_sub 12925 ac_abs_top_srcdir=$ac_pwd ;; 12926 [\\/]* | ?:[\\/]* ) # Absolute name. 12927 ac_srcdir=$srcdir$ac_dir_suffix; 12928 ac_top_srcdir=$srcdir 12929 ac_abs_top_srcdir=$srcdir ;; 12930 *) # Relative name. 12931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12932 ac_top_srcdir=$ac_top_build_prefix$srcdir 12933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12934esac 12935ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12936 12937 12938 case $ac_mode in 12939 :F) 12940 # 12941 # CONFIG_FILE 12942 # 12943 12944 case $INSTALL in 12945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12947 esac 12948 ac_MKDIR_P=$MKDIR_P 12949 case $MKDIR_P in 12950 [\\/$]* | ?:[\\/]* ) ;; 12951 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12952 esac 12953_ACEOF 12954 12955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12956# If the template does not know about datarootdir, expand it. 12957# FIXME: This hack should be removed a few years after 2.60. 12958ac_datarootdir_hack=; ac_datarootdir_seen= 12959ac_sed_dataroot=' 12960/datarootdir/ { 12961 p 12962 q 12963} 12964/@datadir@/p 12965/@docdir@/p 12966/@infodir@/p 12967/@localedir@/p 12968/@mandir@/p' 12969case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12970*datarootdir*) ac_datarootdir_seen=yes;; 12971*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12973printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12974_ACEOF 12975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12976 ac_datarootdir_hack=' 12977 s&@datadir@&$datadir&g 12978 s&@docdir@&$docdir&g 12979 s&@infodir@&$infodir&g 12980 s&@localedir@&$localedir&g 12981 s&@mandir@&$mandir&g 12982 s&\\\${datarootdir}&$datarootdir&g' ;; 12983esac 12984_ACEOF 12985 12986# Neutralize VPATH when '$srcdir' = '.'. 12987# Shell code in configure.ac might set extrasub. 12988# FIXME: do we really want to maintain this feature? 12989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12990ac_sed_extra="$ac_vpsub 12991$extrasub 12992_ACEOF 12993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12994:t 12995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12996s|@configure_input@|$ac_sed_conf_input|;t t 12997s&@top_builddir@&$ac_top_builddir_sub&;t t 12998s&@top_build_prefix@&$ac_top_build_prefix&;t t 12999s&@srcdir@&$ac_srcdir&;t t 13000s&@abs_srcdir@&$ac_abs_srcdir&;t t 13001s&@top_srcdir@&$ac_top_srcdir&;t t 13002s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13003s&@builddir@&$ac_builddir&;t t 13004s&@abs_builddir@&$ac_abs_builddir&;t t 13005s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13006s&@INSTALL@&$ac_INSTALL&;t t 13007s&@MKDIR_P@&$ac_MKDIR_P&;t t 13008$ac_datarootdir_hack 13009" 13010eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13011 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13012 13013test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13014 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13016 "$ac_tmp/out"`; test -z "$ac_out"; } && 13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13018which seems to be undefined. Please make sure it is defined" >&5 13019printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13020which seems to be undefined. Please make sure it is defined" >&2;} 13021 13022 rm -f "$ac_tmp/stdin" 13023 case $ac_file in 13024 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13025 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13026 esac \ 13027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13028 ;; 13029 :H) 13030 # 13031 # CONFIG_HEADER 13032 # 13033 if test x"$ac_file" != x-; then 13034 { 13035 printf "%s\n" "/* $configure_input */" >&1 \ 13036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13037 } >"$ac_tmp/config.h" \ 13038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13039 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13041printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13042 else 13043 rm -f "$ac_file" 13044 mv "$ac_tmp/config.h" "$ac_file" \ 13045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13046 fi 13047 else 13048 printf "%s\n" "/* $configure_input */" >&1 \ 13049 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13050 || as_fn_error $? "could not create -" "$LINENO" 5 13051 fi 13052# Compute "$ac_file"'s index in $config_headers. 13053_am_arg="$ac_file" 13054_am_stamp_count=1 13055for _am_header in $config_headers :; do 13056 case $_am_header in 13057 $_am_arg | $_am_arg:* ) 13058 break ;; 13059 * ) 13060 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13061 esac 13062done 13063echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13064$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13065 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13066 X"$_am_arg" : 'X\(//\)$' \| \ 13067 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13068printf "%s\n" X"$_am_arg" | 13069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13070 s//\1/ 13071 q 13072 } 13073 /^X\(\/\/\)[^/].*/{ 13074 s//\1/ 13075 q 13076 } 13077 /^X\(\/\/\)$/{ 13078 s//\1/ 13079 q 13080 } 13081 /^X\(\/\).*/{ 13082 s//\1/ 13083 q 13084 } 13085 s/.*/./; q'`/stamp-h$_am_stamp_count 13086 ;; 13087 13088 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13089printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13090 ;; 13091 esac 13092 13093 13094 case $ac_file$ac_mode in 13095 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13096 # Older Autoconf quotes --file arguments for eval, but not when files 13097 # are listed without --file. Let's play safe and only enable the eval 13098 # if we detect the quoting. 13099 # TODO: see whether this extra hack can be removed once we start 13100 # requiring Autoconf 2.70 or later. 13101 case $CONFIG_FILES in #( 13102 *\'*) : 13103 eval set x "$CONFIG_FILES" ;; #( 13104 *) : 13105 set x $CONFIG_FILES ;; #( 13106 *) : 13107 ;; 13108esac 13109 shift 13110 # Used to flag and report bootstrapping failures. 13111 am_rc=0 13112 for am_mf 13113 do 13114 # Strip MF so we end up with the name of the file. 13115 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13116 # Check whether this is an Automake generated Makefile which includes 13117 # dependency-tracking related rules and includes. 13118 # Grep'ing the whole file directly is not great: AIX grep has a line 13119 # limit of 2048, but all sed's we know have understand at least 4000. 13120 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13121 || continue 13122 am_dirpart=`$as_dirname -- "$am_mf" || 13123$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13124 X"$am_mf" : 'X\(//\)[^/]' \| \ 13125 X"$am_mf" : 'X\(//\)$' \| \ 13126 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13127printf "%s\n" X"$am_mf" | 13128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13129 s//\1/ 13130 q 13131 } 13132 /^X\(\/\/\)[^/].*/{ 13133 s//\1/ 13134 q 13135 } 13136 /^X\(\/\/\)$/{ 13137 s//\1/ 13138 q 13139 } 13140 /^X\(\/\).*/{ 13141 s//\1/ 13142 q 13143 } 13144 s/.*/./; q'` 13145 am_filepart=`$as_basename -- "$am_mf" || 13146$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13147 X"$am_mf" : 'X\(//\)$' \| \ 13148 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13149printf "%s\n" X/"$am_mf" | 13150 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13151 s//\1/ 13152 q 13153 } 13154 /^X\/\(\/\/\)$/{ 13155 s//\1/ 13156 q 13157 } 13158 /^X\/\(\/\).*/{ 13159 s//\1/ 13160 q 13161 } 13162 s/.*/./; q'` 13163 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13164 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13165 | $MAKE -f - am--depfiles" >&5 13166 (cd "$am_dirpart" \ 13167 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13168 | $MAKE -f - am--depfiles) >&5 2>&5 13169 ac_status=$? 13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13171 (exit $ac_status); } || am_rc=$? 13172 done 13173 if test $am_rc -ne 0; then 13174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13175printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13176as_fn_error $? "Something went wrong bootstrapping makefile fragments 13177 for automatic dependency tracking. If GNU make was not used, consider 13178 re-running the configure script with MAKE=\"gmake\" (or whatever is 13179 necessary). You can also try re-running configure with the 13180 '--disable-dependency-tracking' option to at least be able to build 13181 the package (albeit without support for automatic dependency tracking). 13182See 'config.log' for more details" "$LINENO" 5; } 13183 fi 13184 { am_dirpart=; unset am_dirpart;} 13185 { am_filepart=; unset am_filepart;} 13186 { am_mf=; unset am_mf;} 13187 { am_rc=; unset am_rc;} 13188 rm -f conftest-deps.mk 13189} 13190 ;; 13191 13192 esac 13193done # for ac_tag 13194 13195 13196as_fn_exit 0 13197_ACEOF 13198ac_clean_files=$ac_clean_files_save 13199 13200test $ac_write_fail = 0 || 13201 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13202 13203 13204# configure is writing to config.log, and then calls config.status. 13205# config.status does its own redirection, appending to config.log. 13206# Unfortunately, on DOS this fails, as config.log is still kept open 13207# by configure, so config.status won't be able to write to it; its 13208# output is simply discarded. So we exec the FD to /dev/null, 13209# effectively closing config.log, so it can be properly (re)opened and 13210# appended to by config.status. When coming back to configure, we 13211# need to make the FD available again. 13212if test "$no_create" != yes; then 13213 ac_cs_success=: 13214 ac_config_status_args= 13215 test "$silent" = yes && 13216 ac_config_status_args="$ac_config_status_args --quiet" 13217 exec 5>/dev/null 13218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13219 exec 5>>config.log 13220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13221 # would make configure fail if this is the last instruction. 13222 $ac_cs_success || as_fn_exit 1 13223fi 13224if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13226printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13227fi 13228 13229 13230