configure revision b96bd083
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xrandr 1.5.3. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrandr/-/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/xrandr/-/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='xrandr' 607PACKAGE_TARNAME='xrandr' 608PACKAGE_VERSION='1.5.3' 609PACKAGE_STRING='xrandr 1.5.3' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646ac_subst_vars='am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650XRANDR_LIBS 651XRANDR_CFLAGS 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666SED 667host_os 668host_vendor 669host_cpu 670host 671build_os 672build_vendor 673build_cpu 674build 675INSTALL_CMD 676PKG_CONFIG_LIBDIR 677PKG_CONFIG_PATH 678PKG_CONFIG 679CHANGELOG_CMD 680STRICT_CFLAGS 681CWARNFLAGS 682BASE_CFLAGS 683am__fastdepCC_FALSE 684am__fastdepCC_TRUE 685CCDEPMODE 686am__nodep 687AMDEPBACKSLASH 688AMDEP_FALSE 689AMDEP_TRUE 690am__include 691DEPDIR 692OBJEXT 693EXEEXT 694ac_ct_CC 695CPPFLAGS 696LDFLAGS 697CFLAGS 698CC 699AM_BACKSLASH 700AM_DEFAULT_VERBOSITY 701AM_DEFAULT_V 702AM_V 703CSCOPE 704ETAGS 705CTAGS 706am__untar 707am__tar 708AMTAR 709am__leading_dot 710SET_MAKE 711AWK 712mkdir_p 713MKDIR_P 714INSTALL_STRIP_PROGRAM 715STRIP 716install_sh 717MAKEINFO 718AUTOHEADER 719AUTOMAKE 720AUTOCONF 721ACLOCAL 722VERSION 723PACKAGE 724CYGPATH_W 725am__isrc 726INSTALL_DATA 727INSTALL_SCRIPT 728INSTALL_PROGRAM 729target_alias 730host_alias 731build_alias 732LIBS 733ECHO_T 734ECHO_N 735ECHO_C 736DEFS 737mandir 738localedir 739libdir 740psdir 741pdfdir 742dvidir 743htmldir 744infodir 745docdir 746oldincludedir 747includedir 748runstatedir 749localstatedir 750sharedstatedir 751sysconfdir 752datadir 753datarootdir 754libexecdir 755sbindir 756bindir 757program_transform_name 758prefix 759exec_prefix 760PACKAGE_URL 761PACKAGE_BUGREPORT 762PACKAGE_STRING 763PACKAGE_VERSION 764PACKAGE_TARNAME 765PACKAGE_NAME 766PATH_SEPARATOR 767SHELL 768am__quote' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_silent_rules 773enable_dependency_tracking 774enable_selective_werror 775enable_strict_compilation 776' 777 ac_precious_vars='build_alias 778host_alias 779target_alias 780CC 781CFLAGS 782LDFLAGS 783LIBS 784CPPFLAGS 785PKG_CONFIG 786PKG_CONFIG_PATH 787PKG_CONFIG_LIBDIR 788XRANDR_CFLAGS 789XRANDR_LIBS' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828runstatedir='${localstatedir}/run' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 case $ac_dashdash$ac_option in 859 --) 860 ac_dashdash=yes ;; 861 862 -bindir | --bindir | --bindi | --bind | --bin | --bi) 863 ac_prev=bindir ;; 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865 bindir=$ac_optarg ;; 866 867 -build | --build | --buil | --bui | --bu) 868 ac_prev=build_alias ;; 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870 build_alias=$ac_optarg ;; 871 872 -cache-file | --cache-file | --cache-fil | --cache-fi \ 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874 ac_prev=cache_file ;; 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877 cache_file=$ac_optarg ;; 878 879 --config-cache | -C) 880 cache_file=config.cache ;; 881 882 -datadir | --datadir | --datadi | --datad) 883 ac_prev=datadir ;; 884 -datadir=* | --datadir=* | --datadi=* | --datad=*) 885 datadir=$ac_optarg ;; 886 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888 | --dataroo | --dataro | --datar) 889 ac_prev=datarootdir ;; 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892 datarootdir=$ac_optarg ;; 893 894 -disable-* | --disable-*) 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896 # Reject names that are not valid shell variable names. 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 898 as_fn_error $? "invalid feature name: '$ac_useropt'" 899 ac_useropt_orig=$ac_useropt 900 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 901 case $ac_user_opts in 902 *" 903"enable_$ac_useropt" 904"*) ;; 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906 ac_unrecognized_sep=', ';; 907 esac 908 eval enable_$ac_useropt=no ;; 909 910 -docdir | --docdir | --docdi | --doc | --do) 911 ac_prev=docdir ;; 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913 docdir=$ac_optarg ;; 914 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916 ac_prev=dvidir ;; 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918 dvidir=$ac_optarg ;; 919 920 -enable-* | --enable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: '$ac_useropt'" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=\$ac_optarg ;; 935 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938 | --exec | --exe | --ex) 939 ac_prev=exec_prefix ;; 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942 | --exec=* | --exe=* | --ex=*) 943 exec_prefix=$ac_optarg ;; 944 945 -gas | --gas | --ga | --g) 946 # Obsolete; use --with-gas. 947 with_gas=yes ;; 948 949 -help | --help | --hel | --he | -h) 950 ac_init_help=long ;; 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952 ac_init_help=recursive ;; 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954 ac_init_help=short ;; 955 956 -host | --host | --hos | --ho) 957 ac_prev=host_alias ;; 958 -host=* | --host=* | --hos=* | --ho=*) 959 host_alias=$ac_optarg ;; 960 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962 ac_prev=htmldir ;; 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964 | --ht=*) 965 htmldir=$ac_optarg ;; 966 967 -includedir | --includedir | --includedi | --included | --include \ 968 | --includ | --inclu | --incl | --inc) 969 ac_prev=includedir ;; 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971 | --includ=* | --inclu=* | --incl=* | --inc=*) 972 includedir=$ac_optarg ;; 973 974 -infodir | --infodir | --infodi | --infod | --info | --inf) 975 ac_prev=infodir ;; 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977 infodir=$ac_optarg ;; 978 979 -libdir | --libdir | --libdi | --libd) 980 ac_prev=libdir ;; 981 -libdir=* | --libdir=* | --libdi=* | --libd=*) 982 libdir=$ac_optarg ;; 983 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985 | --libexe | --libex | --libe) 986 ac_prev=libexecdir ;; 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988 | --libexe=* | --libex=* | --libe=*) 989 libexecdir=$ac_optarg ;; 990 991 -localedir | --localedir | --localedi | --localed | --locale) 992 ac_prev=localedir ;; 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994 localedir=$ac_optarg ;; 995 996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 997 | --localstate | --localstat | --localsta | --localst | --locals) 998 ac_prev=localstatedir ;; 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001 localstatedir=$ac_optarg ;; 1002 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004 ac_prev=mandir ;; 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006 mandir=$ac_optarg ;; 1007 1008 -nfp | --nfp | --nf) 1009 # Obsolete; use --without-fp. 1010 with_fp=no ;; 1011 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013 | --no-cr | --no-c | -n) 1014 no_create=yes ;; 1015 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018 no_recursion=yes ;; 1019 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022 | --oldin | --oldi | --old | --ol | --o) 1023 ac_prev=oldincludedir ;; 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027 oldincludedir=$ac_optarg ;; 1028 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030 ac_prev=prefix ;; 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032 prefix=$ac_optarg ;; 1033 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035 | --program-pre | --program-pr | --program-p) 1036 ac_prev=program_prefix ;; 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039 program_prefix=$ac_optarg ;; 1040 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042 | --program-suf | --program-su | --program-s) 1043 ac_prev=program_suffix ;; 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046 program_suffix=$ac_optarg ;; 1047 1048 -program-transform-name | --program-transform-name \ 1049 | --program-transform-nam | --program-transform-na \ 1050 | --program-transform-n | --program-transform- \ 1051 | --program-transform | --program-transfor \ 1052 | --program-transfo | --program-transf \ 1053 | --program-trans | --program-tran \ 1054 | --progr-tra | --program-tr | --program-t) 1055 ac_prev=program_transform_name ;; 1056 -program-transform-name=* | --program-transform-name=* \ 1057 | --program-transform-nam=* | --program-transform-na=* \ 1058 | --program-transform-n=* | --program-transform-=* \ 1059 | --program-transform=* | --program-transfor=* \ 1060 | --program-transfo=* | --program-transf=* \ 1061 | --program-trans=* | --program-tran=* \ 1062 | --progr-tra=* | --program-tr=* | --program-t=*) 1063 program_transform_name=$ac_optarg ;; 1064 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066 ac_prev=pdfdir ;; 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068 pdfdir=$ac_optarg ;; 1069 1070 -psdir | --psdir | --psdi | --psd | --ps) 1071 ac_prev=psdir ;; 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073 psdir=$ac_optarg ;; 1074 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076 | -silent | --silent | --silen | --sile | --sil) 1077 silent=yes ;; 1078 1079 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1080 | --runstate | --runstat | --runsta | --runst | --runs \ 1081 | --run | --ru | --r) 1082 ac_prev=runstatedir ;; 1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1085 | --run=* | --ru=* | --r=*) 1086 runstatedir=$ac_optarg ;; 1087 1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1089 ac_prev=sbindir ;; 1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1091 | --sbi=* | --sb=*) 1092 sbindir=$ac_optarg ;; 1093 1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1096 | --sharedst | --shareds | --shared | --share | --shar \ 1097 | --sha | --sh) 1098 ac_prev=sharedstatedir ;; 1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1102 | --sha=* | --sh=*) 1103 sharedstatedir=$ac_optarg ;; 1104 1105 -site | --site | --sit) 1106 ac_prev=site ;; 1107 -site=* | --site=* | --sit=*) 1108 site=$ac_optarg ;; 1109 1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1111 ac_prev=srcdir ;; 1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1113 srcdir=$ac_optarg ;; 1114 1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1116 | --syscon | --sysco | --sysc | --sys | --sy) 1117 ac_prev=sysconfdir ;; 1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1120 sysconfdir=$ac_optarg ;; 1121 1122 -target | --target | --targe | --targ | --tar | --ta | --t) 1123 ac_prev=target_alias ;; 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1125 target_alias=$ac_optarg ;; 1126 1127 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1128 verbose=yes ;; 1129 1130 -version | --version | --versio | --versi | --vers | -V) 1131 ac_init_version=: ;; 1132 1133 -with-* | --with-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: '$ac_useropt'" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=\$ac_optarg ;; 1148 1149 -without-* | --without-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: '$ac_useropt'" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=no ;; 1164 1165 --x) 1166 # Obsolete; use --with-x. 1167 with_x=yes ;; 1168 1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1170 | --x-incl | --x-inc | --x-in | --x-i) 1171 ac_prev=x_includes ;; 1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1174 x_includes=$ac_optarg ;; 1175 1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1178 ac_prev=x_libraries ;; 1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1181 x_libraries=$ac_optarg ;; 1182 1183 -*) as_fn_error $? "unrecognized option: '$ac_option' 1184Try '$0 --help' for more information" 1185 ;; 1186 1187 *=*) 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189 # Reject names that are not valid shell variable names. 1190 case $ac_envvar in #( 1191 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1192 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1193 esac 1194 eval $ac_envvar=\$ac_optarg 1195 export $ac_envvar ;; 1196 1197 *) 1198 # FIXME: should be removed in autoconf 3.0. 1199 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1201 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1203 ;; 1204 1205 esac 1206done 1207 1208if test -n "$ac_prev"; then 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1210 as_fn_error $? "missing argument to $ac_option" 1211fi 1212 1213if test -n "$ac_unrecognized_opts"; then 1214 case $enable_option_checking in 1215 no) ;; 1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1217 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1218 esac 1219fi 1220 1221# Check all directory arguments for consistency. 1222for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1223 datadir sysconfdir sharedstatedir localstatedir includedir \ 1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1225 libdir localedir mandir runstatedir 1226do 1227 eval ac_val=\$$ac_var 1228 # Remove trailing slashes. 1229 case $ac_val in 1230 */ ) 1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1232 eval $ac_var=\$ac_val;; 1233 esac 1234 # Be sure to have absolute directory names. 1235 case $ac_val in 1236 [\\/$]* | ?:[\\/]* ) continue;; 1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1238 esac 1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1240done 1241 1242# There might be people who depend on the old broken behavior: '$host' 1243# used to hold the argument of --host etc. 1244# FIXME: To remove some day. 1245build=$build_alias 1246host=$host_alias 1247target=$target_alias 1248 1249# FIXME: To remove some day. 1250if test "x$host_alias" != x; then 1251 if test "x$build_alias" = x; then 1252 cross_compiling=maybe 1253 elif test "x$build_alias" != "x$host_alias"; then 1254 cross_compiling=yes 1255 fi 1256fi 1257 1258ac_tool_prefix= 1259test -n "$host_alias" && ac_tool_prefix=$host_alias- 1260 1261test "$silent" = yes && exec 6>/dev/null 1262 1263 1264ac_pwd=`pwd` && test -n "$ac_pwd" && 1265ac_ls_di=`ls -di .` && 1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1267 as_fn_error $? "working directory cannot be determined" 1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1269 as_fn_error $? "pwd does not report name of working directory" 1270 1271 1272# Find the source files, if location was not specified. 1273if test -z "$srcdir"; then 1274 ac_srcdir_defaulted=yes 1275 # Try the directory containing this script, then the parent directory. 1276 ac_confdir=`$as_dirname -- "$as_myself" || 1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1278 X"$as_myself" : 'X\(//\)[^/]' \| \ 1279 X"$as_myself" : 'X\(//\)$' \| \ 1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1281printf "%s\n" X"$as_myself" | 1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)[^/].*/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\).*/{ 1295 s//\1/ 1296 q 1297 } 1298 s/.*/./; q'` 1299 srcdir=$ac_confdir 1300 if test ! -r "$srcdir/$ac_unique_file"; then 1301 srcdir=.. 1302 fi 1303else 1304 ac_srcdir_defaulted=no 1305fi 1306if test ! -r "$srcdir/$ac_unique_file"; then 1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1309fi 1310ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1311ac_abs_confdir=`( 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1313 pwd)` 1314# When building in place, set srcdir=. 1315if test "$ac_abs_confdir" = "$ac_pwd"; then 1316 srcdir=. 1317fi 1318# Remove unnecessary trailing slashes from srcdir. 1319# Double slashes in file names in object file debugging info 1320# mess up M-x gdb in Emacs. 1321case $srcdir in 1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323esac 1324for ac_var in $ac_precious_vars; do 1325 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_env_${ac_var}_value=\$${ac_var} 1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329done 1330 1331# 1332# Report the --help message. 1333# 1334if test "$ac_init_help" = "long"; then 1335 # Omit some internal or obsolete options to make the list less imposing. 1336 # This message is too long to be a string in the A/UX 3.1 sh. 1337 cat <<_ACEOF 1338'configure' configures xrandr 1.5.3 to adapt to many kinds of systems. 1339 1340Usage: $0 [OPTION]... [VAR=VALUE]... 1341 1342To assign environment variables (e.g., CC, CFLAGS...), specify them as 1343VAR=VALUE. See below for descriptions of some of the useful variables. 1344 1345Defaults for the options are specified in brackets. 1346 1347Configuration: 1348 -h, --help display this help and exit 1349 --help=short display options specific to this package 1350 --help=recursive display the short help of all the included packages 1351 -V, --version display version information and exit 1352 -q, --quiet, --silent do not print 'checking ...' messages 1353 --cache-file=FILE cache test results in FILE [disabled] 1354 -C, --config-cache alias for '--cache-file=config.cache' 1355 -n, --no-create do not create output files 1356 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1357 1358Installation directories: 1359 --prefix=PREFIX install architecture-independent files in PREFIX 1360 [$ac_default_prefix] 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362 [PREFIX] 1363 1364By default, 'make install' will install all the files in 1365'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1366an installation prefix other than '$ac_default_prefix' using '--prefix', 1367for instance '--prefix=\$HOME'. 1368 1369For better control, use the options below. 1370 1371Fine tuning of the installation directories: 1372 --bindir=DIR user executables [EPREFIX/bin] 1373 --sbindir=DIR system admin executables [EPREFIX/sbin] 1374 --libexecdir=DIR program executables [EPREFIX/libexec] 1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root [DATAROOTDIR/doc/xrandr] 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392_ACEOF 1393 1394 cat <<\_ACEOF 1395 1396Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401System types: 1402 --build=BUILD configure for building on BUILD [guessed] 1403 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1404_ACEOF 1405fi 1406 1407if test -n "$ac_init_help"; then 1408 case $ac_init_help in 1409 short | recursive ) echo "Configuration of xrandr 1.5.3:";; 1410 esac 1411 cat <<\_ACEOF 1412 1413Optional Features: 1414 --disable-option-checking ignore unrecognized --enable/--with options 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1417 --enable-silent-rules less verbose build output (undo: "make V=1") 1418 --disable-silent-rules verbose build output (undo: "make V=0") 1419 --enable-dependency-tracking 1420 do not reject slow dependency extractors 1421 --disable-dependency-tracking 1422 speeds up one-time build 1423 --disable-selective-werror 1424 Turn off selective compiler errors. (default: 1425 enabled) 1426 --enable-strict-compilation 1427 Enable all warnings from compiler and make them 1428 errors (default: disabled) 1429 1430Some influential environment variables: 1431 CC C compiler command 1432 CFLAGS C compiler flags 1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1434 nonstandard directory <lib dir> 1435 LIBS libraries to pass to the linker, e.g. -l<library> 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1437 you have headers in a nonstandard directory <include dir> 1438 PKG_CONFIG path to pkg-config utility 1439 PKG_CONFIG_PATH 1440 directories to add to pkg-config's search path 1441 PKG_CONFIG_LIBDIR 1442 path overriding pkg-config's built-in search path 1443 XRANDR_CFLAGS 1444 C compiler flags for XRANDR, overriding pkg-config 1445 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config 1446 1447Use these variables to override the choices made by 'configure' or to help 1448it to find libraries and programs with nonstandard names/locations. 1449 1450Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues>. 1451_ACEOF 1452ac_status=$? 1453fi 1454 1455if test "$ac_init_help" = "recursive"; then 1456 # If there are subdirs, report their specific --help. 1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1458 test -d "$ac_dir" || 1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1460 continue 1461 ac_builddir=. 1462 1463case "$ac_dir" in 1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465*) 1466 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1467 # A ".." for each directory in $ac_dir_suffix. 1468 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1469 case $ac_top_builddir_sub in 1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1472 esac ;; 1473esac 1474ac_abs_top_builddir=$ac_pwd 1475ac_abs_builddir=$ac_pwd$ac_dir_suffix 1476# for backward compatibility: 1477ac_top_builddir=$ac_top_build_prefix 1478 1479case $srcdir in 1480 .) # We are building in place. 1481 ac_srcdir=. 1482 ac_top_srcdir=$ac_top_builddir_sub 1483 ac_abs_top_srcdir=$ac_pwd ;; 1484 [\\/]* | ?:[\\/]* ) # Absolute name. 1485 ac_srcdir=$srcdir$ac_dir_suffix; 1486 ac_top_srcdir=$srcdir 1487 ac_abs_top_srcdir=$srcdir ;; 1488 *) # Relative name. 1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1490 ac_top_srcdir=$ac_top_build_prefix$srcdir 1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1492esac 1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1494 1495 cd "$ac_dir" || { ac_status=$?; continue; } 1496 # Check for configure.gnu first; this name is used for a wrapper for 1497 # Metaconfig's "Configure" on case-insensitive file systems. 1498 if test -f "$ac_srcdir/configure.gnu"; then 1499 echo && 1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1501 elif test -f "$ac_srcdir/configure"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure" --help=recursive 1504 else 1505 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1506 fi || ac_status=$? 1507 cd "$ac_pwd" || { ac_status=$?; break; } 1508 done 1509fi 1510 1511test -n "$ac_init_help" && exit $ac_status 1512if $ac_init_version; then 1513 cat <<\_ACEOF 1514xrandr configure 1.5.3 1515generated by GNU Autoconf 2.72 1516 1517Copyright (C) 2023 Free Software Foundation, Inc. 1518This configure script is free software; the Free Software Foundation 1519gives unlimited permission to copy, distribute and modify it. 1520_ACEOF 1521 exit 1522fi 1523 1524## ------------------------ ## 1525## Autoconf initialization. ## 1526## ------------------------ ## 1527 1528# ac_fn_c_try_compile LINENO 1529# -------------------------- 1530# Try to compile conftest.$ac_ext, and return whether this succeeded. 1531ac_fn_c_try_compile () 1532{ 1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1534 rm -f conftest.$ac_objext conftest.beam 1535 if { { ac_try="$ac_compile" 1536case "(($ac_try" in 1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1538 *) ac_try_echo=$ac_try;; 1539esac 1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1541printf "%s\n" "$ac_try_echo"; } >&5 1542 (eval "$ac_compile") 2>conftest.err 1543 ac_status=$? 1544 if test -s conftest.err; then 1545 grep -v '^ *+' conftest.err >conftest.er1 1546 cat conftest.er1 >&5 1547 mv -f conftest.er1 conftest.err 1548 fi 1549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1550 test $ac_status = 0; } && { 1551 test -z "$ac_c_werror_flag" || 1552 test ! -s conftest.err 1553 } && test -s conftest.$ac_objext 1554then : 1555 ac_retval=0 1556else case e in #( 1557 e) printf "%s\n" "$as_me: failed program was:" >&5 1558sed 's/^/| /' conftest.$ac_ext >&5 1559 1560 ac_retval=1 ;; 1561esac 1562fi 1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1564 as_fn_set_status $ac_retval 1565 1566} # ac_fn_c_try_compile 1567 1568# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1569# ------------------------------------------------------------------ 1570# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1571# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1572ac_fn_check_decl () 1573{ 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 as_decl_name=`echo $2|sed 's/ *(.*//'` 1576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1577printf %s "checking whether $as_decl_name is declared... " >&6; } 1578if eval test \${$3+y} 1579then : 1580 printf %s "(cached) " >&6 1581else case e in #( 1582 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1583 eval ac_save_FLAGS=\$$6 1584 as_fn_append $6 " $5" 1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1586/* end confdefs.h. */ 1587$4 1588int 1589main (void) 1590{ 1591#ifndef $as_decl_name 1592#ifdef __cplusplus 1593 (void) $as_decl_use; 1594#else 1595 (void) $as_decl_name; 1596#endif 1597#endif 1598 1599 ; 1600 return 0; 1601} 1602_ACEOF 1603if ac_fn_c_try_compile "$LINENO" 1604then : 1605 eval "$3=yes" 1606else case e in #( 1607 e) eval "$3=no" ;; 1608esac 1609fi 1610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1611 eval $6=\$ac_save_FLAGS 1612 ;; 1613esac 1614fi 1615eval ac_res=\$$3 1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1617printf "%s\n" "$ac_res" >&6; } 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 1620} # ac_fn_check_decl 1621 1622# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1623# ------------------------------------------------------- 1624# Tests whether HEADER exists and can be compiled using the include files in 1625# INCLUDES, setting the cache variable VAR accordingly. 1626ac_fn_c_check_header_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630printf %s "checking for $2... " >&6; } 1631if eval test \${$3+y} 1632then : 1633 printf %s "(cached) " >&6 1634else case e in #( 1635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1636/* end confdefs.h. */ 1637$4 1638#include <$2> 1639_ACEOF 1640if ac_fn_c_try_compile "$LINENO" 1641then : 1642 eval "$3=yes" 1643else case e in #( 1644 e) eval "$3=no" ;; 1645esac 1646fi 1647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1648esac 1649fi 1650eval ac_res=\$$3 1651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1652printf "%s\n" "$ac_res" >&6; } 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 1655} # ac_fn_c_check_header_compile 1656 1657# ac_fn_c_try_link LINENO 1658# ----------------------- 1659# Try to link conftest.$ac_ext, and return whether this succeeded. 1660ac_fn_c_try_link () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1664 if { { ac_try="$ac_link" 1665case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670printf "%s\n" "$ac_try_echo"; } >&5 1671 (eval "$ac_link") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } && { 1680 test -z "$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 } && test -s conftest$ac_exeext && { 1683 test "$cross_compiling" = yes || 1684 test -x conftest$ac_exeext 1685 } 1686then : 1687 ac_retval=0 1688else case e in #( 1689 e) printf "%s\n" "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 ;; 1693esac 1694fi 1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1697 # interfere with the next link command; also delete a directory that is 1698 # left behind by Apple's compiler. We do this before executing the actions. 1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703} # ac_fn_c_try_link 1704ac_configure_args_raw= 1705for ac_arg 1706do 1707 case $ac_arg in 1708 *\'*) 1709 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1710 esac 1711 as_fn_append ac_configure_args_raw " '$ac_arg'" 1712done 1713 1714case $ac_configure_args_raw in 1715 *$as_nl*) 1716 ac_safe_unquote= ;; 1717 *) 1718 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1719 ac_unsafe_a="$ac_unsafe_z#~" 1720 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1721 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1722esac 1723 1724cat >config.log <<_ACEOF 1725This file contains any messages produced by compilers while 1726running configure, to aid debugging if configure makes a mistake. 1727 1728It was created by xrandr $as_me 1.5.3, which was 1729generated by GNU Autoconf 2.72. Invocation command line was 1730 1731 $ $0$ac_configure_args_raw 1732 1733_ACEOF 1734exec 5>>config.log 1735{ 1736cat <<_ASUNAME 1737## --------- ## 1738## Platform. ## 1739## --------- ## 1740 1741hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1742uname -m = `(uname -m) 2>/dev/null || echo unknown` 1743uname -r = `(uname -r) 2>/dev/null || echo unknown` 1744uname -s = `(uname -s) 2>/dev/null || echo unknown` 1745uname -v = `(uname -v) 2>/dev/null || echo unknown` 1746 1747/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1748/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1749 1750/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1751/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1752/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1753/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1754/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1755/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1756/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1757 1758_ASUNAME 1759 1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1761for as_dir in $PATH 1762do 1763 IFS=$as_save_IFS 1764 case $as_dir in #((( 1765 '') as_dir=./ ;; 1766 */) ;; 1767 *) as_dir=$as_dir/ ;; 1768 esac 1769 printf "%s\n" "PATH: $as_dir" 1770 done 1771IFS=$as_save_IFS 1772 1773} >&5 1774 1775cat >&5 <<_ACEOF 1776 1777 1778## ----------- ## 1779## Core tests. ## 1780## ----------- ## 1781 1782_ACEOF 1783 1784 1785# Keep a trace of the command line. 1786# Strip out --no-create and --no-recursion so they do not pile up. 1787# Strip out --silent because we don't want to record it for future runs. 1788# Also quote any args containing shell meta-characters. 1789# Make two passes to allow for proper duplicate-argument suppression. 1790ac_configure_args= 1791ac_configure_args0= 1792ac_configure_args1= 1793ac_must_keep_next=false 1794for ac_pass in 1 2 1795do 1796 for ac_arg 1797 do 1798 case $ac_arg in 1799 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1801 | -silent | --silent | --silen | --sile | --sil) 1802 continue ;; 1803 *\'*) 1804 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1805 esac 1806 case $ac_pass in 1807 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1808 2) 1809 as_fn_append ac_configure_args1 " '$ac_arg'" 1810 if test $ac_must_keep_next = true; then 1811 ac_must_keep_next=false # Got value, back to normal. 1812 else 1813 case $ac_arg in 1814 *=* | --config-cache | -C | -disable-* | --disable-* \ 1815 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1816 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1817 | -with-* | --with-* | -without-* | --without-* | --x) 1818 case "$ac_configure_args0 " in 1819 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1820 esac 1821 ;; 1822 -* ) ac_must_keep_next=true ;; 1823 esac 1824 fi 1825 as_fn_append ac_configure_args " '$ac_arg'" 1826 ;; 1827 esac 1828 done 1829done 1830{ ac_configure_args0=; unset ac_configure_args0;} 1831{ ac_configure_args1=; unset ac_configure_args1;} 1832 1833# When interrupted or exit'd, cleanup temporary files, and complete 1834# config.log. We remove comments because anyway the quotes in there 1835# would cause problems or look ugly. 1836# WARNING: Use '\'' to represent an apostrophe within the trap. 1837# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1838trap 'exit_status=$? 1839 # Sanitize IFS. 1840 IFS=" "" $as_nl" 1841 # Save into config.log some information that might help in debugging. 1842 { 1843 echo 1844 1845 printf "%s\n" "## ---------------- ## 1846## Cache variables. ## 1847## ---------------- ##" 1848 echo 1849 # The following way of writing the cache mishandles newlines in values, 1850( 1851 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1852 eval ac_val=\$$ac_var 1853 case $ac_val in #( 1854 *${as_nl}*) 1855 case $ac_var in #( 1856 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1857printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1858 esac 1859 case $ac_var in #( 1860 _ | IFS | as_nl) ;; #( 1861 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1862 *) { eval $ac_var=; unset $ac_var;} ;; 1863 esac ;; 1864 esac 1865 done 1866 (set) 2>&1 | 1867 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1868 *${as_nl}ac_space=\ *) 1869 sed -n \ 1870 "s/'\''/'\''\\\\'\'''\''/g; 1871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1872 ;; #( 1873 *) 1874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1875 ;; 1876 esac | 1877 sort 1878) 1879 echo 1880 1881 printf "%s\n" "## ----------------- ## 1882## Output variables. ## 1883## ----------------- ##" 1884 echo 1885 for ac_var in $ac_subst_vars 1886 do 1887 eval ac_val=\$$ac_var 1888 case $ac_val in 1889 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1890 esac 1891 printf "%s\n" "$ac_var='\''$ac_val'\''" 1892 done | sort 1893 echo 1894 1895 if test -n "$ac_subst_files"; then 1896 printf "%s\n" "## ------------------- ## 1897## File substitutions. ## 1898## ------------------- ##" 1899 echo 1900 for ac_var in $ac_subst_files 1901 do 1902 eval ac_val=\$$ac_var 1903 case $ac_val in 1904 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1905 esac 1906 printf "%s\n" "$ac_var='\''$ac_val'\''" 1907 done | sort 1908 echo 1909 fi 1910 1911 if test -s confdefs.h; then 1912 printf "%s\n" "## ----------- ## 1913## confdefs.h. ## 1914## ----------- ##" 1915 echo 1916 cat confdefs.h 1917 echo 1918 fi 1919 test "$ac_signal" != 0 && 1920 printf "%s\n" "$as_me: caught signal $ac_signal" 1921 printf "%s\n" "$as_me: exit $exit_status" 1922 } >&5 1923 rm -f core *.core core.conftest.* && 1924 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1925 exit $exit_status 1926' 0 1927for ac_signal in 1 2 13 15; do 1928 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1929done 1930ac_signal=0 1931 1932# confdefs.h avoids OS command line length limits that DEFS can exceed. 1933rm -f -r conftest* confdefs.h 1934 1935printf "%s\n" "/* confdefs.h */" > confdefs.h 1936 1937# Predefined preprocessor variables. 1938 1939printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1940 1941printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1942 1943printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1944 1945printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1946 1947printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1948 1949printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1950 1951 1952# Let the site file select an alternate cache file if it wants to. 1953# Prefer an explicitly selected file to automatically selected ones. 1954if test -n "$CONFIG_SITE"; then 1955 ac_site_files="$CONFIG_SITE" 1956elif test "x$prefix" != xNONE; then 1957 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1958else 1959 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1960fi 1961 1962for ac_site_file in $ac_site_files 1963do 1964 case $ac_site_file in #( 1965 */*) : 1966 ;; #( 1967 *) : 1968 ac_site_file=./$ac_site_file ;; 1969esac 1970 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1972printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1973 sed 's/^/| /' "$ac_site_file" >&5 1974 . "$ac_site_file" \ 1975 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1976printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1977as_fn_error $? "failed to load site script $ac_site_file 1978See 'config.log' for more details" "$LINENO" 5; } 1979 fi 1980done 1981 1982if test -r "$cache_file"; then 1983 # Some versions of bash will fail to source /dev/null (special files 1984 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1985 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1987printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1988 case $cache_file in 1989 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1990 *) . "./$cache_file";; 1991 esac 1992 fi 1993else 1994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1995printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 1996 >$cache_file 1997fi 1998 1999# Test code for whether the C compiler supports C89 (global declarations) 2000ac_c_conftest_c89_globals=' 2001/* Does the compiler advertise C89 conformance? 2002 Do not test the value of __STDC__, because some compilers set it to 0 2003 while being otherwise adequately conformant. */ 2004#if !defined __STDC__ 2005# error "Compiler does not advertise C89 conformance" 2006#endif 2007 2008#include <stddef.h> 2009#include <stdarg.h> 2010struct stat; 2011/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2012struct buf { int x; }; 2013struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2014static char *e (char **p, int i) 2015{ 2016 return p[i]; 2017} 2018static char *f (char * (*g) (char **, int), char **p, ...) 2019{ 2020 char *s; 2021 va_list v; 2022 va_start (v,p); 2023 s = g (p, va_arg (v,int)); 2024 va_end (v); 2025 return s; 2026} 2027 2028/* C89 style stringification. */ 2029#define noexpand_stringify(a) #a 2030const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2031 2032/* C89 style token pasting. Exercises some of the corner cases that 2033 e.g. old MSVC gets wrong, but not very hard. */ 2034#define noexpand_concat(a,b) a##b 2035#define expand_concat(a,b) noexpand_concat(a,b) 2036extern int vA; 2037extern int vbee; 2038#define aye A 2039#define bee B 2040int *pvA = &expand_concat(v,aye); 2041int *pvbee = &noexpand_concat(v,bee); 2042 2043/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2044 function prototypes and stuff, but not \xHH hex character constants. 2045 These do not provoke an error unfortunately, instead are silently treated 2046 as an "x". The following induces an error, until -std is added to get 2047 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2048 array size at least. It is necessary to write \x00 == 0 to get something 2049 that is true only with -std. */ 2050int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2051 2052/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2053 inside strings and character constants. */ 2054#define FOO(x) '\''x'\'' 2055int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2056 2057int test (int i, double x); 2058struct s1 {int (*f) (int a);}; 2059struct s2 {int (*f) (double a);}; 2060int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2061 int, int);' 2062 2063# Test code for whether the C compiler supports C89 (body of main). 2064ac_c_conftest_c89_main=' 2065ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2066' 2067 2068# Test code for whether the C compiler supports C99 (global declarations) 2069ac_c_conftest_c99_globals=' 2070/* Does the compiler advertise C99 conformance? */ 2071#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2072# error "Compiler does not advertise C99 conformance" 2073#endif 2074 2075// See if C++-style comments work. 2076 2077#include <stdbool.h> 2078extern int puts (const char *); 2079extern int printf (const char *, ...); 2080extern int dprintf (int, const char *, ...); 2081extern void *malloc (size_t); 2082extern void free (void *); 2083 2084// Check varargs macros. These examples are taken from C99 6.10.3.5. 2085// dprintf is used instead of fprintf to avoid needing to declare 2086// FILE and stderr. 2087#define debug(...) dprintf (2, __VA_ARGS__) 2088#define showlist(...) puts (#__VA_ARGS__) 2089#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2090static void 2091test_varargs_macros (void) 2092{ 2093 int x = 1234; 2094 int y = 5678; 2095 debug ("Flag"); 2096 debug ("X = %d\n", x); 2097 showlist (The first, second, and third items.); 2098 report (x>y, "x is %d but y is %d", x, y); 2099} 2100 2101// Check long long types. 2102#define BIG64 18446744073709551615ull 2103#define BIG32 4294967295ul 2104#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2105#if !BIG_OK 2106 #error "your preprocessor is broken" 2107#endif 2108#if BIG_OK 2109#else 2110 #error "your preprocessor is broken" 2111#endif 2112static long long int bignum = -9223372036854775807LL; 2113static unsigned long long int ubignum = BIG64; 2114 2115struct incomplete_array 2116{ 2117 int datasize; 2118 double data[]; 2119}; 2120 2121struct named_init { 2122 int number; 2123 const wchar_t *name; 2124 double average; 2125}; 2126 2127typedef const char *ccp; 2128 2129static inline int 2130test_restrict (ccp restrict text) 2131{ 2132 // Iterate through items via the restricted pointer. 2133 // Also check for declarations in for loops. 2134 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2135 continue; 2136 return 0; 2137} 2138 2139// Check varargs and va_copy. 2140static bool 2141test_varargs (const char *format, ...) 2142{ 2143 va_list args; 2144 va_start (args, format); 2145 va_list args_copy; 2146 va_copy (args_copy, args); 2147 2148 const char *str = ""; 2149 int number = 0; 2150 float fnumber = 0; 2151 2152 while (*format) 2153 { 2154 switch (*format++) 2155 { 2156 case '\''s'\'': // string 2157 str = va_arg (args_copy, const char *); 2158 break; 2159 case '\''d'\'': // int 2160 number = va_arg (args_copy, int); 2161 break; 2162 case '\''f'\'': // float 2163 fnumber = va_arg (args_copy, double); 2164 break; 2165 default: 2166 break; 2167 } 2168 } 2169 va_end (args_copy); 2170 va_end (args); 2171 2172 return *str && number && fnumber; 2173} 2174' 2175 2176# Test code for whether the C compiler supports C99 (body of main). 2177ac_c_conftest_c99_main=' 2178 // Check bool. 2179 _Bool success = false; 2180 success |= (argc != 0); 2181 2182 // Check restrict. 2183 if (test_restrict ("String literal") == 0) 2184 success = true; 2185 char *restrict newvar = "Another string"; 2186 2187 // Check varargs. 2188 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2189 test_varargs_macros (); 2190 2191 // Check flexible array members. 2192 struct incomplete_array *ia = 2193 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2194 ia->datasize = 10; 2195 for (int i = 0; i < ia->datasize; ++i) 2196 ia->data[i] = i * 1.234; 2197 // Work around memory leak warnings. 2198 free (ia); 2199 2200 // Check named initializers. 2201 struct named_init ni = { 2202 .number = 34, 2203 .name = L"Test wide string", 2204 .average = 543.34343, 2205 }; 2206 2207 ni.number = 58; 2208 2209 int dynamic_array[ni.number]; 2210 dynamic_array[0] = argv[0][0]; 2211 dynamic_array[ni.number - 1] = 543; 2212 2213 // work around unused variable warnings 2214 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2215 || dynamic_array[ni.number - 1] != 543); 2216' 2217 2218# Test code for whether the C compiler supports C11 (global declarations) 2219ac_c_conftest_c11_globals=' 2220/* Does the compiler advertise C11 conformance? */ 2221#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2222# error "Compiler does not advertise C11 conformance" 2223#endif 2224 2225// Check _Alignas. 2226char _Alignas (double) aligned_as_double; 2227char _Alignas (0) no_special_alignment; 2228extern char aligned_as_int; 2229char _Alignas (0) _Alignas (int) aligned_as_int; 2230 2231// Check _Alignof. 2232enum 2233{ 2234 int_alignment = _Alignof (int), 2235 int_array_alignment = _Alignof (int[100]), 2236 char_alignment = _Alignof (char) 2237}; 2238_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2239 2240// Check _Noreturn. 2241int _Noreturn does_not_return (void) { for (;;) continue; } 2242 2243// Check _Static_assert. 2244struct test_static_assert 2245{ 2246 int x; 2247 _Static_assert (sizeof (int) <= sizeof (long int), 2248 "_Static_assert does not work in struct"); 2249 long int y; 2250}; 2251 2252// Check UTF-8 literals. 2253#define u8 syntax error! 2254char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2255 2256// Check duplicate typedefs. 2257typedef long *long_ptr; 2258typedef long int *long_ptr; 2259typedef long_ptr long_ptr; 2260 2261// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2262struct anonymous 2263{ 2264 union { 2265 struct { int i; int j; }; 2266 struct { int k; long int l; } w; 2267 }; 2268 int m; 2269} v1; 2270' 2271 2272# Test code for whether the C compiler supports C11 (body of main). 2273ac_c_conftest_c11_main=' 2274 _Static_assert ((offsetof (struct anonymous, i) 2275 == offsetof (struct anonymous, w.k)), 2276 "Anonymous union alignment botch"); 2277 v1.i = 2; 2278 v1.w.k = 5; 2279 ok |= v1.i != 5; 2280' 2281 2282# Test code for whether the C compiler supports C11 (complete). 2283ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2284${ac_c_conftest_c99_globals} 2285${ac_c_conftest_c11_globals} 2286 2287int 2288main (int argc, char **argv) 2289{ 2290 int ok = 0; 2291 ${ac_c_conftest_c89_main} 2292 ${ac_c_conftest_c99_main} 2293 ${ac_c_conftest_c11_main} 2294 return ok; 2295} 2296" 2297 2298# Test code for whether the C compiler supports C99 (complete). 2299ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2300${ac_c_conftest_c99_globals} 2301 2302int 2303main (int argc, char **argv) 2304{ 2305 int ok = 0; 2306 ${ac_c_conftest_c89_main} 2307 ${ac_c_conftest_c99_main} 2308 return ok; 2309} 2310" 2311 2312# Test code for whether the C compiler supports C89 (complete). 2313ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2314 2315int 2316main (int argc, char **argv) 2317{ 2318 int ok = 0; 2319 ${ac_c_conftest_c89_main} 2320 return ok; 2321} 2322" 2323 2324as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2325as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2326as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2327as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2328as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2329as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2330as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2331as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2332as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2333 2334# Auxiliary files required by this configure script. 2335ac_aux_files="config.guess config.sub compile missing install-sh" 2336 2337# Locations in which to look for auxiliary files. 2338ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2339 2340# Search for a directory containing all of the required auxiliary files, 2341# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2342# If we don't find one directory that contains all the files we need, 2343# we report the set of missing files from the *first* directory in 2344# $ac_aux_dir_candidates and give up. 2345ac_missing_aux_files="" 2346ac_first_candidate=: 2347printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349as_found=false 2350for as_dir in $ac_aux_dir_candidates 2351do 2352 IFS=$as_save_IFS 2353 case $as_dir in #((( 2354 '') as_dir=./ ;; 2355 */) ;; 2356 *) as_dir=$as_dir/ ;; 2357 esac 2358 as_found=: 2359 2360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2361 ac_aux_dir_found=yes 2362 ac_install_sh= 2363 for ac_aux in $ac_aux_files 2364 do 2365 # As a special case, if "install-sh" is required, that requirement 2366 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2367 # and $ac_install_sh is set appropriately for whichever one is found. 2368 if test x"$ac_aux" = x"install-sh" 2369 then 2370 if test -f "${as_dir}install-sh"; then 2371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2372 ac_install_sh="${as_dir}install-sh -c" 2373 elif test -f "${as_dir}install.sh"; then 2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2375 ac_install_sh="${as_dir}install.sh -c" 2376 elif test -f "${as_dir}shtool"; then 2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2378 ac_install_sh="${as_dir}shtool install -c" 2379 else 2380 ac_aux_dir_found=no 2381 if $ac_first_candidate; then 2382 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2383 else 2384 break 2385 fi 2386 fi 2387 else 2388 if test -f "${as_dir}${ac_aux}"; then 2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2390 else 2391 ac_aux_dir_found=no 2392 if $ac_first_candidate; then 2393 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2394 else 2395 break 2396 fi 2397 fi 2398 fi 2399 done 2400 if test "$ac_aux_dir_found" = yes; then 2401 ac_aux_dir="$as_dir" 2402 break 2403 fi 2404 ac_first_candidate=false 2405 2406 as_found=false 2407done 2408IFS=$as_save_IFS 2409if $as_found 2410then : 2411 2412else case e in #( 2413 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2414esac 2415fi 2416 2417 2418# These three variables are undocumented and unsupported, 2419# and are intended to be withdrawn in a future Autoconf release. 2420# They can cause serious problems if a builder's source tree is in a directory 2421# whose full name contains unusual characters. 2422if test -f "${ac_aux_dir}config.guess"; then 2423 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2424fi 2425if test -f "${ac_aux_dir}config.sub"; then 2426 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2427fi 2428if test -f "$ac_aux_dir/configure"; then 2429 ac_configure="$SHELL ${ac_aux_dir}configure" 2430fi 2431 2432# Check that the precious variables saved in the cache have kept the same 2433# value. 2434ac_cache_corrupted=false 2435for ac_var in $ac_precious_vars; do 2436 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2437 eval ac_new_set=\$ac_env_${ac_var}_set 2438 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2439 eval ac_new_val=\$ac_env_${ac_var}_value 2440 case $ac_old_set,$ac_new_set in 2441 set,) 2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2443printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2444 ac_cache_corrupted=: ;; 2445 ,set) 2446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2447printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2448 ac_cache_corrupted=: ;; 2449 ,);; 2450 *) 2451 if test "x$ac_old_val" != "x$ac_new_val"; then 2452 # differences in whitespace do not lead to failure. 2453 ac_old_val_w=`echo x $ac_old_val` 2454 ac_new_val_w=`echo x $ac_new_val` 2455 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2457printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2458 ac_cache_corrupted=: 2459 else 2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2461printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2462 eval $ac_var=\$ac_old_val 2463 fi 2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2465printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2467printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2468 fi;; 2469 esac 2470 # Pass precious variables to config.status. 2471 if test "$ac_new_set" = set; then 2472 case $ac_new_val in 2473 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2474 *) ac_arg=$ac_var=$ac_new_val ;; 2475 esac 2476 case " $ac_configure_args " in 2477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2478 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2479 esac 2480 fi 2481done 2482if $ac_cache_corrupted; then 2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2484printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2486printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2487 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2488 and start over" "$LINENO" 5 2489fi 2490## -------------------- ## 2491## Main body of script. ## 2492## -------------------- ## 2493 2494ac_ext=c 2495ac_cpp='$CPP $CPPFLAGS' 2496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2498ac_compiler_gnu=$ac_cv_c_compiler_gnu 2499 2500 2501 2502ac_config_headers="$ac_config_headers config.h" 2503 2504 2505# Initialize Automake 2506am__api_version='1.16' 2507 2508 2509 2510 # Find a good install program. We prefer a C program (faster), 2511# so one script is as good as another. But avoid the broken or 2512# incompatible versions: 2513# SysV /etc/install, /usr/sbin/install 2514# SunOS /usr/etc/install 2515# IRIX /sbin/install 2516# AIX /bin/install 2517# AmigaOS /C/install, which installs bootblocks on floppy discs 2518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2519# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2521# OS/2's system install, which has a completely different semantic 2522# ./install, which can be erroneously created by make from ./install.sh. 2523# Reject install programs that cannot install multiple files. 2524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2525printf %s "checking for a BSD-compatible install... " >&6; } 2526if test -z "$INSTALL"; then 2527if test ${ac_cv_path_install+y} 2528then : 2529 printf %s "(cached) " >&6 2530else case e in #( 2531 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2532for as_dir in $PATH 2533do 2534 IFS=$as_save_IFS 2535 case $as_dir in #((( 2536 '') as_dir=./ ;; 2537 */) ;; 2538 *) as_dir=$as_dir/ ;; 2539 esac 2540 # Account for fact that we put trailing slashes in our PATH walk. 2541case $as_dir in #(( 2542 ./ | /[cC]/* | \ 2543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2545 /usr/ucb/* ) ;; 2546 *) 2547 # OSF1 and SCO ODT 3.0 have their own names for install. 2548 # Don't use installbsd from OSF since it installs stuff as root 2549 # by default. 2550 for ac_prog in ginstall scoinst install; do 2551 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2553 if test $ac_prog = install && 2554 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2555 # AIX install. It has an incompatible calling convention. 2556 : 2557 elif test $ac_prog = install && 2558 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2559 # program-specific install script used by HP pwplus--don't use. 2560 : 2561 else 2562 rm -rf conftest.one conftest.two conftest.dir 2563 echo one > conftest.one 2564 echo two > conftest.two 2565 mkdir conftest.dir 2566 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2567 test -s conftest.one && test -s conftest.two && 2568 test -s conftest.dir/conftest.one && 2569 test -s conftest.dir/conftest.two 2570 then 2571 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2572 break 3 2573 fi 2574 fi 2575 fi 2576 done 2577 done 2578 ;; 2579esac 2580 2581 done 2582IFS=$as_save_IFS 2583 2584rm -rf conftest.one conftest.two conftest.dir 2585 ;; 2586esac 2587fi 2588 if test ${ac_cv_path_install+y}; then 2589 INSTALL=$ac_cv_path_install 2590 else 2591 # As a last resort, use the slow shell script. Don't cache a 2592 # value for INSTALL within a source directory, because that will 2593 # break other packages using the cache if that directory is 2594 # removed, or if the value is a relative name. 2595 INSTALL=$ac_install_sh 2596 fi 2597fi 2598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2599printf "%s\n" "$INSTALL" >&6; } 2600 2601# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2602# It thinks the first close brace ends the variable substitution. 2603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2604 2605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2606 2607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2608 2609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2610printf %s "checking whether build environment is sane... " >&6; } 2611# Reject unsafe characters in $srcdir or the absolute working directory 2612# name. Accept space and tab only in the latter. 2613am_lf=' 2614' 2615case `pwd` in 2616 *[\\\"\#\$\&\'\`$am_lf]*) 2617 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2618esac 2619case $srcdir in 2620 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2621 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2622esac 2623 2624# Do 'set' in a subshell so we don't clobber the current shell's 2625# arguments. Must try -L first in case configure is actually a 2626# symlink; some systems play weird games with the mod time of symlinks 2627# (eg FreeBSD returns the mod time of the symlink's containing 2628# directory). 2629if ( 2630 am_has_slept=no 2631 for am_try in 1 2; do 2632 echo "timestamp, slept: $am_has_slept" > conftest.file 2633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2634 if test "$*" = "X"; then 2635 # -L didn't work. 2636 set X `ls -t "$srcdir/configure" conftest.file` 2637 fi 2638 if test "$*" != "X $srcdir/configure conftest.file" \ 2639 && test "$*" != "X conftest.file $srcdir/configure"; then 2640 2641 # If neither matched, then we have a broken ls. This can happen 2642 # if, for instance, CONFIG_SHELL is bash and it inherits a 2643 # broken ls alias from the environment. This has actually 2644 # happened. Such a system could not be considered "sane". 2645 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2646 alias in your environment" "$LINENO" 5 2647 fi 2648 if test "$2" = conftest.file || test $am_try -eq 2; then 2649 break 2650 fi 2651 # Just in case. 2652 sleep 1 2653 am_has_slept=yes 2654 done 2655 test "$2" = conftest.file 2656 ) 2657then 2658 # Ok. 2659 : 2660else 2661 as_fn_error $? "newly created file is older than distributed files! 2662Check your system clock" "$LINENO" 5 2663fi 2664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2665printf "%s\n" "yes" >&6; } 2666# If we didn't sleep, we still need to ensure time stamps of config.status and 2667# generated files are strictly newer. 2668am_sleep_pid= 2669if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2670 ( sleep 1 ) & 2671 am_sleep_pid=$! 2672fi 2673 2674rm -f conftest.file 2675 2676test "$program_prefix" != NONE && 2677 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2678# Use a double $ so make ignores it. 2679test "$program_suffix" != NONE && 2680 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2681# Double any \ or $. 2682# By default was 's,x,x', remove it if useless. 2683ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2684program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2685 2686 2687# Expand $ac_aux_dir to an absolute path. 2688am_aux_dir=`cd "$ac_aux_dir" && pwd` 2689 2690 2691 if test x"${MISSING+set}" != xset; then 2692 MISSING="\${SHELL} '$am_aux_dir/missing'" 2693fi 2694# Use eval to expand $SHELL 2695if eval "$MISSING --is-lightweight"; then 2696 am_missing_run="$MISSING " 2697else 2698 am_missing_run= 2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2700printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2701fi 2702 2703if test x"${install_sh+set}" != xset; then 2704 case $am_aux_dir in 2705 *\ * | *\ *) 2706 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2707 *) 2708 install_sh="\${SHELL} $am_aux_dir/install-sh" 2709 esac 2710fi 2711 2712# Installed binaries are usually stripped using 'strip' when the user 2713# run "make install-strip". However 'strip' might not be the right 2714# tool to use in cross-compilation environments, therefore Automake 2715# will honor the 'STRIP' environment variable to overrule this program. 2716if test "$cross_compiling" != no; then 2717 if test -n "$ac_tool_prefix"; then 2718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2719set dummy ${ac_tool_prefix}strip; ac_word=$2 2720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2721printf %s "checking for $ac_word... " >&6; } 2722if test ${ac_cv_prog_STRIP+y} 2723then : 2724 printf %s "(cached) " >&6 2725else case e in #( 2726 e) if test -n "$STRIP"; then 2727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2728else 2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2730for as_dir in $PATH 2731do 2732 IFS=$as_save_IFS 2733 case $as_dir in #((( 2734 '') as_dir=./ ;; 2735 */) ;; 2736 *) as_dir=$as_dir/ ;; 2737 esac 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2740 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744done 2745 done 2746IFS=$as_save_IFS 2747 2748fi ;; 2749esac 2750fi 2751STRIP=$ac_cv_prog_STRIP 2752if test -n "$STRIP"; then 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2754printf "%s\n" "$STRIP" >&6; } 2755else 2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2757printf "%s\n" "no" >&6; } 2758fi 2759 2760 2761fi 2762if test -z "$ac_cv_prog_STRIP"; then 2763 ac_ct_STRIP=$STRIP 2764 # Extract the first word of "strip", so it can be a program name with args. 2765set dummy strip; ac_word=$2 2766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2767printf %s "checking for $ac_word... " >&6; } 2768if test ${ac_cv_prog_ac_ct_STRIP+y} 2769then : 2770 printf %s "(cached) " >&6 2771else case e in #( 2772 e) if test -n "$ac_ct_STRIP"; then 2773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2774else 2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776for as_dir in $PATH 2777do 2778 IFS=$as_save_IFS 2779 case $as_dir in #((( 2780 '') as_dir=./ ;; 2781 */) ;; 2782 *) as_dir=$as_dir/ ;; 2783 esac 2784 for ac_exec_ext in '' $ac_executable_extensions; do 2785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2786 ac_cv_prog_ac_ct_STRIP="strip" 2787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2788 break 2 2789 fi 2790done 2791 done 2792IFS=$as_save_IFS 2793 2794fi ;; 2795esac 2796fi 2797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2798if test -n "$ac_ct_STRIP"; then 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2800printf "%s\n" "$ac_ct_STRIP" >&6; } 2801else 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803printf "%s\n" "no" >&6; } 2804fi 2805 2806 if test "x$ac_ct_STRIP" = x; then 2807 STRIP=":" 2808 else 2809 case $cross_compiling:$ac_tool_warned in 2810yes:) 2811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2813ac_tool_warned=yes ;; 2814esac 2815 STRIP=$ac_ct_STRIP 2816 fi 2817else 2818 STRIP="$ac_cv_prog_STRIP" 2819fi 2820 2821fi 2822INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2823 2824 2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2826printf %s "checking for a race-free mkdir -p... " >&6; } 2827if test -z "$MKDIR_P"; then 2828 if test ${ac_cv_path_mkdir+y} 2829then : 2830 printf %s "(cached) " >&6 2831else case e in #( 2832 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2834do 2835 IFS=$as_save_IFS 2836 case $as_dir in #((( 2837 '') as_dir=./ ;; 2838 */) ;; 2839 *) as_dir=$as_dir/ ;; 2840 esac 2841 for ac_prog in mkdir gmkdir; do 2842 for ac_exec_ext in '' $ac_executable_extensions; do 2843 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2844 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2845 'mkdir ('*'coreutils) '* | \ 2846 *'BusyBox '* | \ 2847 'mkdir (fileutils) '4.1*) 2848 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2849 break 3;; 2850 esac 2851 done 2852 done 2853 done 2854IFS=$as_save_IFS 2855 ;; 2856esac 2857fi 2858 2859 test -d ./--version && rmdir ./--version 2860 if test ${ac_cv_path_mkdir+y}; then 2861 MKDIR_P="$ac_cv_path_mkdir -p" 2862 else 2863 # As a last resort, use plain mkdir -p, 2864 # in the hope it doesn't have the bugs of ancient mkdir. 2865 MKDIR_P='mkdir -p' 2866 fi 2867fi 2868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2869printf "%s\n" "$MKDIR_P" >&6; } 2870 2871for ac_prog in gawk mawk nawk awk 2872do 2873 # Extract the first word of "$ac_prog", so it can be a program name with args. 2874set dummy $ac_prog; ac_word=$2 2875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876printf %s "checking for $ac_word... " >&6; } 2877if test ${ac_cv_prog_AWK+y} 2878then : 2879 printf %s "(cached) " >&6 2880else case e in #( 2881 e) if test -n "$AWK"; then 2882 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2883else 2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885for as_dir in $PATH 2886do 2887 IFS=$as_save_IFS 2888 case $as_dir in #((( 2889 '') as_dir=./ ;; 2890 */) ;; 2891 *) as_dir=$as_dir/ ;; 2892 esac 2893 for ac_exec_ext in '' $ac_executable_extensions; do 2894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2895 ac_cv_prog_AWK="$ac_prog" 2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2897 break 2 2898 fi 2899done 2900 done 2901IFS=$as_save_IFS 2902 2903fi ;; 2904esac 2905fi 2906AWK=$ac_cv_prog_AWK 2907if test -n "$AWK"; then 2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2909printf "%s\n" "$AWK" >&6; } 2910else 2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2912printf "%s\n" "no" >&6; } 2913fi 2914 2915 2916 test -n "$AWK" && break 2917done 2918 2919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2920printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2921set x ${MAKE-make} 2922ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2923if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2924then : 2925 printf %s "(cached) " >&6 2926else case e in #( 2927 e) cat >conftest.make <<\_ACEOF 2928SHELL = /bin/sh 2929all: 2930 @echo '@@@%%%=$(MAKE)=@@@%%%' 2931_ACEOF 2932# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2933case `${MAKE-make} -f conftest.make 2>/dev/null` in 2934 *@@@%%%=?*=@@@%%%*) 2935 eval ac_cv_prog_make_${ac_make}_set=yes;; 2936 *) 2937 eval ac_cv_prog_make_${ac_make}_set=no;; 2938esac 2939rm -f conftest.make ;; 2940esac 2941fi 2942if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2944printf "%s\n" "yes" >&6; } 2945 SET_MAKE= 2946else 2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2948printf "%s\n" "no" >&6; } 2949 SET_MAKE="MAKE=${MAKE-make}" 2950fi 2951 2952rm -rf .tst 2>/dev/null 2953mkdir .tst 2>/dev/null 2954if test -d .tst; then 2955 am__leading_dot=. 2956else 2957 am__leading_dot=_ 2958fi 2959rmdir .tst 2>/dev/null 2960 2961# Check whether --enable-silent-rules was given. 2962if test ${enable_silent_rules+y} 2963then : 2964 enableval=$enable_silent_rules; 2965fi 2966 2967case $enable_silent_rules in # ((( 2968 yes) AM_DEFAULT_VERBOSITY=0;; 2969 no) AM_DEFAULT_VERBOSITY=1;; 2970 *) AM_DEFAULT_VERBOSITY=1;; 2971esac 2972am_make=${MAKE-make} 2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2974printf %s "checking whether $am_make supports nested variables... " >&6; } 2975if test ${am_cv_make_support_nested_variables+y} 2976then : 2977 printf %s "(cached) " >&6 2978else case e in #( 2979 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 2980BAR0=false 2981BAR1=true 2982V=1 2983am__doit: 2984 @$(TRUE) 2985.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2986 am_cv_make_support_nested_variables=yes 2987else 2988 am_cv_make_support_nested_variables=no 2989fi ;; 2990esac 2991fi 2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2993printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2994if test $am_cv_make_support_nested_variables = yes; then 2995 AM_V='$(V)' 2996 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2997else 2998 AM_V=$AM_DEFAULT_VERBOSITY 2999 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3000fi 3001AM_BACKSLASH='\' 3002 3003if test "`cd $srcdir && pwd`" != "`pwd`"; then 3004 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3005 # is not polluted with repeated "-I." 3006 am__isrc=' -I$(srcdir)' 3007 # test to see if srcdir already configured 3008 if test -f $srcdir/config.status; then 3009 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3010 fi 3011fi 3012 3013# test whether we have cygpath 3014if test -z "$CYGPATH_W"; then 3015 if (cygpath --version) >/dev/null 2>/dev/null; then 3016 CYGPATH_W='cygpath -w' 3017 else 3018 CYGPATH_W=echo 3019 fi 3020fi 3021 3022 3023# Define the identity of the package. 3024 PACKAGE='xrandr' 3025 VERSION='1.5.3' 3026 3027 3028printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3029 3030 3031printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3032 3033# Some tools Automake needs. 3034 3035ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3036 3037 3038AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3039 3040 3041AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3042 3043 3044AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3045 3046 3047MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3048 3049# For better backward compatibility. To be removed once Automake 1.9.x 3050# dies out for good. For more background, see: 3051# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3052# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3053mkdir_p='$(MKDIR_P)' 3054 3055# We need awk for the "check" target (and possibly the TAP driver). The 3056# system "awk" is bad on some platforms. 3057# Always define AMTAR for backward compatibility. Yes, it's still used 3058# in the wild :-( We should find a proper way to deprecate it ... 3059AMTAR='$${TAR-tar}' 3060 3061 3062# We'll loop over all known methods to create a tar archive until one works. 3063_am_tools='gnutar pax cpio none' 3064 3065am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3066 3067 3068 3069 3070 3071# Variables for tags utilities; see am/tags.am 3072if test -z "$CTAGS"; then 3073 CTAGS=ctags 3074fi 3075 3076if test -z "$ETAGS"; then 3077 ETAGS=etags 3078fi 3079 3080if test -z "$CSCOPE"; then 3081 CSCOPE=cscope 3082fi 3083 3084 3085 3086# POSIX will say in a future version that running "rm -f" with no argument 3087# is OK; and we want to be able to make that assumption in our Makefile 3088# recipes. So use an aggressive probe to check that the usage we want is 3089# actually supported "in the wild" to an acceptable degree. 3090# See automake bug#10828. 3091# To make any issue more visible, cause the running configure to be aborted 3092# by default if the 'rm' program in use doesn't match our expectations; the 3093# user can still override this though. 3094if rm -f && rm -fr && rm -rf; then : OK; else 3095 cat >&2 <<'END' 3096Oops! 3097 3098Your 'rm' program seems unable to run without file operands specified 3099on the command line, even when the '-f' option is present. This is contrary 3100to the behaviour of most rm programs out there, and not conforming with 3101the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3102 3103Please tell bug-automake@gnu.org about your system, including the value 3104of your $PATH and any error possibly output before this message. This 3105can help us improve future automake versions. 3106 3107END 3108 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3109 echo 'Configuration will proceed anyway, since you have set the' >&2 3110 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3111 echo >&2 3112 else 3113 cat >&2 <<'END' 3114Aborting the configuration process, to ensure you take notice of the issue. 3115 3116You can download and install GNU coreutils to get an 'rm' implementation 3117that behaves properly: <https://www.gnu.org/software/coreutils/>. 3118 3119If you want to complete the configuration process using your problematic 3120'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3121to "yes", and re-run configure. 3122 3123END 3124 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3125 fi 3126fi 3127 3128 3129# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150DEPDIR="${am__leading_dot}deps" 3151 3152ac_config_commands="$ac_config_commands depfiles" 3153 3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3155printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3156cat > confinc.mk << 'END' 3157am__doit: 3158 @echo this is the am__doit target >confinc.out 3159.PHONY: am__doit 3160END 3161am__include="#" 3162am__quote= 3163# BSD make does it like this. 3164echo '.include "confinc.mk" # ignored' > confmf.BSD 3165# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3166echo 'include confinc.mk # ignored' > confmf.GNU 3167_am_result=no 3168for s in GNU BSD; do 3169 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3170 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); } 3174 case $?:`cat confinc.out 2>/dev/null` in #( 3175 '0:this is the am__doit target') : 3176 case $s in #( 3177 BSD) : 3178 am__include='.include' am__quote='"' ;; #( 3179 *) : 3180 am__include='include' am__quote='' ;; 3181esac ;; #( 3182 *) : 3183 ;; 3184esac 3185 if test "$am__include" != "#"; then 3186 _am_result="yes ($s style)" 3187 break 3188 fi 3189done 3190rm -f confinc.* confmf.* 3191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3192printf "%s\n" "${_am_result}" >&6; } 3193 3194# Check whether --enable-dependency-tracking was given. 3195if test ${enable_dependency_tracking+y} 3196then : 3197 enableval=$enable_dependency_tracking; 3198fi 3199 3200if test "x$enable_dependency_tracking" != xno; then 3201 am_depcomp="$ac_aux_dir/depcomp" 3202 AMDEPBACKSLASH='\' 3203 am__nodep='_no' 3204fi 3205 if test "x$enable_dependency_tracking" != xno; then 3206 AMDEP_TRUE= 3207 AMDEP_FALSE='#' 3208else 3209 AMDEP_TRUE='#' 3210 AMDEP_FALSE= 3211fi 3212 3213 3214ac_ext=c 3215ac_cpp='$CPP $CPPFLAGS' 3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3218ac_compiler_gnu=$ac_cv_c_compiler_gnu 3219if test -n "$ac_tool_prefix"; then 3220 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3221set dummy ${ac_tool_prefix}gcc; ac_word=$2 3222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3223printf %s "checking for $ac_word... " >&6; } 3224if test ${ac_cv_prog_CC+y} 3225then : 3226 printf %s "(cached) " >&6 3227else case e in #( 3228 e) if test -n "$CC"; then 3229 ac_cv_prog_CC="$CC" # Let the user override the test. 3230else 3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3232for as_dir in $PATH 3233do 3234 IFS=$as_save_IFS 3235 case $as_dir in #((( 3236 '') as_dir=./ ;; 3237 */) ;; 3238 *) as_dir=$as_dir/ ;; 3239 esac 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi ;; 3251esac 3252fi 3253CC=$ac_cv_prog_CC 3254if test -n "$CC"; then 3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3256printf "%s\n" "$CC" >&6; } 3257else 3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3259printf "%s\n" "no" >&6; } 3260fi 3261 3262 3263fi 3264if test -z "$ac_cv_prog_CC"; then 3265 ac_ct_CC=$CC 3266 # Extract the first word of "gcc", so it can be a program name with args. 3267set dummy gcc; ac_word=$2 3268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3269printf %s "checking for $ac_word... " >&6; } 3270if test ${ac_cv_prog_ac_ct_CC+y} 3271then : 3272 printf %s "(cached) " >&6 3273else case e in #( 3274 e) if test -n "$ac_ct_CC"; then 3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3276else 3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3278for as_dir in $PATH 3279do 3280 IFS=$as_save_IFS 3281 case $as_dir in #((( 3282 '') as_dir=./ ;; 3283 */) ;; 3284 *) as_dir=$as_dir/ ;; 3285 esac 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3288 ac_cv_prog_ac_ct_CC="gcc" 3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3290 break 2 3291 fi 3292done 3293 done 3294IFS=$as_save_IFS 3295 3296fi ;; 3297esac 3298fi 3299ac_ct_CC=$ac_cv_prog_ac_ct_CC 3300if test -n "$ac_ct_CC"; then 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3302printf "%s\n" "$ac_ct_CC" >&6; } 3303else 3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305printf "%s\n" "no" >&6; } 3306fi 3307 3308 if test "x$ac_ct_CC" = x; then 3309 CC="" 3310 else 3311 case $cross_compiling:$ac_tool_warned in 3312yes:) 3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3314printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3315ac_tool_warned=yes ;; 3316esac 3317 CC=$ac_ct_CC 3318 fi 3319else 3320 CC="$ac_cv_prog_CC" 3321fi 3322 3323if test -z "$CC"; then 3324 if test -n "$ac_tool_prefix"; then 3325 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3326set dummy ${ac_tool_prefix}cc; ac_word=$2 3327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3328printf %s "checking for $ac_word... " >&6; } 3329if test ${ac_cv_prog_CC+y} 3330then : 3331 printf %s "(cached) " >&6 3332else case e in #( 3333 e) if test -n "$CC"; then 3334 ac_cv_prog_CC="$CC" # Let the user override the test. 3335else 3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3337for as_dir in $PATH 3338do 3339 IFS=$as_save_IFS 3340 case $as_dir in #((( 3341 '') as_dir=./ ;; 3342 */) ;; 3343 *) as_dir=$as_dir/ ;; 3344 esac 3345 for ac_exec_ext in '' $ac_executable_extensions; do 3346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3347 ac_cv_prog_CC="${ac_tool_prefix}cc" 3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3349 break 2 3350 fi 3351done 3352 done 3353IFS=$as_save_IFS 3354 3355fi ;; 3356esac 3357fi 3358CC=$ac_cv_prog_CC 3359if test -n "$CC"; then 3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3361printf "%s\n" "$CC" >&6; } 3362else 3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3364printf "%s\n" "no" >&6; } 3365fi 3366 3367 3368 fi 3369fi 3370if test -z "$CC"; then 3371 # Extract the first word of "cc", so it can be a program name with args. 3372set dummy cc; ac_word=$2 3373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3374printf %s "checking for $ac_word... " >&6; } 3375if test ${ac_cv_prog_CC+y} 3376then : 3377 printf %s "(cached) " >&6 3378else case e in #( 3379 e) if test -n "$CC"; then 3380 ac_cv_prog_CC="$CC" # Let the user override the test. 3381else 3382 ac_prog_rejected=no 3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3384for as_dir in $PATH 3385do 3386 IFS=$as_save_IFS 3387 case $as_dir in #((( 3388 '') as_dir=./ ;; 3389 */) ;; 3390 *) as_dir=$as_dir/ ;; 3391 esac 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3394 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3395 ac_prog_rejected=yes 3396 continue 3397 fi 3398 ac_cv_prog_CC="cc" 3399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3400 break 2 3401 fi 3402done 3403 done 3404IFS=$as_save_IFS 3405 3406if test $ac_prog_rejected = yes; then 3407 # We found a bogon in the path, so make sure we never use it. 3408 set dummy $ac_cv_prog_CC 3409 shift 3410 if test $# != 0; then 3411 # We chose a different compiler from the bogus one. 3412 # However, it has the same basename, so the bogon will be chosen 3413 # first if we set CC to just the basename; use the full file name. 3414 shift 3415 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3416 fi 3417fi 3418fi ;; 3419esac 3420fi 3421CC=$ac_cv_prog_CC 3422if test -n "$CC"; then 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3424printf "%s\n" "$CC" >&6; } 3425else 3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427printf "%s\n" "no" >&6; } 3428fi 3429 3430 3431fi 3432if test -z "$CC"; then 3433 if test -n "$ac_tool_prefix"; then 3434 for ac_prog in cl.exe 3435 do 3436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3437set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3439printf %s "checking for $ac_word... " >&6; } 3440if test ${ac_cv_prog_CC+y} 3441then : 3442 printf %s "(cached) " >&6 3443else case e in #( 3444 e) if test -n "$CC"; then 3445 ac_cv_prog_CC="$CC" # Let the user override the test. 3446else 3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448for as_dir in $PATH 3449do 3450 IFS=$as_save_IFS 3451 case $as_dir in #((( 3452 '') as_dir=./ ;; 3453 */) ;; 3454 *) as_dir=$as_dir/ ;; 3455 esac 3456 for ac_exec_ext in '' $ac_executable_extensions; do 3457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3460 break 2 3461 fi 3462done 3463 done 3464IFS=$as_save_IFS 3465 3466fi ;; 3467esac 3468fi 3469CC=$ac_cv_prog_CC 3470if test -n "$CC"; then 3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3472printf "%s\n" "$CC" >&6; } 3473else 3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3475printf "%s\n" "no" >&6; } 3476fi 3477 3478 3479 test -n "$CC" && break 3480 done 3481fi 3482if test -z "$CC"; then 3483 ac_ct_CC=$CC 3484 for ac_prog in cl.exe 3485do 3486 # Extract the first word of "$ac_prog", so it can be a program name with args. 3487set dummy $ac_prog; ac_word=$2 3488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489printf %s "checking for $ac_word... " >&6; } 3490if test ${ac_cv_prog_ac_ct_CC+y} 3491then : 3492 printf %s "(cached) " >&6 3493else case e in #( 3494 e) if test -n "$ac_ct_CC"; then 3495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3496else 3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3498for as_dir in $PATH 3499do 3500 IFS=$as_save_IFS 3501 case $as_dir in #((( 3502 '') as_dir=./ ;; 3503 */) ;; 3504 *) as_dir=$as_dir/ ;; 3505 esac 3506 for ac_exec_ext in '' $ac_executable_extensions; do 3507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3508 ac_cv_prog_ac_ct_CC="$ac_prog" 3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3510 break 2 3511 fi 3512done 3513 done 3514IFS=$as_save_IFS 3515 3516fi ;; 3517esac 3518fi 3519ac_ct_CC=$ac_cv_prog_ac_ct_CC 3520if test -n "$ac_ct_CC"; then 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3522printf "%s\n" "$ac_ct_CC" >&6; } 3523else 3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525printf "%s\n" "no" >&6; } 3526fi 3527 3528 3529 test -n "$ac_ct_CC" && break 3530done 3531 3532 if test "x$ac_ct_CC" = x; then 3533 CC="" 3534 else 3535 case $cross_compiling:$ac_tool_warned in 3536yes:) 3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3538printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3539ac_tool_warned=yes ;; 3540esac 3541 CC=$ac_ct_CC 3542 fi 3543fi 3544 3545fi 3546if test -z "$CC"; then 3547 if test -n "$ac_tool_prefix"; then 3548 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3549set dummy ${ac_tool_prefix}clang; ac_word=$2 3550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551printf %s "checking for $ac_word... " >&6; } 3552if test ${ac_cv_prog_CC+y} 3553then : 3554 printf %s "(cached) " >&6 3555else case e in #( 3556 e) if test -n "$CC"; then 3557 ac_cv_prog_CC="$CC" # Let the user override the test. 3558else 3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560for as_dir in $PATH 3561do 3562 IFS=$as_save_IFS 3563 case $as_dir in #((( 3564 '') as_dir=./ ;; 3565 */) ;; 3566 *) as_dir=$as_dir/ ;; 3567 esac 3568 for ac_exec_ext in '' $ac_executable_extensions; do 3569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3570 ac_cv_prog_CC="${ac_tool_prefix}clang" 3571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3572 break 2 3573 fi 3574done 3575 done 3576IFS=$as_save_IFS 3577 3578fi ;; 3579esac 3580fi 3581CC=$ac_cv_prog_CC 3582if test -n "$CC"; then 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3584printf "%s\n" "$CC" >&6; } 3585else 3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587printf "%s\n" "no" >&6; } 3588fi 3589 3590 3591fi 3592if test -z "$ac_cv_prog_CC"; then 3593 ac_ct_CC=$CC 3594 # Extract the first word of "clang", so it can be a program name with args. 3595set dummy clang; ac_word=$2 3596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3597printf %s "checking for $ac_word... " >&6; } 3598if test ${ac_cv_prog_ac_ct_CC+y} 3599then : 3600 printf %s "(cached) " >&6 3601else case e in #( 3602 e) if test -n "$ac_ct_CC"; then 3603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3604else 3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606for as_dir in $PATH 3607do 3608 IFS=$as_save_IFS 3609 case $as_dir in #((( 3610 '') as_dir=./ ;; 3611 */) ;; 3612 *) as_dir=$as_dir/ ;; 3613 esac 3614 for ac_exec_ext in '' $ac_executable_extensions; do 3615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3616 ac_cv_prog_ac_ct_CC="clang" 3617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3618 break 2 3619 fi 3620done 3621 done 3622IFS=$as_save_IFS 3623 3624fi ;; 3625esac 3626fi 3627ac_ct_CC=$ac_cv_prog_ac_ct_CC 3628if test -n "$ac_ct_CC"; then 3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3630printf "%s\n" "$ac_ct_CC" >&6; } 3631else 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3633printf "%s\n" "no" >&6; } 3634fi 3635 3636 if test "x$ac_ct_CC" = x; then 3637 CC="" 3638 else 3639 case $cross_compiling:$ac_tool_warned in 3640yes:) 3641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3642printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3643ac_tool_warned=yes ;; 3644esac 3645 CC=$ac_ct_CC 3646 fi 3647else 3648 CC="$ac_cv_prog_CC" 3649fi 3650 3651fi 3652 3653 3654test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3655printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3656as_fn_error $? "no acceptable C compiler found in \$PATH 3657See 'config.log' for more details" "$LINENO" 5; } 3658 3659# Provide some information about the compiler. 3660printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3661set X $ac_compile 3662ac_compiler=$2 3663for ac_option in --version -v -V -qversion -version; do 3664 { { ac_try="$ac_compiler $ac_option >&5" 3665case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668esac 3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3670printf "%s\n" "$ac_try_echo"; } >&5 3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3672 ac_status=$? 3673 if test -s conftest.err; then 3674 sed '10a\ 3675... rest of stderr output deleted ... 3676 10q' conftest.err >conftest.er1 3677 cat conftest.er1 >&5 3678 fi 3679 rm -f conftest.er1 conftest.err 3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3681 test $ac_status = 0; } 3682done 3683 3684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686 3687int 3688main (void) 3689{ 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695ac_clean_files_save=$ac_clean_files 3696ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3697# Try to create an executable without -o first, disregard a.out. 3698# It will help us diagnose broken compilers, and finding out an intuition 3699# of exeext. 3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3701printf %s "checking whether the C compiler works... " >&6; } 3702ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3703 3704# The possible output files: 3705ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3706 3707ac_rmfiles= 3708for ac_file in $ac_files 3709do 3710 case $ac_file in 3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3713 esac 3714done 3715rm -f $ac_rmfiles 3716 3717if { { ac_try="$ac_link_default" 3718case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721esac 3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3723printf "%s\n" "$ac_try_echo"; } >&5 3724 (eval "$ac_link_default") 2>&5 3725 ac_status=$? 3726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3727 test $ac_status = 0; } 3728then : 3729 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3730# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3731# in a Makefile. We should not override ac_cv_exeext if it was cached, 3732# so that the user can short-circuit this test for compilers unknown to 3733# Autoconf. 3734for ac_file in $ac_files '' 3735do 3736 test -f "$ac_file" || continue 3737 case $ac_file in 3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3739 ;; 3740 [ab].out ) 3741 # We found the default executable, but exeext='' is most 3742 # certainly right. 3743 break;; 3744 *.* ) 3745 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3746 then :; else 3747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3748 fi 3749 # We set ac_cv_exeext here because the later test for it is not 3750 # safe: cross compilers may not add the suffix if given an '-o' 3751 # argument, so we may need to know it at that point already. 3752 # Even if this section looks crufty: it has the advantage of 3753 # actually working. 3754 break;; 3755 * ) 3756 break;; 3757 esac 3758done 3759test "$ac_cv_exeext" = no && ac_cv_exeext= 3760 3761else case e in #( 3762 e) ac_file='' ;; 3763esac 3764fi 3765if test -z "$ac_file" 3766then : 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3768printf "%s\n" "no" >&6; } 3769printf "%s\n" "$as_me: failed program was:" >&5 3770sed 's/^/| /' conftest.$ac_ext >&5 3771 3772{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3773printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3774as_fn_error 77 "C compiler cannot create executables 3775See 'config.log' for more details" "$LINENO" 5; } 3776else case e in #( 3777 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3778printf "%s\n" "yes" >&6; } ;; 3779esac 3780fi 3781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3782printf %s "checking for C compiler default output file name... " >&6; } 3783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3784printf "%s\n" "$ac_file" >&6; } 3785ac_exeext=$ac_cv_exeext 3786 3787rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3788ac_clean_files=$ac_clean_files_save 3789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3790printf %s "checking for suffix of executables... " >&6; } 3791if { { ac_try="$ac_link" 3792case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795esac 3796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3797printf "%s\n" "$ac_try_echo"; } >&5 3798 (eval "$ac_link") 2>&5 3799 ac_status=$? 3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3801 test $ac_status = 0; } 3802then : 3803 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3804# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3805# work properly (i.e., refer to 'conftest.exe'), while it won't with 3806# 'rm'. 3807for ac_file in conftest.exe conftest conftest.*; do 3808 test -f "$ac_file" || continue 3809 case $ac_file in 3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3812 break;; 3813 * ) break;; 3814 esac 3815done 3816else case e in #( 3817 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3818printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3819as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3820See 'config.log' for more details" "$LINENO" 5; } ;; 3821esac 3822fi 3823rm -f conftest conftest$ac_cv_exeext 3824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3825printf "%s\n" "$ac_cv_exeext" >&6; } 3826 3827rm -f conftest.$ac_ext 3828EXEEXT=$ac_cv_exeext 3829ac_exeext=$EXEEXT 3830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3831/* end confdefs.h. */ 3832#include <stdio.h> 3833int 3834main (void) 3835{ 3836FILE *f = fopen ("conftest.out", "w"); 3837 if (!f) 3838 return 1; 3839 return ferror (f) || fclose (f) != 0; 3840 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845ac_clean_files="$ac_clean_files conftest.out" 3846# Check that the compiler produces executables we can run. If not, either 3847# the compiler is broken, or we cross compile. 3848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3849printf %s "checking whether we are cross compiling... " >&6; } 3850if test "$cross_compiling" != yes; then 3851 { { ac_try="$ac_link" 3852case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855esac 3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3857printf "%s\n" "$ac_try_echo"; } >&5 3858 (eval "$ac_link") 2>&5 3859 ac_status=$? 3860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3861 test $ac_status = 0; } 3862 if { ac_try='./conftest$ac_cv_exeext' 3863 { { case "(($ac_try" in 3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3865 *) ac_try_echo=$ac_try;; 3866esac 3867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3868printf "%s\n" "$ac_try_echo"; } >&5 3869 (eval "$ac_try") 2>&5 3870 ac_status=$? 3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3872 test $ac_status = 0; }; }; then 3873 cross_compiling=no 3874 else 3875 if test "$cross_compiling" = maybe; then 3876 cross_compiling=yes 3877 else 3878 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3879printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3880as_fn_error 77 "cannot run C compiled programs. 3881If you meant to cross compile, use '--host'. 3882See 'config.log' for more details" "$LINENO" 5; } 3883 fi 3884 fi 3885fi 3886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3887printf "%s\n" "$cross_compiling" >&6; } 3888 3889rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3890 conftest.o conftest.obj conftest.out 3891ac_clean_files=$ac_clean_files_save 3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3893printf %s "checking for suffix of object files... " >&6; } 3894if test ${ac_cv_objext+y} 3895then : 3896 printf %s "(cached) " >&6 3897else case e in #( 3898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899/* end confdefs.h. */ 3900 3901int 3902main (void) 3903{ 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909rm -f conftest.o conftest.obj 3910if { { ac_try="$ac_compile" 3911case "(($ac_try" in 3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3913 *) ac_try_echo=$ac_try;; 3914esac 3915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3916printf "%s\n" "$ac_try_echo"; } >&5 3917 (eval "$ac_compile") 2>&5 3918 ac_status=$? 3919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3920 test $ac_status = 0; } 3921then : 3922 for ac_file in conftest.o conftest.obj conftest.*; do 3923 test -f "$ac_file" || continue; 3924 case $ac_file in 3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3927 break;; 3928 esac 3929done 3930else case e in #( 3931 e) printf "%s\n" "$as_me: failed program was:" >&5 3932sed 's/^/| /' conftest.$ac_ext >&5 3933 3934{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3935printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3936as_fn_error $? "cannot compute suffix of object files: cannot compile 3937See 'config.log' for more details" "$LINENO" 5; } ;; 3938esac 3939fi 3940rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3941esac 3942fi 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3944printf "%s\n" "$ac_cv_objext" >&6; } 3945OBJEXT=$ac_cv_objext 3946ac_objext=$OBJEXT 3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3948printf %s "checking whether the compiler supports GNU C... " >&6; } 3949if test ${ac_cv_c_compiler_gnu+y} 3950then : 3951 printf %s "(cached) " >&6 3952else case e in #( 3953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3954/* end confdefs.h. */ 3955 3956int 3957main (void) 3958{ 3959#ifndef __GNUC__ 3960 choke me 3961#endif 3962 3963 ; 3964 return 0; 3965} 3966_ACEOF 3967if ac_fn_c_try_compile "$LINENO" 3968then : 3969 ac_compiler_gnu=yes 3970else case e in #( 3971 e) ac_compiler_gnu=no ;; 3972esac 3973fi 3974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3975ac_cv_c_compiler_gnu=$ac_compiler_gnu 3976 ;; 3977esac 3978fi 3979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3980printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3981ac_compiler_gnu=$ac_cv_c_compiler_gnu 3982 3983if test $ac_compiler_gnu = yes; then 3984 GCC=yes 3985else 3986 GCC= 3987fi 3988ac_test_CFLAGS=${CFLAGS+y} 3989ac_save_CFLAGS=$CFLAGS 3990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3991printf %s "checking whether $CC accepts -g... " >&6; } 3992if test ${ac_cv_prog_cc_g+y} 3993then : 3994 printf %s "(cached) " >&6 3995else case e in #( 3996 e) ac_save_c_werror_flag=$ac_c_werror_flag 3997 ac_c_werror_flag=yes 3998 ac_cv_prog_cc_g=no 3999 CFLAGS="-g" 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002 4003int 4004main (void) 4005{ 4006 4007 ; 4008 return 0; 4009} 4010_ACEOF 4011if ac_fn_c_try_compile "$LINENO" 4012then : 4013 ac_cv_prog_cc_g=yes 4014else case e in #( 4015 e) CFLAGS="" 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018 4019int 4020main (void) 4021{ 4022 4023 ; 4024 return 0; 4025} 4026_ACEOF 4027if ac_fn_c_try_compile "$LINENO" 4028then : 4029 4030else case e in #( 4031 e) ac_c_werror_flag=$ac_save_c_werror_flag 4032 CFLAGS="-g" 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035 4036int 4037main (void) 4038{ 4039 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044if ac_fn_c_try_compile "$LINENO" 4045then : 4046 ac_cv_prog_cc_g=yes 4047fi 4048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4049esac 4050fi 4051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4052esac 4053fi 4054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4055 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4056esac 4057fi 4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4059printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4060if test $ac_test_CFLAGS; then 4061 CFLAGS=$ac_save_CFLAGS 4062elif test $ac_cv_prog_cc_g = yes; then 4063 if test "$GCC" = yes; then 4064 CFLAGS="-g -O2" 4065 else 4066 CFLAGS="-g" 4067 fi 4068else 4069 if test "$GCC" = yes; then 4070 CFLAGS="-O2" 4071 else 4072 CFLAGS= 4073 fi 4074fi 4075ac_prog_cc_stdc=no 4076if test x$ac_prog_cc_stdc = xno 4077then : 4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4079printf %s "checking for $CC option to enable C11 features... " >&6; } 4080if test ${ac_cv_prog_cc_c11+y} 4081then : 4082 printf %s "(cached) " >&6 4083else case e in #( 4084 e) ac_cv_prog_cc_c11=no 4085ac_save_CC=$CC 4086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4087/* end confdefs.h. */ 4088$ac_c_conftest_c11_program 4089_ACEOF 4090for ac_arg in '' -std=gnu11 4091do 4092 CC="$ac_save_CC $ac_arg" 4093 if ac_fn_c_try_compile "$LINENO" 4094then : 4095 ac_cv_prog_cc_c11=$ac_arg 4096fi 4097rm -f core conftest.err conftest.$ac_objext conftest.beam 4098 test "x$ac_cv_prog_cc_c11" != "xno" && break 4099done 4100rm -f conftest.$ac_ext 4101CC=$ac_save_CC ;; 4102esac 4103fi 4104 4105if test "x$ac_cv_prog_cc_c11" = xno 4106then : 4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4108printf "%s\n" "unsupported" >&6; } 4109else case e in #( 4110 e) if test "x$ac_cv_prog_cc_c11" = x 4111then : 4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4113printf "%s\n" "none needed" >&6; } 4114else case e in #( 4115 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4116printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4117 CC="$CC $ac_cv_prog_cc_c11" ;; 4118esac 4119fi 4120 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4121 ac_prog_cc_stdc=c11 ;; 4122esac 4123fi 4124fi 4125if test x$ac_prog_cc_stdc = xno 4126then : 4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4128printf %s "checking for $CC option to enable C99 features... " >&6; } 4129if test ${ac_cv_prog_cc_c99+y} 4130then : 4131 printf %s "(cached) " >&6 4132else case e in #( 4133 e) ac_cv_prog_cc_c99=no 4134ac_save_CC=$CC 4135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137$ac_c_conftest_c99_program 4138_ACEOF 4139for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4140do 4141 CC="$ac_save_CC $ac_arg" 4142 if ac_fn_c_try_compile "$LINENO" 4143then : 4144 ac_cv_prog_cc_c99=$ac_arg 4145fi 4146rm -f core conftest.err conftest.$ac_objext conftest.beam 4147 test "x$ac_cv_prog_cc_c99" != "xno" && break 4148done 4149rm -f conftest.$ac_ext 4150CC=$ac_save_CC ;; 4151esac 4152fi 4153 4154if test "x$ac_cv_prog_cc_c99" = xno 4155then : 4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4157printf "%s\n" "unsupported" >&6; } 4158else case e in #( 4159 e) if test "x$ac_cv_prog_cc_c99" = x 4160then : 4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4162printf "%s\n" "none needed" >&6; } 4163else case e in #( 4164 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4165printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4166 CC="$CC $ac_cv_prog_cc_c99" ;; 4167esac 4168fi 4169 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4170 ac_prog_cc_stdc=c99 ;; 4171esac 4172fi 4173fi 4174if test x$ac_prog_cc_stdc = xno 4175then : 4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4177printf %s "checking for $CC option to enable C89 features... " >&6; } 4178if test ${ac_cv_prog_cc_c89+y} 4179then : 4180 printf %s "(cached) " >&6 4181else case e in #( 4182 e) ac_cv_prog_cc_c89=no 4183ac_save_CC=$CC 4184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4185/* end confdefs.h. */ 4186$ac_c_conftest_c89_program 4187_ACEOF 4188for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4189do 4190 CC="$ac_save_CC $ac_arg" 4191 if ac_fn_c_try_compile "$LINENO" 4192then : 4193 ac_cv_prog_cc_c89=$ac_arg 4194fi 4195rm -f core conftest.err conftest.$ac_objext conftest.beam 4196 test "x$ac_cv_prog_cc_c89" != "xno" && break 4197done 4198rm -f conftest.$ac_ext 4199CC=$ac_save_CC ;; 4200esac 4201fi 4202 4203if test "x$ac_cv_prog_cc_c89" = xno 4204then : 4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4206printf "%s\n" "unsupported" >&6; } 4207else case e in #( 4208 e) if test "x$ac_cv_prog_cc_c89" = x 4209then : 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4211printf "%s\n" "none needed" >&6; } 4212else case e in #( 4213 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4214printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4215 CC="$CC $ac_cv_prog_cc_c89" ;; 4216esac 4217fi 4218 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4219 ac_prog_cc_stdc=c89 ;; 4220esac 4221fi 4222fi 4223 4224ac_ext=c 4225ac_cpp='$CPP $CPPFLAGS' 4226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4228ac_compiler_gnu=$ac_cv_c_compiler_gnu 4229 4230 4231 ac_ext=c 4232ac_cpp='$CPP $CPPFLAGS' 4233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4235ac_compiler_gnu=$ac_cv_c_compiler_gnu 4236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4237printf %s "checking whether $CC understands -c and -o together... " >&6; } 4238if test ${am_cv_prog_cc_c_o+y} 4239then : 4240 printf %s "(cached) " >&6 4241else case e in #( 4242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244 4245int 4246main (void) 4247{ 4248 4249 ; 4250 return 0; 4251} 4252_ACEOF 4253 # Make sure it works both with $CC and with simple cc. 4254 # Following AC_PROG_CC_C_O, we do the test twice because some 4255 # compilers refuse to overwrite an existing .o file with -o, 4256 # though they will create one. 4257 am_cv_prog_cc_c_o=yes 4258 for am_i in 1 2; do 4259 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4260 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4261 ac_status=$? 4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4263 (exit $ac_status); } \ 4264 && test -f conftest2.$ac_objext; then 4265 : OK 4266 else 4267 am_cv_prog_cc_c_o=no 4268 break 4269 fi 4270 done 4271 rm -f core conftest* 4272 unset am_i ;; 4273esac 4274fi 4275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4276printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4277if test "$am_cv_prog_cc_c_o" != yes; then 4278 # Losing compiler, so override with the script. 4279 # FIXME: It is wrong to rewrite CC. 4280 # But if we don't then we get into trouble of one sort or another. 4281 # A longer-term fix would be to have automake use am__CC in this case, 4282 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4283 CC="$am_aux_dir/compile $CC" 4284fi 4285ac_ext=c 4286ac_cpp='$CPP $CPPFLAGS' 4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4289ac_compiler_gnu=$ac_cv_c_compiler_gnu 4290 4291 4292depcc="$CC" am_compiler_list= 4293 4294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4295printf %s "checking dependency style of $depcc... " >&6; } 4296if test ${am_cv_CC_dependencies_compiler_type+y} 4297then : 4298 printf %s "(cached) " >&6 4299else case e in #( 4300 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4301 # We make a subdir and do the tests there. Otherwise we can end up 4302 # making bogus files that we don't know about and never remove. For 4303 # instance it was reported that on HP-UX the gcc test will end up 4304 # making a dummy file named 'D' -- because '-MD' means "put the output 4305 # in D". 4306 rm -rf conftest.dir 4307 mkdir conftest.dir 4308 # Copy depcomp to subdir because otherwise we won't find it if we're 4309 # using a relative directory. 4310 cp "$am_depcomp" conftest.dir 4311 cd conftest.dir 4312 # We will build objects and dependencies in a subdirectory because 4313 # it helps to detect inapplicable dependency modes. For instance 4314 # both Tru64's cc and ICC support -MD to output dependencies as a 4315 # side effect of compilation, but ICC will put the dependencies in 4316 # the current directory while Tru64 will put them in the object 4317 # directory. 4318 mkdir sub 4319 4320 am_cv_CC_dependencies_compiler_type=none 4321 if test "$am_compiler_list" = ""; then 4322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4323 fi 4324 am__universal=false 4325 case " $depcc " in #( 4326 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4327 esac 4328 4329 for depmode in $am_compiler_list; do 4330 # Setup a source with many dependencies, because some compilers 4331 # like to wrap large dependency lists on column 80 (with \), and 4332 # we should not choose a depcomp mode which is confused by this. 4333 # 4334 # We need to recreate these files for each test, as the compiler may 4335 # overwrite some of them when testing with obscure command lines. 4336 # This happens at least with the AIX C compiler. 4337 : > sub/conftest.c 4338 for i in 1 2 3 4 5 6; do 4339 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4340 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4341 # Solaris 10 /bin/sh. 4342 echo '/* dummy */' > sub/conftst$i.h 4343 done 4344 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4345 4346 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4347 # mode. It turns out that the SunPro C++ compiler does not properly 4348 # handle '-M -o', and we need to detect this. Also, some Intel 4349 # versions had trouble with output in subdirs. 4350 am__obj=sub/conftest.${OBJEXT-o} 4351 am__minus_obj="-o $am__obj" 4352 case $depmode in 4353 gcc) 4354 # This depmode causes a compiler race in universal mode. 4355 test "$am__universal" = false || continue 4356 ;; 4357 nosideeffect) 4358 # After this tag, mechanisms are not by side-effect, so they'll 4359 # only be used when explicitly requested. 4360 if test "x$enable_dependency_tracking" = xyes; then 4361 continue 4362 else 4363 break 4364 fi 4365 ;; 4366 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4367 # This compiler won't grok '-c -o', but also, the minuso test has 4368 # not run yet. These depmodes are late enough in the game, and 4369 # so weak that their functioning should not be impacted. 4370 am__obj=conftest.${OBJEXT-o} 4371 am__minus_obj= 4372 ;; 4373 none) break ;; 4374 esac 4375 if depmode=$depmode \ 4376 source=sub/conftest.c object=$am__obj \ 4377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4378 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4379 >/dev/null 2>conftest.err && 4380 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4382 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4384 # icc doesn't choke on unknown options, it will just issue warnings 4385 # or remarks (even with -Werror). So we grep stderr for any message 4386 # that says an option was ignored or not supported. 4387 # When given -MP, icc 7.0 and 7.1 complain thusly: 4388 # icc: Command line warning: ignoring option '-M'; no argument required 4389 # The diagnosis changed in icc 8.0: 4390 # icc: Command line remark: option '-MP' not supported 4391 if (grep 'ignoring option' conftest.err || 4392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4393 am_cv_CC_dependencies_compiler_type=$depmode 4394 break 4395 fi 4396 fi 4397 done 4398 4399 cd .. 4400 rm -rf conftest.dir 4401else 4402 am_cv_CC_dependencies_compiler_type=none 4403fi 4404 ;; 4405esac 4406fi 4407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4408printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4409CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4410 4411 if 4412 test "x$enable_dependency_tracking" != xno \ 4413 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4414 am__fastdepCC_TRUE= 4415 am__fastdepCC_FALSE='#' 4416else 4417 am__fastdepCC_TRUE='#' 4418 am__fastdepCC_FALSE= 4419fi 4420 4421 4422 4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4424printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4425if test ${ac_cv_c_undeclared_builtin_options+y} 4426then : 4427 printf %s "(cached) " >&6 4428else case e in #( 4429 e) ac_save_CFLAGS=$CFLAGS 4430 ac_cv_c_undeclared_builtin_options='cannot detect' 4431 for ac_arg in '' -fno-builtin; do 4432 CFLAGS="$ac_save_CFLAGS $ac_arg" 4433 # This test program should *not* compile successfully. 4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4435/* end confdefs.h. */ 4436 4437int 4438main (void) 4439{ 4440(void) strchr; 4441 ; 4442 return 0; 4443} 4444_ACEOF 4445if ac_fn_c_try_compile "$LINENO" 4446then : 4447 4448else case e in #( 4449 e) # This test program should compile successfully. 4450 # No library function is consistently available on 4451 # freestanding implementations, so test against a dummy 4452 # declaration. Include always-available headers on the 4453 # off chance that they somehow elicit warnings. 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455/* end confdefs.h. */ 4456#include <float.h> 4457#include <limits.h> 4458#include <stdarg.h> 4459#include <stddef.h> 4460extern void ac_decl (int, char *); 4461 4462int 4463main (void) 4464{ 4465(void) ac_decl (0, (char *) 0); 4466 (void) ac_decl; 4467 4468 ; 4469 return 0; 4470} 4471_ACEOF 4472if ac_fn_c_try_compile "$LINENO" 4473then : 4474 if test x"$ac_arg" = x 4475then : 4476 ac_cv_c_undeclared_builtin_options='none needed' 4477else case e in #( 4478 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4479esac 4480fi 4481 break 4482fi 4483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4484esac 4485fi 4486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4487 done 4488 CFLAGS=$ac_save_CFLAGS 4489 ;; 4490esac 4491fi 4492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4493printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4494 case $ac_cv_c_undeclared_builtin_options in #( 4495 'cannot detect') : 4496 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4497printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4498as_fn_error $? "cannot make $CC report undeclared builtins 4499See 'config.log' for more details" "$LINENO" 5; } ;; #( 4500 'none needed') : 4501 ac_c_undeclared_builtin_options='' ;; #( 4502 *) : 4503 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4504esac 4505 4506ac_header= ac_cache= 4507for ac_item in $ac_header_c_list 4508do 4509 if test $ac_cache; then 4510 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4511 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4512 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4513 fi 4514 ac_header= ac_cache= 4515 elif test $ac_header; then 4516 ac_cache=$ac_item 4517 else 4518 ac_header=$ac_item 4519 fi 4520done 4521 4522 4523 4524 4525 4526 4527 4528 4529if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4530then : 4531 4532printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4533 4534fi 4535 4536 4537 4538 4539ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4540if test "x$ac_cv_have_decl___clang__" = xyes 4541then : 4542 CLANGCC="yes" 4543else case e in #( 4544 e) CLANGCC="no" ;; 4545esac 4546fi 4547ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4548if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4549then : 4550 INTELCC="yes" 4551else case e in #( 4552 e) INTELCC="no" ;; 4553esac 4554fi 4555ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4556if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4557then : 4558 SUNCC="yes" 4559else case e in #( 4560 e) SUNCC="no" ;; 4561esac 4562fi 4563 4564 4565 4566 4567 4568 4569 4570 4571if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4572 if test -n "$ac_tool_prefix"; then 4573 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4574set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4576printf %s "checking for $ac_word... " >&6; } 4577if test ${ac_cv_path_PKG_CONFIG+y} 4578then : 4579 printf %s "(cached) " >&6 4580else case e in #( 4581 e) case $PKG_CONFIG in 4582 [\\/]* | ?:[\\/]*) 4583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4584 ;; 4585 *) 4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH 4588do 4589 IFS=$as_save_IFS 4590 case $as_dir in #((( 4591 '') as_dir=./ ;; 4592 */) ;; 4593 *) as_dir=$as_dir/ ;; 4594 esac 4595 for ac_exec_ext in '' $ac_executable_extensions; do 4596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4597 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4599 break 2 4600 fi 4601done 4602 done 4603IFS=$as_save_IFS 4604 4605 ;; 4606esac ;; 4607esac 4608fi 4609PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4610if test -n "$PKG_CONFIG"; then 4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4612printf "%s\n" "$PKG_CONFIG" >&6; } 4613else 4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4615printf "%s\n" "no" >&6; } 4616fi 4617 4618 4619fi 4620if test -z "$ac_cv_path_PKG_CONFIG"; then 4621 ac_pt_PKG_CONFIG=$PKG_CONFIG 4622 # Extract the first word of "pkg-config", so it can be a program name with args. 4623set dummy pkg-config; ac_word=$2 4624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4625printf %s "checking for $ac_word... " >&6; } 4626if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4627then : 4628 printf %s "(cached) " >&6 4629else case e in #( 4630 e) case $ac_pt_PKG_CONFIG in 4631 [\\/]* | ?:[\\/]*) 4632 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4633 ;; 4634 *) 4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4636for as_dir in $PATH 4637do 4638 IFS=$as_save_IFS 4639 case $as_dir in #((( 4640 '') as_dir=./ ;; 4641 */) ;; 4642 *) as_dir=$as_dir/ ;; 4643 esac 4644 for ac_exec_ext in '' $ac_executable_extensions; do 4645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4646 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4648 break 2 4649 fi 4650done 4651 done 4652IFS=$as_save_IFS 4653 4654 ;; 4655esac ;; 4656esac 4657fi 4658ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4659if test -n "$ac_pt_PKG_CONFIG"; then 4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4661printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4662else 4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4664printf "%s\n" "no" >&6; } 4665fi 4666 4667 if test "x$ac_pt_PKG_CONFIG" = x; then 4668 PKG_CONFIG="" 4669 else 4670 case $cross_compiling:$ac_tool_warned in 4671yes:) 4672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4673printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4674ac_tool_warned=yes ;; 4675esac 4676 PKG_CONFIG=$ac_pt_PKG_CONFIG 4677 fi 4678else 4679 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4680fi 4681 4682fi 4683if test -n "$PKG_CONFIG"; then 4684 _pkg_min_version=0.9.0 4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4686printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4687 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4689printf "%s\n" "yes" >&6; } 4690 else 4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4692printf "%s\n" "no" >&6; } 4693 PKG_CONFIG="" 4694 fi 4695fi 4696if test -z "$PKG_CONFIG"; then 4697 as_fn_error $? "pkg-config not found" "$LINENO" 5 4698fi 4699 4700 4701 # Make sure we can run config.sub. 4702$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4703 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4704 4705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4706printf %s "checking build system type... " >&6; } 4707if test ${ac_cv_build+y} 4708then : 4709 printf %s "(cached) " >&6 4710else case e in #( 4711 e) ac_build_alias=$build_alias 4712test "x$ac_build_alias" = x && 4713 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4714test "x$ac_build_alias" = x && 4715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4716ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4717 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4718 ;; 4719esac 4720fi 4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4722printf "%s\n" "$ac_cv_build" >&6; } 4723case $ac_cv_build in 4724*-*-*) ;; 4725*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4726esac 4727build=$ac_cv_build 4728ac_save_IFS=$IFS; IFS='-' 4729set x $ac_cv_build 4730shift 4731build_cpu=$1 4732build_vendor=$2 4733shift; shift 4734# Remember, the first character of IFS is used to create $*, 4735# except with old shells: 4736build_os=$* 4737IFS=$ac_save_IFS 4738case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4739 4740 4741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4742printf %s "checking host system type... " >&6; } 4743if test ${ac_cv_host+y} 4744then : 4745 printf %s "(cached) " >&6 4746else case e in #( 4747 e) if test "x$host_alias" = x; then 4748 ac_cv_host=$ac_cv_build 4749else 4750 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4752fi 4753 ;; 4754esac 4755fi 4756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4757printf "%s\n" "$ac_cv_host" >&6; } 4758case $ac_cv_host in 4759*-*-*) ;; 4760*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4761esac 4762host=$ac_cv_host 4763ac_save_IFS=$IFS; IFS='-' 4764set x $ac_cv_host 4765shift 4766host_cpu=$1 4767host_vendor=$2 4768shift; shift 4769# Remember, the first character of IFS is used to create $*, 4770# except with old shells: 4771host_os=$* 4772IFS=$ac_save_IFS 4773case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4774 4775 4776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4777printf %s "checking for a sed that does not truncate output... " >&6; } 4778if test ${ac_cv_path_SED+y} 4779then : 4780 printf %s "(cached) " >&6 4781else case e in #( 4782 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4783 for ac_i in 1 2 3 4 5 6 7; do 4784 ac_script="$ac_script$as_nl$ac_script" 4785 done 4786 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4787 { ac_script=; unset ac_script;} 4788 if test -z "$SED"; then 4789 ac_path_SED_found=false 4790 # Loop through the user's path and test for each of PROGNAME-LIST 4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4792for as_dir in $PATH 4793do 4794 IFS=$as_save_IFS 4795 case $as_dir in #((( 4796 '') as_dir=./ ;; 4797 */) ;; 4798 *) as_dir=$as_dir/ ;; 4799 esac 4800 for ac_prog in sed gsed 4801 do 4802 for ac_exec_ext in '' $ac_executable_extensions; do 4803 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4804 as_fn_executable_p "$ac_path_SED" || continue 4805# Check for GNU ac_path_SED and select it if it is found. 4806 # Check for GNU $ac_path_SED 4807case `"$ac_path_SED" --version 2>&1` in #( 4808*GNU*) 4809 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4810#( 4811*) 4812 ac_count=0 4813 printf %s 0123456789 >"conftest.in" 4814 while : 4815 do 4816 cat "conftest.in" "conftest.in" >"conftest.tmp" 4817 mv "conftest.tmp" "conftest.in" 4818 cp "conftest.in" "conftest.nl" 4819 printf "%s\n" '' >> "conftest.nl" 4820 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4822 as_fn_arith $ac_count + 1 && ac_count=$as_val 4823 if test $ac_count -gt ${ac_path_SED_max-0}; then 4824 # Best one so far, save it but keep looking for a better one 4825 ac_cv_path_SED="$ac_path_SED" 4826 ac_path_SED_max=$ac_count 4827 fi 4828 # 10*(2^10) chars as input seems more than enough 4829 test $ac_count -gt 10 && break 4830 done 4831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4832esac 4833 4834 $ac_path_SED_found && break 3 4835 done 4836 done 4837 done 4838IFS=$as_save_IFS 4839 if test -z "$ac_cv_path_SED"; then 4840 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4841 fi 4842else 4843 ac_cv_path_SED=$SED 4844fi 4845 ;; 4846esac 4847fi 4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4849printf "%s\n" "$ac_cv_path_SED" >&6; } 4850 SED="$ac_cv_path_SED" 4851 rm -f conftest.sed 4852 4853 4854 4855 4856 4857 4858# Check whether --enable-selective-werror was given. 4859if test ${enable_selective_werror+y} 4860then : 4861 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4862else case e in #( 4863 e) SELECTIVE_WERROR=yes ;; 4864esac 4865fi 4866 4867 4868 4869 4870 4871# -v is too short to test reliably with XORG_TESTSET_CFLAG 4872if test "x$SUNCC" = "xyes"; then 4873 BASE_CFLAGS="-v" 4874else 4875 BASE_CFLAGS="" 4876fi 4877 4878# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892xorg_testset_save_CFLAGS="$CFLAGS" 4893 4894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4897printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4898if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4899then : 4900 printf %s "(cached) " >&6 4901else case e in #( 4902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4903/* end confdefs.h. */ 4904int i; 4905_ACEOF 4906if ac_fn_c_try_compile "$LINENO" 4907then : 4908 xorg_cv_cc_flag_unknown_warning_option=yes 4909else case e in #( 4910 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4911esac 4912fi 4913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4914esac 4915fi 4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4917printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4919 CFLAGS="$xorg_testset_save_CFLAGS" 4920fi 4921 4922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4925 fi 4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4928printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4929if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4930then : 4931 printf %s "(cached) " >&6 4932else case e in #( 4933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4934/* end confdefs.h. */ 4935int i; 4936_ACEOF 4937if ac_fn_c_try_compile "$LINENO" 4938then : 4939 xorg_cv_cc_flag_unused_command_line_argument=yes 4940else case e in #( 4941 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4942esac 4943fi 4944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4945esac 4946fi 4947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4950 CFLAGS="$xorg_testset_save_CFLAGS" 4951fi 4952 4953found="no" 4954 4955 if test $found = "no" ; then 4956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4958 fi 4959 4960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4962 fi 4963 4964 CFLAGS="$CFLAGS -Wall" 4965 4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4967printf %s "checking if $CC supports -Wall... " >&6; } 4968 cacheid=xorg_cv_cc_flag__Wall 4969 if eval test \${$cacheid+y} 4970then : 4971 printf %s "(cached) " >&6 4972else case e in #( 4973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4974/* end confdefs.h. */ 4975int i; 4976int 4977main (void) 4978{ 4979 4980 ; 4981 return 0; 4982} 4983_ACEOF 4984if ac_fn_c_try_link "$LINENO" 4985then : 4986 eval $cacheid=yes 4987else case e in #( 4988 e) eval $cacheid=no ;; 4989esac 4990fi 4991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4992 conftest$ac_exeext conftest.$ac_ext ;; 4993esac 4994fi 4995 4996 4997 CFLAGS="$xorg_testset_save_CFLAGS" 4998 4999 eval supported=\$$cacheid 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5001printf "%s\n" "$supported" >&6; } 5002 if test "$supported" = "yes" ; then 5003 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5004 found="yes" 5005 fi 5006 fi 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022xorg_testset_save_CFLAGS="$CFLAGS" 5023 5024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5028if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5029then : 5030 printf %s "(cached) " >&6 5031else case e in #( 5032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033/* end confdefs.h. */ 5034int i; 5035_ACEOF 5036if ac_fn_c_try_compile "$LINENO" 5037then : 5038 xorg_cv_cc_flag_unknown_warning_option=yes 5039else case e in #( 5040 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5041esac 5042fi 5043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5044esac 5045fi 5046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5047printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5049 CFLAGS="$xorg_testset_save_CFLAGS" 5050fi 5051 5052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5055 fi 5056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5058printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5059if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5060then : 5061 printf %s "(cached) " >&6 5062else case e in #( 5063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5064/* end confdefs.h. */ 5065int i; 5066_ACEOF 5067if ac_fn_c_try_compile "$LINENO" 5068then : 5069 xorg_cv_cc_flag_unused_command_line_argument=yes 5070else case e in #( 5071 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5072esac 5073fi 5074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5075esac 5076fi 5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5080 CFLAGS="$xorg_testset_save_CFLAGS" 5081fi 5082 5083found="no" 5084 5085 if test $found = "no" ; then 5086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5088 fi 5089 5090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5092 fi 5093 5094 CFLAGS="$CFLAGS -Wpointer-arith" 5095 5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5097printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5098 cacheid=xorg_cv_cc_flag__Wpointer_arith 5099 if eval test \${$cacheid+y} 5100then : 5101 printf %s "(cached) " >&6 5102else case e in #( 5103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5104/* end confdefs.h. */ 5105int i; 5106int 5107main (void) 5108{ 5109 5110 ; 5111 return 0; 5112} 5113_ACEOF 5114if ac_fn_c_try_link "$LINENO" 5115then : 5116 eval $cacheid=yes 5117else case e in #( 5118 e) eval $cacheid=no ;; 5119esac 5120fi 5121rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5122 conftest$ac_exeext conftest.$ac_ext ;; 5123esac 5124fi 5125 5126 5127 CFLAGS="$xorg_testset_save_CFLAGS" 5128 5129 eval supported=\$$cacheid 5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5131printf "%s\n" "$supported" >&6; } 5132 if test "$supported" = "yes" ; then 5133 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5134 found="yes" 5135 fi 5136 fi 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152xorg_testset_save_CFLAGS="$CFLAGS" 5153 5154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5157printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5158if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5159then : 5160 printf %s "(cached) " >&6 5161else case e in #( 5162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5163/* end confdefs.h. */ 5164int i; 5165_ACEOF 5166if ac_fn_c_try_compile "$LINENO" 5167then : 5168 xorg_cv_cc_flag_unknown_warning_option=yes 5169else case e in #( 5170 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5171esac 5172fi 5173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5174esac 5175fi 5176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5177printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5179 CFLAGS="$xorg_testset_save_CFLAGS" 5180fi 5181 5182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5185 fi 5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5188printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5189if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5190then : 5191 printf %s "(cached) " >&6 5192else case e in #( 5193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5194/* end confdefs.h. */ 5195int i; 5196_ACEOF 5197if ac_fn_c_try_compile "$LINENO" 5198then : 5199 xorg_cv_cc_flag_unused_command_line_argument=yes 5200else case e in #( 5201 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5202esac 5203fi 5204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5205esac 5206fi 5207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5208printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5210 CFLAGS="$xorg_testset_save_CFLAGS" 5211fi 5212 5213found="no" 5214 5215 if test $found = "no" ; then 5216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5218 fi 5219 5220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5222 fi 5223 5224 CFLAGS="$CFLAGS -Wmissing-declarations" 5225 5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5227printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5228 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5229 if eval test \${$cacheid+y} 5230then : 5231 printf %s "(cached) " >&6 5232else case e in #( 5233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235int i; 5236int 5237main (void) 5238{ 5239 5240 ; 5241 return 0; 5242} 5243_ACEOF 5244if ac_fn_c_try_link "$LINENO" 5245then : 5246 eval $cacheid=yes 5247else case e in #( 5248 e) eval $cacheid=no ;; 5249esac 5250fi 5251rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5252 conftest$ac_exeext conftest.$ac_ext ;; 5253esac 5254fi 5255 5256 5257 CFLAGS="$xorg_testset_save_CFLAGS" 5258 5259 eval supported=\$$cacheid 5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5261printf "%s\n" "$supported" >&6; } 5262 if test "$supported" = "yes" ; then 5263 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5264 found="yes" 5265 fi 5266 fi 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282xorg_testset_save_CFLAGS="$CFLAGS" 5283 5284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5287printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5288if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5289then : 5290 printf %s "(cached) " >&6 5291else case e in #( 5292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295_ACEOF 5296if ac_fn_c_try_compile "$LINENO" 5297then : 5298 xorg_cv_cc_flag_unknown_warning_option=yes 5299else case e in #( 5300 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5301esac 5302fi 5303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5304esac 5305fi 5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5307printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5309 CFLAGS="$xorg_testset_save_CFLAGS" 5310fi 5311 5312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5315 fi 5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5318printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5319if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5320then : 5321 printf %s "(cached) " >&6 5322else case e in #( 5323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5324/* end confdefs.h. */ 5325int i; 5326_ACEOF 5327if ac_fn_c_try_compile "$LINENO" 5328then : 5329 xorg_cv_cc_flag_unused_command_line_argument=yes 5330else case e in #( 5331 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5332esac 5333fi 5334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5335esac 5336fi 5337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5338printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5340 CFLAGS="$xorg_testset_save_CFLAGS" 5341fi 5342 5343found="no" 5344 5345 if test $found = "no" ; then 5346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5348 fi 5349 5350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5352 fi 5353 5354 CFLAGS="$CFLAGS -Wformat=2" 5355 5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5357printf %s "checking if $CC supports -Wformat=2... " >&6; } 5358 cacheid=xorg_cv_cc_flag__Wformat_2 5359 if eval test \${$cacheid+y} 5360then : 5361 printf %s "(cached) " >&6 5362else case e in #( 5363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364/* end confdefs.h. */ 5365int i; 5366int 5367main (void) 5368{ 5369 5370 ; 5371 return 0; 5372} 5373_ACEOF 5374if ac_fn_c_try_link "$LINENO" 5375then : 5376 eval $cacheid=yes 5377else case e in #( 5378 e) eval $cacheid=no ;; 5379esac 5380fi 5381rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5382 conftest$ac_exeext conftest.$ac_ext ;; 5383esac 5384fi 5385 5386 5387 CFLAGS="$xorg_testset_save_CFLAGS" 5388 5389 eval supported=\$$cacheid 5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5391printf "%s\n" "$supported" >&6; } 5392 if test "$supported" = "yes" ; then 5393 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5394 found="yes" 5395 fi 5396 fi 5397 5398 if test $found = "no" ; then 5399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5401 fi 5402 5403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5405 fi 5406 5407 CFLAGS="$CFLAGS -Wformat" 5408 5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5410printf %s "checking if $CC supports -Wformat... " >&6; } 5411 cacheid=xorg_cv_cc_flag__Wformat 5412 if eval test \${$cacheid+y} 5413then : 5414 printf %s "(cached) " >&6 5415else case e in #( 5416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418int i; 5419int 5420main (void) 5421{ 5422 5423 ; 5424 return 0; 5425} 5426_ACEOF 5427if ac_fn_c_try_link "$LINENO" 5428then : 5429 eval $cacheid=yes 5430else case e in #( 5431 e) eval $cacheid=no ;; 5432esac 5433fi 5434rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5435 conftest$ac_exeext conftest.$ac_ext ;; 5436esac 5437fi 5438 5439 5440 CFLAGS="$xorg_testset_save_CFLAGS" 5441 5442 eval supported=\$$cacheid 5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5444printf "%s\n" "$supported" >&6; } 5445 if test "$supported" = "yes" ; then 5446 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5447 found="yes" 5448 fi 5449 fi 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467xorg_testset_save_CFLAGS="$CFLAGS" 5468 5469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5472printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5473if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5474then : 5475 printf %s "(cached) " >&6 5476else case e in #( 5477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5478/* end confdefs.h. */ 5479int i; 5480_ACEOF 5481if ac_fn_c_try_compile "$LINENO" 5482then : 5483 xorg_cv_cc_flag_unknown_warning_option=yes 5484else case e in #( 5485 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5486esac 5487fi 5488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5489esac 5490fi 5491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5494 CFLAGS="$xorg_testset_save_CFLAGS" 5495fi 5496 5497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500 fi 5501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5504if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5505then : 5506 printf %s "(cached) " >&6 5507else case e in #( 5508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5509/* end confdefs.h. */ 5510int i; 5511_ACEOF 5512if ac_fn_c_try_compile "$LINENO" 5513then : 5514 xorg_cv_cc_flag_unused_command_line_argument=yes 5515else case e in #( 5516 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5517esac 5518fi 5519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5520esac 5521fi 5522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5523printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5525 CFLAGS="$xorg_testset_save_CFLAGS" 5526fi 5527 5528found="no" 5529 5530 if test $found = "no" ; then 5531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5533 fi 5534 5535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5537 fi 5538 5539 CFLAGS="$CFLAGS -Wstrict-prototypes" 5540 5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5542printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5543 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5544 if eval test \${$cacheid+y} 5545then : 5546 printf %s "(cached) " >&6 5547else case e in #( 5548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5549/* end confdefs.h. */ 5550int i; 5551int 5552main (void) 5553{ 5554 5555 ; 5556 return 0; 5557} 5558_ACEOF 5559if ac_fn_c_try_link "$LINENO" 5560then : 5561 eval $cacheid=yes 5562else case e in #( 5563 e) eval $cacheid=no ;; 5564esac 5565fi 5566rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5567 conftest$ac_exeext conftest.$ac_ext ;; 5568esac 5569fi 5570 5571 5572 CFLAGS="$xorg_testset_save_CFLAGS" 5573 5574 eval supported=\$$cacheid 5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5576printf "%s\n" "$supported" >&6; } 5577 if test "$supported" = "yes" ; then 5578 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5579 found="yes" 5580 fi 5581 fi 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597xorg_testset_save_CFLAGS="$CFLAGS" 5598 5599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5602printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5603if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5604then : 5605 printf %s "(cached) " >&6 5606else case e in #( 5607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5608/* end confdefs.h. */ 5609int i; 5610_ACEOF 5611if ac_fn_c_try_compile "$LINENO" 5612then : 5613 xorg_cv_cc_flag_unknown_warning_option=yes 5614else case e in #( 5615 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5616esac 5617fi 5618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5619esac 5620fi 5621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5622printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5624 CFLAGS="$xorg_testset_save_CFLAGS" 5625fi 5626 5627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5630 fi 5631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5633printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5634if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5635then : 5636 printf %s "(cached) " >&6 5637else case e in #( 5638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639/* end confdefs.h. */ 5640int i; 5641_ACEOF 5642if ac_fn_c_try_compile "$LINENO" 5643then : 5644 xorg_cv_cc_flag_unused_command_line_argument=yes 5645else case e in #( 5646 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5647esac 5648fi 5649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5650esac 5651fi 5652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5653printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5655 CFLAGS="$xorg_testset_save_CFLAGS" 5656fi 5657 5658found="no" 5659 5660 if test $found = "no" ; then 5661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5663 fi 5664 5665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5667 fi 5668 5669 CFLAGS="$CFLAGS -Wmissing-prototypes" 5670 5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5672printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5673 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5674 if eval test \${$cacheid+y} 5675then : 5676 printf %s "(cached) " >&6 5677else case e in #( 5678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5679/* end confdefs.h. */ 5680int i; 5681int 5682main (void) 5683{ 5684 5685 ; 5686 return 0; 5687} 5688_ACEOF 5689if ac_fn_c_try_link "$LINENO" 5690then : 5691 eval $cacheid=yes 5692else case e in #( 5693 e) eval $cacheid=no ;; 5694esac 5695fi 5696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5697 conftest$ac_exeext conftest.$ac_ext ;; 5698esac 5699fi 5700 5701 5702 CFLAGS="$xorg_testset_save_CFLAGS" 5703 5704 eval supported=\$$cacheid 5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5706printf "%s\n" "$supported" >&6; } 5707 if test "$supported" = "yes" ; then 5708 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5709 found="yes" 5710 fi 5711 fi 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727xorg_testset_save_CFLAGS="$CFLAGS" 5728 5729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5733if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5734then : 5735 printf %s "(cached) " >&6 5736else case e in #( 5737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738/* end confdefs.h. */ 5739int i; 5740_ACEOF 5741if ac_fn_c_try_compile "$LINENO" 5742then : 5743 xorg_cv_cc_flag_unknown_warning_option=yes 5744else case e in #( 5745 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5746esac 5747fi 5748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5749esac 5750fi 5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5752printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5754 CFLAGS="$xorg_testset_save_CFLAGS" 5755fi 5756 5757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5760 fi 5761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5763printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5764if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5765then : 5766 printf %s "(cached) " >&6 5767else case e in #( 5768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769/* end confdefs.h. */ 5770int i; 5771_ACEOF 5772if ac_fn_c_try_compile "$LINENO" 5773then : 5774 xorg_cv_cc_flag_unused_command_line_argument=yes 5775else case e in #( 5776 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5777esac 5778fi 5779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5780esac 5781fi 5782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5783printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5786fi 5787 5788found="no" 5789 5790 if test $found = "no" ; then 5791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5793 fi 5794 5795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5797 fi 5798 5799 CFLAGS="$CFLAGS -Wnested-externs" 5800 5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5802printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5803 cacheid=xorg_cv_cc_flag__Wnested_externs 5804 if eval test \${$cacheid+y} 5805then : 5806 printf %s "(cached) " >&6 5807else case e in #( 5808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809/* end confdefs.h. */ 5810int i; 5811int 5812main (void) 5813{ 5814 5815 ; 5816 return 0; 5817} 5818_ACEOF 5819if ac_fn_c_try_link "$LINENO" 5820then : 5821 eval $cacheid=yes 5822else case e in #( 5823 e) eval $cacheid=no ;; 5824esac 5825fi 5826rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5827 conftest$ac_exeext conftest.$ac_ext ;; 5828esac 5829fi 5830 5831 5832 CFLAGS="$xorg_testset_save_CFLAGS" 5833 5834 eval supported=\$$cacheid 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5836printf "%s\n" "$supported" >&6; } 5837 if test "$supported" = "yes" ; then 5838 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5839 found="yes" 5840 fi 5841 fi 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857xorg_testset_save_CFLAGS="$CFLAGS" 5858 5859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5862printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5863if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5864then : 5865 printf %s "(cached) " >&6 5866else case e in #( 5867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869int i; 5870_ACEOF 5871if ac_fn_c_try_compile "$LINENO" 5872then : 5873 xorg_cv_cc_flag_unknown_warning_option=yes 5874else case e in #( 5875 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5876esac 5877fi 5878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5879esac 5880fi 5881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5882printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5884 CFLAGS="$xorg_testset_save_CFLAGS" 5885fi 5886 5887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5890 fi 5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5893printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5894if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5895then : 5896 printf %s "(cached) " >&6 5897else case e in #( 5898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899/* end confdefs.h. */ 5900int i; 5901_ACEOF 5902if ac_fn_c_try_compile "$LINENO" 5903then : 5904 xorg_cv_cc_flag_unused_command_line_argument=yes 5905else case e in #( 5906 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5907esac 5908fi 5909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5910esac 5911fi 5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5915 CFLAGS="$xorg_testset_save_CFLAGS" 5916fi 5917 5918found="no" 5919 5920 if test $found = "no" ; then 5921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5923 fi 5924 5925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5927 fi 5928 5929 CFLAGS="$CFLAGS -Wbad-function-cast" 5930 5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5932printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5933 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5934 if eval test \${$cacheid+y} 5935then : 5936 printf %s "(cached) " >&6 5937else case e in #( 5938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5939/* end confdefs.h. */ 5940int i; 5941int 5942main (void) 5943{ 5944 5945 ; 5946 return 0; 5947} 5948_ACEOF 5949if ac_fn_c_try_link "$LINENO" 5950then : 5951 eval $cacheid=yes 5952else case e in #( 5953 e) eval $cacheid=no ;; 5954esac 5955fi 5956rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5957 conftest$ac_exeext conftest.$ac_ext ;; 5958esac 5959fi 5960 5961 5962 CFLAGS="$xorg_testset_save_CFLAGS" 5963 5964 eval supported=\$$cacheid 5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5966printf "%s\n" "$supported" >&6; } 5967 if test "$supported" = "yes" ; then 5968 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5969 found="yes" 5970 fi 5971 fi 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987xorg_testset_save_CFLAGS="$CFLAGS" 5988 5989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5992printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5993if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5994then : 5995 printf %s "(cached) " >&6 5996else case e in #( 5997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999int i; 6000_ACEOF 6001if ac_fn_c_try_compile "$LINENO" 6002then : 6003 xorg_cv_cc_flag_unknown_warning_option=yes 6004else case e in #( 6005 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6006esac 6007fi 6008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6009esac 6010fi 6011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6012printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6014 CFLAGS="$xorg_testset_save_CFLAGS" 6015fi 6016 6017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6020 fi 6021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6023printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6024if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6025then : 6026 printf %s "(cached) " >&6 6027else case e in #( 6028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6029/* end confdefs.h. */ 6030int i; 6031_ACEOF 6032if ac_fn_c_try_compile "$LINENO" 6033then : 6034 xorg_cv_cc_flag_unused_command_line_argument=yes 6035else case e in #( 6036 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6037esac 6038fi 6039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6040esac 6041fi 6042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6043printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6045 CFLAGS="$xorg_testset_save_CFLAGS" 6046fi 6047 6048found="no" 6049 6050 if test $found = "no" ; then 6051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6053 fi 6054 6055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6057 fi 6058 6059 CFLAGS="$CFLAGS -Wold-style-definition" 6060 6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6062printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6063 cacheid=xorg_cv_cc_flag__Wold_style_definition 6064 if eval test \${$cacheid+y} 6065then : 6066 printf %s "(cached) " >&6 6067else case e in #( 6068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6069/* end confdefs.h. */ 6070int i; 6071int 6072main (void) 6073{ 6074 6075 ; 6076 return 0; 6077} 6078_ACEOF 6079if ac_fn_c_try_link "$LINENO" 6080then : 6081 eval $cacheid=yes 6082else case e in #( 6083 e) eval $cacheid=no ;; 6084esac 6085fi 6086rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6087 conftest$ac_exeext conftest.$ac_ext ;; 6088esac 6089fi 6090 6091 6092 CFLAGS="$xorg_testset_save_CFLAGS" 6093 6094 eval supported=\$$cacheid 6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6096printf "%s\n" "$supported" >&6; } 6097 if test "$supported" = "yes" ; then 6098 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6099 found="yes" 6100 fi 6101 fi 6102 6103 if test $found = "no" ; then 6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6106 fi 6107 6108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6110 fi 6111 6112 CFLAGS="$CFLAGS -fd" 6113 6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6115printf %s "checking if $CC supports -fd... " >&6; } 6116 cacheid=xorg_cv_cc_flag__fd 6117 if eval test \${$cacheid+y} 6118then : 6119 printf %s "(cached) " >&6 6120else case e in #( 6121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122/* end confdefs.h. */ 6123int i; 6124int 6125main (void) 6126{ 6127 6128 ; 6129 return 0; 6130} 6131_ACEOF 6132if ac_fn_c_try_link "$LINENO" 6133then : 6134 eval $cacheid=yes 6135else case e in #( 6136 e) eval $cacheid=no ;; 6137esac 6138fi 6139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6140 conftest$ac_exeext conftest.$ac_ext ;; 6141esac 6142fi 6143 6144 6145 CFLAGS="$xorg_testset_save_CFLAGS" 6146 6147 eval supported=\$$cacheid 6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6149printf "%s\n" "$supported" >&6; } 6150 if test "$supported" = "yes" ; then 6151 BASE_CFLAGS="$BASE_CFLAGS -fd" 6152 found="yes" 6153 fi 6154 fi 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170xorg_testset_save_CFLAGS="$CFLAGS" 6171 6172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6176if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6177then : 6178 printf %s "(cached) " >&6 6179else case e in #( 6180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181/* end confdefs.h. */ 6182int i; 6183_ACEOF 6184if ac_fn_c_try_compile "$LINENO" 6185then : 6186 xorg_cv_cc_flag_unknown_warning_option=yes 6187else case e in #( 6188 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6189esac 6190fi 6191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6192esac 6193fi 6194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6197 CFLAGS="$xorg_testset_save_CFLAGS" 6198fi 6199 6200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6203 fi 6204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6207if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6208then : 6209 printf %s "(cached) " >&6 6210else case e in #( 6211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213int i; 6214_ACEOF 6215if ac_fn_c_try_compile "$LINENO" 6216then : 6217 xorg_cv_cc_flag_unused_command_line_argument=yes 6218else case e in #( 6219 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6220esac 6221fi 6222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6223esac 6224fi 6225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6226printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6228 CFLAGS="$xorg_testset_save_CFLAGS" 6229fi 6230 6231found="no" 6232 6233 if test $found = "no" ; then 6234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6236 fi 6237 6238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6240 fi 6241 6242 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6243 6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6245printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6246 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6247 if eval test \${$cacheid+y} 6248then : 6249 printf %s "(cached) " >&6 6250else case e in #( 6251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253int i; 6254int 6255main (void) 6256{ 6257 6258 ; 6259 return 0; 6260} 6261_ACEOF 6262if ac_fn_c_try_link "$LINENO" 6263then : 6264 eval $cacheid=yes 6265else case e in #( 6266 e) eval $cacheid=no ;; 6267esac 6268fi 6269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6270 conftest$ac_exeext conftest.$ac_ext ;; 6271esac 6272fi 6273 6274 6275 CFLAGS="$xorg_testset_save_CFLAGS" 6276 6277 eval supported=\$$cacheid 6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6279printf "%s\n" "$supported" >&6; } 6280 if test "$supported" = "yes" ; then 6281 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6282 found="yes" 6283 fi 6284 fi 6285 6286 6287 6288 6289 6290# This chunk adds additional warnings that could catch undesired effects. 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304xorg_testset_save_CFLAGS="$CFLAGS" 6305 6306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6309printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6310if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6311then : 6312 printf %s "(cached) " >&6 6313else case e in #( 6314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6315/* end confdefs.h. */ 6316int i; 6317_ACEOF 6318if ac_fn_c_try_compile "$LINENO" 6319then : 6320 xorg_cv_cc_flag_unknown_warning_option=yes 6321else case e in #( 6322 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6323esac 6324fi 6325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6326esac 6327fi 6328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6329printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6331 CFLAGS="$xorg_testset_save_CFLAGS" 6332fi 6333 6334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6337 fi 6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6340printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6341if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6342then : 6343 printf %s "(cached) " >&6 6344else case e in #( 6345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346/* end confdefs.h. */ 6347int i; 6348_ACEOF 6349if ac_fn_c_try_compile "$LINENO" 6350then : 6351 xorg_cv_cc_flag_unused_command_line_argument=yes 6352else case e in #( 6353 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6354esac 6355fi 6356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6357esac 6358fi 6359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6360printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6362 CFLAGS="$xorg_testset_save_CFLAGS" 6363fi 6364 6365found="no" 6366 6367 if test $found = "no" ; then 6368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6370 fi 6371 6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6374 fi 6375 6376 CFLAGS="$CFLAGS -Wunused" 6377 6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6379printf %s "checking if $CC supports -Wunused... " >&6; } 6380 cacheid=xorg_cv_cc_flag__Wunused 6381 if eval test \${$cacheid+y} 6382then : 6383 printf %s "(cached) " >&6 6384else case e in #( 6385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386/* end confdefs.h. */ 6387int i; 6388int 6389main (void) 6390{ 6391 6392 ; 6393 return 0; 6394} 6395_ACEOF 6396if ac_fn_c_try_link "$LINENO" 6397then : 6398 eval $cacheid=yes 6399else case e in #( 6400 e) eval $cacheid=no ;; 6401esac 6402fi 6403rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6404 conftest$ac_exeext conftest.$ac_ext ;; 6405esac 6406fi 6407 6408 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410 6411 eval supported=\$$cacheid 6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6413printf "%s\n" "$supported" >&6; } 6414 if test "$supported" = "yes" ; then 6415 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6416 found="yes" 6417 fi 6418 fi 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434xorg_testset_save_CFLAGS="$CFLAGS" 6435 6436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6439printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6440if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6441then : 6442 printf %s "(cached) " >&6 6443else case e in #( 6444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445/* end confdefs.h. */ 6446int i; 6447_ACEOF 6448if ac_fn_c_try_compile "$LINENO" 6449then : 6450 xorg_cv_cc_flag_unknown_warning_option=yes 6451else case e in #( 6452 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6453esac 6454fi 6455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6456esac 6457fi 6458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6459printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462fi 6463 6464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6467 fi 6468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6470printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6471if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6472then : 6473 printf %s "(cached) " >&6 6474else case e in #( 6475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476/* end confdefs.h. */ 6477int i; 6478_ACEOF 6479if ac_fn_c_try_compile "$LINENO" 6480then : 6481 xorg_cv_cc_flag_unused_command_line_argument=yes 6482else case e in #( 6483 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6484esac 6485fi 6486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6487esac 6488fi 6489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6490printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6492 CFLAGS="$xorg_testset_save_CFLAGS" 6493fi 6494 6495found="no" 6496 6497 if test $found = "no" ; then 6498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6500 fi 6501 6502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6504 fi 6505 6506 CFLAGS="$CFLAGS -Wuninitialized" 6507 6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6509printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6510 cacheid=xorg_cv_cc_flag__Wuninitialized 6511 if eval test \${$cacheid+y} 6512then : 6513 printf %s "(cached) " >&6 6514else case e in #( 6515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6516/* end confdefs.h. */ 6517int i; 6518int 6519main (void) 6520{ 6521 6522 ; 6523 return 0; 6524} 6525_ACEOF 6526if ac_fn_c_try_link "$LINENO" 6527then : 6528 eval $cacheid=yes 6529else case e in #( 6530 e) eval $cacheid=no ;; 6531esac 6532fi 6533rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6534 conftest$ac_exeext conftest.$ac_ext ;; 6535esac 6536fi 6537 6538 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540 6541 eval supported=\$$cacheid 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6543printf "%s\n" "$supported" >&6; } 6544 if test "$supported" = "yes" ; then 6545 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6546 found="yes" 6547 fi 6548 fi 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564xorg_testset_save_CFLAGS="$CFLAGS" 6565 6566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6570if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6571then : 6572 printf %s "(cached) " >&6 6573else case e in #( 6574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575/* end confdefs.h. */ 6576int i; 6577_ACEOF 6578if ac_fn_c_try_compile "$LINENO" 6579then : 6580 xorg_cv_cc_flag_unknown_warning_option=yes 6581else case e in #( 6582 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6583esac 6584fi 6585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6586esac 6587fi 6588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6589printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6591 CFLAGS="$xorg_testset_save_CFLAGS" 6592fi 6593 6594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6597 fi 6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6600printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6601if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6602then : 6603 printf %s "(cached) " >&6 6604else case e in #( 6605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606/* end confdefs.h. */ 6607int i; 6608_ACEOF 6609if ac_fn_c_try_compile "$LINENO" 6610then : 6611 xorg_cv_cc_flag_unused_command_line_argument=yes 6612else case e in #( 6613 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6614esac 6615fi 6616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6617esac 6618fi 6619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623fi 6624 6625found="no" 6626 6627 if test $found = "no" ; then 6628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6630 fi 6631 6632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6634 fi 6635 6636 CFLAGS="$CFLAGS -Wshadow" 6637 6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6639printf %s "checking if $CC supports -Wshadow... " >&6; } 6640 cacheid=xorg_cv_cc_flag__Wshadow 6641 if eval test \${$cacheid+y} 6642then : 6643 printf %s "(cached) " >&6 6644else case e in #( 6645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646/* end confdefs.h. */ 6647int i; 6648int 6649main (void) 6650{ 6651 6652 ; 6653 return 0; 6654} 6655_ACEOF 6656if ac_fn_c_try_link "$LINENO" 6657then : 6658 eval $cacheid=yes 6659else case e in #( 6660 e) eval $cacheid=no ;; 6661esac 6662fi 6663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6664 conftest$ac_exeext conftest.$ac_ext ;; 6665esac 6666fi 6667 6668 6669 CFLAGS="$xorg_testset_save_CFLAGS" 6670 6671 eval supported=\$$cacheid 6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6673printf "%s\n" "$supported" >&6; } 6674 if test "$supported" = "yes" ; then 6675 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6676 found="yes" 6677 fi 6678 fi 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694xorg_testset_save_CFLAGS="$CFLAGS" 6695 6696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6699printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6700if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6701then : 6702 printf %s "(cached) " >&6 6703else case e in #( 6704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6705/* end confdefs.h. */ 6706int i; 6707_ACEOF 6708if ac_fn_c_try_compile "$LINENO" 6709then : 6710 xorg_cv_cc_flag_unknown_warning_option=yes 6711else case e in #( 6712 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6713esac 6714fi 6715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6716esac 6717fi 6718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6721 CFLAGS="$xorg_testset_save_CFLAGS" 6722fi 6723 6724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6727 fi 6728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6731if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6732then : 6733 printf %s "(cached) " >&6 6734else case e in #( 6735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736/* end confdefs.h. */ 6737int i; 6738_ACEOF 6739if ac_fn_c_try_compile "$LINENO" 6740then : 6741 xorg_cv_cc_flag_unused_command_line_argument=yes 6742else case e in #( 6743 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6744esac 6745fi 6746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6747esac 6748fi 6749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6750printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6752 CFLAGS="$xorg_testset_save_CFLAGS" 6753fi 6754 6755found="no" 6756 6757 if test $found = "no" ; then 6758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6760 fi 6761 6762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6764 fi 6765 6766 CFLAGS="$CFLAGS -Wmissing-noreturn" 6767 6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6769printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6770 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6771 if eval test \${$cacheid+y} 6772then : 6773 printf %s "(cached) " >&6 6774else case e in #( 6775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6776/* end confdefs.h. */ 6777int i; 6778int 6779main (void) 6780{ 6781 6782 ; 6783 return 0; 6784} 6785_ACEOF 6786if ac_fn_c_try_link "$LINENO" 6787then : 6788 eval $cacheid=yes 6789else case e in #( 6790 e) eval $cacheid=no ;; 6791esac 6792fi 6793rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6794 conftest$ac_exeext conftest.$ac_ext ;; 6795esac 6796fi 6797 6798 6799 CFLAGS="$xorg_testset_save_CFLAGS" 6800 6801 eval supported=\$$cacheid 6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6803printf "%s\n" "$supported" >&6; } 6804 if test "$supported" = "yes" ; then 6805 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6806 found="yes" 6807 fi 6808 fi 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824xorg_testset_save_CFLAGS="$CFLAGS" 6825 6826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6830if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6831then : 6832 printf %s "(cached) " >&6 6833else case e in #( 6834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835/* end confdefs.h. */ 6836int i; 6837_ACEOF 6838if ac_fn_c_try_compile "$LINENO" 6839then : 6840 xorg_cv_cc_flag_unknown_warning_option=yes 6841else case e in #( 6842 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6843esac 6844fi 6845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6846esac 6847fi 6848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6849printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6851 CFLAGS="$xorg_testset_save_CFLAGS" 6852fi 6853 6854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6857 fi 6858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6860printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6861if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6862then : 6863 printf %s "(cached) " >&6 6864else case e in #( 6865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6866/* end confdefs.h. */ 6867int i; 6868_ACEOF 6869if ac_fn_c_try_compile "$LINENO" 6870then : 6871 xorg_cv_cc_flag_unused_command_line_argument=yes 6872else case e in #( 6873 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6874esac 6875fi 6876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6877esac 6878fi 6879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6882 CFLAGS="$xorg_testset_save_CFLAGS" 6883fi 6884 6885found="no" 6886 6887 if test $found = "no" ; then 6888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6890 fi 6891 6892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 fi 6895 6896 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6897 6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6899printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6900 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6901 if eval test \${$cacheid+y} 6902then : 6903 printf %s "(cached) " >&6 6904else case e in #( 6905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6906/* end confdefs.h. */ 6907int i; 6908int 6909main (void) 6910{ 6911 6912 ; 6913 return 0; 6914} 6915_ACEOF 6916if ac_fn_c_try_link "$LINENO" 6917then : 6918 eval $cacheid=yes 6919else case e in #( 6920 e) eval $cacheid=no ;; 6921esac 6922fi 6923rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6924 conftest$ac_exeext conftest.$ac_ext ;; 6925esac 6926fi 6927 6928 6929 CFLAGS="$xorg_testset_save_CFLAGS" 6930 6931 eval supported=\$$cacheid 6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6933printf "%s\n" "$supported" >&6; } 6934 if test "$supported" = "yes" ; then 6935 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6936 found="yes" 6937 fi 6938 fi 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954xorg_testset_save_CFLAGS="$CFLAGS" 6955 6956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6960if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6961then : 6962 printf %s "(cached) " >&6 6963else case e in #( 6964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966int i; 6967_ACEOF 6968if ac_fn_c_try_compile "$LINENO" 6969then : 6970 xorg_cv_cc_flag_unknown_warning_option=yes 6971else case e in #( 6972 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6973esac 6974fi 6975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6976esac 6977fi 6978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6979printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982fi 6983 6984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6987 fi 6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6990printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6991if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6992then : 6993 printf %s "(cached) " >&6 6994else case e in #( 6995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996/* end confdefs.h. */ 6997int i; 6998_ACEOF 6999if ac_fn_c_try_compile "$LINENO" 7000then : 7001 xorg_cv_cc_flag_unused_command_line_argument=yes 7002else case e in #( 7003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7004esac 7005fi 7006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7007esac 7008fi 7009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7012 CFLAGS="$xorg_testset_save_CFLAGS" 7013fi 7014 7015found="no" 7016 7017 if test $found = "no" ; then 7018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7020 fi 7021 7022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7024 fi 7025 7026 CFLAGS="$CFLAGS -Wredundant-decls" 7027 7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7029printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7030 cacheid=xorg_cv_cc_flag__Wredundant_decls 7031 if eval test \${$cacheid+y} 7032then : 7033 printf %s "(cached) " >&6 7034else case e in #( 7035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036/* end confdefs.h. */ 7037int i; 7038int 7039main (void) 7040{ 7041 7042 ; 7043 return 0; 7044} 7045_ACEOF 7046if ac_fn_c_try_link "$LINENO" 7047then : 7048 eval $cacheid=yes 7049else case e in #( 7050 e) eval $cacheid=no ;; 7051esac 7052fi 7053rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7054 conftest$ac_exeext conftest.$ac_ext ;; 7055esac 7056fi 7057 7058 7059 CFLAGS="$xorg_testset_save_CFLAGS" 7060 7061 eval supported=\$$cacheid 7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7063printf "%s\n" "$supported" >&6; } 7064 if test "$supported" = "yes" ; then 7065 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7066 found="yes" 7067 fi 7068 fi 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084xorg_testset_save_CFLAGS="$CFLAGS" 7085 7086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7089printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7090if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7091then : 7092 printf %s "(cached) " >&6 7093else case e in #( 7094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095/* end confdefs.h. */ 7096int i; 7097_ACEOF 7098if ac_fn_c_try_compile "$LINENO" 7099then : 7100 xorg_cv_cc_flag_unknown_warning_option=yes 7101else case e in #( 7102 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7103esac 7104fi 7105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7106esac 7107fi 7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7111 CFLAGS="$xorg_testset_save_CFLAGS" 7112fi 7113 7114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 fi 7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7121if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7122then : 7123 printf %s "(cached) " >&6 7124else case e in #( 7125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7126/* end confdefs.h. */ 7127int i; 7128_ACEOF 7129if ac_fn_c_try_compile "$LINENO" 7130then : 7131 xorg_cv_cc_flag_unused_command_line_argument=yes 7132else case e in #( 7133 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7134esac 7135fi 7136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7137esac 7138fi 7139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7140printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7142 CFLAGS="$xorg_testset_save_CFLAGS" 7143fi 7144 7145found="no" 7146 7147 if test $found = "no" ; then 7148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7150 fi 7151 7152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7154 fi 7155 7156 CFLAGS="$CFLAGS -Wlogical-op" 7157 7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7159printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7160 cacheid=xorg_cv_cc_flag__Wlogical_op 7161 if eval test \${$cacheid+y} 7162then : 7163 printf %s "(cached) " >&6 7164else case e in #( 7165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166/* end confdefs.h. */ 7167int i; 7168int 7169main (void) 7170{ 7171 7172 ; 7173 return 0; 7174} 7175_ACEOF 7176if ac_fn_c_try_link "$LINENO" 7177then : 7178 eval $cacheid=yes 7179else case e in #( 7180 e) eval $cacheid=no ;; 7181esac 7182fi 7183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7184 conftest$ac_exeext conftest.$ac_ext ;; 7185esac 7186fi 7187 7188 7189 CFLAGS="$xorg_testset_save_CFLAGS" 7190 7191 eval supported=\$$cacheid 7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7193printf "%s\n" "$supported" >&6; } 7194 if test "$supported" = "yes" ; then 7195 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7196 found="yes" 7197 fi 7198 fi 7199 7200 7201 7202# These are currently disabled because they are noisy. They will be enabled 7203# in the future once the codebase is sufficiently modernized to silence 7204# them. For now, I don't want them to drown out the other warnings. 7205# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7206# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7207# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7208 7209# Turn some warnings into errors, so we don't accidentally get successful builds 7210# when there are problems that should be fixed. 7211 7212if test "x$SELECTIVE_WERROR" = "xyes" ; then 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226xorg_testset_save_CFLAGS="$CFLAGS" 7227 7228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7232if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7233then : 7234 printf %s "(cached) " >&6 7235else case e in #( 7236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7237/* end confdefs.h. */ 7238int i; 7239_ACEOF 7240if ac_fn_c_try_compile "$LINENO" 7241then : 7242 xorg_cv_cc_flag_unknown_warning_option=yes 7243else case e in #( 7244 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7245esac 7246fi 7247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7248esac 7249fi 7250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7251printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7253 CFLAGS="$xorg_testset_save_CFLAGS" 7254fi 7255 7256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7259 fi 7260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7262printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7263if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7264then : 7265 printf %s "(cached) " >&6 7266else case e in #( 7267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7268/* end confdefs.h. */ 7269int i; 7270_ACEOF 7271if ac_fn_c_try_compile "$LINENO" 7272then : 7273 xorg_cv_cc_flag_unused_command_line_argument=yes 7274else case e in #( 7275 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7276esac 7277fi 7278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7279esac 7280fi 7281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7284 CFLAGS="$xorg_testset_save_CFLAGS" 7285fi 7286 7287found="no" 7288 7289 if test $found = "no" ; then 7290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7292 fi 7293 7294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7296 fi 7297 7298 CFLAGS="$CFLAGS -Werror=implicit" 7299 7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7301printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7302 cacheid=xorg_cv_cc_flag__Werror_implicit 7303 if eval test \${$cacheid+y} 7304then : 7305 printf %s "(cached) " >&6 7306else case e in #( 7307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308/* end confdefs.h. */ 7309int i; 7310int 7311main (void) 7312{ 7313 7314 ; 7315 return 0; 7316} 7317_ACEOF 7318if ac_fn_c_try_link "$LINENO" 7319then : 7320 eval $cacheid=yes 7321else case e in #( 7322 e) eval $cacheid=no ;; 7323esac 7324fi 7325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7326 conftest$ac_exeext conftest.$ac_ext ;; 7327esac 7328fi 7329 7330 7331 CFLAGS="$xorg_testset_save_CFLAGS" 7332 7333 eval supported=\$$cacheid 7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7335printf "%s\n" "$supported" >&6; } 7336 if test "$supported" = "yes" ; then 7337 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7338 found="yes" 7339 fi 7340 fi 7341 7342 if test $found = "no" ; then 7343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7345 fi 7346 7347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7349 fi 7350 7351 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7352 7353 { 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 7354printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7355 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7356 if eval test \${$cacheid+y} 7357then : 7358 printf %s "(cached) " >&6 7359else case e in #( 7360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361/* end confdefs.h. */ 7362int i; 7363int 7364main (void) 7365{ 7366 7367 ; 7368 return 0; 7369} 7370_ACEOF 7371if ac_fn_c_try_link "$LINENO" 7372then : 7373 eval $cacheid=yes 7374else case e in #( 7375 e) eval $cacheid=no ;; 7376esac 7377fi 7378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7379 conftest$ac_exeext conftest.$ac_ext ;; 7380esac 7381fi 7382 7383 7384 CFLAGS="$xorg_testset_save_CFLAGS" 7385 7386 eval supported=\$$cacheid 7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7388printf "%s\n" "$supported" >&6; } 7389 if test "$supported" = "yes" ; then 7390 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7391 found="yes" 7392 fi 7393 fi 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409xorg_testset_save_CFLAGS="$CFLAGS" 7410 7411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7415if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7416then : 7417 printf %s "(cached) " >&6 7418else case e in #( 7419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7420/* end confdefs.h. */ 7421int i; 7422_ACEOF 7423if ac_fn_c_try_compile "$LINENO" 7424then : 7425 xorg_cv_cc_flag_unknown_warning_option=yes 7426else case e in #( 7427 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7428esac 7429fi 7430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7431esac 7432fi 7433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7434printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7436 CFLAGS="$xorg_testset_save_CFLAGS" 7437fi 7438 7439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7442 fi 7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7445printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7446if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7447then : 7448 printf %s "(cached) " >&6 7449else case e in #( 7450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452int i; 7453_ACEOF 7454if ac_fn_c_try_compile "$LINENO" 7455then : 7456 xorg_cv_cc_flag_unused_command_line_argument=yes 7457else case e in #( 7458 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7459esac 7460fi 7461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7462esac 7463fi 7464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7467 CFLAGS="$xorg_testset_save_CFLAGS" 7468fi 7469 7470found="no" 7471 7472 if test $found = "no" ; then 7473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7475 fi 7476 7477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7479 fi 7480 7481 CFLAGS="$CFLAGS -Werror=nonnull" 7482 7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7484printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7485 cacheid=xorg_cv_cc_flag__Werror_nonnull 7486 if eval test \${$cacheid+y} 7487then : 7488 printf %s "(cached) " >&6 7489else case e in #( 7490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491/* end confdefs.h. */ 7492int i; 7493int 7494main (void) 7495{ 7496 7497 ; 7498 return 0; 7499} 7500_ACEOF 7501if ac_fn_c_try_link "$LINENO" 7502then : 7503 eval $cacheid=yes 7504else case e in #( 7505 e) eval $cacheid=no ;; 7506esac 7507fi 7508rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7509 conftest$ac_exeext conftest.$ac_ext ;; 7510esac 7511fi 7512 7513 7514 CFLAGS="$xorg_testset_save_CFLAGS" 7515 7516 eval supported=\$$cacheid 7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7518printf "%s\n" "$supported" >&6; } 7519 if test "$supported" = "yes" ; then 7520 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7521 found="yes" 7522 fi 7523 fi 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539xorg_testset_save_CFLAGS="$CFLAGS" 7540 7541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7545if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7546then : 7547 printf %s "(cached) " >&6 7548else case e in #( 7549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550/* end confdefs.h. */ 7551int i; 7552_ACEOF 7553if ac_fn_c_try_compile "$LINENO" 7554then : 7555 xorg_cv_cc_flag_unknown_warning_option=yes 7556else case e in #( 7557 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7558esac 7559fi 7560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7561esac 7562fi 7563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7564printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7566 CFLAGS="$xorg_testset_save_CFLAGS" 7567fi 7568 7569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7572 fi 7573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7575printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7576if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7577then : 7578 printf %s "(cached) " >&6 7579else case e in #( 7580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7581/* end confdefs.h. */ 7582int i; 7583_ACEOF 7584if ac_fn_c_try_compile "$LINENO" 7585then : 7586 xorg_cv_cc_flag_unused_command_line_argument=yes 7587else case e in #( 7588 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7589esac 7590fi 7591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7592esac 7593fi 7594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7597 CFLAGS="$xorg_testset_save_CFLAGS" 7598fi 7599 7600found="no" 7601 7602 if test $found = "no" ; then 7603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7605 fi 7606 7607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7609 fi 7610 7611 CFLAGS="$CFLAGS -Werror=init-self" 7612 7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7614printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7615 cacheid=xorg_cv_cc_flag__Werror_init_self 7616 if eval test \${$cacheid+y} 7617then : 7618 printf %s "(cached) " >&6 7619else case e in #( 7620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7621/* end confdefs.h. */ 7622int i; 7623int 7624main (void) 7625{ 7626 7627 ; 7628 return 0; 7629} 7630_ACEOF 7631if ac_fn_c_try_link "$LINENO" 7632then : 7633 eval $cacheid=yes 7634else case e in #( 7635 e) eval $cacheid=no ;; 7636esac 7637fi 7638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7639 conftest$ac_exeext conftest.$ac_ext ;; 7640esac 7641fi 7642 7643 7644 CFLAGS="$xorg_testset_save_CFLAGS" 7645 7646 eval supported=\$$cacheid 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7648printf "%s\n" "$supported" >&6; } 7649 if test "$supported" = "yes" ; then 7650 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7651 found="yes" 7652 fi 7653 fi 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669xorg_testset_save_CFLAGS="$CFLAGS" 7670 7671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7675if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7676then : 7677 printf %s "(cached) " >&6 7678else case e in #( 7679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680/* end confdefs.h. */ 7681int i; 7682_ACEOF 7683if ac_fn_c_try_compile "$LINENO" 7684then : 7685 xorg_cv_cc_flag_unknown_warning_option=yes 7686else case e in #( 7687 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7688esac 7689fi 7690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7691esac 7692fi 7693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7696 CFLAGS="$xorg_testset_save_CFLAGS" 7697fi 7698 7699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7702 fi 7703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7706if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7707then : 7708 printf %s "(cached) " >&6 7709else case e in #( 7710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711/* end confdefs.h. */ 7712int i; 7713_ACEOF 7714if ac_fn_c_try_compile "$LINENO" 7715then : 7716 xorg_cv_cc_flag_unused_command_line_argument=yes 7717else case e in #( 7718 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7719esac 7720fi 7721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7722esac 7723fi 7724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7727 CFLAGS="$xorg_testset_save_CFLAGS" 7728fi 7729 7730found="no" 7731 7732 if test $found = "no" ; then 7733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7735 fi 7736 7737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7739 fi 7740 7741 CFLAGS="$CFLAGS -Werror=main" 7742 7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7744printf %s "checking if $CC supports -Werror=main... " >&6; } 7745 cacheid=xorg_cv_cc_flag__Werror_main 7746 if eval test \${$cacheid+y} 7747then : 7748 printf %s "(cached) " >&6 7749else case e in #( 7750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7751/* end confdefs.h. */ 7752int i; 7753int 7754main (void) 7755{ 7756 7757 ; 7758 return 0; 7759} 7760_ACEOF 7761if ac_fn_c_try_link "$LINENO" 7762then : 7763 eval $cacheid=yes 7764else case e in #( 7765 e) eval $cacheid=no ;; 7766esac 7767fi 7768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7769 conftest$ac_exeext conftest.$ac_ext ;; 7770esac 7771fi 7772 7773 7774 CFLAGS="$xorg_testset_save_CFLAGS" 7775 7776 eval supported=\$$cacheid 7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7778printf "%s\n" "$supported" >&6; } 7779 if test "$supported" = "yes" ; then 7780 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7781 found="yes" 7782 fi 7783 fi 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799xorg_testset_save_CFLAGS="$CFLAGS" 7800 7801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7804printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7805if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7806then : 7807 printf %s "(cached) " >&6 7808else case e in #( 7809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810/* end confdefs.h. */ 7811int i; 7812_ACEOF 7813if ac_fn_c_try_compile "$LINENO" 7814then : 7815 xorg_cv_cc_flag_unknown_warning_option=yes 7816else case e in #( 7817 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7818esac 7819fi 7820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7821esac 7822fi 7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7826 CFLAGS="$xorg_testset_save_CFLAGS" 7827fi 7828 7829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7832 fi 7833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7836if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7837then : 7838 printf %s "(cached) " >&6 7839else case e in #( 7840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7841/* end confdefs.h. */ 7842int i; 7843_ACEOF 7844if ac_fn_c_try_compile "$LINENO" 7845then : 7846 xorg_cv_cc_flag_unused_command_line_argument=yes 7847else case e in #( 7848 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7849esac 7850fi 7851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7852esac 7853fi 7854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7857 CFLAGS="$xorg_testset_save_CFLAGS" 7858fi 7859 7860found="no" 7861 7862 if test $found = "no" ; then 7863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7865 fi 7866 7867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7869 fi 7870 7871 CFLAGS="$CFLAGS -Werror=missing-braces" 7872 7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7874printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7875 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7876 if eval test \${$cacheid+y} 7877then : 7878 printf %s "(cached) " >&6 7879else case e in #( 7880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882int i; 7883int 7884main (void) 7885{ 7886 7887 ; 7888 return 0; 7889} 7890_ACEOF 7891if ac_fn_c_try_link "$LINENO" 7892then : 7893 eval $cacheid=yes 7894else case e in #( 7895 e) eval $cacheid=no ;; 7896esac 7897fi 7898rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7899 conftest$ac_exeext conftest.$ac_ext ;; 7900esac 7901fi 7902 7903 7904 CFLAGS="$xorg_testset_save_CFLAGS" 7905 7906 eval supported=\$$cacheid 7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7908printf "%s\n" "$supported" >&6; } 7909 if test "$supported" = "yes" ; then 7910 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7911 found="yes" 7912 fi 7913 fi 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929xorg_testset_save_CFLAGS="$CFLAGS" 7930 7931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7934printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7935if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7936then : 7937 printf %s "(cached) " >&6 7938else case e in #( 7939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940/* end confdefs.h. */ 7941int i; 7942_ACEOF 7943if ac_fn_c_try_compile "$LINENO" 7944then : 7945 xorg_cv_cc_flag_unknown_warning_option=yes 7946else case e in #( 7947 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7948esac 7949fi 7950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7951esac 7952fi 7953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7956 CFLAGS="$xorg_testset_save_CFLAGS" 7957fi 7958 7959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 fi 7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7966if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7967then : 7968 printf %s "(cached) " >&6 7969else case e in #( 7970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972int i; 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO" 7975then : 7976 xorg_cv_cc_flag_unused_command_line_argument=yes 7977else case e in #( 7978 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7979esac 7980fi 7981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7982esac 7983fi 7984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988fi 7989 7990found="no" 7991 7992 if test $found = "no" ; then 7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7995 fi 7996 7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7999 fi 8000 8001 CFLAGS="$CFLAGS -Werror=sequence-point" 8002 8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8004printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8005 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8006 if eval test \${$cacheid+y} 8007then : 8008 printf %s "(cached) " >&6 8009else case e in #( 8010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012int i; 8013int 8014main (void) 8015{ 8016 8017 ; 8018 return 0; 8019} 8020_ACEOF 8021if ac_fn_c_try_link "$LINENO" 8022then : 8023 eval $cacheid=yes 8024else case e in #( 8025 e) eval $cacheid=no ;; 8026esac 8027fi 8028rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8029 conftest$ac_exeext conftest.$ac_ext ;; 8030esac 8031fi 8032 8033 8034 CFLAGS="$xorg_testset_save_CFLAGS" 8035 8036 eval supported=\$$cacheid 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8038printf "%s\n" "$supported" >&6; } 8039 if test "$supported" = "yes" ; then 8040 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8041 found="yes" 8042 fi 8043 fi 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059xorg_testset_save_CFLAGS="$CFLAGS" 8060 8061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8065if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8066then : 8067 printf %s "(cached) " >&6 8068else case e in #( 8069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072_ACEOF 8073if ac_fn_c_try_compile "$LINENO" 8074then : 8075 xorg_cv_cc_flag_unknown_warning_option=yes 8076else case e in #( 8077 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8078esac 8079fi 8080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8081esac 8082fi 8083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8086 CFLAGS="$xorg_testset_save_CFLAGS" 8087fi 8088 8089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 fi 8093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8096if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8097then : 8098 printf %s "(cached) " >&6 8099else case e in #( 8100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8101/* end confdefs.h. */ 8102int i; 8103_ACEOF 8104if ac_fn_c_try_compile "$LINENO" 8105then : 8106 xorg_cv_cc_flag_unused_command_line_argument=yes 8107else case e in #( 8108 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8109esac 8110fi 8111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8112esac 8113fi 8114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8117 CFLAGS="$xorg_testset_save_CFLAGS" 8118fi 8119 8120found="no" 8121 8122 if test $found = "no" ; then 8123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8125 fi 8126 8127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8129 fi 8130 8131 CFLAGS="$CFLAGS -Werror=return-type" 8132 8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8134printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8135 cacheid=xorg_cv_cc_flag__Werror_return_type 8136 if eval test \${$cacheid+y} 8137then : 8138 printf %s "(cached) " >&6 8139else case e in #( 8140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8141/* end confdefs.h. */ 8142int i; 8143int 8144main (void) 8145{ 8146 8147 ; 8148 return 0; 8149} 8150_ACEOF 8151if ac_fn_c_try_link "$LINENO" 8152then : 8153 eval $cacheid=yes 8154else case e in #( 8155 e) eval $cacheid=no ;; 8156esac 8157fi 8158rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8159 conftest$ac_exeext conftest.$ac_ext ;; 8160esac 8161fi 8162 8163 8164 CFLAGS="$xorg_testset_save_CFLAGS" 8165 8166 eval supported=\$$cacheid 8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8168printf "%s\n" "$supported" >&6; } 8169 if test "$supported" = "yes" ; then 8170 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8171 found="yes" 8172 fi 8173 fi 8174 8175 if test $found = "no" ; then 8176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8178 fi 8179 8180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8182 fi 8183 8184 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8185 8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8187printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8188 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8189 if eval test \${$cacheid+y} 8190then : 8191 printf %s "(cached) " >&6 8192else case e in #( 8193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8194/* end confdefs.h. */ 8195int i; 8196int 8197main (void) 8198{ 8199 8200 ; 8201 return 0; 8202} 8203_ACEOF 8204if ac_fn_c_try_link "$LINENO" 8205then : 8206 eval $cacheid=yes 8207else case e in #( 8208 e) eval $cacheid=no ;; 8209esac 8210fi 8211rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8212 conftest$ac_exeext conftest.$ac_ext ;; 8213esac 8214fi 8215 8216 8217 CFLAGS="$xorg_testset_save_CFLAGS" 8218 8219 eval supported=\$$cacheid 8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8221printf "%s\n" "$supported" >&6; } 8222 if test "$supported" = "yes" ; then 8223 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8224 found="yes" 8225 fi 8226 fi 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242xorg_testset_save_CFLAGS="$CFLAGS" 8243 8244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8248if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8249then : 8250 printf %s "(cached) " >&6 8251else case e in #( 8252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254int i; 8255_ACEOF 8256if ac_fn_c_try_compile "$LINENO" 8257then : 8258 xorg_cv_cc_flag_unknown_warning_option=yes 8259else case e in #( 8260 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8261esac 8262fi 8263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8264esac 8265fi 8266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8269 CFLAGS="$xorg_testset_save_CFLAGS" 8270fi 8271 8272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8275 fi 8276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8279if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8280then : 8281 printf %s "(cached) " >&6 8282else case e in #( 8283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8284/* end confdefs.h. */ 8285int i; 8286_ACEOF 8287if ac_fn_c_try_compile "$LINENO" 8288then : 8289 xorg_cv_cc_flag_unused_command_line_argument=yes 8290else case e in #( 8291 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8292esac 8293fi 8294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8295esac 8296fi 8297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8298printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8300 CFLAGS="$xorg_testset_save_CFLAGS" 8301fi 8302 8303found="no" 8304 8305 if test $found = "no" ; then 8306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8308 fi 8309 8310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8312 fi 8313 8314 CFLAGS="$CFLAGS -Werror=trigraphs" 8315 8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8317printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8318 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8319 if eval test \${$cacheid+y} 8320then : 8321 printf %s "(cached) " >&6 8322else case e in #( 8323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8324/* end confdefs.h. */ 8325int i; 8326int 8327main (void) 8328{ 8329 8330 ; 8331 return 0; 8332} 8333_ACEOF 8334if ac_fn_c_try_link "$LINENO" 8335then : 8336 eval $cacheid=yes 8337else case e in #( 8338 e) eval $cacheid=no ;; 8339esac 8340fi 8341rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8342 conftest$ac_exeext conftest.$ac_ext ;; 8343esac 8344fi 8345 8346 8347 CFLAGS="$xorg_testset_save_CFLAGS" 8348 8349 eval supported=\$$cacheid 8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8351printf "%s\n" "$supported" >&6; } 8352 if test "$supported" = "yes" ; then 8353 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8354 found="yes" 8355 fi 8356 fi 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372xorg_testset_save_CFLAGS="$CFLAGS" 8373 8374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8377printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8378if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8379then : 8380 printf %s "(cached) " >&6 8381else case e in #( 8382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384int i; 8385_ACEOF 8386if ac_fn_c_try_compile "$LINENO" 8387then : 8388 xorg_cv_cc_flag_unknown_warning_option=yes 8389else case e in #( 8390 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8391esac 8392fi 8393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8394esac 8395fi 8396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8399 CFLAGS="$xorg_testset_save_CFLAGS" 8400fi 8401 8402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8405 fi 8406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8409if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8410then : 8411 printf %s "(cached) " >&6 8412else case e in #( 8413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414/* end confdefs.h. */ 8415int i; 8416_ACEOF 8417if ac_fn_c_try_compile "$LINENO" 8418then : 8419 xorg_cv_cc_flag_unused_command_line_argument=yes 8420else case e in #( 8421 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8422esac 8423fi 8424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8425esac 8426fi 8427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8428printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8430 CFLAGS="$xorg_testset_save_CFLAGS" 8431fi 8432 8433found="no" 8434 8435 if test $found = "no" ; then 8436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 fi 8439 8440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 fi 8443 8444 CFLAGS="$CFLAGS -Werror=array-bounds" 8445 8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8447printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8448 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8449 if eval test \${$cacheid+y} 8450then : 8451 printf %s "(cached) " >&6 8452else case e in #( 8453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8454/* end confdefs.h. */ 8455int i; 8456int 8457main (void) 8458{ 8459 8460 ; 8461 return 0; 8462} 8463_ACEOF 8464if ac_fn_c_try_link "$LINENO" 8465then : 8466 eval $cacheid=yes 8467else case e in #( 8468 e) eval $cacheid=no ;; 8469esac 8470fi 8471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8472 conftest$ac_exeext conftest.$ac_ext ;; 8473esac 8474fi 8475 8476 8477 CFLAGS="$xorg_testset_save_CFLAGS" 8478 8479 eval supported=\$$cacheid 8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8481printf "%s\n" "$supported" >&6; } 8482 if test "$supported" = "yes" ; then 8483 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8484 found="yes" 8485 fi 8486 fi 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502xorg_testset_save_CFLAGS="$CFLAGS" 8503 8504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8507printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8508if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8509then : 8510 printf %s "(cached) " >&6 8511else case e in #( 8512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513/* end confdefs.h. */ 8514int i; 8515_ACEOF 8516if ac_fn_c_try_compile "$LINENO" 8517then : 8518 xorg_cv_cc_flag_unknown_warning_option=yes 8519else case e in #( 8520 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8521esac 8522fi 8523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8524esac 8525fi 8526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8527printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530fi 8531 8532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8535 fi 8536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8538printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8539if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8540then : 8541 printf %s "(cached) " >&6 8542else case e in #( 8543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545int i; 8546_ACEOF 8547if ac_fn_c_try_compile "$LINENO" 8548then : 8549 xorg_cv_cc_flag_unused_command_line_argument=yes 8550else case e in #( 8551 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8552esac 8553fi 8554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8555esac 8556fi 8557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8558printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8561fi 8562 8563found="no" 8564 8565 if test $found = "no" ; then 8566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8568 fi 8569 8570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8572 fi 8573 8574 CFLAGS="$CFLAGS -Werror=write-strings" 8575 8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8577printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8578 cacheid=xorg_cv_cc_flag__Werror_write_strings 8579 if eval test \${$cacheid+y} 8580then : 8581 printf %s "(cached) " >&6 8582else case e in #( 8583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8584/* end confdefs.h. */ 8585int i; 8586int 8587main (void) 8588{ 8589 8590 ; 8591 return 0; 8592} 8593_ACEOF 8594if ac_fn_c_try_link "$LINENO" 8595then : 8596 eval $cacheid=yes 8597else case e in #( 8598 e) eval $cacheid=no ;; 8599esac 8600fi 8601rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8602 conftest$ac_exeext conftest.$ac_ext ;; 8603esac 8604fi 8605 8606 8607 CFLAGS="$xorg_testset_save_CFLAGS" 8608 8609 eval supported=\$$cacheid 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8611printf "%s\n" "$supported" >&6; } 8612 if test "$supported" = "yes" ; then 8613 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8614 found="yes" 8615 fi 8616 fi 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632xorg_testset_save_CFLAGS="$CFLAGS" 8633 8634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8637printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8638if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8639then : 8640 printf %s "(cached) " >&6 8641else case e in #( 8642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643/* end confdefs.h. */ 8644int i; 8645_ACEOF 8646if ac_fn_c_try_compile "$LINENO" 8647then : 8648 xorg_cv_cc_flag_unknown_warning_option=yes 8649else case e in #( 8650 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8651esac 8652fi 8653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8654esac 8655fi 8656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8657printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8659 CFLAGS="$xorg_testset_save_CFLAGS" 8660fi 8661 8662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8665 fi 8666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8668printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8669if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8670then : 8671 printf %s "(cached) " >&6 8672else case e in #( 8673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675int i; 8676_ACEOF 8677if ac_fn_c_try_compile "$LINENO" 8678then : 8679 xorg_cv_cc_flag_unused_command_line_argument=yes 8680else case e in #( 8681 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8682esac 8683fi 8684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8685esac 8686fi 8687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8690 CFLAGS="$xorg_testset_save_CFLAGS" 8691fi 8692 8693found="no" 8694 8695 if test $found = "no" ; then 8696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8698 fi 8699 8700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8702 fi 8703 8704 CFLAGS="$CFLAGS -Werror=address" 8705 8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8707printf %s "checking if $CC supports -Werror=address... " >&6; } 8708 cacheid=xorg_cv_cc_flag__Werror_address 8709 if eval test \${$cacheid+y} 8710then : 8711 printf %s "(cached) " >&6 8712else case e in #( 8713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8714/* end confdefs.h. */ 8715int i; 8716int 8717main (void) 8718{ 8719 8720 ; 8721 return 0; 8722} 8723_ACEOF 8724if ac_fn_c_try_link "$LINENO" 8725then : 8726 eval $cacheid=yes 8727else case e in #( 8728 e) eval $cacheid=no ;; 8729esac 8730fi 8731rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8732 conftest$ac_exeext conftest.$ac_ext ;; 8733esac 8734fi 8735 8736 8737 CFLAGS="$xorg_testset_save_CFLAGS" 8738 8739 eval supported=\$$cacheid 8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8741printf "%s\n" "$supported" >&6; } 8742 if test "$supported" = "yes" ; then 8743 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8744 found="yes" 8745 fi 8746 fi 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762xorg_testset_save_CFLAGS="$CFLAGS" 8763 8764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8767printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8768if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8769then : 8770 printf %s "(cached) " >&6 8771else case e in #( 8772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8773/* end confdefs.h. */ 8774int i; 8775_ACEOF 8776if ac_fn_c_try_compile "$LINENO" 8777then : 8778 xorg_cv_cc_flag_unknown_warning_option=yes 8779else case e in #( 8780 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8781esac 8782fi 8783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8784esac 8785fi 8786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8787printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790fi 8791 8792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8795 fi 8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8798printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8799if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8800then : 8801 printf %s "(cached) " >&6 8802else case e in #( 8803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8804/* end confdefs.h. */ 8805int i; 8806_ACEOF 8807if ac_fn_c_try_compile "$LINENO" 8808then : 8809 xorg_cv_cc_flag_unused_command_line_argument=yes 8810else case e in #( 8811 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8812esac 8813fi 8814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8815esac 8816fi 8817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8820 CFLAGS="$xorg_testset_save_CFLAGS" 8821fi 8822 8823found="no" 8824 8825 if test $found = "no" ; then 8826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8828 fi 8829 8830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8832 fi 8833 8834 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8835 8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8837printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8838 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8839 if eval test \${$cacheid+y} 8840then : 8841 printf %s "(cached) " >&6 8842else case e in #( 8843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8844/* end confdefs.h. */ 8845int i; 8846int 8847main (void) 8848{ 8849 8850 ; 8851 return 0; 8852} 8853_ACEOF 8854if ac_fn_c_try_link "$LINENO" 8855then : 8856 eval $cacheid=yes 8857else case e in #( 8858 e) eval $cacheid=no ;; 8859esac 8860fi 8861rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8862 conftest$ac_exeext conftest.$ac_ext ;; 8863esac 8864fi 8865 8866 8867 CFLAGS="$xorg_testset_save_CFLAGS" 8868 8869 eval supported=\$$cacheid 8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8871printf "%s\n" "$supported" >&6; } 8872 if test "$supported" = "yes" ; then 8873 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8874 found="yes" 8875 fi 8876 fi 8877 8878 if test $found = "no" ; then 8879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8881 fi 8882 8883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8885 fi 8886 8887 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8888 8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8890printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8891 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8892 if eval test \${$cacheid+y} 8893then : 8894 printf %s "(cached) " >&6 8895else case e in #( 8896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8897/* end confdefs.h. */ 8898int i; 8899int 8900main (void) 8901{ 8902 8903 ; 8904 return 0; 8905} 8906_ACEOF 8907if ac_fn_c_try_link "$LINENO" 8908then : 8909 eval $cacheid=yes 8910else case e in #( 8911 e) eval $cacheid=no ;; 8912esac 8913fi 8914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8915 conftest$ac_exeext conftest.$ac_ext ;; 8916esac 8917fi 8918 8919 8920 CFLAGS="$xorg_testset_save_CFLAGS" 8921 8922 eval supported=\$$cacheid 8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8924printf "%s\n" "$supported" >&6; } 8925 if test "$supported" = "yes" ; then 8926 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8927 found="yes" 8928 fi 8929 fi 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945xorg_testset_save_CFLAGS="$CFLAGS" 8946 8947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8951if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8952then : 8953 printf %s "(cached) " >&6 8954else case e in #( 8955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8956/* end confdefs.h. */ 8957int i; 8958_ACEOF 8959if ac_fn_c_try_compile "$LINENO" 8960then : 8961 xorg_cv_cc_flag_unknown_warning_option=yes 8962else case e in #( 8963 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8964esac 8965fi 8966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8967esac 8968fi 8969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8972 CFLAGS="$xorg_testset_save_CFLAGS" 8973fi 8974 8975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 fi 8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8982if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8983then : 8984 printf %s "(cached) " >&6 8985else case e in #( 8986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8987/* end confdefs.h. */ 8988int i; 8989_ACEOF 8990if ac_fn_c_try_compile "$LINENO" 8991then : 8992 xorg_cv_cc_flag_unused_command_line_argument=yes 8993else case e in #( 8994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8995esac 8996fi 8997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8998esac 8999fi 9000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9003 CFLAGS="$xorg_testset_save_CFLAGS" 9004fi 9005 9006found="no" 9007 9008 if test $found = "no" ; then 9009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9011 fi 9012 9013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9015 fi 9016 9017 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9018 9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9020printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9021 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9022 if eval test \${$cacheid+y} 9023then : 9024 printf %s "(cached) " >&6 9025else case e in #( 9026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9027/* end confdefs.h. */ 9028int i; 9029int 9030main (void) 9031{ 9032 9033 ; 9034 return 0; 9035} 9036_ACEOF 9037if ac_fn_c_try_link "$LINENO" 9038then : 9039 eval $cacheid=yes 9040else case e in #( 9041 e) eval $cacheid=no ;; 9042esac 9043fi 9044rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9045 conftest$ac_exeext conftest.$ac_ext ;; 9046esac 9047fi 9048 9049 9050 CFLAGS="$xorg_testset_save_CFLAGS" 9051 9052 eval supported=\$$cacheid 9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9054printf "%s\n" "$supported" >&6; } 9055 if test "$supported" = "yes" ; then 9056 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9057 found="yes" 9058 fi 9059 fi 9060 9061 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9062else 9063{ 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 9064printf "%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;} 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078xorg_testset_save_CFLAGS="$CFLAGS" 9079 9080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9084if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9085then : 9086 printf %s "(cached) " >&6 9087else case e in #( 9088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9089/* end confdefs.h. */ 9090int i; 9091_ACEOF 9092if ac_fn_c_try_compile "$LINENO" 9093then : 9094 xorg_cv_cc_flag_unknown_warning_option=yes 9095else case e in #( 9096 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9097esac 9098fi 9099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9100esac 9101fi 9102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9103printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9105 CFLAGS="$xorg_testset_save_CFLAGS" 9106fi 9107 9108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9111 fi 9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9114printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9115if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9116then : 9117 printf %s "(cached) " >&6 9118else case e in #( 9119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9120/* end confdefs.h. */ 9121int i; 9122_ACEOF 9123if ac_fn_c_try_compile "$LINENO" 9124then : 9125 xorg_cv_cc_flag_unused_command_line_argument=yes 9126else case e in #( 9127 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9128esac 9129fi 9130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9131esac 9132fi 9133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9134printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9136 CFLAGS="$xorg_testset_save_CFLAGS" 9137fi 9138 9139found="no" 9140 9141 if test $found = "no" ; then 9142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9144 fi 9145 9146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9148 fi 9149 9150 CFLAGS="$CFLAGS -Wimplicit" 9151 9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9153printf %s "checking if $CC supports -Wimplicit... " >&6; } 9154 cacheid=xorg_cv_cc_flag__Wimplicit 9155 if eval test \${$cacheid+y} 9156then : 9157 printf %s "(cached) " >&6 9158else case e in #( 9159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9160/* end confdefs.h. */ 9161int i; 9162int 9163main (void) 9164{ 9165 9166 ; 9167 return 0; 9168} 9169_ACEOF 9170if ac_fn_c_try_link "$LINENO" 9171then : 9172 eval $cacheid=yes 9173else case e in #( 9174 e) eval $cacheid=no ;; 9175esac 9176fi 9177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9178 conftest$ac_exeext conftest.$ac_ext ;; 9179esac 9180fi 9181 9182 9183 CFLAGS="$xorg_testset_save_CFLAGS" 9184 9185 eval supported=\$$cacheid 9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9187printf "%s\n" "$supported" >&6; } 9188 if test "$supported" = "yes" ; then 9189 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9190 found="yes" 9191 fi 9192 fi 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208xorg_testset_save_CFLAGS="$CFLAGS" 9209 9210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9213printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9214if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9215then : 9216 printf %s "(cached) " >&6 9217else case e in #( 9218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9219/* end confdefs.h. */ 9220int i; 9221_ACEOF 9222if ac_fn_c_try_compile "$LINENO" 9223then : 9224 xorg_cv_cc_flag_unknown_warning_option=yes 9225else case e in #( 9226 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9227esac 9228fi 9229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9230esac 9231fi 9232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9233printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9235 CFLAGS="$xorg_testset_save_CFLAGS" 9236fi 9237 9238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9241 fi 9242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9244printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9245if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9246then : 9247 printf %s "(cached) " >&6 9248else case e in #( 9249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250/* end confdefs.h. */ 9251int i; 9252_ACEOF 9253if ac_fn_c_try_compile "$LINENO" 9254then : 9255 xorg_cv_cc_flag_unused_command_line_argument=yes 9256else case e in #( 9257 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9258esac 9259fi 9260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9261esac 9262fi 9263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9264printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9266 CFLAGS="$xorg_testset_save_CFLAGS" 9267fi 9268 9269found="no" 9270 9271 if test $found = "no" ; then 9272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9274 fi 9275 9276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9278 fi 9279 9280 CFLAGS="$CFLAGS -Wnonnull" 9281 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9283printf %s "checking if $CC supports -Wnonnull... " >&6; } 9284 cacheid=xorg_cv_cc_flag__Wnonnull 9285 if eval test \${$cacheid+y} 9286then : 9287 printf %s "(cached) " >&6 9288else case e in #( 9289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9290/* end confdefs.h. */ 9291int i; 9292int 9293main (void) 9294{ 9295 9296 ; 9297 return 0; 9298} 9299_ACEOF 9300if ac_fn_c_try_link "$LINENO" 9301then : 9302 eval $cacheid=yes 9303else case e in #( 9304 e) eval $cacheid=no ;; 9305esac 9306fi 9307rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9308 conftest$ac_exeext conftest.$ac_ext ;; 9309esac 9310fi 9311 9312 9313 CFLAGS="$xorg_testset_save_CFLAGS" 9314 9315 eval supported=\$$cacheid 9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9317printf "%s\n" "$supported" >&6; } 9318 if test "$supported" = "yes" ; then 9319 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9320 found="yes" 9321 fi 9322 fi 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338xorg_testset_save_CFLAGS="$CFLAGS" 9339 9340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9343printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9344if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9345then : 9346 printf %s "(cached) " >&6 9347else case e in #( 9348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349/* end confdefs.h. */ 9350int i; 9351_ACEOF 9352if ac_fn_c_try_compile "$LINENO" 9353then : 9354 xorg_cv_cc_flag_unknown_warning_option=yes 9355else case e in #( 9356 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9357esac 9358fi 9359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9360esac 9361fi 9362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9363printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9365 CFLAGS="$xorg_testset_save_CFLAGS" 9366fi 9367 9368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9371 fi 9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9374printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9375if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9376then : 9377 printf %s "(cached) " >&6 9378else case e in #( 9379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9380/* end confdefs.h. */ 9381int i; 9382_ACEOF 9383if ac_fn_c_try_compile "$LINENO" 9384then : 9385 xorg_cv_cc_flag_unused_command_line_argument=yes 9386else case e in #( 9387 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9388esac 9389fi 9390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9391esac 9392fi 9393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9396 CFLAGS="$xorg_testset_save_CFLAGS" 9397fi 9398 9399found="no" 9400 9401 if test $found = "no" ; then 9402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9404 fi 9405 9406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9408 fi 9409 9410 CFLAGS="$CFLAGS -Winit-self" 9411 9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9413printf %s "checking if $CC supports -Winit-self... " >&6; } 9414 cacheid=xorg_cv_cc_flag__Winit_self 9415 if eval test \${$cacheid+y} 9416then : 9417 printf %s "(cached) " >&6 9418else case e in #( 9419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9420/* end confdefs.h. */ 9421int i; 9422int 9423main (void) 9424{ 9425 9426 ; 9427 return 0; 9428} 9429_ACEOF 9430if ac_fn_c_try_link "$LINENO" 9431then : 9432 eval $cacheid=yes 9433else case e in #( 9434 e) eval $cacheid=no ;; 9435esac 9436fi 9437rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9438 conftest$ac_exeext conftest.$ac_ext ;; 9439esac 9440fi 9441 9442 9443 CFLAGS="$xorg_testset_save_CFLAGS" 9444 9445 eval supported=\$$cacheid 9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9447printf "%s\n" "$supported" >&6; } 9448 if test "$supported" = "yes" ; then 9449 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9450 found="yes" 9451 fi 9452 fi 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468xorg_testset_save_CFLAGS="$CFLAGS" 9469 9470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9473printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9474if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9475then : 9476 printf %s "(cached) " >&6 9477else case e in #( 9478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479/* end confdefs.h. */ 9480int i; 9481_ACEOF 9482if ac_fn_c_try_compile "$LINENO" 9483then : 9484 xorg_cv_cc_flag_unknown_warning_option=yes 9485else case e in #( 9486 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9487esac 9488fi 9489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9490esac 9491fi 9492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496fi 9497 9498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9501 fi 9502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9505if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9506then : 9507 printf %s "(cached) " >&6 9508else case e in #( 9509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510/* end confdefs.h. */ 9511int i; 9512_ACEOF 9513if ac_fn_c_try_compile "$LINENO" 9514then : 9515 xorg_cv_cc_flag_unused_command_line_argument=yes 9516else case e in #( 9517 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9518esac 9519fi 9520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9521esac 9522fi 9523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9524printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9526 CFLAGS="$xorg_testset_save_CFLAGS" 9527fi 9528 9529found="no" 9530 9531 if test $found = "no" ; then 9532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9534 fi 9535 9536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9538 fi 9539 9540 CFLAGS="$CFLAGS -Wmain" 9541 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9543printf %s "checking if $CC supports -Wmain... " >&6; } 9544 cacheid=xorg_cv_cc_flag__Wmain 9545 if eval test \${$cacheid+y} 9546then : 9547 printf %s "(cached) " >&6 9548else case e in #( 9549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9550/* end confdefs.h. */ 9551int i; 9552int 9553main (void) 9554{ 9555 9556 ; 9557 return 0; 9558} 9559_ACEOF 9560if ac_fn_c_try_link "$LINENO" 9561then : 9562 eval $cacheid=yes 9563else case e in #( 9564 e) eval $cacheid=no ;; 9565esac 9566fi 9567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9568 conftest$ac_exeext conftest.$ac_ext ;; 9569esac 9570fi 9571 9572 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574 9575 eval supported=\$$cacheid 9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9577printf "%s\n" "$supported" >&6; } 9578 if test "$supported" = "yes" ; then 9579 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9580 found="yes" 9581 fi 9582 fi 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598xorg_testset_save_CFLAGS="$CFLAGS" 9599 9600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9603printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9604if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9605then : 9606 printf %s "(cached) " >&6 9607else case e in #( 9608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9609/* end confdefs.h. */ 9610int i; 9611_ACEOF 9612if ac_fn_c_try_compile "$LINENO" 9613then : 9614 xorg_cv_cc_flag_unknown_warning_option=yes 9615else case e in #( 9616 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9617esac 9618fi 9619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9620esac 9621fi 9622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9623printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9625 CFLAGS="$xorg_testset_save_CFLAGS" 9626fi 9627 9628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9631 fi 9632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9634printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9635if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9636then : 9637 printf %s "(cached) " >&6 9638else case e in #( 9639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9640/* end confdefs.h. */ 9641int i; 9642_ACEOF 9643if ac_fn_c_try_compile "$LINENO" 9644then : 9645 xorg_cv_cc_flag_unused_command_line_argument=yes 9646else case e in #( 9647 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9648esac 9649fi 9650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9651esac 9652fi 9653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9656 CFLAGS="$xorg_testset_save_CFLAGS" 9657fi 9658 9659found="no" 9660 9661 if test $found = "no" ; then 9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 fi 9665 9666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9668 fi 9669 9670 CFLAGS="$CFLAGS -Wmissing-braces" 9671 9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9673printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9674 cacheid=xorg_cv_cc_flag__Wmissing_braces 9675 if eval test \${$cacheid+y} 9676then : 9677 printf %s "(cached) " >&6 9678else case e in #( 9679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9680/* end confdefs.h. */ 9681int i; 9682int 9683main (void) 9684{ 9685 9686 ; 9687 return 0; 9688} 9689_ACEOF 9690if ac_fn_c_try_link "$LINENO" 9691then : 9692 eval $cacheid=yes 9693else case e in #( 9694 e) eval $cacheid=no ;; 9695esac 9696fi 9697rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9698 conftest$ac_exeext conftest.$ac_ext ;; 9699esac 9700fi 9701 9702 9703 CFLAGS="$xorg_testset_save_CFLAGS" 9704 9705 eval supported=\$$cacheid 9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9707printf "%s\n" "$supported" >&6; } 9708 if test "$supported" = "yes" ; then 9709 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9710 found="yes" 9711 fi 9712 fi 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728xorg_testset_save_CFLAGS="$CFLAGS" 9729 9730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9733printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9734if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9735then : 9736 printf %s "(cached) " >&6 9737else case e in #( 9738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739/* end confdefs.h. */ 9740int i; 9741_ACEOF 9742if ac_fn_c_try_compile "$LINENO" 9743then : 9744 xorg_cv_cc_flag_unknown_warning_option=yes 9745else case e in #( 9746 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9747esac 9748fi 9749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9750esac 9751fi 9752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9753printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9755 CFLAGS="$xorg_testset_save_CFLAGS" 9756fi 9757 9758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 fi 9762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9764printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9765if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9766then : 9767 printf %s "(cached) " >&6 9768else case e in #( 9769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9770/* end confdefs.h. */ 9771int i; 9772_ACEOF 9773if ac_fn_c_try_compile "$LINENO" 9774then : 9775 xorg_cv_cc_flag_unused_command_line_argument=yes 9776else case e in #( 9777 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9778esac 9779fi 9780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9781esac 9782fi 9783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9784printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9786 CFLAGS="$xorg_testset_save_CFLAGS" 9787fi 9788 9789found="no" 9790 9791 if test $found = "no" ; then 9792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9794 fi 9795 9796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9798 fi 9799 9800 CFLAGS="$CFLAGS -Wsequence-point" 9801 9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9803printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9804 cacheid=xorg_cv_cc_flag__Wsequence_point 9805 if eval test \${$cacheid+y} 9806then : 9807 printf %s "(cached) " >&6 9808else case e in #( 9809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9810/* end confdefs.h. */ 9811int i; 9812int 9813main (void) 9814{ 9815 9816 ; 9817 return 0; 9818} 9819_ACEOF 9820if ac_fn_c_try_link "$LINENO" 9821then : 9822 eval $cacheid=yes 9823else case e in #( 9824 e) eval $cacheid=no ;; 9825esac 9826fi 9827rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9828 conftest$ac_exeext conftest.$ac_ext ;; 9829esac 9830fi 9831 9832 9833 CFLAGS="$xorg_testset_save_CFLAGS" 9834 9835 eval supported=\$$cacheid 9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9837printf "%s\n" "$supported" >&6; } 9838 if test "$supported" = "yes" ; then 9839 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9840 found="yes" 9841 fi 9842 fi 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858xorg_testset_save_CFLAGS="$CFLAGS" 9859 9860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9864if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9865then : 9866 printf %s "(cached) " >&6 9867else case e in #( 9868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869/* end confdefs.h. */ 9870int i; 9871_ACEOF 9872if ac_fn_c_try_compile "$LINENO" 9873then : 9874 xorg_cv_cc_flag_unknown_warning_option=yes 9875else case e in #( 9876 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9877esac 9878fi 9879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9880esac 9881fi 9882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9883printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9885 CFLAGS="$xorg_testset_save_CFLAGS" 9886fi 9887 9888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9891 fi 9892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9894printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9895if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9896then : 9897 printf %s "(cached) " >&6 9898else case e in #( 9899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9900/* end confdefs.h. */ 9901int i; 9902_ACEOF 9903if ac_fn_c_try_compile "$LINENO" 9904then : 9905 xorg_cv_cc_flag_unused_command_line_argument=yes 9906else case e in #( 9907 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9908esac 9909fi 9910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9911esac 9912fi 9913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9914printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9916 CFLAGS="$xorg_testset_save_CFLAGS" 9917fi 9918 9919found="no" 9920 9921 if test $found = "no" ; then 9922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9924 fi 9925 9926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9928 fi 9929 9930 CFLAGS="$CFLAGS -Wreturn-type" 9931 9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9933printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9934 cacheid=xorg_cv_cc_flag__Wreturn_type 9935 if eval test \${$cacheid+y} 9936then : 9937 printf %s "(cached) " >&6 9938else case e in #( 9939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9940/* end confdefs.h. */ 9941int i; 9942int 9943main (void) 9944{ 9945 9946 ; 9947 return 0; 9948} 9949_ACEOF 9950if ac_fn_c_try_link "$LINENO" 9951then : 9952 eval $cacheid=yes 9953else case e in #( 9954 e) eval $cacheid=no ;; 9955esac 9956fi 9957rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9958 conftest$ac_exeext conftest.$ac_ext ;; 9959esac 9960fi 9961 9962 9963 CFLAGS="$xorg_testset_save_CFLAGS" 9964 9965 eval supported=\$$cacheid 9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9967printf "%s\n" "$supported" >&6; } 9968 if test "$supported" = "yes" ; then 9969 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9970 found="yes" 9971 fi 9972 fi 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988xorg_testset_save_CFLAGS="$CFLAGS" 9989 9990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9993printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9994if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9995then : 9996 printf %s "(cached) " >&6 9997else case e in #( 9998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000int i; 10001_ACEOF 10002if ac_fn_c_try_compile "$LINENO" 10003then : 10004 xorg_cv_cc_flag_unknown_warning_option=yes 10005else case e in #( 10006 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10007esac 10008fi 10009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10010esac 10011fi 10012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10015 CFLAGS="$xorg_testset_save_CFLAGS" 10016fi 10017 10018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10021 fi 10022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10025if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10026then : 10027 printf %s "(cached) " >&6 10028else case e in #( 10029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031int i; 10032_ACEOF 10033if ac_fn_c_try_compile "$LINENO" 10034then : 10035 xorg_cv_cc_flag_unused_command_line_argument=yes 10036else case e in #( 10037 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10038esac 10039fi 10040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10041esac 10042fi 10043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10044printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10046 CFLAGS="$xorg_testset_save_CFLAGS" 10047fi 10048 10049found="no" 10050 10051 if test $found = "no" ; then 10052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10054 fi 10055 10056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10058 fi 10059 10060 CFLAGS="$CFLAGS -Wtrigraphs" 10061 10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10063printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10064 cacheid=xorg_cv_cc_flag__Wtrigraphs 10065 if eval test \${$cacheid+y} 10066then : 10067 printf %s "(cached) " >&6 10068else case e in #( 10069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10070/* end confdefs.h. */ 10071int i; 10072int 10073main (void) 10074{ 10075 10076 ; 10077 return 0; 10078} 10079_ACEOF 10080if ac_fn_c_try_link "$LINENO" 10081then : 10082 eval $cacheid=yes 10083else case e in #( 10084 e) eval $cacheid=no ;; 10085esac 10086fi 10087rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10088 conftest$ac_exeext conftest.$ac_ext ;; 10089esac 10090fi 10091 10092 10093 CFLAGS="$xorg_testset_save_CFLAGS" 10094 10095 eval supported=\$$cacheid 10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10097printf "%s\n" "$supported" >&6; } 10098 if test "$supported" = "yes" ; then 10099 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10100 found="yes" 10101 fi 10102 fi 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118xorg_testset_save_CFLAGS="$CFLAGS" 10119 10120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10123printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10124if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10125then : 10126 printf %s "(cached) " >&6 10127else case e in #( 10128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129/* end confdefs.h. */ 10130int i; 10131_ACEOF 10132if ac_fn_c_try_compile "$LINENO" 10133then : 10134 xorg_cv_cc_flag_unknown_warning_option=yes 10135else case e in #( 10136 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10137esac 10138fi 10139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10140esac 10141fi 10142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10143printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10145 CFLAGS="$xorg_testset_save_CFLAGS" 10146fi 10147 10148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10151 fi 10152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10154printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10155if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10156then : 10157 printf %s "(cached) " >&6 10158else case e in #( 10159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160/* end confdefs.h. */ 10161int i; 10162_ACEOF 10163if ac_fn_c_try_compile "$LINENO" 10164then : 10165 xorg_cv_cc_flag_unused_command_line_argument=yes 10166else case e in #( 10167 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10168esac 10169fi 10170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10171esac 10172fi 10173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10174printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10176 CFLAGS="$xorg_testset_save_CFLAGS" 10177fi 10178 10179found="no" 10180 10181 if test $found = "no" ; then 10182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10184 fi 10185 10186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10188 fi 10189 10190 CFLAGS="$CFLAGS -Warray-bounds" 10191 10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10193printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10194 cacheid=xorg_cv_cc_flag__Warray_bounds 10195 if eval test \${$cacheid+y} 10196then : 10197 printf %s "(cached) " >&6 10198else case e in #( 10199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10200/* end confdefs.h. */ 10201int i; 10202int 10203main (void) 10204{ 10205 10206 ; 10207 return 0; 10208} 10209_ACEOF 10210if ac_fn_c_try_link "$LINENO" 10211then : 10212 eval $cacheid=yes 10213else case e in #( 10214 e) eval $cacheid=no ;; 10215esac 10216fi 10217rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10218 conftest$ac_exeext conftest.$ac_ext ;; 10219esac 10220fi 10221 10222 10223 CFLAGS="$xorg_testset_save_CFLAGS" 10224 10225 eval supported=\$$cacheid 10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10227printf "%s\n" "$supported" >&6; } 10228 if test "$supported" = "yes" ; then 10229 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10230 found="yes" 10231 fi 10232 fi 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248xorg_testset_save_CFLAGS="$CFLAGS" 10249 10250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10253printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10254if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10255then : 10256 printf %s "(cached) " >&6 10257else case e in #( 10258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10259/* end confdefs.h. */ 10260int i; 10261_ACEOF 10262if ac_fn_c_try_compile "$LINENO" 10263then : 10264 xorg_cv_cc_flag_unknown_warning_option=yes 10265else case e in #( 10266 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10267esac 10268fi 10269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10270esac 10271fi 10272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10273printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10275 CFLAGS="$xorg_testset_save_CFLAGS" 10276fi 10277 10278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10281 fi 10282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10284printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10285if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10286then : 10287 printf %s "(cached) " >&6 10288else case e in #( 10289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290/* end confdefs.h. */ 10291int i; 10292_ACEOF 10293if ac_fn_c_try_compile "$LINENO" 10294then : 10295 xorg_cv_cc_flag_unused_command_line_argument=yes 10296else case e in #( 10297 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10298esac 10299fi 10300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10301esac 10302fi 10303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10304printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10306 CFLAGS="$xorg_testset_save_CFLAGS" 10307fi 10308 10309found="no" 10310 10311 if test $found = "no" ; then 10312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10314 fi 10315 10316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10318 fi 10319 10320 CFLAGS="$CFLAGS -Wwrite-strings" 10321 10322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10323printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10324 cacheid=xorg_cv_cc_flag__Wwrite_strings 10325 if eval test \${$cacheid+y} 10326then : 10327 printf %s "(cached) " >&6 10328else case e in #( 10329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10330/* end confdefs.h. */ 10331int i; 10332int 10333main (void) 10334{ 10335 10336 ; 10337 return 0; 10338} 10339_ACEOF 10340if ac_fn_c_try_link "$LINENO" 10341then : 10342 eval $cacheid=yes 10343else case e in #( 10344 e) eval $cacheid=no ;; 10345esac 10346fi 10347rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10348 conftest$ac_exeext conftest.$ac_ext ;; 10349esac 10350fi 10351 10352 10353 CFLAGS="$xorg_testset_save_CFLAGS" 10354 10355 eval supported=\$$cacheid 10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10357printf "%s\n" "$supported" >&6; } 10358 if test "$supported" = "yes" ; then 10359 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10360 found="yes" 10361 fi 10362 fi 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378xorg_testset_save_CFLAGS="$CFLAGS" 10379 10380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10383printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10384if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10385then : 10386 printf %s "(cached) " >&6 10387else case e in #( 10388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389/* end confdefs.h. */ 10390int i; 10391_ACEOF 10392if ac_fn_c_try_compile "$LINENO" 10393then : 10394 xorg_cv_cc_flag_unknown_warning_option=yes 10395else case e in #( 10396 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10397esac 10398fi 10399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10400esac 10401fi 10402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10403printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10405 CFLAGS="$xorg_testset_save_CFLAGS" 10406fi 10407 10408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10411 fi 10412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10414printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10415if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10416then : 10417 printf %s "(cached) " >&6 10418else case e in #( 10419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10420/* end confdefs.h. */ 10421int i; 10422_ACEOF 10423if ac_fn_c_try_compile "$LINENO" 10424then : 10425 xorg_cv_cc_flag_unused_command_line_argument=yes 10426else case e in #( 10427 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10428esac 10429fi 10430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10431esac 10432fi 10433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10436 CFLAGS="$xorg_testset_save_CFLAGS" 10437fi 10438 10439found="no" 10440 10441 if test $found = "no" ; then 10442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10444 fi 10445 10446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10448 fi 10449 10450 CFLAGS="$CFLAGS -Waddress" 10451 10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10453printf %s "checking if $CC supports -Waddress... " >&6; } 10454 cacheid=xorg_cv_cc_flag__Waddress 10455 if eval test \${$cacheid+y} 10456then : 10457 printf %s "(cached) " >&6 10458else case e in #( 10459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460/* end confdefs.h. */ 10461int i; 10462int 10463main (void) 10464{ 10465 10466 ; 10467 return 0; 10468} 10469_ACEOF 10470if ac_fn_c_try_link "$LINENO" 10471then : 10472 eval $cacheid=yes 10473else case e in #( 10474 e) eval $cacheid=no ;; 10475esac 10476fi 10477rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10478 conftest$ac_exeext conftest.$ac_ext ;; 10479esac 10480fi 10481 10482 10483 CFLAGS="$xorg_testset_save_CFLAGS" 10484 10485 eval supported=\$$cacheid 10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10487printf "%s\n" "$supported" >&6; } 10488 if test "$supported" = "yes" ; then 10489 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10490 found="yes" 10491 fi 10492 fi 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508xorg_testset_save_CFLAGS="$CFLAGS" 10509 10510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10513printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10514if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10515then : 10516 printf %s "(cached) " >&6 10517else case e in #( 10518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10519/* end confdefs.h. */ 10520int i; 10521_ACEOF 10522if ac_fn_c_try_compile "$LINENO" 10523then : 10524 xorg_cv_cc_flag_unknown_warning_option=yes 10525else case e in #( 10526 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10527esac 10528fi 10529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10530esac 10531fi 10532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10533printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10535 CFLAGS="$xorg_testset_save_CFLAGS" 10536fi 10537 10538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10541 fi 10542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10544printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10545if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10546then : 10547 printf %s "(cached) " >&6 10548else case e in #( 10549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10550/* end confdefs.h. */ 10551int i; 10552_ACEOF 10553if ac_fn_c_try_compile "$LINENO" 10554then : 10555 xorg_cv_cc_flag_unused_command_line_argument=yes 10556else case e in #( 10557 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10558esac 10559fi 10560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10561esac 10562fi 10563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10564printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10566 CFLAGS="$xorg_testset_save_CFLAGS" 10567fi 10568 10569found="no" 10570 10571 if test $found = "no" ; then 10572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10574 fi 10575 10576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10578 fi 10579 10580 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10581 10582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10583printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10584 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10585 if eval test \${$cacheid+y} 10586then : 10587 printf %s "(cached) " >&6 10588else case e in #( 10589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10590/* end confdefs.h. */ 10591int i; 10592int 10593main (void) 10594{ 10595 10596 ; 10597 return 0; 10598} 10599_ACEOF 10600if ac_fn_c_try_link "$LINENO" 10601then : 10602 eval $cacheid=yes 10603else case e in #( 10604 e) eval $cacheid=no ;; 10605esac 10606fi 10607rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10608 conftest$ac_exeext conftest.$ac_ext ;; 10609esac 10610fi 10611 10612 10613 CFLAGS="$xorg_testset_save_CFLAGS" 10614 10615 eval supported=\$$cacheid 10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10617printf "%s\n" "$supported" >&6; } 10618 if test "$supported" = "yes" ; then 10619 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10620 found="yes" 10621 fi 10622 fi 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638xorg_testset_save_CFLAGS="$CFLAGS" 10639 10640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10643printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10644if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10645then : 10646 printf %s "(cached) " >&6 10647else case e in #( 10648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649/* end confdefs.h. */ 10650int i; 10651_ACEOF 10652if ac_fn_c_try_compile "$LINENO" 10653then : 10654 xorg_cv_cc_flag_unknown_warning_option=yes 10655else case e in #( 10656 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10657esac 10658fi 10659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10660esac 10661fi 10662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10663printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10665 CFLAGS="$xorg_testset_save_CFLAGS" 10666fi 10667 10668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10671 fi 10672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10674printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10675if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10676then : 10677 printf %s "(cached) " >&6 10678else case e in #( 10679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10680/* end confdefs.h. */ 10681int i; 10682_ACEOF 10683if ac_fn_c_try_compile "$LINENO" 10684then : 10685 xorg_cv_cc_flag_unused_command_line_argument=yes 10686else case e in #( 10687 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10688esac 10689fi 10690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10691esac 10692fi 10693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10696 CFLAGS="$xorg_testset_save_CFLAGS" 10697fi 10698 10699found="no" 10700 10701 if test $found = "no" ; then 10702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10704 fi 10705 10706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10708 fi 10709 10710 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10711 10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10713printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10714 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10715 if eval test \${$cacheid+y} 10716then : 10717 printf %s "(cached) " >&6 10718else case e in #( 10719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10720/* end confdefs.h. */ 10721int i; 10722int 10723main (void) 10724{ 10725 10726 ; 10727 return 0; 10728} 10729_ACEOF 10730if ac_fn_c_try_link "$LINENO" 10731then : 10732 eval $cacheid=yes 10733else case e in #( 10734 e) eval $cacheid=no ;; 10735esac 10736fi 10737rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10738 conftest$ac_exeext conftest.$ac_ext ;; 10739esac 10740fi 10741 10742 10743 CFLAGS="$xorg_testset_save_CFLAGS" 10744 10745 eval supported=\$$cacheid 10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10747printf "%s\n" "$supported" >&6; } 10748 if test "$supported" = "yes" ; then 10749 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10750 found="yes" 10751 fi 10752 fi 10753 10754 10755fi 10756 10757 10758 10759 10760 10761 10762 10763 CWARNFLAGS="$BASE_CFLAGS" 10764 if test "x$GCC" = xyes ; then 10765 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10766 fi 10767 10768 10769 10770 10771 10772 10773 10774 10775# Check whether --enable-strict-compilation was given. 10776if test ${enable_strict_compilation+y} 10777then : 10778 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10779else case e in #( 10780 e) STRICT_COMPILE=no ;; 10781esac 10782fi 10783 10784 10785 10786 10787 10788 10789STRICT_CFLAGS="" 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803xorg_testset_save_CFLAGS="$CFLAGS" 10804 10805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10808printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10809if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10810then : 10811 printf %s "(cached) " >&6 10812else case e in #( 10813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10814/* end confdefs.h. */ 10815int i; 10816_ACEOF 10817if ac_fn_c_try_compile "$LINENO" 10818then : 10819 xorg_cv_cc_flag_unknown_warning_option=yes 10820else case e in #( 10821 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10822esac 10823fi 10824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10825esac 10826fi 10827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10828printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10830 CFLAGS="$xorg_testset_save_CFLAGS" 10831fi 10832 10833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10836 fi 10837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10839printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10840if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10841then : 10842 printf %s "(cached) " >&6 10843else case e in #( 10844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10845/* end confdefs.h. */ 10846int i; 10847_ACEOF 10848if ac_fn_c_try_compile "$LINENO" 10849then : 10850 xorg_cv_cc_flag_unused_command_line_argument=yes 10851else case e in #( 10852 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10853esac 10854fi 10855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10856esac 10857fi 10858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10859printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10861 CFLAGS="$xorg_testset_save_CFLAGS" 10862fi 10863 10864found="no" 10865 10866 if test $found = "no" ; then 10867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10869 fi 10870 10871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10873 fi 10874 10875 CFLAGS="$CFLAGS -pedantic" 10876 10877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10878printf %s "checking if $CC supports -pedantic... " >&6; } 10879 cacheid=xorg_cv_cc_flag__pedantic 10880 if eval test \${$cacheid+y} 10881then : 10882 printf %s "(cached) " >&6 10883else case e in #( 10884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10885/* end confdefs.h. */ 10886int i; 10887int 10888main (void) 10889{ 10890 10891 ; 10892 return 0; 10893} 10894_ACEOF 10895if ac_fn_c_try_link "$LINENO" 10896then : 10897 eval $cacheid=yes 10898else case e in #( 10899 e) eval $cacheid=no ;; 10900esac 10901fi 10902rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10903 conftest$ac_exeext conftest.$ac_ext ;; 10904esac 10905fi 10906 10907 10908 CFLAGS="$xorg_testset_save_CFLAGS" 10909 10910 eval supported=\$$cacheid 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10912printf "%s\n" "$supported" >&6; } 10913 if test "$supported" = "yes" ; then 10914 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10915 found="yes" 10916 fi 10917 fi 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933xorg_testset_save_CFLAGS="$CFLAGS" 10934 10935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10939if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10940then : 10941 printf %s "(cached) " >&6 10942else case e in #( 10943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10944/* end confdefs.h. */ 10945int i; 10946_ACEOF 10947if ac_fn_c_try_compile "$LINENO" 10948then : 10949 xorg_cv_cc_flag_unknown_warning_option=yes 10950else case e in #( 10951 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10952esac 10953fi 10954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10955esac 10956fi 10957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10958printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10960 CFLAGS="$xorg_testset_save_CFLAGS" 10961fi 10962 10963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10966 fi 10967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10969printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10970if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10971then : 10972 printf %s "(cached) " >&6 10973else case e in #( 10974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10975/* end confdefs.h. */ 10976int i; 10977_ACEOF 10978if ac_fn_c_try_compile "$LINENO" 10979then : 10980 xorg_cv_cc_flag_unused_command_line_argument=yes 10981else case e in #( 10982 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10983esac 10984fi 10985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10986esac 10987fi 10988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10991 CFLAGS="$xorg_testset_save_CFLAGS" 10992fi 10993 10994found="no" 10995 10996 if test $found = "no" ; then 10997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10999 fi 11000 11001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11003 fi 11004 11005 CFLAGS="$CFLAGS -Werror" 11006 11007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11008printf %s "checking if $CC supports -Werror... " >&6; } 11009 cacheid=xorg_cv_cc_flag__Werror 11010 if eval test \${$cacheid+y} 11011then : 11012 printf %s "(cached) " >&6 11013else case e in #( 11014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11015/* end confdefs.h. */ 11016int i; 11017int 11018main (void) 11019{ 11020 11021 ; 11022 return 0; 11023} 11024_ACEOF 11025if ac_fn_c_try_link "$LINENO" 11026then : 11027 eval $cacheid=yes 11028else case e in #( 11029 e) eval $cacheid=no ;; 11030esac 11031fi 11032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11033 conftest$ac_exeext conftest.$ac_ext ;; 11034esac 11035fi 11036 11037 11038 CFLAGS="$xorg_testset_save_CFLAGS" 11039 11040 eval supported=\$$cacheid 11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11042printf "%s\n" "$supported" >&6; } 11043 if test "$supported" = "yes" ; then 11044 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11045 found="yes" 11046 fi 11047 fi 11048 11049 if test $found = "no" ; then 11050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11052 fi 11053 11054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11056 fi 11057 11058 CFLAGS="$CFLAGS -errwarn" 11059 11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11061printf %s "checking if $CC supports -errwarn... " >&6; } 11062 cacheid=xorg_cv_cc_flag__errwarn 11063 if eval test \${$cacheid+y} 11064then : 11065 printf %s "(cached) " >&6 11066else case e in #( 11067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11068/* end confdefs.h. */ 11069int i; 11070int 11071main (void) 11072{ 11073 11074 ; 11075 return 0; 11076} 11077_ACEOF 11078if ac_fn_c_try_link "$LINENO" 11079then : 11080 eval $cacheid=yes 11081else case e in #( 11082 e) eval $cacheid=no ;; 11083esac 11084fi 11085rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11086 conftest$ac_exeext conftest.$ac_ext ;; 11087esac 11088fi 11089 11090 11091 CFLAGS="$xorg_testset_save_CFLAGS" 11092 11093 eval supported=\$$cacheid 11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11095printf "%s\n" "$supported" >&6; } 11096 if test "$supported" = "yes" ; then 11097 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11098 found="yes" 11099 fi 11100 fi 11101 11102 11103 11104# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11105# activate it with -Werror, so we add it here explicitly. 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119xorg_testset_save_CFLAGS="$CFLAGS" 11120 11121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11124printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11125if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11126then : 11127 printf %s "(cached) " >&6 11128else case e in #( 11129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11130/* end confdefs.h. */ 11131int i; 11132_ACEOF 11133if ac_fn_c_try_compile "$LINENO" 11134then : 11135 xorg_cv_cc_flag_unknown_warning_option=yes 11136else case e in #( 11137 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11138esac 11139fi 11140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11141esac 11142fi 11143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11146 CFLAGS="$xorg_testset_save_CFLAGS" 11147fi 11148 11149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11152 fi 11153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11156if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11157then : 11158 printf %s "(cached) " >&6 11159else case e in #( 11160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11161/* end confdefs.h. */ 11162int i; 11163_ACEOF 11164if ac_fn_c_try_compile "$LINENO" 11165then : 11166 xorg_cv_cc_flag_unused_command_line_argument=yes 11167else case e in #( 11168 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11169esac 11170fi 11171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11172esac 11173fi 11174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11175printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11177 CFLAGS="$xorg_testset_save_CFLAGS" 11178fi 11179 11180found="no" 11181 11182 if test $found = "no" ; then 11183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11185 fi 11186 11187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11189 fi 11190 11191 CFLAGS="$CFLAGS -Werror=attributes" 11192 11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11194printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11195 cacheid=xorg_cv_cc_flag__Werror_attributes 11196 if eval test \${$cacheid+y} 11197then : 11198 printf %s "(cached) " >&6 11199else case e in #( 11200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11201/* end confdefs.h. */ 11202int i; 11203int 11204main (void) 11205{ 11206 11207 ; 11208 return 0; 11209} 11210_ACEOF 11211if ac_fn_c_try_link "$LINENO" 11212then : 11213 eval $cacheid=yes 11214else case e in #( 11215 e) eval $cacheid=no ;; 11216esac 11217fi 11218rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11219 conftest$ac_exeext conftest.$ac_ext ;; 11220esac 11221fi 11222 11223 11224 CFLAGS="$xorg_testset_save_CFLAGS" 11225 11226 eval supported=\$$cacheid 11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11228printf "%s\n" "$supported" >&6; } 11229 if test "$supported" = "yes" ; then 11230 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11231 found="yes" 11232 fi 11233 fi 11234 11235 11236 11237if test "x$STRICT_COMPILE" = "xyes"; then 11238 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11239 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11240fi 11241 11242 11243 11244 11245 11246 11247 11248 11249cat >>confdefs.h <<_ACEOF 11250#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11251_ACEOF 11252 11253 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11254 if test "x$PVM" = "x"; then 11255 PVM="0" 11256 fi 11257 11258printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11259 11260 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11261 if test "x$PVP" = "x"; then 11262 PVP="0" 11263 fi 11264 11265printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11266 11267 11268 11269CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11270mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11271|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11272touch \$(top_srcdir)/ChangeLog; \ 11273echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11274 11275 11276 11277 11278macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11279INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11280mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11281|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11282touch \$(top_srcdir)/INSTALL; \ 11283echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11284 11285 11286 11287 11288 11289 11290case $host_os in 11291 solaris*) 11292 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11293 # check for a man page file found in later versions that use 11294 # traditional section numbers instead 11295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11296printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11297if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11298then : 11299 printf %s "(cached) " >&6 11300else case e in #( 11301 e) test "$cross_compiling" = yes && 11302 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11303if test -r "/usr/share/man/man7/attributes.7"; then 11304 ac_cv_file__usr_share_man_man7_attributes_7=yes 11305else 11306 ac_cv_file__usr_share_man_man7_attributes_7=no 11307fi ;; 11308esac 11309fi 11310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11311printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11312if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11313then : 11314 SYSV_MAN_SECTIONS=false 11315else case e in #( 11316 e) SYSV_MAN_SECTIONS=true ;; 11317esac 11318fi 11319 11320 ;; 11321 *) SYSV_MAN_SECTIONS=false ;; 11322esac 11323 11324if test x$APP_MAN_SUFFIX = x ; then 11325 APP_MAN_SUFFIX=1 11326fi 11327if test x$APP_MAN_DIR = x ; then 11328 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11329fi 11330 11331if test x$LIB_MAN_SUFFIX = x ; then 11332 LIB_MAN_SUFFIX=3 11333fi 11334if test x$LIB_MAN_DIR = x ; then 11335 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11336fi 11337 11338if test x$FILE_MAN_SUFFIX = x ; then 11339 case $SYSV_MAN_SECTIONS in 11340 true) FILE_MAN_SUFFIX=4 ;; 11341 *) FILE_MAN_SUFFIX=5 ;; 11342 esac 11343fi 11344if test x$FILE_MAN_DIR = x ; then 11345 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11346fi 11347 11348if test x$MISC_MAN_SUFFIX = x ; then 11349 case $SYSV_MAN_SECTIONS in 11350 true) MISC_MAN_SUFFIX=5 ;; 11351 *) MISC_MAN_SUFFIX=7 ;; 11352 esac 11353fi 11354if test x$MISC_MAN_DIR = x ; then 11355 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11356fi 11357 11358if test x$DRIVER_MAN_SUFFIX = x ; then 11359 case $SYSV_MAN_SECTIONS in 11360 true) DRIVER_MAN_SUFFIX=7 ;; 11361 *) DRIVER_MAN_SUFFIX=4 ;; 11362 esac 11363fi 11364if test x$DRIVER_MAN_DIR = x ; then 11365 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11366fi 11367 11368if test x$ADMIN_MAN_SUFFIX = x ; then 11369 case $SYSV_MAN_SECTIONS in 11370 true) ADMIN_MAN_SUFFIX=1m ;; 11371 *) ADMIN_MAN_SUFFIX=8 ;; 11372 esac 11373fi 11374if test x$ADMIN_MAN_DIR = x ; then 11375 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11376fi 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392XORG_MAN_PAGE="X Version 11" 11393 11394MAN_SUBSTS="\ 11395 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11396 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11397 -e 's|__xservername__|Xorg|g' \ 11398 -e 's|__xconfigfile__|xorg.conf|g' \ 11399 -e 's|__projectroot__|\$(prefix)|g' \ 11400 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11401 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11402 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11403 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11404 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11405 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11406 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11407 11408 11409 11410# Check whether --enable-silent-rules was given. 11411if test ${enable_silent_rules+y} 11412then : 11413 enableval=$enable_silent_rules; 11414fi 11415 11416case $enable_silent_rules in # ((( 11417 yes) AM_DEFAULT_VERBOSITY=0;; 11418 no) AM_DEFAULT_VERBOSITY=1;; 11419 *) AM_DEFAULT_VERBOSITY=0;; 11420esac 11421am_make=${MAKE-make} 11422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11423printf %s "checking whether $am_make supports nested variables... " >&6; } 11424if test ${am_cv_make_support_nested_variables+y} 11425then : 11426 printf %s "(cached) " >&6 11427else case e in #( 11428 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11429BAR0=false 11430BAR1=true 11431V=1 11432am__doit: 11433 @$(TRUE) 11434.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11435 am_cv_make_support_nested_variables=yes 11436else 11437 am_cv_make_support_nested_variables=no 11438fi ;; 11439esac 11440fi 11441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11442printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11443if test $am_cv_make_support_nested_variables = yes; then 11444 AM_V='$(V)' 11445 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11446else 11447 AM_V=$AM_DEFAULT_VERBOSITY 11448 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11449fi 11450AM_BACKSLASH='\' 11451 11452 11453 11454 11455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 11456printf %s "checking for floor in -lm... " >&6; } 11457if test ${ac_cv_lib_m_floor+y} 11458then : 11459 printf %s "(cached) " >&6 11460else case e in #( 11461 e) ac_check_lib_save_LIBS=$LIBS 11462LIBS="-lm $LIBS" 11463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11464/* end confdefs.h. */ 11465 11466/* Override any GCC internal prototype to avoid an error. 11467 Use char because int might match the return type of a GCC 11468 builtin and then its argument prototype would still apply. 11469 The 'extern "C"' is for builds by C++ compilers; 11470 although this is not generally supported in C code supporting it here 11471 has little cost and some practical benefit (sr 110532). */ 11472#ifdef __cplusplus 11473extern "C" 11474#endif 11475char floor (void); 11476int 11477main (void) 11478{ 11479return floor (); 11480 ; 11481 return 0; 11482} 11483_ACEOF 11484if ac_fn_c_try_link "$LINENO" 11485then : 11486 ac_cv_lib_m_floor=yes 11487else case e in #( 11488 e) ac_cv_lib_m_floor=no ;; 11489esac 11490fi 11491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11492 conftest$ac_exeext conftest.$ac_ext 11493LIBS=$ac_check_lib_save_LIBS ;; 11494esac 11495fi 11496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 11497printf "%s\n" "$ac_cv_lib_m_floor" >&6; } 11498if test "x$ac_cv_lib_m_floor" = xyes 11499then : 11500 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 11501 11502 LIBS="-lm $LIBS" 11503 11504fi 11505 11506 11507# Checks for pkg-config packages 11508 11509pkg_failed=no 11510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrandr >= 1.5 xrender x11 xproto >= 7.0.17" >&5 11511printf %s "checking for xrandr >= 1.5 xrender x11 xproto >= 7.0.17... " >&6; } 11512 11513if test -n "$XRANDR_CFLAGS"; then 11514 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS" 11515 elif test -n "$PKG_CONFIG"; then 11516 if test -n "$PKG_CONFIG" && \ 11517 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.5 xrender x11 xproto >= 7.0.17\""; } >&5 11518 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.5 xrender x11 xproto >= 7.0.17") 2>&5 11519 ac_status=$? 11520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11521 test $ac_status = 0; }; then 11522 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>/dev/null` 11523 test "x$?" != "x0" && pkg_failed=yes 11524else 11525 pkg_failed=yes 11526fi 11527 else 11528 pkg_failed=untried 11529fi 11530if test -n "$XRANDR_LIBS"; then 11531 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS" 11532 elif test -n "$PKG_CONFIG"; then 11533 if test -n "$PKG_CONFIG" && \ 11534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.5 xrender x11 xproto >= 7.0.17\""; } >&5 11535 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.5 xrender x11 xproto >= 7.0.17") 2>&5 11536 ac_status=$? 11537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11538 test $ac_status = 0; }; then 11539 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>/dev/null` 11540 test "x$?" != "x0" && pkg_failed=yes 11541else 11542 pkg_failed=yes 11543fi 11544 else 11545 pkg_failed=untried 11546fi 11547 11548 11549 11550if test $pkg_failed = yes; then 11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11552printf "%s\n" "no" >&6; } 11553 11554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11555 _pkg_short_errors_supported=yes 11556else 11557 _pkg_short_errors_supported=no 11558fi 11559 if test $_pkg_short_errors_supported = yes; then 11560 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>&1` 11561 else 11562 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>&1` 11563 fi 11564 # Put the nasty error message in config.log where it belongs 11565 echo "$XRANDR_PKG_ERRORS" >&5 11566 11567 as_fn_error $? "Package requirements (xrandr >= 1.5 xrender x11 xproto >= 7.0.17) were not met: 11568 11569$XRANDR_PKG_ERRORS 11570 11571Consider adjusting the PKG_CONFIG_PATH environment variable if you 11572installed software in a non-standard prefix. 11573 11574Alternatively, you may set the environment variables XRANDR_CFLAGS 11575and XRANDR_LIBS to avoid the need to call pkg-config. 11576See the pkg-config man page for more details." "$LINENO" 5 11577elif test $pkg_failed = untried; then 11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11579printf "%s\n" "no" >&6; } 11580 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11581printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11582as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11583is in your PATH or set the PKG_CONFIG environment variable to the full 11584path to pkg-config. 11585 11586Alternatively, you may set the environment variables XRANDR_CFLAGS 11587and XRANDR_LIBS to avoid the need to call pkg-config. 11588See the pkg-config man page for more details. 11589 11590To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11591See 'config.log' for more details" "$LINENO" 5; } 11592else 11593 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS 11594 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS 11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11596printf "%s\n" "yes" >&6; } 11597 11598fi 11599 11600ac_config_files="$ac_config_files Makefile man/Makefile" 11601 11602cat >confcache <<\_ACEOF 11603# This file is a shell script that caches the results of configure 11604# tests run on this system so they can be shared between configure 11605# scripts and configure runs, see configure's option --config-cache. 11606# It is not useful on other systems. If it contains results you don't 11607# want to keep, you may remove or edit it. 11608# 11609# config.status only pays attention to the cache file if you give it 11610# the --recheck option to rerun configure. 11611# 11612# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11613# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11614# following values. 11615 11616_ACEOF 11617 11618# The following way of writing the cache mishandles newlines in values, 11619# but we know of no workaround that is simple, portable, and efficient. 11620# So, we kill variables containing newlines. 11621# Ultrix sh set writes to stderr and can't be redirected directly, 11622# and sets the high bit in the cache file unless we assign to the vars. 11623( 11624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11625 eval ac_val=\$$ac_var 11626 case $ac_val in #( 11627 *${as_nl}*) 11628 case $ac_var in #( 11629 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11630printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11631 esac 11632 case $ac_var in #( 11633 _ | IFS | as_nl) ;; #( 11634 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11635 *) { eval $ac_var=; unset $ac_var;} ;; 11636 esac ;; 11637 esac 11638 done 11639 11640 (set) 2>&1 | 11641 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11642 *${as_nl}ac_space=\ *) 11643 # 'set' does not quote correctly, so add quotes: double-quote 11644 # substitution turns \\\\ into \\, and sed turns \\ into \. 11645 sed -n \ 11646 "s/'/'\\\\''/g; 11647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11648 ;; #( 11649 *) 11650 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11652 ;; 11653 esac | 11654 sort 11655) | 11656 sed ' 11657 /^ac_cv_env_/b end 11658 t clear 11659 :clear 11660 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11661 t end 11662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11663 :end' >>confcache 11664if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11665 if test -w "$cache_file"; then 11666 if test "x$cache_file" != "x/dev/null"; then 11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11668printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11669 if test ! -f "$cache_file" || test -h "$cache_file"; then 11670 cat confcache >"$cache_file" 11671 else 11672 case $cache_file in #( 11673 */* | ?:*) 11674 mv -f confcache "$cache_file"$$ && 11675 mv -f "$cache_file"$$ "$cache_file" ;; #( 11676 *) 11677 mv -f confcache "$cache_file" ;; 11678 esac 11679 fi 11680 fi 11681 else 11682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11683printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11684 fi 11685fi 11686rm -f confcache 11687 11688test "x$prefix" = xNONE && prefix=$ac_default_prefix 11689# Let make expand exec_prefix. 11690test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11691 11692DEFS=-DHAVE_CONFIG_H 11693 11694ac_libobjs= 11695ac_ltlibobjs= 11696U= 11697for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11698 # 1. Remove the extension, and $U if already installed. 11699 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11700 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11701 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11702 # will be set to the directory where LIBOBJS objects are built. 11703 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11704 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11705done 11706LIBOBJS=$ac_libobjs 11707 11708LTLIBOBJS=$ac_ltlibobjs 11709 11710 11711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11712printf %s "checking that generated files are newer than configure... " >&6; } 11713 if test -n "$am_sleep_pid"; then 11714 # Hide warnings about reused PIDs. 11715 wait $am_sleep_pid 2>/dev/null 11716 fi 11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11718printf "%s\n" "done" >&6; } 11719 if test -n "$EXEEXT"; then 11720 am__EXEEXT_TRUE= 11721 am__EXEEXT_FALSE='#' 11722else 11723 am__EXEEXT_TRUE='#' 11724 am__EXEEXT_FALSE= 11725fi 11726 11727if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11728 as_fn_error $? "conditional \"AMDEP\" was never defined. 11729Usually this means the macro was only invoked conditionally." "$LINENO" 5 11730fi 11731if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11732 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11733Usually this means the macro was only invoked conditionally." "$LINENO" 5 11734fi 11735 11736: "${CONFIG_STATUS=./config.status}" 11737ac_write_fail=0 11738ac_clean_files_save=$ac_clean_files 11739ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11741printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11742as_write_fail=0 11743cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11744#! $SHELL 11745# Generated by $as_me. 11746# Run this file to recreate the current configuration. 11747# Compiler output produced by configure, useful for debugging 11748# configure, is in config.log if it exists. 11749 11750debug=false 11751ac_cs_recheck=false 11752ac_cs_silent=false 11753 11754SHELL=\${CONFIG_SHELL-$SHELL} 11755export SHELL 11756_ASEOF 11757cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11758## -------------------- ## 11759## M4sh Initialization. ## 11760## -------------------- ## 11761 11762# Be more Bourne compatible 11763DUALCASE=1; export DUALCASE # for MKS sh 11764if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11765then : 11766 emulate sh 11767 NULLCMD=: 11768 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11769 # is contrary to our usage. Disable this feature. 11770 alias -g '${1+"$@"}'='"$@"' 11771 setopt NO_GLOB_SUBST 11772else case e in #( 11773 e) case `(set -o) 2>/dev/null` in #( 11774 *posix*) : 11775 set -o posix ;; #( 11776 *) : 11777 ;; 11778esac ;; 11779esac 11780fi 11781 11782 11783 11784# Reset variables that may have inherited troublesome values from 11785# the environment. 11786 11787# IFS needs to be set, to space, tab, and newline, in precisely that order. 11788# (If _AS_PATH_WALK were called with IFS unset, it would have the 11789# side effect of setting IFS to empty, thus disabling word splitting.) 11790# Quoting is to prevent editors from complaining about space-tab. 11791as_nl=' 11792' 11793export as_nl 11794IFS=" "" $as_nl" 11795 11796PS1='$ ' 11797PS2='> ' 11798PS4='+ ' 11799 11800# Ensure predictable behavior from utilities with locale-dependent output. 11801LC_ALL=C 11802export LC_ALL 11803LANGUAGE=C 11804export LANGUAGE 11805 11806# We cannot yet rely on "unset" to work, but we need these variables 11807# to be unset--not just set to an empty or harmless value--now, to 11808# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11809# also avoids known problems related to "unset" and subshell syntax 11810# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11811for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11812do eval test \${$as_var+y} \ 11813 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11814done 11815 11816# Ensure that fds 0, 1, and 2 are open. 11817if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11818if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11819if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11820 11821# The user is always right. 11822if ${PATH_SEPARATOR+false} :; then 11823 PATH_SEPARATOR=: 11824 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11825 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11826 PATH_SEPARATOR=';' 11827 } 11828fi 11829 11830 11831# Find who we are. Look in the path if we contain no directory separator. 11832as_myself= 11833case $0 in #(( 11834 *[\\/]* ) as_myself=$0 ;; 11835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11836for as_dir in $PATH 11837do 11838 IFS=$as_save_IFS 11839 case $as_dir in #((( 11840 '') as_dir=./ ;; 11841 */) ;; 11842 *) as_dir=$as_dir/ ;; 11843 esac 11844 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11845 done 11846IFS=$as_save_IFS 11847 11848 ;; 11849esac 11850# We did not find ourselves, most probably we were run as 'sh COMMAND' 11851# in which case we are not to be found in the path. 11852if test "x$as_myself" = x; then 11853 as_myself=$0 11854fi 11855if test ! -f "$as_myself"; then 11856 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11857 exit 1 11858fi 11859 11860 11861 11862# as_fn_error STATUS ERROR [LINENO LOG_FD] 11863# ---------------------------------------- 11864# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11865# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11866# script with STATUS, using 1 if that was 0. 11867as_fn_error () 11868{ 11869 as_status=$1; test $as_status -eq 0 && as_status=1 11870 if test "$4"; then 11871 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11873 fi 11874 printf "%s\n" "$as_me: error: $2" >&2 11875 as_fn_exit $as_status 11876} # as_fn_error 11877 11878 11879# as_fn_set_status STATUS 11880# ----------------------- 11881# Set $? to STATUS, without forking. 11882as_fn_set_status () 11883{ 11884 return $1 11885} # as_fn_set_status 11886 11887# as_fn_exit STATUS 11888# ----------------- 11889# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11890as_fn_exit () 11891{ 11892 set +e 11893 as_fn_set_status $1 11894 exit $1 11895} # as_fn_exit 11896 11897# as_fn_unset VAR 11898# --------------- 11899# Portably unset VAR. 11900as_fn_unset () 11901{ 11902 { eval $1=; unset $1;} 11903} 11904as_unset=as_fn_unset 11905 11906# as_fn_append VAR VALUE 11907# ---------------------- 11908# Append the text in VALUE to the end of the definition contained in VAR. Take 11909# advantage of any shell optimizations that allow amortized linear growth over 11910# repeated appends, instead of the typical quadratic growth present in naive 11911# implementations. 11912if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11913then : 11914 eval 'as_fn_append () 11915 { 11916 eval $1+=\$2 11917 }' 11918else case e in #( 11919 e) as_fn_append () 11920 { 11921 eval $1=\$$1\$2 11922 } ;; 11923esac 11924fi # as_fn_append 11925 11926# as_fn_arith ARG... 11927# ------------------ 11928# Perform arithmetic evaluation on the ARGs, and store the result in the 11929# global $as_val. Take advantage of shells that can avoid forks. The arguments 11930# must be portable across $(()) and expr. 11931if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11932then : 11933 eval 'as_fn_arith () 11934 { 11935 as_val=$(( $* )) 11936 }' 11937else case e in #( 11938 e) as_fn_arith () 11939 { 11940 as_val=`expr "$@" || test $? -eq 1` 11941 } ;; 11942esac 11943fi # as_fn_arith 11944 11945 11946if expr a : '\(a\)' >/dev/null 2>&1 && 11947 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11948 as_expr=expr 11949else 11950 as_expr=false 11951fi 11952 11953if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11954 as_basename=basename 11955else 11956 as_basename=false 11957fi 11958 11959if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11960 as_dirname=dirname 11961else 11962 as_dirname=false 11963fi 11964 11965as_me=`$as_basename -- "$0" || 11966$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11967 X"$0" : 'X\(//\)$' \| \ 11968 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11969printf "%s\n" X/"$0" | 11970 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11971 s//\1/ 11972 q 11973 } 11974 /^X\/\(\/\/\)$/{ 11975 s//\1/ 11976 q 11977 } 11978 /^X\/\(\/\).*/{ 11979 s//\1/ 11980 q 11981 } 11982 s/.*/./; q'` 11983 11984# Avoid depending upon Character Ranges. 11985as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11986as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11987as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11988as_cr_digits='0123456789' 11989as_cr_alnum=$as_cr_Letters$as_cr_digits 11990 11991 11992# Determine whether it's possible to make 'echo' print without a newline. 11993# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11994# for compatibility with existing Makefiles. 11995ECHO_C= ECHO_N= ECHO_T= 11996case `echo -n x` in #((((( 11997-n*) 11998 case `echo 'xy\c'` in 11999 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12000 xy) ECHO_C='\c';; 12001 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12002 ECHO_T=' ';; 12003 esac;; 12004*) 12005 ECHO_N='-n';; 12006esac 12007 12008# For backward compatibility with old third-party macros, we provide 12009# the shell variables $as_echo and $as_echo_n. New code should use 12010# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12011as_echo='printf %s\n' 12012as_echo_n='printf %s' 12013 12014rm -f conf$$ conf$$.exe conf$$.file 12015if test -d conf$$.dir; then 12016 rm -f conf$$.dir/conf$$.file 12017else 12018 rm -f conf$$.dir 12019 mkdir conf$$.dir 2>/dev/null 12020fi 12021if (echo >conf$$.file) 2>/dev/null; then 12022 if ln -s conf$$.file conf$$ 2>/dev/null; then 12023 as_ln_s='ln -s' 12024 # ... but there are two gotchas: 12025 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12026 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12027 # In both cases, we have to default to 'cp -pR'. 12028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12029 as_ln_s='cp -pR' 12030 elif ln conf$$.file conf$$ 2>/dev/null; then 12031 as_ln_s=ln 12032 else 12033 as_ln_s='cp -pR' 12034 fi 12035else 12036 as_ln_s='cp -pR' 12037fi 12038rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12039rmdir conf$$.dir 2>/dev/null 12040 12041 12042# as_fn_mkdir_p 12043# ------------- 12044# Create "$as_dir" as a directory, including parents if necessary. 12045as_fn_mkdir_p () 12046{ 12047 12048 case $as_dir in #( 12049 -*) as_dir=./$as_dir;; 12050 esac 12051 test -d "$as_dir" || eval $as_mkdir_p || { 12052 as_dirs= 12053 while :; do 12054 case $as_dir in #( 12055 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12056 *) as_qdir=$as_dir;; 12057 esac 12058 as_dirs="'$as_qdir' $as_dirs" 12059 as_dir=`$as_dirname -- "$as_dir" || 12060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12061 X"$as_dir" : 'X\(//\)[^/]' \| \ 12062 X"$as_dir" : 'X\(//\)$' \| \ 12063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12064printf "%s\n" X"$as_dir" | 12065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12066 s//\1/ 12067 q 12068 } 12069 /^X\(\/\/\)[^/].*/{ 12070 s//\1/ 12071 q 12072 } 12073 /^X\(\/\/\)$/{ 12074 s//\1/ 12075 q 12076 } 12077 /^X\(\/\).*/{ 12078 s//\1/ 12079 q 12080 } 12081 s/.*/./; q'` 12082 test -d "$as_dir" && break 12083 done 12084 test -z "$as_dirs" || eval "mkdir $as_dirs" 12085 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12086 12087 12088} # as_fn_mkdir_p 12089if mkdir -p . 2>/dev/null; then 12090 as_mkdir_p='mkdir -p "$as_dir"' 12091else 12092 test -d ./-p && rmdir ./-p 12093 as_mkdir_p=false 12094fi 12095 12096 12097# as_fn_executable_p FILE 12098# ----------------------- 12099# Test if FILE is an executable regular file. 12100as_fn_executable_p () 12101{ 12102 test -f "$1" && test -x "$1" 12103} # as_fn_executable_p 12104as_test_x='test -x' 12105as_executable_p=as_fn_executable_p 12106 12107# Sed expression to map a string onto a valid CPP name. 12108as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12109as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12110 12111# Sed expression to map a string onto a valid variable name. 12112as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12113as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12114 12115 12116exec 6>&1 12117## ----------------------------------- ## 12118## Main body of $CONFIG_STATUS script. ## 12119## ----------------------------------- ## 12120_ASEOF 12121test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12122 12123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12124# Save the log message, to keep $0 and so on meaningful, and to 12125# report actual input values of CONFIG_FILES etc. instead of their 12126# values after options handling. 12127ac_log=" 12128This file was extended by xrandr $as_me 1.5.3, which was 12129generated by GNU Autoconf 2.72. Invocation command line was 12130 12131 CONFIG_FILES = $CONFIG_FILES 12132 CONFIG_HEADERS = $CONFIG_HEADERS 12133 CONFIG_LINKS = $CONFIG_LINKS 12134 CONFIG_COMMANDS = $CONFIG_COMMANDS 12135 $ $0 $@ 12136 12137on `(hostname || uname -n) 2>/dev/null | sed 1q` 12138" 12139 12140_ACEOF 12141 12142case $ac_config_files in *" 12143"*) set x $ac_config_files; shift; ac_config_files=$*;; 12144esac 12145 12146case $ac_config_headers in *" 12147"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12148esac 12149 12150 12151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12152# Files that config.status was made for. 12153config_files="$ac_config_files" 12154config_headers="$ac_config_headers" 12155config_commands="$ac_config_commands" 12156 12157_ACEOF 12158 12159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12160ac_cs_usage="\ 12161'$as_me' instantiates files and other configuration actions 12162from templates according to the current configuration. Unless the files 12163and actions are specified as TAGs, all are instantiated by default. 12164 12165Usage: $0 [OPTION]... [TAG]... 12166 12167 -h, --help print this help, then exit 12168 -V, --version print version number and configuration settings, then exit 12169 --config print configuration, then exit 12170 -q, --quiet, --silent 12171 do not print progress messages 12172 -d, --debug don't remove temporary files 12173 --recheck update $as_me by reconfiguring in the same conditions 12174 --file=FILE[:TEMPLATE] 12175 instantiate the configuration file FILE 12176 --header=FILE[:TEMPLATE] 12177 instantiate the configuration header FILE 12178 12179Configuration files: 12180$config_files 12181 12182Configuration headers: 12183$config_headers 12184 12185Configuration commands: 12186$config_commands 12187 12188Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues>." 12189 12190_ACEOF 12191ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12192ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12194ac_cs_config='$ac_cs_config_escaped' 12195ac_cs_version="\\ 12196xrandr config.status 1.5.3 12197configured by $0, generated by GNU Autoconf 2.72, 12198 with options \\"\$ac_cs_config\\" 12199 12200Copyright (C) 2023 Free Software Foundation, Inc. 12201This config.status script is free software; the Free Software Foundation 12202gives unlimited permission to copy, distribute and modify it." 12203 12204ac_pwd='$ac_pwd' 12205srcdir='$srcdir' 12206INSTALL='$INSTALL' 12207MKDIR_P='$MKDIR_P' 12208AWK='$AWK' 12209test -n "\$AWK" || AWK=awk 12210_ACEOF 12211 12212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12213# The default lists apply if the user does not specify any file. 12214ac_need_defaults=: 12215while test $# != 0 12216do 12217 case $1 in 12218 --*=?*) 12219 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12220 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12221 ac_shift=: 12222 ;; 12223 --*=) 12224 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12225 ac_optarg= 12226 ac_shift=: 12227 ;; 12228 *) 12229 ac_option=$1 12230 ac_optarg=$2 12231 ac_shift=shift 12232 ;; 12233 esac 12234 12235 case $ac_option in 12236 # Handling of the options. 12237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12238 ac_cs_recheck=: ;; 12239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12240 printf "%s\n" "$ac_cs_version"; exit ;; 12241 --config | --confi | --conf | --con | --co | --c ) 12242 printf "%s\n" "$ac_cs_config"; exit ;; 12243 --debug | --debu | --deb | --de | --d | -d ) 12244 debug=: ;; 12245 --file | --fil | --fi | --f ) 12246 $ac_shift 12247 case $ac_optarg in 12248 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12249 '') as_fn_error $? "missing file argument" ;; 12250 esac 12251 as_fn_append CONFIG_FILES " '$ac_optarg'" 12252 ac_need_defaults=false;; 12253 --header | --heade | --head | --hea ) 12254 $ac_shift 12255 case $ac_optarg in 12256 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12257 esac 12258 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12259 ac_need_defaults=false;; 12260 --he | --h) 12261 # Conflict between --help and --header 12262 as_fn_error $? "ambiguous option: '$1' 12263Try '$0 --help' for more information.";; 12264 --help | --hel | -h ) 12265 printf "%s\n" "$ac_cs_usage"; exit ;; 12266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12267 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12268 ac_cs_silent=: ;; 12269 12270 # This is an error. 12271 -*) as_fn_error $? "unrecognized option: '$1' 12272Try '$0 --help' for more information." ;; 12273 12274 *) as_fn_append ac_config_targets " $1" 12275 ac_need_defaults=false ;; 12276 12277 esac 12278 shift 12279done 12280 12281ac_configure_extra_args= 12282 12283if $ac_cs_silent; then 12284 exec 6>/dev/null 12285 ac_configure_extra_args="$ac_configure_extra_args --silent" 12286fi 12287 12288_ACEOF 12289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12290if \$ac_cs_recheck; then 12291 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12292 shift 12293 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12294 CONFIG_SHELL='$SHELL' 12295 export CONFIG_SHELL 12296 exec "\$@" 12297fi 12298 12299_ACEOF 12300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12301exec 5>>config.log 12302{ 12303 echo 12304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12305## Running $as_me. ## 12306_ASBOX 12307 printf "%s\n" "$ac_log" 12308} >&5 12309 12310_ACEOF 12311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12312# 12313# INIT-COMMANDS 12314# 12315AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12316 12317_ACEOF 12318 12319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12320 12321# Handling of arguments. 12322for ac_config_target in $ac_config_targets 12323do 12324 case $ac_config_target in 12325 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12326 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12327 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12328 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12329 12330 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12331 esac 12332done 12333 12334 12335# If the user did not use the arguments to specify the items to instantiate, 12336# then the envvar interface is used. Set only those that are not. 12337# We use the long form for the default assignment because of an extremely 12338# bizarre bug on SunOS 4.1.3. 12339if $ac_need_defaults; then 12340 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12341 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12342 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12343fi 12344 12345# Have a temporary directory for convenience. Make it in the build tree 12346# simply because there is no reason against having it here, and in addition, 12347# creating and moving files from /tmp can sometimes cause problems. 12348# Hook for its removal unless debugging. 12349# Note that there is a small window in which the directory will not be cleaned: 12350# after its creation but before its name has been assigned to '$tmp'. 12351$debug || 12352{ 12353 tmp= ac_tmp= 12354 trap 'exit_status=$? 12355 : "${ac_tmp:=$tmp}" 12356 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12357' 0 12358 trap 'as_fn_exit 1' 1 2 13 15 12359} 12360# Create a (secure) tmp directory for tmp files. 12361 12362{ 12363 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12364 test -d "$tmp" 12365} || 12366{ 12367 tmp=./conf$$-$RANDOM 12368 (umask 077 && mkdir "$tmp") 12369} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12370ac_tmp=$tmp 12371 12372# Set up the scripts for CONFIG_FILES section. 12373# No need to generate them if there are no CONFIG_FILES. 12374# This happens for instance with './config.status config.h'. 12375if test -n "$CONFIG_FILES"; then 12376 12377 12378ac_cr=`echo X | tr X '\015'` 12379# On cygwin, bash can eat \r inside `` if the user requested igncr. 12380# But we know of no other shell where ac_cr would be empty at this 12381# point, so we can use a bashism as a fallback. 12382if test "x$ac_cr" = x; then 12383 eval ac_cr=\$\'\\r\' 12384fi 12385ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12386if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12387 ac_cs_awk_cr='\\r' 12388else 12389 ac_cs_awk_cr=$ac_cr 12390fi 12391 12392echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12393_ACEOF 12394 12395 12396{ 12397 echo "cat >conf$$subs.awk <<_ACEOF" && 12398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12399 echo "_ACEOF" 12400} >conf$$subs.sh || 12401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12402ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12403ac_delim='%!_!# ' 12404for ac_last_try in false false false false false :; do 12405 . ./conf$$subs.sh || 12406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12407 12408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12409 if test $ac_delim_n = $ac_delim_num; then 12410 break 12411 elif $ac_last_try; then 12412 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12413 else 12414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12415 fi 12416done 12417rm -f conf$$subs.sh 12418 12419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12420cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12421_ACEOF 12422sed -n ' 12423h 12424s/^/S["/; s/!.*/"]=/ 12425p 12426g 12427s/^[^!]*!// 12428:repl 12429t repl 12430s/'"$ac_delim"'$// 12431t delim 12432:nl 12433h 12434s/\(.\{148\}\)..*/\1/ 12435t more1 12436s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12437p 12438n 12439b repl 12440:more1 12441s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12442p 12443g 12444s/.\{148\}// 12445t nl 12446:delim 12447h 12448s/\(.\{148\}\)..*/\1/ 12449t more2 12450s/["\\]/\\&/g; s/^/"/; s/$/"/ 12451p 12452b 12453:more2 12454s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12455p 12456g 12457s/.\{148\}// 12458t delim 12459' <conf$$subs.awk | sed ' 12460/^[^""]/{ 12461 N 12462 s/\n// 12463} 12464' >>$CONFIG_STATUS || ac_write_fail=1 12465rm -f conf$$subs.awk 12466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12467_ACAWK 12468cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12469 for (key in S) S_is_set[key] = 1 12470 FS = "" 12471 12472} 12473{ 12474 line = $ 0 12475 nfields = split(line, field, "@") 12476 substed = 0 12477 len = length(field[1]) 12478 for (i = 2; i < nfields; i++) { 12479 key = field[i] 12480 keylen = length(key) 12481 if (S_is_set[key]) { 12482 value = S[key] 12483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12484 len += length(value) + length(field[++i]) 12485 substed = 1 12486 } else 12487 len += 1 + keylen 12488 } 12489 12490 print line 12491} 12492 12493_ACAWK 12494_ACEOF 12495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12496if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12497 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12498else 12499 cat 12500fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12501 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12502_ACEOF 12503 12504# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12505# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12506# trailing colons and then remove the whole line if VPATH becomes empty 12507# (actually we leave an empty line to preserve line numbers). 12508if test "x$srcdir" = x.; then 12509 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12510h 12511s/// 12512s/^/:/ 12513s/[ ]*$/:/ 12514s/:\$(srcdir):/:/g 12515s/:\${srcdir}:/:/g 12516s/:@srcdir@:/:/g 12517s/^:*// 12518s/:*$// 12519x 12520s/\(=[ ]*\).*/\1/ 12521G 12522s/\n// 12523s/^[^=]*=[ ]*$// 12524}' 12525fi 12526 12527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12528fi # test -n "$CONFIG_FILES" 12529 12530# Set up the scripts for CONFIG_HEADERS section. 12531# No need to generate them if there are no CONFIG_HEADERS. 12532# This happens for instance with './config.status Makefile'. 12533if test -n "$CONFIG_HEADERS"; then 12534cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12535BEGIN { 12536_ACEOF 12537 12538# Transform confdefs.h into an awk script 'defines.awk', embedded as 12539# here-document in config.status, that substitutes the proper values into 12540# config.h.in to produce config.h. 12541 12542# Create a delimiter string that does not exist in confdefs.h, to ease 12543# handling of long lines. 12544ac_delim='%!_!# ' 12545for ac_last_try in false false :; do 12546 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12547 if test -z "$ac_tt"; then 12548 break 12549 elif $ac_last_try; then 12550 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12551 else 12552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12553 fi 12554done 12555 12556# For the awk script, D is an array of macro values keyed by name, 12557# likewise P contains macro parameters if any. Preserve backslash 12558# newline sequences. 12559 12560ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12561sed -n ' 12562s/.\{148\}/&'"$ac_delim"'/g 12563t rset 12564:rset 12565s/^[ ]*#[ ]*define[ ][ ]*/ / 12566t def 12567d 12568:def 12569s/\\$// 12570t bsnl 12571s/["\\]/\\&/g 12572s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12573D["\1"]=" \3"/p 12574s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12575d 12576:bsnl 12577s/["\\]/\\&/g 12578s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12579D["\1"]=" \3\\\\\\n"\\/p 12580t cont 12581s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12582t cont 12583d 12584:cont 12585n 12586s/.\{148\}/&'"$ac_delim"'/g 12587t clear 12588:clear 12589s/\\$// 12590t bsnlc 12591s/["\\]/\\&/g; s/^/"/; s/$/"/p 12592d 12593:bsnlc 12594s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12595b cont 12596' <confdefs.h | sed ' 12597s/'"$ac_delim"'/"\\\ 12598"/g' >>$CONFIG_STATUS || ac_write_fail=1 12599 12600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12601 for (key in D) D_is_set[key] = 1 12602 FS = "" 12603} 12604/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12605 line = \$ 0 12606 split(line, arg, " ") 12607 if (arg[1] == "#") { 12608 defundef = arg[2] 12609 mac1 = arg[3] 12610 } else { 12611 defundef = substr(arg[1], 2) 12612 mac1 = arg[2] 12613 } 12614 split(mac1, mac2, "(") #) 12615 macro = mac2[1] 12616 prefix = substr(line, 1, index(line, defundef) - 1) 12617 if (D_is_set[macro]) { 12618 # Preserve the white space surrounding the "#". 12619 print prefix "define", macro P[macro] D[macro] 12620 next 12621 } else { 12622 # Replace #undef with comments. This is necessary, for example, 12623 # in the case of _POSIX_SOURCE, which is predefined and required 12624 # on some systems where configure will not decide to define it. 12625 if (defundef == "undef") { 12626 print "/*", prefix defundef, macro, "*/" 12627 next 12628 } 12629 } 12630} 12631{ print } 12632_ACAWK 12633_ACEOF 12634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12635 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12636fi # test -n "$CONFIG_HEADERS" 12637 12638 12639eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12640shift 12641for ac_tag 12642do 12643 case $ac_tag in 12644 :[FHLC]) ac_mode=$ac_tag; continue;; 12645 esac 12646 case $ac_mode$ac_tag in 12647 :[FHL]*:*);; 12648 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12649 :[FH]-) ac_tag=-:-;; 12650 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12651 esac 12652 ac_save_IFS=$IFS 12653 IFS=: 12654 set x $ac_tag 12655 IFS=$ac_save_IFS 12656 shift 12657 ac_file=$1 12658 shift 12659 12660 case $ac_mode in 12661 :L) ac_source=$1;; 12662 :[FH]) 12663 ac_file_inputs= 12664 for ac_f 12665 do 12666 case $ac_f in 12667 -) ac_f="$ac_tmp/stdin";; 12668 *) # Look for the file first in the build tree, then in the source tree 12669 # (if the path is not absolute). The absolute path cannot be DOS-style, 12670 # because $ac_f cannot contain ':'. 12671 test -f "$ac_f" || 12672 case $ac_f in 12673 [\\/$]*) false;; 12674 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12675 esac || 12676 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12677 esac 12678 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12679 as_fn_append ac_file_inputs " '$ac_f'" 12680 done 12681 12682 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12683 # use $as_me), people would be surprised to read: 12684 # /* config.h. Generated by config.status. */ 12685 configure_input='Generated from '` 12686 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12687 `' by configure.' 12688 if test x"$ac_file" != x-; then 12689 configure_input="$ac_file. $configure_input" 12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12691printf "%s\n" "$as_me: creating $ac_file" >&6;} 12692 fi 12693 # Neutralize special characters interpreted by sed in replacement strings. 12694 case $configure_input in #( 12695 *\&* | *\|* | *\\* ) 12696 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12697 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12698 *) ac_sed_conf_input=$configure_input;; 12699 esac 12700 12701 case $ac_tag in 12702 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12704 esac 12705 ;; 12706 esac 12707 12708 ac_dir=`$as_dirname -- "$ac_file" || 12709$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12710 X"$ac_file" : 'X\(//\)[^/]' \| \ 12711 X"$ac_file" : 'X\(//\)$' \| \ 12712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12713printf "%s\n" X"$ac_file" | 12714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12715 s//\1/ 12716 q 12717 } 12718 /^X\(\/\/\)[^/].*/{ 12719 s//\1/ 12720 q 12721 } 12722 /^X\(\/\/\)$/{ 12723 s//\1/ 12724 q 12725 } 12726 /^X\(\/\).*/{ 12727 s//\1/ 12728 q 12729 } 12730 s/.*/./; q'` 12731 as_dir="$ac_dir"; as_fn_mkdir_p 12732 ac_builddir=. 12733 12734case "$ac_dir" in 12735.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12736*) 12737 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12738 # A ".." for each directory in $ac_dir_suffix. 12739 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12740 case $ac_top_builddir_sub in 12741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12743 esac ;; 12744esac 12745ac_abs_top_builddir=$ac_pwd 12746ac_abs_builddir=$ac_pwd$ac_dir_suffix 12747# for backward compatibility: 12748ac_top_builddir=$ac_top_build_prefix 12749 12750case $srcdir in 12751 .) # We are building in place. 12752 ac_srcdir=. 12753 ac_top_srcdir=$ac_top_builddir_sub 12754 ac_abs_top_srcdir=$ac_pwd ;; 12755 [\\/]* | ?:[\\/]* ) # Absolute name. 12756 ac_srcdir=$srcdir$ac_dir_suffix; 12757 ac_top_srcdir=$srcdir 12758 ac_abs_top_srcdir=$srcdir ;; 12759 *) # Relative name. 12760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12761 ac_top_srcdir=$ac_top_build_prefix$srcdir 12762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12763esac 12764ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12765 12766 12767 case $ac_mode in 12768 :F) 12769 # 12770 # CONFIG_FILE 12771 # 12772 12773 case $INSTALL in 12774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12775 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12776 esac 12777 ac_MKDIR_P=$MKDIR_P 12778 case $MKDIR_P in 12779 [\\/$]* | ?:[\\/]* ) ;; 12780 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12781 esac 12782_ACEOF 12783 12784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12785# If the template does not know about datarootdir, expand it. 12786# FIXME: This hack should be removed a few years after 2.60. 12787ac_datarootdir_hack=; ac_datarootdir_seen= 12788ac_sed_dataroot=' 12789/datarootdir/ { 12790 p 12791 q 12792} 12793/@datadir@/p 12794/@docdir@/p 12795/@infodir@/p 12796/@localedir@/p 12797/@mandir@/p' 12798case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12799*datarootdir*) ac_datarootdir_seen=yes;; 12800*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12802printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12803_ACEOF 12804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12805 ac_datarootdir_hack=' 12806 s&@datadir@&$datadir&g 12807 s&@docdir@&$docdir&g 12808 s&@infodir@&$infodir&g 12809 s&@localedir@&$localedir&g 12810 s&@mandir@&$mandir&g 12811 s&\\\${datarootdir}&$datarootdir&g' ;; 12812esac 12813_ACEOF 12814 12815# Neutralize VPATH when '$srcdir' = '.'. 12816# Shell code in configure.ac might set extrasub. 12817# FIXME: do we really want to maintain this feature? 12818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12819ac_sed_extra="$ac_vpsub 12820$extrasub 12821_ACEOF 12822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12823:t 12824/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12825s|@configure_input@|$ac_sed_conf_input|;t t 12826s&@top_builddir@&$ac_top_builddir_sub&;t t 12827s&@top_build_prefix@&$ac_top_build_prefix&;t t 12828s&@srcdir@&$ac_srcdir&;t t 12829s&@abs_srcdir@&$ac_abs_srcdir&;t t 12830s&@top_srcdir@&$ac_top_srcdir&;t t 12831s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12832s&@builddir@&$ac_builddir&;t t 12833s&@abs_builddir@&$ac_abs_builddir&;t t 12834s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12835s&@INSTALL@&$ac_INSTALL&;t t 12836s&@MKDIR_P@&$ac_MKDIR_P&;t t 12837$ac_datarootdir_hack 12838" 12839eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12840 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12841 12842test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12843 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12845 "$ac_tmp/out"`; test -z "$ac_out"; } && 12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12847which seems to be undefined. Please make sure it is defined" >&5 12848printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12849which seems to be undefined. Please make sure it is defined" >&2;} 12850 12851 rm -f "$ac_tmp/stdin" 12852 case $ac_file in 12853 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12854 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12855 esac \ 12856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12857 ;; 12858 :H) 12859 # 12860 # CONFIG_HEADER 12861 # 12862 if test x"$ac_file" != x-; then 12863 { 12864 printf "%s\n" "/* $configure_input */" >&1 \ 12865 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12866 } >"$ac_tmp/config.h" \ 12867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12868 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12870printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12871 else 12872 rm -f "$ac_file" 12873 mv "$ac_tmp/config.h" "$ac_file" \ 12874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12875 fi 12876 else 12877 printf "%s\n" "/* $configure_input */" >&1 \ 12878 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12879 || as_fn_error $? "could not create -" "$LINENO" 5 12880 fi 12881# Compute "$ac_file"'s index in $config_headers. 12882_am_arg="$ac_file" 12883_am_stamp_count=1 12884for _am_header in $config_headers :; do 12885 case $_am_header in 12886 $_am_arg | $_am_arg:* ) 12887 break ;; 12888 * ) 12889 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12890 esac 12891done 12892echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12893$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12894 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12895 X"$_am_arg" : 'X\(//\)$' \| \ 12896 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12897printf "%s\n" X"$_am_arg" | 12898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12899 s//\1/ 12900 q 12901 } 12902 /^X\(\/\/\)[^/].*/{ 12903 s//\1/ 12904 q 12905 } 12906 /^X\(\/\/\)$/{ 12907 s//\1/ 12908 q 12909 } 12910 /^X\(\/\).*/{ 12911 s//\1/ 12912 q 12913 } 12914 s/.*/./; q'`/stamp-h$_am_stamp_count 12915 ;; 12916 12917 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12918printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12919 ;; 12920 esac 12921 12922 12923 case $ac_file$ac_mode in 12924 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12925 # Older Autoconf quotes --file arguments for eval, but not when files 12926 # are listed without --file. Let's play safe and only enable the eval 12927 # if we detect the quoting. 12928 # TODO: see whether this extra hack can be removed once we start 12929 # requiring Autoconf 2.70 or later. 12930 case $CONFIG_FILES in #( 12931 *\'*) : 12932 eval set x "$CONFIG_FILES" ;; #( 12933 *) : 12934 set x $CONFIG_FILES ;; #( 12935 *) : 12936 ;; 12937esac 12938 shift 12939 # Used to flag and report bootstrapping failures. 12940 am_rc=0 12941 for am_mf 12942 do 12943 # Strip MF so we end up with the name of the file. 12944 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12945 # Check whether this is an Automake generated Makefile which includes 12946 # dependency-tracking related rules and includes. 12947 # Grep'ing the whole file directly is not great: AIX grep has a line 12948 # limit of 2048, but all sed's we know have understand at least 4000. 12949 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12950 || continue 12951 am_dirpart=`$as_dirname -- "$am_mf" || 12952$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12953 X"$am_mf" : 'X\(//\)[^/]' \| \ 12954 X"$am_mf" : 'X\(//\)$' \| \ 12955 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12956printf "%s\n" X"$am_mf" | 12957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12958 s//\1/ 12959 q 12960 } 12961 /^X\(\/\/\)[^/].*/{ 12962 s//\1/ 12963 q 12964 } 12965 /^X\(\/\/\)$/{ 12966 s//\1/ 12967 q 12968 } 12969 /^X\(\/\).*/{ 12970 s//\1/ 12971 q 12972 } 12973 s/.*/./; q'` 12974 am_filepart=`$as_basename -- "$am_mf" || 12975$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12976 X"$am_mf" : 'X\(//\)$' \| \ 12977 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12978printf "%s\n" X/"$am_mf" | 12979 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12980 s//\1/ 12981 q 12982 } 12983 /^X\/\(\/\/\)$/{ 12984 s//\1/ 12985 q 12986 } 12987 /^X\/\(\/\).*/{ 12988 s//\1/ 12989 q 12990 } 12991 s/.*/./; q'` 12992 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12993 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12994 | $MAKE -f - am--depfiles" >&5 12995 (cd "$am_dirpart" \ 12996 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12997 | $MAKE -f - am--depfiles) >&5 2>&5 12998 ac_status=$? 12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13000 (exit $ac_status); } || am_rc=$? 13001 done 13002 if test $am_rc -ne 0; then 13003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13004printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13005as_fn_error $? "Something went wrong bootstrapping makefile fragments 13006 for automatic dependency tracking. If GNU make was not used, consider 13007 re-running the configure script with MAKE=\"gmake\" (or whatever is 13008 necessary). You can also try re-running configure with the 13009 '--disable-dependency-tracking' option to at least be able to build 13010 the package (albeit without support for automatic dependency tracking). 13011See 'config.log' for more details" "$LINENO" 5; } 13012 fi 13013 { am_dirpart=; unset am_dirpart;} 13014 { am_filepart=; unset am_filepart;} 13015 { am_mf=; unset am_mf;} 13016 { am_rc=; unset am_rc;} 13017 rm -f conftest-deps.mk 13018} 13019 ;; 13020 13021 esac 13022done # for ac_tag 13023 13024 13025as_fn_exit 0 13026_ACEOF 13027ac_clean_files=$ac_clean_files_save 13028 13029test $ac_write_fail = 0 || 13030 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13031 13032 13033# configure is writing to config.log, and then calls config.status. 13034# config.status does its own redirection, appending to config.log. 13035# Unfortunately, on DOS this fails, as config.log is still kept open 13036# by configure, so config.status won't be able to write to it; its 13037# output is simply discarded. So we exec the FD to /dev/null, 13038# effectively closing config.log, so it can be properly (re)opened and 13039# appended to by config.status. When coming back to configure, we 13040# need to make the FD available again. 13041if test "$no_create" != yes; then 13042 ac_cs_success=: 13043 ac_config_status_args= 13044 test "$silent" = yes && 13045 ac_config_status_args="$ac_config_status_args --quiet" 13046 exec 5>/dev/null 13047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13048 exec 5>>config.log 13049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13050 # would make configure fail if this is the last instruction. 13051 $ac_cs_success || as_fn_exit 1 13052fi 13053if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13055printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13056fi 13057 13058 13059