configure revision afb14e9b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for rgb 1.1.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/rgb/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 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="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 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 \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/app/rgb/-/issues 272$0: about your system, including any error possibly output 273$0: before this message. Then install a modern shell, or 274$0: manually run the script under such a shell if you do 275$0: have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592test -n "$DJDIR" || exec 7<&0 </dev/null 593exec 6>&1 594 595# Name of the host. 596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597# so uname gets run too. 598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600# 601# Initializations. 602# 603ac_default_prefix=/usr/local 604ac_clean_files= 605ac_config_libobj_dir=. 606LIBOBJS= 607cross_compiling=no 608subdirs= 609MFLAGS= 610MAKEFLAGS= 611 612# Identity of this package. 613PACKAGE_NAME='rgb' 614PACKAGE_TARNAME='rgb' 615PACKAGE_VERSION='1.1.0' 616PACKAGE_STRING='rgb 1.1.0' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/rgb/-/issues' 618PACKAGE_URL='' 619 620ac_unique_file="Makefile.am" 621# Factoring default headers for most tests. 622ac_includes_default="\ 623#include <stddef.h> 624#ifdef HAVE_STDIO_H 625# include <stdio.h> 626#endif 627#ifdef HAVE_STDLIB_H 628# include <stdlib.h> 629#endif 630#ifdef HAVE_STRING_H 631# include <string.h> 632#endif 633#ifdef HAVE_INTTYPES_H 634# include <inttypes.h> 635#endif 636#ifdef HAVE_STDINT_H 637# include <stdint.h> 638#endif 639#ifdef HAVE_STRINGS_H 640# include <strings.h> 641#endif 642#ifdef HAVE_SYS_TYPES_H 643# include <sys/types.h> 644#endif 645#ifdef HAVE_SYS_STAT_H 646# include <sys/stat.h> 647#endif 648#ifdef HAVE_UNISTD_H 649# include <unistd.h> 650#endif" 651 652ac_header_c_list= 653ac_subst_vars='am__EXEEXT_FALSE 654am__EXEEXT_TRUE 655LTLIBOBJS 656LIBOBJS 657RGB_DB_FALSE 658RGB_DB_TRUE 659RGB_DB_FILES 660RGB_DB_TYPE 661XORG_LIBS 662XORG_CFLAGS 663db_dir 664db_file 665RGB_LIBS 666RGB_CFLAGS 667MAN_SUBSTS 668XORG_MAN_PAGE 669ADMIN_MAN_DIR 670DRIVER_MAN_DIR 671MISC_MAN_DIR 672FILE_MAN_DIR 673LIB_MAN_DIR 674APP_MAN_DIR 675ADMIN_MAN_SUFFIX 676DRIVER_MAN_SUFFIX 677MISC_MAN_SUFFIX 678FILE_MAN_SUFFIX 679LIB_MAN_SUFFIX 680APP_MAN_SUFFIX 681SED 682host_os 683host_vendor 684host_cpu 685host 686build_os 687build_vendor 688build_cpu 689build 690INSTALL_CMD 691PKG_CONFIG_LIBDIR 692PKG_CONFIG_PATH 693PKG_CONFIG 694CHANGELOG_CMD 695STRICT_CFLAGS 696CWARNFLAGS 697BASE_CFLAGS 698AM_BACKSLASH 699AM_DEFAULT_VERBOSITY 700AM_DEFAULT_V 701AM_V 702CSCOPE 703ETAGS 704CTAGS 705am__fastdepCC_FALSE 706am__fastdepCC_TRUE 707CCDEPMODE 708am__nodep 709AMDEPBACKSLASH 710AMDEP_FALSE 711AMDEP_TRUE 712am__include 713DEPDIR 714am__untar 715am__tar 716AMTAR 717am__leading_dot 718SET_MAKE 719AWK 720mkdir_p 721MKDIR_P 722INSTALL_STRIP_PROGRAM 723STRIP 724install_sh 725MAKEINFO 726AUTOHEADER 727AUTOMAKE 728AUTOCONF 729ACLOCAL 730VERSION 731PACKAGE 732CYGPATH_W 733am__isrc 734INSTALL_DATA 735INSTALL_SCRIPT 736INSTALL_PROGRAM 737OBJEXT 738EXEEXT 739ac_ct_CC 740CPPFLAGS 741LDFLAGS 742CFLAGS 743CC 744target_alias 745host_alias 746build_alias 747LIBS 748ECHO_T 749ECHO_N 750ECHO_C 751DEFS 752mandir 753localedir 754libdir 755psdir 756pdfdir 757dvidir 758htmldir 759infodir 760docdir 761oldincludedir 762includedir 763runstatedir 764localstatedir 765sharedstatedir 766sysconfdir 767datadir 768datarootdir 769libexecdir 770sbindir 771bindir 772program_transform_name 773prefix 774exec_prefix 775PACKAGE_URL 776PACKAGE_BUGREPORT 777PACKAGE_STRING 778PACKAGE_VERSION 779PACKAGE_TARNAME 780PACKAGE_NAME 781PATH_SEPARATOR 782SHELL 783am__quote' 784ac_subst_files='' 785ac_user_opts=' 786enable_option_checking 787enable_dependency_tracking 788enable_silent_rules 789enable_selective_werror 790enable_strict_compilation 791with_rgb_db_dir 792with_rgb_db_type 793with_rgb_db_library 794' 795 ac_precious_vars='build_alias 796host_alias 797target_alias 798CC 799CFLAGS 800LDFLAGS 801LIBS 802CPPFLAGS 803PKG_CONFIG 804PKG_CONFIG_PATH 805PKG_CONFIG_LIBDIR 806RGB_CFLAGS 807RGB_LIBS 808XORG_CFLAGS 809XORG_LIBS' 810 811 812# Initialize some variables set by options. 813ac_init_help= 814ac_init_version=false 815ac_unrecognized_opts= 816ac_unrecognized_sep= 817# The variables have the same names as the options, with 818# dashes changed to underlines. 819cache_file=/dev/null 820exec_prefix=NONE 821no_create= 822no_recursion= 823prefix=NONE 824program_prefix=NONE 825program_suffix=NONE 826program_transform_name=s,x,x, 827silent= 828site= 829srcdir= 830verbose= 831x_includes=NONE 832x_libraries=NONE 833 834# Installation directory options. 835# These are left unexpanded so users can "make install exec_prefix=/foo" 836# and all the variables that are supposed to be based on exec_prefix 837# by default will actually change. 838# Use braces instead of parens because sh, perl, etc. also accept them. 839# (The list follows the same order as the GNU Coding Standards.) 840bindir='${exec_prefix}/bin' 841sbindir='${exec_prefix}/sbin' 842libexecdir='${exec_prefix}/libexec' 843datarootdir='${prefix}/share' 844datadir='${datarootdir}' 845sysconfdir='${prefix}/etc' 846sharedstatedir='${prefix}/com' 847localstatedir='${prefix}/var' 848runstatedir='${localstatedir}/run' 849includedir='${prefix}/include' 850oldincludedir='/usr/include' 851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 852infodir='${datarootdir}/info' 853htmldir='${docdir}' 854dvidir='${docdir}' 855pdfdir='${docdir}' 856psdir='${docdir}' 857libdir='${exec_prefix}/lib' 858localedir='${datarootdir}/locale' 859mandir='${datarootdir}/man' 860 861ac_prev= 862ac_dashdash= 863for ac_option 864do 865 # If the previous option needs an argument, assign it. 866 if test -n "$ac_prev"; then 867 eval $ac_prev=\$ac_option 868 ac_prev= 869 continue 870 fi 871 872 case $ac_option in 873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 874 *=) ac_optarg= ;; 875 *) ac_optarg=yes ;; 876 esac 877 878 case $ac_dashdash$ac_option in 879 --) 880 ac_dashdash=yes ;; 881 882 -bindir | --bindir | --bindi | --bind | --bin | --bi) 883 ac_prev=bindir ;; 884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 885 bindir=$ac_optarg ;; 886 887 -build | --build | --buil | --bui | --bu) 888 ac_prev=build_alias ;; 889 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 890 build_alias=$ac_optarg ;; 891 892 -cache-file | --cache-file | --cache-fil | --cache-fi \ 893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 894 ac_prev=cache_file ;; 895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 897 cache_file=$ac_optarg ;; 898 899 --config-cache | -C) 900 cache_file=config.cache ;; 901 902 -datadir | --datadir | --datadi | --datad) 903 ac_prev=datadir ;; 904 -datadir=* | --datadir=* | --datadi=* | --datad=*) 905 datadir=$ac_optarg ;; 906 907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 908 | --dataroo | --dataro | --datar) 909 ac_prev=datarootdir ;; 910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 912 datarootdir=$ac_optarg ;; 913 914 -disable-* | --disable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 as_fn_error $? "invalid feature name: \`$ac_useropt'" 919 ac_useropt_orig=$ac_useropt 920 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 921 case $ac_user_opts in 922 *" 923"enable_$ac_useropt" 924"*) ;; 925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 926 ac_unrecognized_sep=', ';; 927 esac 928 eval enable_$ac_useropt=no ;; 929 930 -docdir | --docdir | --docdi | --doc | --do) 931 ac_prev=docdir ;; 932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 933 docdir=$ac_optarg ;; 934 935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 936 ac_prev=dvidir ;; 937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 938 dvidir=$ac_optarg ;; 939 940 -enable-* | --enable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: \`$ac_useropt'" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949"enable_$ac_useropt" 950"*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=\$ac_optarg ;; 955 956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 958 | --exec | --exe | --ex) 959 ac_prev=exec_prefix ;; 960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 962 | --exec=* | --exe=* | --ex=*) 963 exec_prefix=$ac_optarg ;; 964 965 -gas | --gas | --ga | --g) 966 # Obsolete; use --with-gas. 967 with_gas=yes ;; 968 969 -help | --help | --hel | --he | -h) 970 ac_init_help=long ;; 971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 972 ac_init_help=recursive ;; 973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 974 ac_init_help=short ;; 975 976 -host | --host | --hos | --ho) 977 ac_prev=host_alias ;; 978 -host=* | --host=* | --hos=* | --ho=*) 979 host_alias=$ac_optarg ;; 980 981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 982 ac_prev=htmldir ;; 983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 984 | --ht=*) 985 htmldir=$ac_optarg ;; 986 987 -includedir | --includedir | --includedi | --included | --include \ 988 | --includ | --inclu | --incl | --inc) 989 ac_prev=includedir ;; 990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 991 | --includ=* | --inclu=* | --incl=* | --inc=*) 992 includedir=$ac_optarg ;; 993 994 -infodir | --infodir | --infodi | --infod | --info | --inf) 995 ac_prev=infodir ;; 996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 997 infodir=$ac_optarg ;; 998 999 -libdir | --libdir | --libdi | --libd) 1000 ac_prev=libdir ;; 1001 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1002 libdir=$ac_optarg ;; 1003 1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1005 | --libexe | --libex | --libe) 1006 ac_prev=libexecdir ;; 1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1008 | --libexe=* | --libex=* | --libe=*) 1009 libexecdir=$ac_optarg ;; 1010 1011 -localedir | --localedir | --localedi | --localed | --locale) 1012 ac_prev=localedir ;; 1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1014 localedir=$ac_optarg ;; 1015 1016 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1017 | --localstate | --localstat | --localsta | --localst | --locals) 1018 ac_prev=localstatedir ;; 1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1021 localstatedir=$ac_optarg ;; 1022 1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1024 ac_prev=mandir ;; 1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1026 mandir=$ac_optarg ;; 1027 1028 -nfp | --nfp | --nf) 1029 # Obsolete; use --without-fp. 1030 with_fp=no ;; 1031 1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1033 | --no-cr | --no-c | -n) 1034 no_create=yes ;; 1035 1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1038 no_recursion=yes ;; 1039 1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1042 | --oldin | --oldi | --old | --ol | --o) 1043 ac_prev=oldincludedir ;; 1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1047 oldincludedir=$ac_optarg ;; 1048 1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1050 ac_prev=prefix ;; 1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1052 prefix=$ac_optarg ;; 1053 1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1055 | --program-pre | --program-pr | --program-p) 1056 ac_prev=program_prefix ;; 1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1059 program_prefix=$ac_optarg ;; 1060 1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1062 | --program-suf | --program-su | --program-s) 1063 ac_prev=program_suffix ;; 1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1066 program_suffix=$ac_optarg ;; 1067 1068 -program-transform-name | --program-transform-name \ 1069 | --program-transform-nam | --program-transform-na \ 1070 | --program-transform-n | --program-transform- \ 1071 | --program-transform | --program-transfor \ 1072 | --program-transfo | --program-transf \ 1073 | --program-trans | --program-tran \ 1074 | --progr-tra | --program-tr | --program-t) 1075 ac_prev=program_transform_name ;; 1076 -program-transform-name=* | --program-transform-name=* \ 1077 | --program-transform-nam=* | --program-transform-na=* \ 1078 | --program-transform-n=* | --program-transform-=* \ 1079 | --program-transform=* | --program-transfor=* \ 1080 | --program-transfo=* | --program-transf=* \ 1081 | --program-trans=* | --program-tran=* \ 1082 | --progr-tra=* | --program-tr=* | --program-t=*) 1083 program_transform_name=$ac_optarg ;; 1084 1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1086 ac_prev=pdfdir ;; 1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1088 pdfdir=$ac_optarg ;; 1089 1090 -psdir | --psdir | --psdi | --psd | --ps) 1091 ac_prev=psdir ;; 1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1093 psdir=$ac_optarg ;; 1094 1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1096 | -silent | --silent | --silen | --sile | --sil) 1097 silent=yes ;; 1098 1099 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1100 | --runstate | --runstat | --runsta | --runst | --runs \ 1101 | --run | --ru | --r) 1102 ac_prev=runstatedir ;; 1103 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1104 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1105 | --run=* | --ru=* | --r=*) 1106 runstatedir=$ac_optarg ;; 1107 1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1109 ac_prev=sbindir ;; 1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1111 | --sbi=* | --sb=*) 1112 sbindir=$ac_optarg ;; 1113 1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1116 | --sharedst | --shareds | --shared | --share | --shar \ 1117 | --sha | --sh) 1118 ac_prev=sharedstatedir ;; 1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1122 | --sha=* | --sh=*) 1123 sharedstatedir=$ac_optarg ;; 1124 1125 -site | --site | --sit) 1126 ac_prev=site ;; 1127 -site=* | --site=* | --sit=*) 1128 site=$ac_optarg ;; 1129 1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1131 ac_prev=srcdir ;; 1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1133 srcdir=$ac_optarg ;; 1134 1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1136 | --syscon | --sysco | --sysc | --sys | --sy) 1137 ac_prev=sysconfdir ;; 1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1140 sysconfdir=$ac_optarg ;; 1141 1142 -target | --target | --targe | --targ | --tar | --ta | --t) 1143 ac_prev=target_alias ;; 1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1145 target_alias=$ac_optarg ;; 1146 1147 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1148 verbose=yes ;; 1149 1150 -version | --version | --versio | --versi | --vers | -V) 1151 ac_init_version=: ;; 1152 1153 -with-* | --with-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: \`$ac_useropt'" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=\$ac_optarg ;; 1168 1169 -without-* | --without-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: \`$ac_useropt'" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=no ;; 1184 1185 --x) 1186 # Obsolete; use --with-x. 1187 with_x=yes ;; 1188 1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1190 | --x-incl | --x-inc | --x-in | --x-i) 1191 ac_prev=x_includes ;; 1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1194 x_includes=$ac_optarg ;; 1195 1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1198 ac_prev=x_libraries ;; 1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1201 x_libraries=$ac_optarg ;; 1202 1203 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1204Try \`$0 --help' for more information" 1205 ;; 1206 1207 *=*) 1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1209 # Reject names that are not valid shell variable names. 1210 case $ac_envvar in #( 1211 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1213 esac 1214 eval $ac_envvar=\$ac_optarg 1215 export $ac_envvar ;; 1216 1217 *) 1218 # FIXME: should be removed in autoconf 3.0. 1219 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1223 ;; 1224 1225 esac 1226done 1227 1228if test -n "$ac_prev"; then 1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1230 as_fn_error $? "missing argument to $ac_option" 1231fi 1232 1233if test -n "$ac_unrecognized_opts"; then 1234 case $enable_option_checking in 1235 no) ;; 1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1237 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1238 esac 1239fi 1240 1241# Check all directory arguments for consistency. 1242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1243 datadir sysconfdir sharedstatedir localstatedir includedir \ 1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1245 libdir localedir mandir runstatedir 1246do 1247 eval ac_val=\$$ac_var 1248 # Remove trailing slashes. 1249 case $ac_val in 1250 */ ) 1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1252 eval $ac_var=\$ac_val;; 1253 esac 1254 # Be sure to have absolute directory names. 1255 case $ac_val in 1256 [\\/$]* | ?:[\\/]* ) continue;; 1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1258 esac 1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1260done 1261 1262# There might be people who depend on the old broken behavior: `$host' 1263# used to hold the argument of --host etc. 1264# FIXME: To remove some day. 1265build=$build_alias 1266host=$host_alias 1267target=$target_alias 1268 1269# FIXME: To remove some day. 1270if test "x$host_alias" != x; then 1271 if test "x$build_alias" = x; then 1272 cross_compiling=maybe 1273 elif test "x$build_alias" != "x$host_alias"; then 1274 cross_compiling=yes 1275 fi 1276fi 1277 1278ac_tool_prefix= 1279test -n "$host_alias" && ac_tool_prefix=$host_alias- 1280 1281test "$silent" = yes && exec 6>/dev/null 1282 1283 1284ac_pwd=`pwd` && test -n "$ac_pwd" && 1285ac_ls_di=`ls -di .` && 1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1287 as_fn_error $? "working directory cannot be determined" 1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1289 as_fn_error $? "pwd does not report name of working directory" 1290 1291 1292# Find the source files, if location was not specified. 1293if test -z "$srcdir"; then 1294 ac_srcdir_defaulted=yes 1295 # Try the directory containing this script, then the parent directory. 1296 ac_confdir=`$as_dirname -- "$as_myself" || 1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1298 X"$as_myself" : 'X\(//\)[^/]' \| \ 1299 X"$as_myself" : 'X\(//\)$' \| \ 1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301printf "%s\n" X"$as_myself" | 1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)[^/].*/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\/\)$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\).*/{ 1315 s//\1/ 1316 q 1317 } 1318 s/.*/./; q'` 1319 srcdir=$ac_confdir 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 srcdir=.. 1322 fi 1323else 1324 ac_srcdir_defaulted=no 1325fi 1326if test ! -r "$srcdir/$ac_unique_file"; then 1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1329fi 1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1331ac_abs_confdir=`( 1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1333 pwd)` 1334# When building in place, set srcdir=. 1335if test "$ac_abs_confdir" = "$ac_pwd"; then 1336 srcdir=. 1337fi 1338# Remove unnecessary trailing slashes from srcdir. 1339# Double slashes in file names in object file debugging info 1340# mess up M-x gdb in Emacs. 1341case $srcdir in 1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1343esac 1344for ac_var in $ac_precious_vars; do 1345 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_env_${ac_var}_value=\$${ac_var} 1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1349done 1350 1351# 1352# Report the --help message. 1353# 1354if test "$ac_init_help" = "long"; then 1355 # Omit some internal or obsolete options to make the list less imposing. 1356 # This message is too long to be a string in the A/UX 3.1 sh. 1357 cat <<_ACEOF 1358\`configure' configures rgb 1.1.0 to adapt to many kinds of systems. 1359 1360Usage: $0 [OPTION]... [VAR=VALUE]... 1361 1362To assign environment variables (e.g., CC, CFLAGS...), specify them as 1363VAR=VALUE. See below for descriptions of some of the useful variables. 1364 1365Defaults for the options are specified in brackets. 1366 1367Configuration: 1368 -h, --help display this help and exit 1369 --help=short display options specific to this package 1370 --help=recursive display the short help of all the included packages 1371 -V, --version display version information and exit 1372 -q, --quiet, --silent do not print \`checking ...' messages 1373 --cache-file=FILE cache test results in FILE [disabled] 1374 -C, --config-cache alias for \`--cache-file=config.cache' 1375 -n, --no-create do not create output files 1376 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1377 1378Installation directories: 1379 --prefix=PREFIX install architecture-independent files in PREFIX 1380 [$ac_default_prefix] 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1382 [PREFIX] 1383 1384By default, \`make install' will install all the files in 1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1386an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1387for instance \`--prefix=\$HOME'. 1388 1389For better control, use the options below. 1390 1391Fine tuning of the installation directories: 1392 --bindir=DIR user executables [EPREFIX/bin] 1393 --sbindir=DIR system admin executables [EPREFIX/sbin] 1394 --libexecdir=DIR program executables [EPREFIX/libexec] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1399 --libdir=DIR object code libraries [EPREFIX/lib] 1400 --includedir=DIR C header files [PREFIX/include] 1401 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1404 --infodir=DIR info documentation [DATAROOTDIR/info] 1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1406 --mandir=DIR man documentation [DATAROOTDIR/man] 1407 --docdir=DIR documentation root [DATAROOTDIR/doc/rgb] 1408 --htmldir=DIR html documentation [DOCDIR] 1409 --dvidir=DIR dvi documentation [DOCDIR] 1410 --pdfdir=DIR pdf documentation [DOCDIR] 1411 --psdir=DIR ps documentation [DOCDIR] 1412_ACEOF 1413 1414 cat <<\_ACEOF 1415 1416Program names: 1417 --program-prefix=PREFIX prepend PREFIX to installed program names 1418 --program-suffix=SUFFIX append SUFFIX to installed program names 1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1420 1421System types: 1422 --build=BUILD configure for building on BUILD [guessed] 1423 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1424_ACEOF 1425fi 1426 1427if test -n "$ac_init_help"; then 1428 case $ac_init_help in 1429 short | recursive ) echo "Configuration of rgb 1.1.0:";; 1430 esac 1431 cat <<\_ACEOF 1432 1433Optional Features: 1434 --disable-option-checking ignore unrecognized --enable/--with options 1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1437 --enable-dependency-tracking 1438 do not reject slow dependency extractors 1439 --disable-dependency-tracking 1440 speeds up one-time build 1441 --enable-silent-rules less verbose build output (undo: "make V=1") 1442 --disable-silent-rules verbose build output (undo: "make V=0") 1443 --disable-selective-werror 1444 Turn off selective compiler errors. (default: 1445 enabled) 1446 --enable-strict-compilation 1447 Enable all warnings from compiler and make them 1448 errors (default: disabled) 1449 1450Optional Packages: 1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1453 --with-rgb-db-dir=<path> 1454 rgb database location (default is 1455 ${datadir}/X11/rgb) 1456 --with-rgb-db-type=(text|dbm|ndbm) 1457 rgb database type (default is text) 1458 --with-rgb-db-library=<library-name> 1459 rgb database library (default is to search for one) 1460 1461Some influential environment variables: 1462 CC C compiler command 1463 CFLAGS C compiler flags 1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1465 nonstandard directory <lib dir> 1466 LIBS libraries to pass to the linker, e.g. -l<library> 1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1468 you have headers in a nonstandard directory <include dir> 1469 PKG_CONFIG path to pkg-config utility 1470 PKG_CONFIG_PATH 1471 directories to add to pkg-config's search path 1472 PKG_CONFIG_LIBDIR 1473 path overriding pkg-config's built-in search path 1474 RGB_CFLAGS C compiler flags for RGB, overriding pkg-config 1475 RGB_LIBS linker flags for RGB, overriding pkg-config 1476 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1477 XORG_LIBS linker flags for XORG, overriding pkg-config 1478 1479Use these variables to override the choices made by `configure' or to help 1480it to find libraries and programs with nonstandard names/locations. 1481 1482Report bugs to <https://gitlab.freedesktop.org/xorg/app/rgb/-/issues>. 1483_ACEOF 1484ac_status=$? 1485fi 1486 1487if test "$ac_init_help" = "recursive"; then 1488 # If there are subdirs, report their specific --help. 1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1490 test -d "$ac_dir" || 1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1492 continue 1493 ac_builddir=. 1494 1495case "$ac_dir" in 1496.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1497*) 1498 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1499 # A ".." for each directory in $ac_dir_suffix. 1500 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1501 case $ac_top_builddir_sub in 1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1504 esac ;; 1505esac 1506ac_abs_top_builddir=$ac_pwd 1507ac_abs_builddir=$ac_pwd$ac_dir_suffix 1508# for backward compatibility: 1509ac_top_builddir=$ac_top_build_prefix 1510 1511case $srcdir in 1512 .) # We are building in place. 1513 ac_srcdir=. 1514 ac_top_srcdir=$ac_top_builddir_sub 1515 ac_abs_top_srcdir=$ac_pwd ;; 1516 [\\/]* | ?:[\\/]* ) # Absolute name. 1517 ac_srcdir=$srcdir$ac_dir_suffix; 1518 ac_top_srcdir=$srcdir 1519 ac_abs_top_srcdir=$srcdir ;; 1520 *) # Relative name. 1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1522 ac_top_srcdir=$ac_top_build_prefix$srcdir 1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1524esac 1525ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1526 1527 cd "$ac_dir" || { ac_status=$?; continue; } 1528 # Check for configure.gnu first; this name is used for a wrapper for 1529 # Metaconfig's "Configure" on case-insensitive file systems. 1530 if test -f "$ac_srcdir/configure.gnu"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1533 elif test -f "$ac_srcdir/configure"; then 1534 echo && 1535 $SHELL "$ac_srcdir/configure" --help=recursive 1536 else 1537 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1538 fi || ac_status=$? 1539 cd "$ac_pwd" || { ac_status=$?; break; } 1540 done 1541fi 1542 1543test -n "$ac_init_help" && exit $ac_status 1544if $ac_init_version; then 1545 cat <<\_ACEOF 1546rgb configure 1.1.0 1547generated by GNU Autoconf 2.71 1548 1549Copyright (C) 2021 Free Software Foundation, Inc. 1550This configure script is free software; the Free Software Foundation 1551gives unlimited permission to copy, distribute and modify it. 1552_ACEOF 1553 exit 1554fi 1555 1556## ------------------------ ## 1557## Autoconf initialization. ## 1558## ------------------------ ## 1559 1560# ac_fn_c_try_compile LINENO 1561# -------------------------- 1562# Try to compile conftest.$ac_ext, and return whether this succeeded. 1563ac_fn_c_try_compile () 1564{ 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 rm -f conftest.$ac_objext conftest.beam 1567 if { { ac_try="$ac_compile" 1568case "(($ac_try" in 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *) ac_try_echo=$ac_try;; 1571esac 1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573printf "%s\n" "$ac_try_echo"; } >&5 1574 (eval "$ac_compile") 2>conftest.err 1575 ac_status=$? 1576 if test -s conftest.err; then 1577 grep -v '^ *+' conftest.err >conftest.er1 1578 cat conftest.er1 >&5 1579 mv -f conftest.er1 conftest.err 1580 fi 1581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } && { 1583 test -z "$ac_c_werror_flag" || 1584 test ! -s conftest.err 1585 } && test -s conftest.$ac_objext 1586then : 1587 ac_retval=0 1588else $as_nop 1589 printf "%s\n" "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1600# ------------------------------------------------------- 1601# Tests whether HEADER exists and can be compiled using the include files in 1602# INCLUDES, setting the cache variable VAR accordingly. 1603ac_fn_c_check_header_compile () 1604{ 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1607printf %s "checking for $2... " >&6; } 1608if eval test \${$3+y} 1609then : 1610 printf %s "(cached) " >&6 1611else $as_nop 1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1613/* end confdefs.h. */ 1614$4 1615#include <$2> 1616_ACEOF 1617if ac_fn_c_try_compile "$LINENO" 1618then : 1619 eval "$3=yes" 1620else $as_nop 1621 eval "$3=no" 1622fi 1623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1624fi 1625eval ac_res=\$$3 1626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627printf "%s\n" "$ac_res" >&6; } 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 1630} # ac_fn_c_check_header_compile 1631 1632# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1633# ------------------------------------------------------------------ 1634# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1635# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1636ac_fn_check_decl () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 as_decl_name=`echo $2|sed 's/ *(.*//'` 1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1641printf %s "checking whether $as_decl_name is declared... " >&6; } 1642if eval test \${$3+y} 1643then : 1644 printf %s "(cached) " >&6 1645else $as_nop 1646 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1647 eval ac_save_FLAGS=\$$6 1648 as_fn_append $6 " $5" 1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650/* end confdefs.h. */ 1651$4 1652int 1653main (void) 1654{ 1655#ifndef $as_decl_name 1656#ifdef __cplusplus 1657 (void) $as_decl_use; 1658#else 1659 (void) $as_decl_name; 1660#endif 1661#endif 1662 1663 ; 1664 return 0; 1665} 1666_ACEOF 1667if ac_fn_c_try_compile "$LINENO" 1668then : 1669 eval "$3=yes" 1670else $as_nop 1671 eval "$3=no" 1672fi 1673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1674 eval $6=\$ac_save_FLAGS 1675 1676fi 1677eval ac_res=\$$3 1678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1679printf "%s\n" "$ac_res" >&6; } 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 1682} # ac_fn_check_decl 1683 1684# ac_fn_c_try_link LINENO 1685# ----------------------- 1686# Try to link conftest.$ac_ext, and return whether this succeeded. 1687ac_fn_c_try_link () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1691 if { { ac_try="$ac_link" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697printf "%s\n" "$ac_try_echo"; } >&5 1698 (eval "$ac_link") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } && { 1707 test -z "$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 } && test -s conftest$ac_exeext && { 1710 test "$cross_compiling" = yes || 1711 test -x conftest$ac_exeext 1712 } 1713then : 1714 ac_retval=0 1715else $as_nop 1716 printf "%s\n" "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=1 1720fi 1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1723 # interfere with the next link command; also delete a directory that is 1724 # left behind by Apple's compiler. We do this before executing the actions. 1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 as_fn_set_status $ac_retval 1728 1729} # ac_fn_c_try_link 1730 1731# ac_fn_c_check_func LINENO FUNC VAR 1732# ---------------------------------- 1733# Tests whether FUNC exists, setting the cache variable VAR accordingly 1734ac_fn_c_check_func () 1735{ 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1738printf %s "checking for $2... " >&6; } 1739if eval test \${$3+y} 1740then : 1741 printf %s "(cached) " >&6 1742else $as_nop 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1747#define $2 innocuous_$2 1748 1749/* System header to define __stub macros and hopefully few prototypes, 1750 which can conflict with char $2 (); below. */ 1751 1752#include <limits.h> 1753#undef $2 1754 1755/* Override any GCC internal prototype to avoid an error. 1756 Use char because int might match the return type of a GCC 1757 builtin and then its argument prototype would still apply. */ 1758#ifdef __cplusplus 1759extern "C" 1760#endif 1761char $2 (); 1762/* The GNU C library defines this for functions which it implements 1763 to always fail with ENOSYS. Some functions are actually named 1764 something starting with __ and the normal name is an alias. */ 1765#if defined __stub_$2 || defined __stub___$2 1766choke me 1767#endif 1768 1769int 1770main (void) 1771{ 1772return $2 (); 1773 ; 1774 return 0; 1775} 1776_ACEOF 1777if ac_fn_c_try_link "$LINENO" 1778then : 1779 eval "$3=yes" 1780else $as_nop 1781 eval "$3=no" 1782fi 1783rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1784 conftest$ac_exeext conftest.$ac_ext 1785fi 1786eval ac_res=\$$3 1787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788printf "%s\n" "$ac_res" >&6; } 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 1791} # ac_fn_c_check_func 1792ac_configure_args_raw= 1793for ac_arg 1794do 1795 case $ac_arg in 1796 *\'*) 1797 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1798 esac 1799 as_fn_append ac_configure_args_raw " '$ac_arg'" 1800done 1801 1802case $ac_configure_args_raw in 1803 *$as_nl*) 1804 ac_safe_unquote= ;; 1805 *) 1806 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1807 ac_unsafe_a="$ac_unsafe_z#~" 1808 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1809 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1810esac 1811 1812cat >config.log <<_ACEOF 1813This file contains any messages produced by compilers while 1814running configure, to aid debugging if configure makes a mistake. 1815 1816It was created by rgb $as_me 1.1.0, which was 1817generated by GNU Autoconf 2.71. Invocation command line was 1818 1819 $ $0$ac_configure_args_raw 1820 1821_ACEOF 1822exec 5>>config.log 1823{ 1824cat <<_ASUNAME 1825## --------- ## 1826## Platform. ## 1827## --------- ## 1828 1829hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1830uname -m = `(uname -m) 2>/dev/null || echo unknown` 1831uname -r = `(uname -r) 2>/dev/null || echo unknown` 1832uname -s = `(uname -s) 2>/dev/null || echo unknown` 1833uname -v = `(uname -v) 2>/dev/null || echo unknown` 1834 1835/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1836/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1837 1838/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1839/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1840/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1841/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1842/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1843/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1844/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1845 1846_ASUNAME 1847 1848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1849for as_dir in $PATH 1850do 1851 IFS=$as_save_IFS 1852 case $as_dir in #((( 1853 '') as_dir=./ ;; 1854 */) ;; 1855 *) as_dir=$as_dir/ ;; 1856 esac 1857 printf "%s\n" "PATH: $as_dir" 1858 done 1859IFS=$as_save_IFS 1860 1861} >&5 1862 1863cat >&5 <<_ACEOF 1864 1865 1866## ----------- ## 1867## Core tests. ## 1868## ----------- ## 1869 1870_ACEOF 1871 1872 1873# Keep a trace of the command line. 1874# Strip out --no-create and --no-recursion so they do not pile up. 1875# Strip out --silent because we don't want to record it for future runs. 1876# Also quote any args containing shell meta-characters. 1877# Make two passes to allow for proper duplicate-argument suppression. 1878ac_configure_args= 1879ac_configure_args0= 1880ac_configure_args1= 1881ac_must_keep_next=false 1882for ac_pass in 1 2 1883do 1884 for ac_arg 1885 do 1886 case $ac_arg in 1887 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1889 | -silent | --silent | --silen | --sile | --sil) 1890 continue ;; 1891 *\'*) 1892 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1893 esac 1894 case $ac_pass in 1895 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1896 2) 1897 as_fn_append ac_configure_args1 " '$ac_arg'" 1898 if test $ac_must_keep_next = true; then 1899 ac_must_keep_next=false # Got value, back to normal. 1900 else 1901 case $ac_arg in 1902 *=* | --config-cache | -C | -disable-* | --disable-* \ 1903 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1904 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1905 | -with-* | --with-* | -without-* | --without-* | --x) 1906 case "$ac_configure_args0 " in 1907 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1908 esac 1909 ;; 1910 -* ) ac_must_keep_next=true ;; 1911 esac 1912 fi 1913 as_fn_append ac_configure_args " '$ac_arg'" 1914 ;; 1915 esac 1916 done 1917done 1918{ ac_configure_args0=; unset ac_configure_args0;} 1919{ ac_configure_args1=; unset ac_configure_args1;} 1920 1921# When interrupted or exit'd, cleanup temporary files, and complete 1922# config.log. We remove comments because anyway the quotes in there 1923# would cause problems or look ugly. 1924# WARNING: Use '\'' to represent an apostrophe within the trap. 1925# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1926trap 'exit_status=$? 1927 # Sanitize IFS. 1928 IFS=" "" $as_nl" 1929 # Save into config.log some information that might help in debugging. 1930 { 1931 echo 1932 1933 printf "%s\n" "## ---------------- ## 1934## Cache variables. ## 1935## ---------------- ##" 1936 echo 1937 # The following way of writing the cache mishandles newlines in values, 1938( 1939 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1940 eval ac_val=\$$ac_var 1941 case $ac_val in #( 1942 *${as_nl}*) 1943 case $ac_var in #( 1944 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1945printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1946 esac 1947 case $ac_var in #( 1948 _ | IFS | as_nl) ;; #( 1949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1950 *) { eval $ac_var=; unset $ac_var;} ;; 1951 esac ;; 1952 esac 1953 done 1954 (set) 2>&1 | 1955 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1956 *${as_nl}ac_space=\ *) 1957 sed -n \ 1958 "s/'\''/'\''\\\\'\'''\''/g; 1959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1960 ;; #( 1961 *) 1962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1963 ;; 1964 esac | 1965 sort 1966) 1967 echo 1968 1969 printf "%s\n" "## ----------------- ## 1970## Output variables. ## 1971## ----------------- ##" 1972 echo 1973 for ac_var in $ac_subst_vars 1974 do 1975 eval ac_val=\$$ac_var 1976 case $ac_val in 1977 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1978 esac 1979 printf "%s\n" "$ac_var='\''$ac_val'\''" 1980 done | sort 1981 echo 1982 1983 if test -n "$ac_subst_files"; then 1984 printf "%s\n" "## ------------------- ## 1985## File substitutions. ## 1986## ------------------- ##" 1987 echo 1988 for ac_var in $ac_subst_files 1989 do 1990 eval ac_val=\$$ac_var 1991 case $ac_val in 1992 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1993 esac 1994 printf "%s\n" "$ac_var='\''$ac_val'\''" 1995 done | sort 1996 echo 1997 fi 1998 1999 if test -s confdefs.h; then 2000 printf "%s\n" "## ----------- ## 2001## confdefs.h. ## 2002## ----------- ##" 2003 echo 2004 cat confdefs.h 2005 echo 2006 fi 2007 test "$ac_signal" != 0 && 2008 printf "%s\n" "$as_me: caught signal $ac_signal" 2009 printf "%s\n" "$as_me: exit $exit_status" 2010 } >&5 2011 rm -f core *.core core.conftest.* && 2012 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2013 exit $exit_status 2014' 0 2015for ac_signal in 1 2 13 15; do 2016 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2017done 2018ac_signal=0 2019 2020# confdefs.h avoids OS command line length limits that DEFS can exceed. 2021rm -f -r conftest* confdefs.h 2022 2023printf "%s\n" "/* confdefs.h */" > confdefs.h 2024 2025# Predefined preprocessor variables. 2026 2027printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2028 2029printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2030 2031printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2032 2033printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2034 2035printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2036 2037printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2038 2039 2040# Let the site file select an alternate cache file if it wants to. 2041# Prefer an explicitly selected file to automatically selected ones. 2042if test -n "$CONFIG_SITE"; then 2043 ac_site_files="$CONFIG_SITE" 2044elif test "x$prefix" != xNONE; then 2045 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2046else 2047 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2048fi 2049 2050for ac_site_file in $ac_site_files 2051do 2052 case $ac_site_file in #( 2053 */*) : 2054 ;; #( 2055 *) : 2056 ac_site_file=./$ac_site_file ;; 2057esac 2058 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2060printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2061 sed 's/^/| /' "$ac_site_file" >&5 2062 . "$ac_site_file" \ 2063 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2064printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2065as_fn_error $? "failed to load site script $ac_site_file 2066See \`config.log' for more details" "$LINENO" 5; } 2067 fi 2068done 2069 2070if test -r "$cache_file"; then 2071 # Some versions of bash will fail to source /dev/null (special files 2072 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2073 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2075printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2076 case $cache_file in 2077 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2078 *) . "./$cache_file";; 2079 esac 2080 fi 2081else 2082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2083printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2084 >$cache_file 2085fi 2086 2087as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2088# Test code for whether the C compiler supports C89 (global declarations) 2089ac_c_conftest_c89_globals=' 2090/* Does the compiler advertise C89 conformance? 2091 Do not test the value of __STDC__, because some compilers set it to 0 2092 while being otherwise adequately conformant. */ 2093#if !defined __STDC__ 2094# error "Compiler does not advertise C89 conformance" 2095#endif 2096 2097#include <stddef.h> 2098#include <stdarg.h> 2099struct stat; 2100/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2101struct buf { int x; }; 2102struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2103static char *e (p, i) 2104 char **p; 2105 int i; 2106{ 2107 return p[i]; 2108} 2109static char *f (char * (*g) (char **, int), char **p, ...) 2110{ 2111 char *s; 2112 va_list v; 2113 va_start (v,p); 2114 s = g (p, va_arg (v,int)); 2115 va_end (v); 2116 return s; 2117} 2118 2119/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2120 function prototypes and stuff, but not \xHH hex character constants. 2121 These do not provoke an error unfortunately, instead are silently treated 2122 as an "x". The following induces an error, until -std is added to get 2123 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2124 array size at least. It is necessary to write \x00 == 0 to get something 2125 that is true only with -std. */ 2126int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2127 2128/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2129 inside strings and character constants. */ 2130#define FOO(x) '\''x'\'' 2131int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2132 2133int test (int i, double x); 2134struct s1 {int (*f) (int a);}; 2135struct s2 {int (*f) (double a);}; 2136int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2137 int, int);' 2138 2139# Test code for whether the C compiler supports C89 (body of main). 2140ac_c_conftest_c89_main=' 2141ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2142' 2143 2144# Test code for whether the C compiler supports C99 (global declarations) 2145ac_c_conftest_c99_globals=' 2146// Does the compiler advertise C99 conformance? 2147#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2148# error "Compiler does not advertise C99 conformance" 2149#endif 2150 2151#include <stdbool.h> 2152extern int puts (const char *); 2153extern int printf (const char *, ...); 2154extern int dprintf (int, const char *, ...); 2155extern void *malloc (size_t); 2156 2157// Check varargs macros. These examples are taken from C99 6.10.3.5. 2158// dprintf is used instead of fprintf to avoid needing to declare 2159// FILE and stderr. 2160#define debug(...) dprintf (2, __VA_ARGS__) 2161#define showlist(...) puts (#__VA_ARGS__) 2162#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2163static void 2164test_varargs_macros (void) 2165{ 2166 int x = 1234; 2167 int y = 5678; 2168 debug ("Flag"); 2169 debug ("X = %d\n", x); 2170 showlist (The first, second, and third items.); 2171 report (x>y, "x is %d but y is %d", x, y); 2172} 2173 2174// Check long long types. 2175#define BIG64 18446744073709551615ull 2176#define BIG32 4294967295ul 2177#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2178#if !BIG_OK 2179 #error "your preprocessor is broken" 2180#endif 2181#if BIG_OK 2182#else 2183 #error "your preprocessor is broken" 2184#endif 2185static long long int bignum = -9223372036854775807LL; 2186static unsigned long long int ubignum = BIG64; 2187 2188struct incomplete_array 2189{ 2190 int datasize; 2191 double data[]; 2192}; 2193 2194struct named_init { 2195 int number; 2196 const wchar_t *name; 2197 double average; 2198}; 2199 2200typedef const char *ccp; 2201 2202static inline int 2203test_restrict (ccp restrict text) 2204{ 2205 // See if C++-style comments work. 2206 // Iterate through items via the restricted pointer. 2207 // Also check for declarations in for loops. 2208 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2209 continue; 2210 return 0; 2211} 2212 2213// Check varargs and va_copy. 2214static bool 2215test_varargs (const char *format, ...) 2216{ 2217 va_list args; 2218 va_start (args, format); 2219 va_list args_copy; 2220 va_copy (args_copy, args); 2221 2222 const char *str = ""; 2223 int number = 0; 2224 float fnumber = 0; 2225 2226 while (*format) 2227 { 2228 switch (*format++) 2229 { 2230 case '\''s'\'': // string 2231 str = va_arg (args_copy, const char *); 2232 break; 2233 case '\''d'\'': // int 2234 number = va_arg (args_copy, int); 2235 break; 2236 case '\''f'\'': // float 2237 fnumber = va_arg (args_copy, double); 2238 break; 2239 default: 2240 break; 2241 } 2242 } 2243 va_end (args_copy); 2244 va_end (args); 2245 2246 return *str && number && fnumber; 2247} 2248' 2249 2250# Test code for whether the C compiler supports C99 (body of main). 2251ac_c_conftest_c99_main=' 2252 // Check bool. 2253 _Bool success = false; 2254 success |= (argc != 0); 2255 2256 // Check restrict. 2257 if (test_restrict ("String literal") == 0) 2258 success = true; 2259 char *restrict newvar = "Another string"; 2260 2261 // Check varargs. 2262 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2263 test_varargs_macros (); 2264 2265 // Check flexible array members. 2266 struct incomplete_array *ia = 2267 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2268 ia->datasize = 10; 2269 for (int i = 0; i < ia->datasize; ++i) 2270 ia->data[i] = i * 1.234; 2271 2272 // Check named initializers. 2273 struct named_init ni = { 2274 .number = 34, 2275 .name = L"Test wide string", 2276 .average = 543.34343, 2277 }; 2278 2279 ni.number = 58; 2280 2281 int dynamic_array[ni.number]; 2282 dynamic_array[0] = argv[0][0]; 2283 dynamic_array[ni.number - 1] = 543; 2284 2285 // work around unused variable warnings 2286 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2287 || dynamic_array[ni.number - 1] != 543); 2288' 2289 2290# Test code for whether the C compiler supports C11 (global declarations) 2291ac_c_conftest_c11_globals=' 2292// Does the compiler advertise C11 conformance? 2293#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2294# error "Compiler does not advertise C11 conformance" 2295#endif 2296 2297// Check _Alignas. 2298char _Alignas (double) aligned_as_double; 2299char _Alignas (0) no_special_alignment; 2300extern char aligned_as_int; 2301char _Alignas (0) _Alignas (int) aligned_as_int; 2302 2303// Check _Alignof. 2304enum 2305{ 2306 int_alignment = _Alignof (int), 2307 int_array_alignment = _Alignof (int[100]), 2308 char_alignment = _Alignof (char) 2309}; 2310_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2311 2312// Check _Noreturn. 2313int _Noreturn does_not_return (void) { for (;;) continue; } 2314 2315// Check _Static_assert. 2316struct test_static_assert 2317{ 2318 int x; 2319 _Static_assert (sizeof (int) <= sizeof (long int), 2320 "_Static_assert does not work in struct"); 2321 long int y; 2322}; 2323 2324// Check UTF-8 literals. 2325#define u8 syntax error! 2326char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2327 2328// Check duplicate typedefs. 2329typedef long *long_ptr; 2330typedef long int *long_ptr; 2331typedef long_ptr long_ptr; 2332 2333// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2334struct anonymous 2335{ 2336 union { 2337 struct { int i; int j; }; 2338 struct { int k; long int l; } w; 2339 }; 2340 int m; 2341} v1; 2342' 2343 2344# Test code for whether the C compiler supports C11 (body of main). 2345ac_c_conftest_c11_main=' 2346 _Static_assert ((offsetof (struct anonymous, i) 2347 == offsetof (struct anonymous, w.k)), 2348 "Anonymous union alignment botch"); 2349 v1.i = 2; 2350 v1.w.k = 5; 2351 ok |= v1.i != 5; 2352' 2353 2354# Test code for whether the C compiler supports C11 (complete). 2355ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2356${ac_c_conftest_c99_globals} 2357${ac_c_conftest_c11_globals} 2358 2359int 2360main (int argc, char **argv) 2361{ 2362 int ok = 0; 2363 ${ac_c_conftest_c89_main} 2364 ${ac_c_conftest_c99_main} 2365 ${ac_c_conftest_c11_main} 2366 return ok; 2367} 2368" 2369 2370# Test code for whether the C compiler supports C99 (complete). 2371ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2372${ac_c_conftest_c99_globals} 2373 2374int 2375main (int argc, char **argv) 2376{ 2377 int ok = 0; 2378 ${ac_c_conftest_c89_main} 2379 ${ac_c_conftest_c99_main} 2380 return ok; 2381} 2382" 2383 2384# Test code for whether the C compiler supports C89 (complete). 2385ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2386 2387int 2388main (int argc, char **argv) 2389{ 2390 int ok = 0; 2391 ${ac_c_conftest_c89_main} 2392 return ok; 2393} 2394" 2395 2396as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2397as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2398as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2399as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2400as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2401as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2402as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2403as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2404as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2405as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2406 2407# Auxiliary files required by this configure script. 2408ac_aux_files="config.guess config.sub missing install-sh compile" 2409 2410# Locations in which to look for auxiliary files. 2411ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2412 2413# Search for a directory containing all of the required auxiliary files, 2414# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2415# If we don't find one directory that contains all the files we need, 2416# we report the set of missing files from the *first* directory in 2417# $ac_aux_dir_candidates and give up. 2418ac_missing_aux_files="" 2419ac_first_candidate=: 2420printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422as_found=false 2423for as_dir in $ac_aux_dir_candidates 2424do 2425 IFS=$as_save_IFS 2426 case $as_dir in #((( 2427 '') as_dir=./ ;; 2428 */) ;; 2429 *) as_dir=$as_dir/ ;; 2430 esac 2431 as_found=: 2432 2433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2434 ac_aux_dir_found=yes 2435 ac_install_sh= 2436 for ac_aux in $ac_aux_files 2437 do 2438 # As a special case, if "install-sh" is required, that requirement 2439 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2440 # and $ac_install_sh is set appropriately for whichever one is found. 2441 if test x"$ac_aux" = x"install-sh" 2442 then 2443 if test -f "${as_dir}install-sh"; then 2444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2445 ac_install_sh="${as_dir}install-sh -c" 2446 elif test -f "${as_dir}install.sh"; then 2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2448 ac_install_sh="${as_dir}install.sh -c" 2449 elif test -f "${as_dir}shtool"; then 2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2451 ac_install_sh="${as_dir}shtool install -c" 2452 else 2453 ac_aux_dir_found=no 2454 if $ac_first_candidate; then 2455 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2456 else 2457 break 2458 fi 2459 fi 2460 else 2461 if test -f "${as_dir}${ac_aux}"; then 2462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2463 else 2464 ac_aux_dir_found=no 2465 if $ac_first_candidate; then 2466 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2467 else 2468 break 2469 fi 2470 fi 2471 fi 2472 done 2473 if test "$ac_aux_dir_found" = yes; then 2474 ac_aux_dir="$as_dir" 2475 break 2476 fi 2477 ac_first_candidate=false 2478 2479 as_found=false 2480done 2481IFS=$as_save_IFS 2482if $as_found 2483then : 2484 2485else $as_nop 2486 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2487fi 2488 2489 2490# These three variables are undocumented and unsupported, 2491# and are intended to be withdrawn in a future Autoconf release. 2492# They can cause serious problems if a builder's source tree is in a directory 2493# whose full name contains unusual characters. 2494if test -f "${ac_aux_dir}config.guess"; then 2495 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2496fi 2497if test -f "${ac_aux_dir}config.sub"; then 2498 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2499fi 2500if test -f "$ac_aux_dir/configure"; then 2501 ac_configure="$SHELL ${ac_aux_dir}configure" 2502fi 2503 2504# Check that the precious variables saved in the cache have kept the same 2505# value. 2506ac_cache_corrupted=false 2507for ac_var in $ac_precious_vars; do 2508 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2509 eval ac_new_set=\$ac_env_${ac_var}_set 2510 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2511 eval ac_new_val=\$ac_env_${ac_var}_value 2512 case $ac_old_set,$ac_new_set in 2513 set,) 2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2515printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2516 ac_cache_corrupted=: ;; 2517 ,set) 2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2519printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2520 ac_cache_corrupted=: ;; 2521 ,);; 2522 *) 2523 if test "x$ac_old_val" != "x$ac_new_val"; then 2524 # differences in whitespace do not lead to failure. 2525 ac_old_val_w=`echo x $ac_old_val` 2526 ac_new_val_w=`echo x $ac_new_val` 2527 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2529printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2530 ac_cache_corrupted=: 2531 else 2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2533printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2534 eval $ac_var=\$ac_old_val 2535 fi 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2537printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2539printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2540 fi;; 2541 esac 2542 # Pass precious variables to config.status. 2543 if test "$ac_new_set" = set; then 2544 case $ac_new_val in 2545 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2546 *) ac_arg=$ac_var=$ac_new_val ;; 2547 esac 2548 case " $ac_configure_args " in 2549 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2550 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2551 esac 2552 fi 2553done 2554if $ac_cache_corrupted; then 2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2556printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2558printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2559 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2560 and start over" "$LINENO" 5 2561fi 2562## -------------------- ## 2563## Main body of script. ## 2564## -------------------- ## 2565 2566ac_ext=c 2567ac_cpp='$CPP $CPPFLAGS' 2568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2570ac_compiler_gnu=$ac_cv_c_compiler_gnu 2571 2572 2573 2574ac_config_headers="$ac_config_headers config.h" 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587# Expand $ac_aux_dir to an absolute path. 2588am_aux_dir=`cd "$ac_aux_dir" && pwd` 2589 2590ac_ext=c 2591ac_cpp='$CPP $CPPFLAGS' 2592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2594ac_compiler_gnu=$ac_cv_c_compiler_gnu 2595if test -n "$ac_tool_prefix"; then 2596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2597set dummy ${ac_tool_prefix}gcc; ac_word=$2 2598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599printf %s "checking for $ac_word... " >&6; } 2600if test ${ac_cv_prog_CC+y} 2601then : 2602 printf %s "(cached) " >&6 2603else $as_nop 2604 if test -n "$CC"; then 2605 ac_cv_prog_CC="$CC" # Let the user override the test. 2606else 2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2608for as_dir in $PATH 2609do 2610 IFS=$as_save_IFS 2611 case $as_dir in #((( 2612 '') as_dir=./ ;; 2613 */) ;; 2614 *) as_dir=$as_dir/ ;; 2615 esac 2616 for ac_exec_ext in '' $ac_executable_extensions; do 2617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2618 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2620 break 2 2621 fi 2622done 2623 done 2624IFS=$as_save_IFS 2625 2626fi 2627fi 2628CC=$ac_cv_prog_CC 2629if test -n "$CC"; then 2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2631printf "%s\n" "$CC" >&6; } 2632else 2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2634printf "%s\n" "no" >&6; } 2635fi 2636 2637 2638fi 2639if test -z "$ac_cv_prog_CC"; then 2640 ac_ct_CC=$CC 2641 # Extract the first word of "gcc", so it can be a program name with args. 2642set dummy gcc; ac_word=$2 2643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2644printf %s "checking for $ac_word... " >&6; } 2645if test ${ac_cv_prog_ac_ct_CC+y} 2646then : 2647 printf %s "(cached) " >&6 2648else $as_nop 2649 if test -n "$ac_ct_CC"; then 2650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2651else 2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2653for as_dir in $PATH 2654do 2655 IFS=$as_save_IFS 2656 case $as_dir in #((( 2657 '') as_dir=./ ;; 2658 */) ;; 2659 *) as_dir=$as_dir/ ;; 2660 esac 2661 for ac_exec_ext in '' $ac_executable_extensions; do 2662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2663 ac_cv_prog_ac_ct_CC="gcc" 2664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2665 break 2 2666 fi 2667done 2668 done 2669IFS=$as_save_IFS 2670 2671fi 2672fi 2673ac_ct_CC=$ac_cv_prog_ac_ct_CC 2674if test -n "$ac_ct_CC"; then 2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2676printf "%s\n" "$ac_ct_CC" >&6; } 2677else 2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2679printf "%s\n" "no" >&6; } 2680fi 2681 2682 if test "x$ac_ct_CC" = x; then 2683 CC="" 2684 else 2685 case $cross_compiling:$ac_tool_warned in 2686yes:) 2687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2688printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2689ac_tool_warned=yes ;; 2690esac 2691 CC=$ac_ct_CC 2692 fi 2693else 2694 CC="$ac_cv_prog_CC" 2695fi 2696 2697if test -z "$CC"; then 2698 if test -n "$ac_tool_prefix"; then 2699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2700set dummy ${ac_tool_prefix}cc; ac_word=$2 2701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2702printf %s "checking for $ac_word... " >&6; } 2703if test ${ac_cv_prog_CC+y} 2704then : 2705 printf %s "(cached) " >&6 2706else $as_nop 2707 if test -n "$CC"; then 2708 ac_cv_prog_CC="$CC" # Let the user override the test. 2709else 2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711for as_dir in $PATH 2712do 2713 IFS=$as_save_IFS 2714 case $as_dir in #((( 2715 '') as_dir=./ ;; 2716 */) ;; 2717 *) as_dir=$as_dir/ ;; 2718 esac 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2721 ac_cv_prog_CC="${ac_tool_prefix}cc" 2722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2723 break 2 2724 fi 2725done 2726 done 2727IFS=$as_save_IFS 2728 2729fi 2730fi 2731CC=$ac_cv_prog_CC 2732if test -n "$CC"; then 2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2734printf "%s\n" "$CC" >&6; } 2735else 2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737printf "%s\n" "no" >&6; } 2738fi 2739 2740 2741 fi 2742fi 2743if test -z "$CC"; then 2744 # Extract the first word of "cc", so it can be a program name with args. 2745set dummy cc; ac_word=$2 2746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2747printf %s "checking for $ac_word... " >&6; } 2748if test ${ac_cv_prog_CC+y} 2749then : 2750 printf %s "(cached) " >&6 2751else $as_nop 2752 if test -n "$CC"; then 2753 ac_cv_prog_CC="$CC" # Let the user override the test. 2754else 2755 ac_prog_rejected=no 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 case $as_dir in #((( 2761 '') as_dir=./ ;; 2762 */) ;; 2763 *) as_dir=$as_dir/ ;; 2764 esac 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2767 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2768 ac_prog_rejected=yes 2769 continue 2770 fi 2771 ac_cv_prog_CC="cc" 2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776 done 2777IFS=$as_save_IFS 2778 2779if test $ac_prog_rejected = yes; then 2780 # We found a bogon in the path, so make sure we never use it. 2781 set dummy $ac_cv_prog_CC 2782 shift 2783 if test $# != 0; then 2784 # We chose a different compiler from the bogus one. 2785 # However, it has the same basename, so the bogon will be chosen 2786 # first if we set CC to just the basename; use the full file name. 2787 shift 2788 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2789 fi 2790fi 2791fi 2792fi 2793CC=$ac_cv_prog_CC 2794if test -n "$CC"; then 2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2796printf "%s\n" "$CC" >&6; } 2797else 2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799printf "%s\n" "no" >&6; } 2800fi 2801 2802 2803fi 2804if test -z "$CC"; then 2805 if test -n "$ac_tool_prefix"; then 2806 for ac_prog in cl.exe 2807 do 2808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2809set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2811printf %s "checking for $ac_word... " >&6; } 2812if test ${ac_cv_prog_CC+y} 2813then : 2814 printf %s "(cached) " >&6 2815else $as_nop 2816 if test -n "$CC"; then 2817 ac_cv_prog_CC="$CC" # Let the user override the test. 2818else 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 case $as_dir in #((( 2824 '') as_dir=./ ;; 2825 */) ;; 2826 *) as_dir=$as_dir/ ;; 2827 esac 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834done 2835 done 2836IFS=$as_save_IFS 2837 2838fi 2839fi 2840CC=$ac_cv_prog_CC 2841if test -n "$CC"; then 2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2843printf "%s\n" "$CC" >&6; } 2844else 2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846printf "%s\n" "no" >&6; } 2847fi 2848 2849 2850 test -n "$CC" && break 2851 done 2852fi 2853if test -z "$CC"; then 2854 ac_ct_CC=$CC 2855 for ac_prog in cl.exe 2856do 2857 # Extract the first word of "$ac_prog", so it can be a program name with args. 2858set dummy $ac_prog; ac_word=$2 2859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2860printf %s "checking for $ac_word... " >&6; } 2861if test ${ac_cv_prog_ac_ct_CC+y} 2862then : 2863 printf %s "(cached) " >&6 2864else $as_nop 2865 if test -n "$ac_ct_CC"; then 2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2867else 2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869for as_dir in $PATH 2870do 2871 IFS=$as_save_IFS 2872 case $as_dir in #((( 2873 '') as_dir=./ ;; 2874 */) ;; 2875 *) as_dir=$as_dir/ ;; 2876 esac 2877 for ac_exec_ext in '' $ac_executable_extensions; do 2878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2879 ac_cv_prog_ac_ct_CC="$ac_prog" 2880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2881 break 2 2882 fi 2883done 2884 done 2885IFS=$as_save_IFS 2886 2887fi 2888fi 2889ac_ct_CC=$ac_cv_prog_ac_ct_CC 2890if test -n "$ac_ct_CC"; then 2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2892printf "%s\n" "$ac_ct_CC" >&6; } 2893else 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2895printf "%s\n" "no" >&6; } 2896fi 2897 2898 2899 test -n "$ac_ct_CC" && break 2900done 2901 2902 if test "x$ac_ct_CC" = x; then 2903 CC="" 2904 else 2905 case $cross_compiling:$ac_tool_warned in 2906yes:) 2907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2908printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2909ac_tool_warned=yes ;; 2910esac 2911 CC=$ac_ct_CC 2912 fi 2913fi 2914 2915fi 2916if test -z "$CC"; then 2917 if test -n "$ac_tool_prefix"; then 2918 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2919set dummy ${ac_tool_prefix}clang; ac_word=$2 2920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2921printf %s "checking for $ac_word... " >&6; } 2922if test ${ac_cv_prog_CC+y} 2923then : 2924 printf %s "(cached) " >&6 2925else $as_nop 2926 if test -n "$CC"; then 2927 ac_cv_prog_CC="$CC" # Let the user override the test. 2928else 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 case $as_dir in #((( 2934 '') as_dir=./ ;; 2935 */) ;; 2936 *) as_dir=$as_dir/ ;; 2937 esac 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2940 ac_cv_prog_CC="${ac_tool_prefix}clang" 2941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945 done 2946IFS=$as_save_IFS 2947 2948fi 2949fi 2950CC=$ac_cv_prog_CC 2951if test -n "$CC"; then 2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2953printf "%s\n" "$CC" >&6; } 2954else 2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956printf "%s\n" "no" >&6; } 2957fi 2958 2959 2960fi 2961if test -z "$ac_cv_prog_CC"; then 2962 ac_ct_CC=$CC 2963 # Extract the first word of "clang", so it can be a program name with args. 2964set dummy clang; ac_word=$2 2965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2966printf %s "checking for $ac_word... " >&6; } 2967if test ${ac_cv_prog_ac_ct_CC+y} 2968then : 2969 printf %s "(cached) " >&6 2970else $as_nop 2971 if test -n "$ac_ct_CC"; then 2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2973else 2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2975for as_dir in $PATH 2976do 2977 IFS=$as_save_IFS 2978 case $as_dir in #((( 2979 '') as_dir=./ ;; 2980 */) ;; 2981 *) as_dir=$as_dir/ ;; 2982 esac 2983 for ac_exec_ext in '' $ac_executable_extensions; do 2984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2985 ac_cv_prog_ac_ct_CC="clang" 2986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2987 break 2 2988 fi 2989done 2990 done 2991IFS=$as_save_IFS 2992 2993fi 2994fi 2995ac_ct_CC=$ac_cv_prog_ac_ct_CC 2996if test -n "$ac_ct_CC"; then 2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2998printf "%s\n" "$ac_ct_CC" >&6; } 2999else 3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001printf "%s\n" "no" >&6; } 3002fi 3003 3004 if test "x$ac_ct_CC" = x; then 3005 CC="" 3006 else 3007 case $cross_compiling:$ac_tool_warned in 3008yes:) 3009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3010printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3011ac_tool_warned=yes ;; 3012esac 3013 CC=$ac_ct_CC 3014 fi 3015else 3016 CC="$ac_cv_prog_CC" 3017fi 3018 3019fi 3020 3021 3022test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3023printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3024as_fn_error $? "no acceptable C compiler found in \$PATH 3025See \`config.log' for more details" "$LINENO" 5; } 3026 3027# Provide some information about the compiler. 3028printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3029set X $ac_compile 3030ac_compiler=$2 3031for ac_option in --version -v -V -qversion -version; do 3032 { { ac_try="$ac_compiler $ac_option >&5" 3033case "(($ac_try" in 3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3035 *) ac_try_echo=$ac_try;; 3036esac 3037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3038printf "%s\n" "$ac_try_echo"; } >&5 3039 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3040 ac_status=$? 3041 if test -s conftest.err; then 3042 sed '10a\ 3043... rest of stderr output deleted ... 3044 10q' conftest.err >conftest.er1 3045 cat conftest.er1 >&5 3046 fi 3047 rm -f conftest.er1 conftest.err 3048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3049 test $ac_status = 0; } 3050done 3051 3052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3053/* end confdefs.h. */ 3054 3055int 3056main (void) 3057{ 3058 3059 ; 3060 return 0; 3061} 3062_ACEOF 3063ac_clean_files_save=$ac_clean_files 3064ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3065# Try to create an executable without -o first, disregard a.out. 3066# It will help us diagnose broken compilers, and finding out an intuition 3067# of exeext. 3068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3069printf %s "checking whether the C compiler works... " >&6; } 3070ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3071 3072# The possible output files: 3073ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3074 3075ac_rmfiles= 3076for ac_file in $ac_files 3077do 3078 case $ac_file in 3079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3080 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3081 esac 3082done 3083rm -f $ac_rmfiles 3084 3085if { { ac_try="$ac_link_default" 3086case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3091printf "%s\n" "$ac_try_echo"; } >&5 3092 (eval "$ac_link_default") 2>&5 3093 ac_status=$? 3094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3095 test $ac_status = 0; } 3096then : 3097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3098# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3099# in a Makefile. We should not override ac_cv_exeext if it was cached, 3100# so that the user can short-circuit this test for compilers unknown to 3101# Autoconf. 3102for ac_file in $ac_files '' 3103do 3104 test -f "$ac_file" || continue 3105 case $ac_file in 3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3107 ;; 3108 [ab].out ) 3109 # We found the default executable, but exeext='' is most 3110 # certainly right. 3111 break;; 3112 *.* ) 3113 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3114 then :; else 3115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3116 fi 3117 # We set ac_cv_exeext here because the later test for it is not 3118 # safe: cross compilers may not add the suffix if given an `-o' 3119 # argument, so we may need to know it at that point already. 3120 # Even if this section looks crufty: it has the advantage of 3121 # actually working. 3122 break;; 3123 * ) 3124 break;; 3125 esac 3126done 3127test "$ac_cv_exeext" = no && ac_cv_exeext= 3128 3129else $as_nop 3130 ac_file='' 3131fi 3132if test -z "$ac_file" 3133then : 3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3135printf "%s\n" "no" >&6; } 3136printf "%s\n" "$as_me: failed program was:" >&5 3137sed 's/^/| /' conftest.$ac_ext >&5 3138 3139{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3140printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3141as_fn_error 77 "C compiler cannot create executables 3142See \`config.log' for more details" "$LINENO" 5; } 3143else $as_nop 3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3145printf "%s\n" "yes" >&6; } 3146fi 3147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3148printf %s "checking for C compiler default output file name... " >&6; } 3149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3150printf "%s\n" "$ac_file" >&6; } 3151ac_exeext=$ac_cv_exeext 3152 3153rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3154ac_clean_files=$ac_clean_files_save 3155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3156printf %s "checking for suffix of executables... " >&6; } 3157if { { ac_try="$ac_link" 3158case "(($ac_try" in 3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3160 *) ac_try_echo=$ac_try;; 3161esac 3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3163printf "%s\n" "$ac_try_echo"; } >&5 3164 (eval "$ac_link") 2>&5 3165 ac_status=$? 3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3167 test $ac_status = 0; } 3168then : 3169 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3170# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3171# work properly (i.e., refer to `conftest.exe'), while it won't with 3172# `rm'. 3173for ac_file in conftest.exe conftest conftest.*; do 3174 test -f "$ac_file" || continue 3175 case $ac_file in 3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3178 break;; 3179 * ) break;; 3180 esac 3181done 3182else $as_nop 3183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3184printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3185as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3186See \`config.log' for more details" "$LINENO" 5; } 3187fi 3188rm -f conftest conftest$ac_cv_exeext 3189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3190printf "%s\n" "$ac_cv_exeext" >&6; } 3191 3192rm -f conftest.$ac_ext 3193EXEEXT=$ac_cv_exeext 3194ac_exeext=$EXEEXT 3195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3196/* end confdefs.h. */ 3197#include <stdio.h> 3198int 3199main (void) 3200{ 3201FILE *f = fopen ("conftest.out", "w"); 3202 return ferror (f) || fclose (f) != 0; 3203 3204 ; 3205 return 0; 3206} 3207_ACEOF 3208ac_clean_files="$ac_clean_files conftest.out" 3209# Check that the compiler produces executables we can run. If not, either 3210# the compiler is broken, or we cross compile. 3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3212printf %s "checking whether we are cross compiling... " >&6; } 3213if test "$cross_compiling" != yes; then 3214 { { ac_try="$ac_link" 3215case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3220printf "%s\n" "$ac_try_echo"; } >&5 3221 (eval "$ac_link") 2>&5 3222 ac_status=$? 3223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3224 test $ac_status = 0; } 3225 if { ac_try='./conftest$ac_cv_exeext' 3226 { { case "(($ac_try" in 3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3228 *) ac_try_echo=$ac_try;; 3229esac 3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3231printf "%s\n" "$ac_try_echo"; } >&5 3232 (eval "$ac_try") 2>&5 3233 ac_status=$? 3234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3235 test $ac_status = 0; }; }; then 3236 cross_compiling=no 3237 else 3238 if test "$cross_compiling" = maybe; then 3239 cross_compiling=yes 3240 else 3241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3242printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3243as_fn_error 77 "cannot run C compiled programs. 3244If you meant to cross compile, use \`--host'. 3245See \`config.log' for more details" "$LINENO" 5; } 3246 fi 3247 fi 3248fi 3249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3250printf "%s\n" "$cross_compiling" >&6; } 3251 3252rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3253ac_clean_files=$ac_clean_files_save 3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3255printf %s "checking for suffix of object files... " >&6; } 3256if test ${ac_cv_objext+y} 3257then : 3258 printf %s "(cached) " >&6 3259else $as_nop 3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3261/* end confdefs.h. */ 3262 3263int 3264main (void) 3265{ 3266 3267 ; 3268 return 0; 3269} 3270_ACEOF 3271rm -f conftest.o conftest.obj 3272if { { ac_try="$ac_compile" 3273case "(($ac_try" in 3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3275 *) ac_try_echo=$ac_try;; 3276esac 3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3278printf "%s\n" "$ac_try_echo"; } >&5 3279 (eval "$ac_compile") 2>&5 3280 ac_status=$? 3281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3282 test $ac_status = 0; } 3283then : 3284 for ac_file in conftest.o conftest.obj conftest.*; do 3285 test -f "$ac_file" || continue; 3286 case $ac_file in 3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3288 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3289 break;; 3290 esac 3291done 3292else $as_nop 3293 printf "%s\n" "$as_me: failed program was:" >&5 3294sed 's/^/| /' conftest.$ac_ext >&5 3295 3296{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3297printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3298as_fn_error $? "cannot compute suffix of object files: cannot compile 3299See \`config.log' for more details" "$LINENO" 5; } 3300fi 3301rm -f conftest.$ac_cv_objext conftest.$ac_ext 3302fi 3303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3304printf "%s\n" "$ac_cv_objext" >&6; } 3305OBJEXT=$ac_cv_objext 3306ac_objext=$OBJEXT 3307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3308printf %s "checking whether the compiler supports GNU C... " >&6; } 3309if test ${ac_cv_c_compiler_gnu+y} 3310then : 3311 printf %s "(cached) " >&6 3312else $as_nop 3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3314/* end confdefs.h. */ 3315 3316int 3317main (void) 3318{ 3319#ifndef __GNUC__ 3320 choke me 3321#endif 3322 3323 ; 3324 return 0; 3325} 3326_ACEOF 3327if ac_fn_c_try_compile "$LINENO" 3328then : 3329 ac_compiler_gnu=yes 3330else $as_nop 3331 ac_compiler_gnu=no 3332fi 3333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3334ac_cv_c_compiler_gnu=$ac_compiler_gnu 3335 3336fi 3337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3338printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3339ac_compiler_gnu=$ac_cv_c_compiler_gnu 3340 3341if test $ac_compiler_gnu = yes; then 3342 GCC=yes 3343else 3344 GCC= 3345fi 3346ac_test_CFLAGS=${CFLAGS+y} 3347ac_save_CFLAGS=$CFLAGS 3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3349printf %s "checking whether $CC accepts -g... " >&6; } 3350if test ${ac_cv_prog_cc_g+y} 3351then : 3352 printf %s "(cached) " >&6 3353else $as_nop 3354 ac_save_c_werror_flag=$ac_c_werror_flag 3355 ac_c_werror_flag=yes 3356 ac_cv_prog_cc_g=no 3357 CFLAGS="-g" 3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3359/* end confdefs.h. */ 3360 3361int 3362main (void) 3363{ 3364 3365 ; 3366 return 0; 3367} 3368_ACEOF 3369if ac_fn_c_try_compile "$LINENO" 3370then : 3371 ac_cv_prog_cc_g=yes 3372else $as_nop 3373 CFLAGS="" 3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3375/* end confdefs.h. */ 3376 3377int 3378main (void) 3379{ 3380 3381 ; 3382 return 0; 3383} 3384_ACEOF 3385if ac_fn_c_try_compile "$LINENO" 3386then : 3387 3388else $as_nop 3389 ac_c_werror_flag=$ac_save_c_werror_flag 3390 CFLAGS="-g" 3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3392/* end confdefs.h. */ 3393 3394int 3395main (void) 3396{ 3397 3398 ; 3399 return 0; 3400} 3401_ACEOF 3402if ac_fn_c_try_compile "$LINENO" 3403then : 3404 ac_cv_prog_cc_g=yes 3405fi 3406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3407fi 3408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3409fi 3410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3411 ac_c_werror_flag=$ac_save_c_werror_flag 3412fi 3413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3414printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3415if test $ac_test_CFLAGS; then 3416 CFLAGS=$ac_save_CFLAGS 3417elif test $ac_cv_prog_cc_g = yes; then 3418 if test "$GCC" = yes; then 3419 CFLAGS="-g -O2" 3420 else 3421 CFLAGS="-g" 3422 fi 3423else 3424 if test "$GCC" = yes; then 3425 CFLAGS="-O2" 3426 else 3427 CFLAGS= 3428 fi 3429fi 3430ac_prog_cc_stdc=no 3431if test x$ac_prog_cc_stdc = xno 3432then : 3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3434printf %s "checking for $CC option to enable C11 features... " >&6; } 3435if test ${ac_cv_prog_cc_c11+y} 3436then : 3437 printf %s "(cached) " >&6 3438else $as_nop 3439 ac_cv_prog_cc_c11=no 3440ac_save_CC=$CC 3441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3442/* end confdefs.h. */ 3443$ac_c_conftest_c11_program 3444_ACEOF 3445for ac_arg in '' -std=gnu11 3446do 3447 CC="$ac_save_CC $ac_arg" 3448 if ac_fn_c_try_compile "$LINENO" 3449then : 3450 ac_cv_prog_cc_c11=$ac_arg 3451fi 3452rm -f core conftest.err conftest.$ac_objext conftest.beam 3453 test "x$ac_cv_prog_cc_c11" != "xno" && break 3454done 3455rm -f conftest.$ac_ext 3456CC=$ac_save_CC 3457fi 3458 3459if test "x$ac_cv_prog_cc_c11" = xno 3460then : 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3462printf "%s\n" "unsupported" >&6; } 3463else $as_nop 3464 if test "x$ac_cv_prog_cc_c11" = x 3465then : 3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3467printf "%s\n" "none needed" >&6; } 3468else $as_nop 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3470printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3471 CC="$CC $ac_cv_prog_cc_c11" 3472fi 3473 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3474 ac_prog_cc_stdc=c11 3475fi 3476fi 3477if test x$ac_prog_cc_stdc = xno 3478then : 3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3480printf %s "checking for $CC option to enable C99 features... " >&6; } 3481if test ${ac_cv_prog_cc_c99+y} 3482then : 3483 printf %s "(cached) " >&6 3484else $as_nop 3485 ac_cv_prog_cc_c99=no 3486ac_save_CC=$CC 3487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488/* end confdefs.h. */ 3489$ac_c_conftest_c99_program 3490_ACEOF 3491for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3492do 3493 CC="$ac_save_CC $ac_arg" 3494 if ac_fn_c_try_compile "$LINENO" 3495then : 3496 ac_cv_prog_cc_c99=$ac_arg 3497fi 3498rm -f core conftest.err conftest.$ac_objext conftest.beam 3499 test "x$ac_cv_prog_cc_c99" != "xno" && break 3500done 3501rm -f conftest.$ac_ext 3502CC=$ac_save_CC 3503fi 3504 3505if test "x$ac_cv_prog_cc_c99" = xno 3506then : 3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3508printf "%s\n" "unsupported" >&6; } 3509else $as_nop 3510 if test "x$ac_cv_prog_cc_c99" = x 3511then : 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3513printf "%s\n" "none needed" >&6; } 3514else $as_nop 3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3516printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3517 CC="$CC $ac_cv_prog_cc_c99" 3518fi 3519 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3520 ac_prog_cc_stdc=c99 3521fi 3522fi 3523if test x$ac_prog_cc_stdc = xno 3524then : 3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3526printf %s "checking for $CC option to enable C89 features... " >&6; } 3527if test ${ac_cv_prog_cc_c89+y} 3528then : 3529 printf %s "(cached) " >&6 3530else $as_nop 3531 ac_cv_prog_cc_c89=no 3532ac_save_CC=$CC 3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534/* end confdefs.h. */ 3535$ac_c_conftest_c89_program 3536_ACEOF 3537for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3538do 3539 CC="$ac_save_CC $ac_arg" 3540 if ac_fn_c_try_compile "$LINENO" 3541then : 3542 ac_cv_prog_cc_c89=$ac_arg 3543fi 3544rm -f core conftest.err conftest.$ac_objext conftest.beam 3545 test "x$ac_cv_prog_cc_c89" != "xno" && break 3546done 3547rm -f conftest.$ac_ext 3548CC=$ac_save_CC 3549fi 3550 3551if test "x$ac_cv_prog_cc_c89" = xno 3552then : 3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3554printf "%s\n" "unsupported" >&6; } 3555else $as_nop 3556 if test "x$ac_cv_prog_cc_c89" = x 3557then : 3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3559printf "%s\n" "none needed" >&6; } 3560else $as_nop 3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3562printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3563 CC="$CC $ac_cv_prog_cc_c89" 3564fi 3565 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3566 ac_prog_cc_stdc=c89 3567fi 3568fi 3569 3570ac_ext=c 3571ac_cpp='$CPP $CPPFLAGS' 3572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3574ac_compiler_gnu=$ac_cv_c_compiler_gnu 3575 3576 3577 ac_ext=c 3578ac_cpp='$CPP $CPPFLAGS' 3579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3581ac_compiler_gnu=$ac_cv_c_compiler_gnu 3582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3583printf %s "checking whether $CC understands -c and -o together... " >&6; } 3584if test ${am_cv_prog_cc_c_o+y} 3585then : 3586 printf %s "(cached) " >&6 3587else $as_nop 3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589/* end confdefs.h. */ 3590 3591int 3592main (void) 3593{ 3594 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599 # Make sure it works both with $CC and with simple cc. 3600 # Following AC_PROG_CC_C_O, we do the test twice because some 3601 # compilers refuse to overwrite an existing .o file with -o, 3602 # though they will create one. 3603 am_cv_prog_cc_c_o=yes 3604 for am_i in 1 2; do 3605 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3606 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3607 ac_status=$? 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3609 (exit $ac_status); } \ 3610 && test -f conftest2.$ac_objext; then 3611 : OK 3612 else 3613 am_cv_prog_cc_c_o=no 3614 break 3615 fi 3616 done 3617 rm -f core conftest* 3618 unset am_i 3619fi 3620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3621printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3622if test "$am_cv_prog_cc_c_o" != yes; then 3623 # Losing compiler, so override with the script. 3624 # FIXME: It is wrong to rewrite CC. 3625 # But if we don't then we get into trouble of one sort or another. 3626 # A longer-term fix would be to have automake use am__CC in this case, 3627 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3628 CC="$am_aux_dir/compile $CC" 3629fi 3630ac_ext=c 3631ac_cpp='$CPP $CPPFLAGS' 3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3634ac_compiler_gnu=$ac_cv_c_compiler_gnu 3635 3636 3637 3638ac_header= ac_cache= 3639for ac_item in $ac_header_c_list 3640do 3641 if test $ac_cache; then 3642 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3643 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3644 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3645 fi 3646 ac_header= ac_cache= 3647 elif test $ac_header; then 3648 ac_cache=$ac_item 3649 else 3650 ac_header=$ac_item 3651 fi 3652done 3653 3654 3655 3656 3657 3658 3659 3660 3661if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3662then : 3663 3664printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3665 3666fi 3667 3668 3669 3670 3671 3672 3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3674printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3675if test ${ac_cv_safe_to_define___extensions__+y} 3676then : 3677 printf %s "(cached) " >&6 3678else $as_nop 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681 3682# define __EXTENSIONS__ 1 3683 $ac_includes_default 3684int 3685main (void) 3686{ 3687 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692if ac_fn_c_try_compile "$LINENO" 3693then : 3694 ac_cv_safe_to_define___extensions__=yes 3695else $as_nop 3696 ac_cv_safe_to_define___extensions__=no 3697fi 3698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3699fi 3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3701printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3702 3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3704printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3705if test ${ac_cv_should_define__xopen_source+y} 3706then : 3707 printf %s "(cached) " >&6 3708else $as_nop 3709 ac_cv_should_define__xopen_source=no 3710 if test $ac_cv_header_wchar_h = yes 3711then : 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715 #include <wchar.h> 3716 mbstate_t x; 3717int 3718main (void) 3719{ 3720 3721 ; 3722 return 0; 3723} 3724_ACEOF 3725if ac_fn_c_try_compile "$LINENO" 3726then : 3727 3728else $as_nop 3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730/* end confdefs.h. */ 3731 3732 #define _XOPEN_SOURCE 500 3733 #include <wchar.h> 3734 mbstate_t x; 3735int 3736main (void) 3737{ 3738 3739 ; 3740 return 0; 3741} 3742_ACEOF 3743if ac_fn_c_try_compile "$LINENO" 3744then : 3745 ac_cv_should_define__xopen_source=yes 3746fi 3747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3748fi 3749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3750fi 3751fi 3752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3753printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3754 3755 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3756 3757 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3758 3759 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3760 3761 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3762 3763 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3764 3765 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3766 3767 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3768 3769 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3770 3771 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3772 3773 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3774 3775 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3776 3777 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3778 3779 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3780 3781 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3782 3783 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3784 3785 if test $ac_cv_header_minix_config_h = yes 3786then : 3787 MINIX=yes 3788 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3789 3790 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3791 3792 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3793 3794else $as_nop 3795 MINIX= 3796fi 3797 if test $ac_cv_safe_to_define___extensions__ = yes 3798then : 3799 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3800 3801fi 3802 if test $ac_cv_should_define__xopen_source = yes 3803then : 3804 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3805 3806fi 3807 3808 3809# Initialize Automake 3810am__api_version='1.16' 3811 3812 3813 # Find a good install program. We prefer a C program (faster), 3814# so one script is as good as another. But avoid the broken or 3815# incompatible versions: 3816# SysV /etc/install, /usr/sbin/install 3817# SunOS /usr/etc/install 3818# IRIX /sbin/install 3819# AIX /bin/install 3820# AmigaOS /C/install, which installs bootblocks on floppy discs 3821# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3822# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3823# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3824# OS/2's system install, which has a completely different semantic 3825# ./install, which can be erroneously created by make from ./install.sh. 3826# Reject install programs that cannot install multiple files. 3827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3828printf %s "checking for a BSD-compatible install... " >&6; } 3829if test -z "$INSTALL"; then 3830if test ${ac_cv_path_install+y} 3831then : 3832 printf %s "(cached) " >&6 3833else $as_nop 3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3835for as_dir in $PATH 3836do 3837 IFS=$as_save_IFS 3838 case $as_dir in #((( 3839 '') as_dir=./ ;; 3840 */) ;; 3841 *) as_dir=$as_dir/ ;; 3842 esac 3843 # Account for fact that we put trailing slashes in our PATH walk. 3844case $as_dir in #(( 3845 ./ | /[cC]/* | \ 3846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3847 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3848 /usr/ucb/* ) ;; 3849 *) 3850 # OSF1 and SCO ODT 3.0 have their own names for install. 3851 # Don't use installbsd from OSF since it installs stuff as root 3852 # by default. 3853 for ac_prog in ginstall scoinst install; do 3854 for ac_exec_ext in '' $ac_executable_extensions; do 3855 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3856 if test $ac_prog = install && 3857 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3858 # AIX install. It has an incompatible calling convention. 3859 : 3860 elif test $ac_prog = install && 3861 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3862 # program-specific install script used by HP pwplus--don't use. 3863 : 3864 else 3865 rm -rf conftest.one conftest.two conftest.dir 3866 echo one > conftest.one 3867 echo two > conftest.two 3868 mkdir conftest.dir 3869 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3870 test -s conftest.one && test -s conftest.two && 3871 test -s conftest.dir/conftest.one && 3872 test -s conftest.dir/conftest.two 3873 then 3874 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3875 break 3 3876 fi 3877 fi 3878 fi 3879 done 3880 done 3881 ;; 3882esac 3883 3884 done 3885IFS=$as_save_IFS 3886 3887rm -rf conftest.one conftest.two conftest.dir 3888 3889fi 3890 if test ${ac_cv_path_install+y}; then 3891 INSTALL=$ac_cv_path_install 3892 else 3893 # As a last resort, use the slow shell script. Don't cache a 3894 # value for INSTALL within a source directory, because that will 3895 # break other packages using the cache if that directory is 3896 # removed, or if the value is a relative name. 3897 INSTALL=$ac_install_sh 3898 fi 3899fi 3900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3901printf "%s\n" "$INSTALL" >&6; } 3902 3903# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3904# It thinks the first close brace ends the variable substitution. 3905test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3906 3907test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3908 3909test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3910 3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3912printf %s "checking whether build environment is sane... " >&6; } 3913# Reject unsafe characters in $srcdir or the absolute working directory 3914# name. Accept space and tab only in the latter. 3915am_lf=' 3916' 3917case `pwd` in 3918 *[\\\"\#\$\&\'\`$am_lf]*) 3919 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3920esac 3921case $srcdir in 3922 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3923 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3924esac 3925 3926# Do 'set' in a subshell so we don't clobber the current shell's 3927# arguments. Must try -L first in case configure is actually a 3928# symlink; some systems play weird games with the mod time of symlinks 3929# (eg FreeBSD returns the mod time of the symlink's containing 3930# directory). 3931if ( 3932 am_has_slept=no 3933 for am_try in 1 2; do 3934 echo "timestamp, slept: $am_has_slept" > conftest.file 3935 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3936 if test "$*" = "X"; then 3937 # -L didn't work. 3938 set X `ls -t "$srcdir/configure" conftest.file` 3939 fi 3940 if test "$*" != "X $srcdir/configure conftest.file" \ 3941 && test "$*" != "X conftest.file $srcdir/configure"; then 3942 3943 # If neither matched, then we have a broken ls. This can happen 3944 # if, for instance, CONFIG_SHELL is bash and it inherits a 3945 # broken ls alias from the environment. This has actually 3946 # happened. Such a system could not be considered "sane". 3947 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3948 alias in your environment" "$LINENO" 5 3949 fi 3950 if test "$2" = conftest.file || test $am_try -eq 2; then 3951 break 3952 fi 3953 # Just in case. 3954 sleep 1 3955 am_has_slept=yes 3956 done 3957 test "$2" = conftest.file 3958 ) 3959then 3960 # Ok. 3961 : 3962else 3963 as_fn_error $? "newly created file is older than distributed files! 3964Check your system clock" "$LINENO" 5 3965fi 3966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3967printf "%s\n" "yes" >&6; } 3968# If we didn't sleep, we still need to ensure time stamps of config.status and 3969# generated files are strictly newer. 3970am_sleep_pid= 3971if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3972 ( sleep 1 ) & 3973 am_sleep_pid=$! 3974fi 3975 3976rm -f conftest.file 3977 3978test "$program_prefix" != NONE && 3979 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3980# Use a double $ so make ignores it. 3981test "$program_suffix" != NONE && 3982 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3983# Double any \ or $. 3984# By default was `s,x,x', remove it if useless. 3985ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3986program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3987 3988 3989 if test x"${MISSING+set}" != xset; then 3990 MISSING="\${SHELL} '$am_aux_dir/missing'" 3991fi 3992# Use eval to expand $SHELL 3993if eval "$MISSING --is-lightweight"; then 3994 am_missing_run="$MISSING " 3995else 3996 am_missing_run= 3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3998printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3999fi 4000 4001if test x"${install_sh+set}" != xset; then 4002 case $am_aux_dir in 4003 *\ * | *\ *) 4004 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4005 *) 4006 install_sh="\${SHELL} $am_aux_dir/install-sh" 4007 esac 4008fi 4009 4010# Installed binaries are usually stripped using 'strip' when the user 4011# run "make install-strip". However 'strip' might not be the right 4012# tool to use in cross-compilation environments, therefore Automake 4013# will honor the 'STRIP' environment variable to overrule this program. 4014if test "$cross_compiling" != no; then 4015 if test -n "$ac_tool_prefix"; then 4016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4017set dummy ${ac_tool_prefix}strip; ac_word=$2 4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4019printf %s "checking for $ac_word... " >&6; } 4020if test ${ac_cv_prog_STRIP+y} 4021then : 4022 printf %s "(cached) " >&6 4023else $as_nop 4024 if test -n "$STRIP"; then 4025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4026else 4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4028for as_dir in $PATH 4029do 4030 IFS=$as_save_IFS 4031 case $as_dir in #((( 4032 '') as_dir=./ ;; 4033 */) ;; 4034 *) as_dir=$as_dir/ ;; 4035 esac 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4038 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4040 break 2 4041 fi 4042done 4043 done 4044IFS=$as_save_IFS 4045 4046fi 4047fi 4048STRIP=$ac_cv_prog_STRIP 4049if test -n "$STRIP"; then 4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4051printf "%s\n" "$STRIP" >&6; } 4052else 4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4054printf "%s\n" "no" >&6; } 4055fi 4056 4057 4058fi 4059if test -z "$ac_cv_prog_STRIP"; then 4060 ac_ct_STRIP=$STRIP 4061 # Extract the first word of "strip", so it can be a program name with args. 4062set dummy strip; ac_word=$2 4063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4064printf %s "checking for $ac_word... " >&6; } 4065if test ${ac_cv_prog_ac_ct_STRIP+y} 4066then : 4067 printf %s "(cached) " >&6 4068else $as_nop 4069 if test -n "$ac_ct_STRIP"; then 4070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4071else 4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073for as_dir in $PATH 4074do 4075 IFS=$as_save_IFS 4076 case $as_dir in #((( 4077 '') as_dir=./ ;; 4078 */) ;; 4079 *) as_dir=$as_dir/ ;; 4080 esac 4081 for ac_exec_ext in '' $ac_executable_extensions; do 4082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4083 ac_cv_prog_ac_ct_STRIP="strip" 4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4085 break 2 4086 fi 4087done 4088 done 4089IFS=$as_save_IFS 4090 4091fi 4092fi 4093ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4094if test -n "$ac_ct_STRIP"; then 4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4096printf "%s\n" "$ac_ct_STRIP" >&6; } 4097else 4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4099printf "%s\n" "no" >&6; } 4100fi 4101 4102 if test "x$ac_ct_STRIP" = x; then 4103 STRIP=":" 4104 else 4105 case $cross_compiling:$ac_tool_warned in 4106yes:) 4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4108printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4109ac_tool_warned=yes ;; 4110esac 4111 STRIP=$ac_ct_STRIP 4112 fi 4113else 4114 STRIP="$ac_cv_prog_STRIP" 4115fi 4116 4117fi 4118INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4119 4120 4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4122printf %s "checking for a race-free mkdir -p... " >&6; } 4123if test -z "$MKDIR_P"; then 4124 if test ${ac_cv_path_mkdir+y} 4125then : 4126 printf %s "(cached) " >&6 4127else $as_nop 4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4129for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4130do 4131 IFS=$as_save_IFS 4132 case $as_dir in #((( 4133 '') as_dir=./ ;; 4134 */) ;; 4135 *) as_dir=$as_dir/ ;; 4136 esac 4137 for ac_prog in mkdir gmkdir; do 4138 for ac_exec_ext in '' $ac_executable_extensions; do 4139 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4140 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4141 'mkdir ('*'coreutils) '* | \ 4142 'BusyBox '* | \ 4143 'mkdir (fileutils) '4.1*) 4144 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4145 break 3;; 4146 esac 4147 done 4148 done 4149 done 4150IFS=$as_save_IFS 4151 4152fi 4153 4154 test -d ./--version && rmdir ./--version 4155 if test ${ac_cv_path_mkdir+y}; then 4156 MKDIR_P="$ac_cv_path_mkdir -p" 4157 else 4158 # As a last resort, use the slow shell script. Don't cache a 4159 # value for MKDIR_P within a source directory, because that will 4160 # break other packages using the cache if that directory is 4161 # removed, or if the value is a relative name. 4162 MKDIR_P="$ac_install_sh -d" 4163 fi 4164fi 4165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4166printf "%s\n" "$MKDIR_P" >&6; } 4167 4168for ac_prog in gawk mawk nawk awk 4169do 4170 # Extract the first word of "$ac_prog", so it can be a program name with args. 4171set dummy $ac_prog; ac_word=$2 4172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4173printf %s "checking for $ac_word... " >&6; } 4174if test ${ac_cv_prog_AWK+y} 4175then : 4176 printf %s "(cached) " >&6 4177else $as_nop 4178 if test -n "$AWK"; then 4179 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4180else 4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4182for as_dir in $PATH 4183do 4184 IFS=$as_save_IFS 4185 case $as_dir in #((( 4186 '') as_dir=./ ;; 4187 */) ;; 4188 *) as_dir=$as_dir/ ;; 4189 esac 4190 for ac_exec_ext in '' $ac_executable_extensions; do 4191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4192 ac_cv_prog_AWK="$ac_prog" 4193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4194 break 2 4195 fi 4196done 4197 done 4198IFS=$as_save_IFS 4199 4200fi 4201fi 4202AWK=$ac_cv_prog_AWK 4203if test -n "$AWK"; then 4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4205printf "%s\n" "$AWK" >&6; } 4206else 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208printf "%s\n" "no" >&6; } 4209fi 4210 4211 4212 test -n "$AWK" && break 4213done 4214 4215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4216printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4217set x ${MAKE-make} 4218ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4219if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4220then : 4221 printf %s "(cached) " >&6 4222else $as_nop 4223 cat >conftest.make <<\_ACEOF 4224SHELL = /bin/sh 4225all: 4226 @echo '@@@%%%=$(MAKE)=@@@%%%' 4227_ACEOF 4228# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4229case `${MAKE-make} -f conftest.make 2>/dev/null` in 4230 *@@@%%%=?*=@@@%%%*) 4231 eval ac_cv_prog_make_${ac_make}_set=yes;; 4232 *) 4233 eval ac_cv_prog_make_${ac_make}_set=no;; 4234esac 4235rm -f conftest.make 4236fi 4237if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4239printf "%s\n" "yes" >&6; } 4240 SET_MAKE= 4241else 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4243printf "%s\n" "no" >&6; } 4244 SET_MAKE="MAKE=${MAKE-make}" 4245fi 4246 4247rm -rf .tst 2>/dev/null 4248mkdir .tst 2>/dev/null 4249if test -d .tst; then 4250 am__leading_dot=. 4251else 4252 am__leading_dot=_ 4253fi 4254rmdir .tst 2>/dev/null 4255 4256DEPDIR="${am__leading_dot}deps" 4257 4258ac_config_commands="$ac_config_commands depfiles" 4259 4260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4261printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4262cat > confinc.mk << 'END' 4263am__doit: 4264 @echo this is the am__doit target >confinc.out 4265.PHONY: am__doit 4266END 4267am__include="#" 4268am__quote= 4269# BSD make does it like this. 4270echo '.include "confinc.mk" # ignored' > confmf.BSD 4271# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4272echo 'include confinc.mk # ignored' > confmf.GNU 4273_am_result=no 4274for s in GNU BSD; do 4275 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4276 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4277 ac_status=$? 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); } 4280 case $?:`cat confinc.out 2>/dev/null` in #( 4281 '0:this is the am__doit target') : 4282 case $s in #( 4283 BSD) : 4284 am__include='.include' am__quote='"' ;; #( 4285 *) : 4286 am__include='include' am__quote='' ;; 4287esac ;; #( 4288 *) : 4289 ;; 4290esac 4291 if test "$am__include" != "#"; then 4292 _am_result="yes ($s style)" 4293 break 4294 fi 4295done 4296rm -f confinc.* confmf.* 4297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4298printf "%s\n" "${_am_result}" >&6; } 4299 4300# Check whether --enable-dependency-tracking was given. 4301if test ${enable_dependency_tracking+y} 4302then : 4303 enableval=$enable_dependency_tracking; 4304fi 4305 4306if test "x$enable_dependency_tracking" != xno; then 4307 am_depcomp="$ac_aux_dir/depcomp" 4308 AMDEPBACKSLASH='\' 4309 am__nodep='_no' 4310fi 4311 if test "x$enable_dependency_tracking" != xno; then 4312 AMDEP_TRUE= 4313 AMDEP_FALSE='#' 4314else 4315 AMDEP_TRUE='#' 4316 AMDEP_FALSE= 4317fi 4318 4319 4320# Check whether --enable-silent-rules was given. 4321if test ${enable_silent_rules+y} 4322then : 4323 enableval=$enable_silent_rules; 4324fi 4325 4326case $enable_silent_rules in # ((( 4327 yes) AM_DEFAULT_VERBOSITY=0;; 4328 no) AM_DEFAULT_VERBOSITY=1;; 4329 *) AM_DEFAULT_VERBOSITY=1;; 4330esac 4331am_make=${MAKE-make} 4332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4333printf %s "checking whether $am_make supports nested variables... " >&6; } 4334if test ${am_cv_make_support_nested_variables+y} 4335then : 4336 printf %s "(cached) " >&6 4337else $as_nop 4338 if printf "%s\n" 'TRUE=$(BAR$(V)) 4339BAR0=false 4340BAR1=true 4341V=1 4342am__doit: 4343 @$(TRUE) 4344.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4345 am_cv_make_support_nested_variables=yes 4346else 4347 am_cv_make_support_nested_variables=no 4348fi 4349fi 4350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4351printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4352if test $am_cv_make_support_nested_variables = yes; then 4353 AM_V='$(V)' 4354 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4355else 4356 AM_V=$AM_DEFAULT_VERBOSITY 4357 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4358fi 4359AM_BACKSLASH='\' 4360 4361if test "`cd $srcdir && pwd`" != "`pwd`"; then 4362 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4363 # is not polluted with repeated "-I." 4364 am__isrc=' -I$(srcdir)' 4365 # test to see if srcdir already configured 4366 if test -f $srcdir/config.status; then 4367 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4368 fi 4369fi 4370 4371# test whether we have cygpath 4372if test -z "$CYGPATH_W"; then 4373 if (cygpath --version) >/dev/null 2>/dev/null; then 4374 CYGPATH_W='cygpath -w' 4375 else 4376 CYGPATH_W=echo 4377 fi 4378fi 4379 4380 4381# Define the identity of the package. 4382 PACKAGE='rgb' 4383 VERSION='1.1.0' 4384 4385 4386printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4387 4388 4389printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4390 4391# Some tools Automake needs. 4392 4393ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4394 4395 4396AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4397 4398 4399AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4400 4401 4402AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4403 4404 4405MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4406 4407# For better backward compatibility. To be removed once Automake 1.9.x 4408# dies out for good. For more background, see: 4409# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4410# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4411mkdir_p='$(MKDIR_P)' 4412 4413# We need awk for the "check" target (and possibly the TAP driver). The 4414# system "awk" is bad on some platforms. 4415# Always define AMTAR for backward compatibility. Yes, it's still used 4416# in the wild :-( We should find a proper way to deprecate it ... 4417AMTAR='$${TAR-tar}' 4418 4419 4420# We'll loop over all known methods to create a tar archive until one works. 4421_am_tools='gnutar pax cpio none' 4422 4423am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4424 4425 4426 4427 4428 4429depcc="$CC" am_compiler_list= 4430 4431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4432printf %s "checking dependency style of $depcc... " >&6; } 4433if test ${am_cv_CC_dependencies_compiler_type+y} 4434then : 4435 printf %s "(cached) " >&6 4436else $as_nop 4437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4438 # We make a subdir and do the tests there. Otherwise we can end up 4439 # making bogus files that we don't know about and never remove. For 4440 # instance it was reported that on HP-UX the gcc test will end up 4441 # making a dummy file named 'D' -- because '-MD' means "put the output 4442 # in D". 4443 rm -rf conftest.dir 4444 mkdir conftest.dir 4445 # Copy depcomp to subdir because otherwise we won't find it if we're 4446 # using a relative directory. 4447 cp "$am_depcomp" conftest.dir 4448 cd conftest.dir 4449 # We will build objects and dependencies in a subdirectory because 4450 # it helps to detect inapplicable dependency modes. For instance 4451 # both Tru64's cc and ICC support -MD to output dependencies as a 4452 # side effect of compilation, but ICC will put the dependencies in 4453 # the current directory while Tru64 will put them in the object 4454 # directory. 4455 mkdir sub 4456 4457 am_cv_CC_dependencies_compiler_type=none 4458 if test "$am_compiler_list" = ""; then 4459 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4460 fi 4461 am__universal=false 4462 case " $depcc " in #( 4463 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4464 esac 4465 4466 for depmode in $am_compiler_list; do 4467 # Setup a source with many dependencies, because some compilers 4468 # like to wrap large dependency lists on column 80 (with \), and 4469 # we should not choose a depcomp mode which is confused by this. 4470 # 4471 # We need to recreate these files for each test, as the compiler may 4472 # overwrite some of them when testing with obscure command lines. 4473 # This happens at least with the AIX C compiler. 4474 : > sub/conftest.c 4475 for i in 1 2 3 4 5 6; do 4476 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4477 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4478 # Solaris 10 /bin/sh. 4479 echo '/* dummy */' > sub/conftst$i.h 4480 done 4481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4482 4483 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4484 # mode. It turns out that the SunPro C++ compiler does not properly 4485 # handle '-M -o', and we need to detect this. Also, some Intel 4486 # versions had trouble with output in subdirs. 4487 am__obj=sub/conftest.${OBJEXT-o} 4488 am__minus_obj="-o $am__obj" 4489 case $depmode in 4490 gcc) 4491 # This depmode causes a compiler race in universal mode. 4492 test "$am__universal" = false || continue 4493 ;; 4494 nosideeffect) 4495 # After this tag, mechanisms are not by side-effect, so they'll 4496 # only be used when explicitly requested. 4497 if test "x$enable_dependency_tracking" = xyes; then 4498 continue 4499 else 4500 break 4501 fi 4502 ;; 4503 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4504 # This compiler won't grok '-c -o', but also, the minuso test has 4505 # not run yet. These depmodes are late enough in the game, and 4506 # so weak that their functioning should not be impacted. 4507 am__obj=conftest.${OBJEXT-o} 4508 am__minus_obj= 4509 ;; 4510 none) break ;; 4511 esac 4512 if depmode=$depmode \ 4513 source=sub/conftest.c object=$am__obj \ 4514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4515 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4516 >/dev/null 2>conftest.err && 4517 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4519 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4521 # icc doesn't choke on unknown options, it will just issue warnings 4522 # or remarks (even with -Werror). So we grep stderr for any message 4523 # that says an option was ignored or not supported. 4524 # When given -MP, icc 7.0 and 7.1 complain thusly: 4525 # icc: Command line warning: ignoring option '-M'; no argument required 4526 # The diagnosis changed in icc 8.0: 4527 # icc: Command line remark: option '-MP' not supported 4528 if (grep 'ignoring option' conftest.err || 4529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4530 am_cv_CC_dependencies_compiler_type=$depmode 4531 break 4532 fi 4533 fi 4534 done 4535 4536 cd .. 4537 rm -rf conftest.dir 4538else 4539 am_cv_CC_dependencies_compiler_type=none 4540fi 4541 4542fi 4543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4544printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4545CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4546 4547 if 4548 test "x$enable_dependency_tracking" != xno \ 4549 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4550 am__fastdepCC_TRUE= 4551 am__fastdepCC_FALSE='#' 4552else 4553 am__fastdepCC_TRUE='#' 4554 am__fastdepCC_FALSE= 4555fi 4556 4557 4558# Variables for tags utilities; see am/tags.am 4559if test -z "$CTAGS"; then 4560 CTAGS=ctags 4561fi 4562 4563if test -z "$ETAGS"; then 4564 ETAGS=etags 4565fi 4566 4567if test -z "$CSCOPE"; then 4568 CSCOPE=cscope 4569fi 4570 4571 4572 4573# POSIX will say in a future version that running "rm -f" with no argument 4574# is OK; and we want to be able to make that assumption in our Makefile 4575# recipes. So use an aggressive probe to check that the usage we want is 4576# actually supported "in the wild" to an acceptable degree. 4577# See automake bug#10828. 4578# To make any issue more visible, cause the running configure to be aborted 4579# by default if the 'rm' program in use doesn't match our expectations; the 4580# user can still override this though. 4581if rm -f && rm -fr && rm -rf; then : OK; else 4582 cat >&2 <<'END' 4583Oops! 4584 4585Your 'rm' program seems unable to run without file operands specified 4586on the command line, even when the '-f' option is present. This is contrary 4587to the behaviour of most rm programs out there, and not conforming with 4588the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4589 4590Please tell bug-automake@gnu.org about your system, including the value 4591of your $PATH and any error possibly output before this message. This 4592can help us improve future automake versions. 4593 4594END 4595 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4596 echo 'Configuration will proceed anyway, since you have set the' >&2 4597 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4598 echo >&2 4599 else 4600 cat >&2 <<'END' 4601Aborting the configuration process, to ensure you take notice of the issue. 4602 4603You can download and install GNU coreutils to get an 'rm' implementation 4604that behaves properly: <https://www.gnu.org/software/coreutils/>. 4605 4606If you want to complete the configuration process using your problematic 4607'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4608to "yes", and re-run configure. 4609 4610END 4611 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4612 fi 4613fi 4614 4615 4616# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4630printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4631if test ${ac_cv_c_undeclared_builtin_options+y} 4632then : 4633 printf %s "(cached) " >&6 4634else $as_nop 4635 ac_save_CFLAGS=$CFLAGS 4636 ac_cv_c_undeclared_builtin_options='cannot detect' 4637 for ac_arg in '' -fno-builtin; do 4638 CFLAGS="$ac_save_CFLAGS $ac_arg" 4639 # This test program should *not* compile successfully. 4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641/* end confdefs.h. */ 4642 4643int 4644main (void) 4645{ 4646(void) strchr; 4647 ; 4648 return 0; 4649} 4650_ACEOF 4651if ac_fn_c_try_compile "$LINENO" 4652then : 4653 4654else $as_nop 4655 # This test program should compile successfully. 4656 # No library function is consistently available on 4657 # freestanding implementations, so test against a dummy 4658 # declaration. Include always-available headers on the 4659 # off chance that they somehow elicit warnings. 4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661/* end confdefs.h. */ 4662#include <float.h> 4663#include <limits.h> 4664#include <stdarg.h> 4665#include <stddef.h> 4666extern void ac_decl (int, char *); 4667 4668int 4669main (void) 4670{ 4671(void) ac_decl (0, (char *) 0); 4672 (void) ac_decl; 4673 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678if ac_fn_c_try_compile "$LINENO" 4679then : 4680 if test x"$ac_arg" = x 4681then : 4682 ac_cv_c_undeclared_builtin_options='none needed' 4683else $as_nop 4684 ac_cv_c_undeclared_builtin_options=$ac_arg 4685fi 4686 break 4687fi 4688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4689fi 4690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4691 done 4692 CFLAGS=$ac_save_CFLAGS 4693 4694fi 4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4696printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4697 case $ac_cv_c_undeclared_builtin_options in #( 4698 'cannot detect') : 4699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4700printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4701as_fn_error $? "cannot make $CC report undeclared builtins 4702See \`config.log' for more details" "$LINENO" 5; } ;; #( 4703 'none needed') : 4704 ac_c_undeclared_builtin_options='' ;; #( 4705 *) : 4706 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4707esac 4708 4709 4710 4711 4712 4713ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4714if test "x$ac_cv_have_decl___clang__" = xyes 4715then : 4716 CLANGCC="yes" 4717else $as_nop 4718 CLANGCC="no" 4719fi 4720ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4721if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4722then : 4723 INTELCC="yes" 4724else $as_nop 4725 INTELCC="no" 4726fi 4727ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4728if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4729then : 4730 SUNCC="yes" 4731else $as_nop 4732 SUNCC="no" 4733fi 4734 4735 4736 4737 4738 4739 4740 4741 4742if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4743 if test -n "$ac_tool_prefix"; then 4744 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4745set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4747printf %s "checking for $ac_word... " >&6; } 4748if test ${ac_cv_path_PKG_CONFIG+y} 4749then : 4750 printf %s "(cached) " >&6 4751else $as_nop 4752 case $PKG_CONFIG in 4753 [\\/]* | ?:[\\/]*) 4754 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4755 ;; 4756 *) 4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4758for as_dir in $PATH 4759do 4760 IFS=$as_save_IFS 4761 case $as_dir in #((( 4762 '') as_dir=./ ;; 4763 */) ;; 4764 *) as_dir=$as_dir/ ;; 4765 esac 4766 for ac_exec_ext in '' $ac_executable_extensions; do 4767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4768 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4770 break 2 4771 fi 4772done 4773 done 4774IFS=$as_save_IFS 4775 4776 ;; 4777esac 4778fi 4779PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4780if test -n "$PKG_CONFIG"; then 4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4782printf "%s\n" "$PKG_CONFIG" >&6; } 4783else 4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4785printf "%s\n" "no" >&6; } 4786fi 4787 4788 4789fi 4790if test -z "$ac_cv_path_PKG_CONFIG"; then 4791 ac_pt_PKG_CONFIG=$PKG_CONFIG 4792 # Extract the first word of "pkg-config", so it can be a program name with args. 4793set dummy pkg-config; ac_word=$2 4794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4795printf %s "checking for $ac_word... " >&6; } 4796if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4797then : 4798 printf %s "(cached) " >&6 4799else $as_nop 4800 case $ac_pt_PKG_CONFIG in 4801 [\\/]* | ?:[\\/]*) 4802 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4803 ;; 4804 *) 4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4806for as_dir in $PATH 4807do 4808 IFS=$as_save_IFS 4809 case $as_dir in #((( 4810 '') as_dir=./ ;; 4811 */) ;; 4812 *) as_dir=$as_dir/ ;; 4813 esac 4814 for ac_exec_ext in '' $ac_executable_extensions; do 4815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4816 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4818 break 2 4819 fi 4820done 4821 done 4822IFS=$as_save_IFS 4823 4824 ;; 4825esac 4826fi 4827ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4828if test -n "$ac_pt_PKG_CONFIG"; then 4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4830printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4831else 4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4833printf "%s\n" "no" >&6; } 4834fi 4835 4836 if test "x$ac_pt_PKG_CONFIG" = x; then 4837 PKG_CONFIG="" 4838 else 4839 case $cross_compiling:$ac_tool_warned in 4840yes:) 4841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4842printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4843ac_tool_warned=yes ;; 4844esac 4845 PKG_CONFIG=$ac_pt_PKG_CONFIG 4846 fi 4847else 4848 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4849fi 4850 4851fi 4852if test -n "$PKG_CONFIG"; then 4853 _pkg_min_version=0.9.0 4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4855printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4856 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4858printf "%s\n" "yes" >&6; } 4859 else 4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4861printf "%s\n" "no" >&6; } 4862 PKG_CONFIG="" 4863 fi 4864fi 4865 4866 4867 # Make sure we can run config.sub. 4868$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4869 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4870 4871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4872printf %s "checking build system type... " >&6; } 4873if test ${ac_cv_build+y} 4874then : 4875 printf %s "(cached) " >&6 4876else $as_nop 4877 ac_build_alias=$build_alias 4878test "x$ac_build_alias" = x && 4879 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4880test "x$ac_build_alias" = x && 4881 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4882ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4883 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4884 4885fi 4886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4887printf "%s\n" "$ac_cv_build" >&6; } 4888case $ac_cv_build in 4889*-*-*) ;; 4890*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4891esac 4892build=$ac_cv_build 4893ac_save_IFS=$IFS; IFS='-' 4894set x $ac_cv_build 4895shift 4896build_cpu=$1 4897build_vendor=$2 4898shift; shift 4899# Remember, the first character of IFS is used to create $*, 4900# except with old shells: 4901build_os=$* 4902IFS=$ac_save_IFS 4903case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4904 4905 4906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4907printf %s "checking host system type... " >&6; } 4908if test ${ac_cv_host+y} 4909then : 4910 printf %s "(cached) " >&6 4911else $as_nop 4912 if test "x$host_alias" = x; then 4913 ac_cv_host=$ac_cv_build 4914else 4915 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4916 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4917fi 4918 4919fi 4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4921printf "%s\n" "$ac_cv_host" >&6; } 4922case $ac_cv_host in 4923*-*-*) ;; 4924*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4925esac 4926host=$ac_cv_host 4927ac_save_IFS=$IFS; IFS='-' 4928set x $ac_cv_host 4929shift 4930host_cpu=$1 4931host_vendor=$2 4932shift; shift 4933# Remember, the first character of IFS is used to create $*, 4934# except with old shells: 4935host_os=$* 4936IFS=$ac_save_IFS 4937case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4938 4939 4940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4941printf %s "checking for a sed that does not truncate output... " >&6; } 4942if test ${ac_cv_path_SED+y} 4943then : 4944 printf %s "(cached) " >&6 4945else $as_nop 4946 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4947 for ac_i in 1 2 3 4 5 6 7; do 4948 ac_script="$ac_script$as_nl$ac_script" 4949 done 4950 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4951 { ac_script=; unset ac_script;} 4952 if test -z "$SED"; then 4953 ac_path_SED_found=false 4954 # Loop through the user's path and test for each of PROGNAME-LIST 4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4956for as_dir in $PATH 4957do 4958 IFS=$as_save_IFS 4959 case $as_dir in #((( 4960 '') as_dir=./ ;; 4961 */) ;; 4962 *) as_dir=$as_dir/ ;; 4963 esac 4964 for ac_prog in sed gsed 4965 do 4966 for ac_exec_ext in '' $ac_executable_extensions; do 4967 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4968 as_fn_executable_p "$ac_path_SED" || continue 4969# Check for GNU ac_path_SED and select it if it is found. 4970 # Check for GNU $ac_path_SED 4971case `"$ac_path_SED" --version 2>&1` in 4972*GNU*) 4973 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4974*) 4975 ac_count=0 4976 printf %s 0123456789 >"conftest.in" 4977 while : 4978 do 4979 cat "conftest.in" "conftest.in" >"conftest.tmp" 4980 mv "conftest.tmp" "conftest.in" 4981 cp "conftest.in" "conftest.nl" 4982 printf "%s\n" '' >> "conftest.nl" 4983 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4985 as_fn_arith $ac_count + 1 && ac_count=$as_val 4986 if test $ac_count -gt ${ac_path_SED_max-0}; then 4987 # Best one so far, save it but keep looking for a better one 4988 ac_cv_path_SED="$ac_path_SED" 4989 ac_path_SED_max=$ac_count 4990 fi 4991 # 10*(2^10) chars as input seems more than enough 4992 test $ac_count -gt 10 && break 4993 done 4994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4995esac 4996 4997 $ac_path_SED_found && break 3 4998 done 4999 done 5000 done 5001IFS=$as_save_IFS 5002 if test -z "$ac_cv_path_SED"; then 5003 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5004 fi 5005else 5006 ac_cv_path_SED=$SED 5007fi 5008 5009fi 5010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5011printf "%s\n" "$ac_cv_path_SED" >&6; } 5012 SED="$ac_cv_path_SED" 5013 rm -f conftest.sed 5014 5015 5016 5017 5018 5019 5020# Check whether --enable-selective-werror was given. 5021if test ${enable_selective_werror+y} 5022then : 5023 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5024else $as_nop 5025 SELECTIVE_WERROR=yes 5026fi 5027 5028 5029 5030 5031 5032# -v is too short to test reliably with XORG_TESTSET_CFLAG 5033if test "x$SUNCC" = "xyes"; then 5034 BASE_CFLAGS="-v" 5035else 5036 BASE_CFLAGS="" 5037fi 5038 5039# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053xorg_testset_save_CFLAGS="$CFLAGS" 5054 5055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5058printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5059if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5060then : 5061 printf %s "(cached) " >&6 5062else $as_nop 5063 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_unknown_warning_option=yes 5070else $as_nop 5071 xorg_cv_cc_flag_unknown_warning_option=no 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5074fi 5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5076printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5078 CFLAGS="$xorg_testset_save_CFLAGS" 5079fi 5080 5081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5084 fi 5085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5087printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5088if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5089then : 5090 printf %s "(cached) " >&6 5091else $as_nop 5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5093/* end confdefs.h. */ 5094int i; 5095_ACEOF 5096if ac_fn_c_try_compile "$LINENO" 5097then : 5098 xorg_cv_cc_flag_unused_command_line_argument=yes 5099else $as_nop 5100 xorg_cv_cc_flag_unused_command_line_argument=no 5101fi 5102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5103fi 5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5105printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5107 CFLAGS="$xorg_testset_save_CFLAGS" 5108fi 5109 5110found="no" 5111 5112 if test $found = "no" ; then 5113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5115 fi 5116 5117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5119 fi 5120 5121 CFLAGS="$CFLAGS -Wall" 5122 5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5124printf %s "checking if $CC supports -Wall... " >&6; } 5125 cacheid=xorg_cv_cc_flag__Wall 5126 if eval test \${$cacheid+y} 5127then : 5128 printf %s "(cached) " >&6 5129else $as_nop 5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132int i; 5133int 5134main (void) 5135{ 5136 5137 ; 5138 return 0; 5139} 5140_ACEOF 5141if ac_fn_c_try_link "$LINENO" 5142then : 5143 eval $cacheid=yes 5144else $as_nop 5145 eval $cacheid=no 5146fi 5147rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5148 conftest$ac_exeext conftest.$ac_ext 5149fi 5150 5151 5152 CFLAGS="$xorg_testset_save_CFLAGS" 5153 5154 eval supported=\$$cacheid 5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5156printf "%s\n" "$supported" >&6; } 5157 if test "$supported" = "yes" ; then 5158 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5159 found="yes" 5160 fi 5161 fi 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177xorg_testset_save_CFLAGS="$CFLAGS" 5178 5179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5182printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5183if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5184then : 5185 printf %s "(cached) " >&6 5186else $as_nop 5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188/* end confdefs.h. */ 5189int i; 5190_ACEOF 5191if ac_fn_c_try_compile "$LINENO" 5192then : 5193 xorg_cv_cc_flag_unknown_warning_option=yes 5194else $as_nop 5195 xorg_cv_cc_flag_unknown_warning_option=no 5196fi 5197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5198fi 5199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5202 CFLAGS="$xorg_testset_save_CFLAGS" 5203fi 5204 5205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5208 fi 5209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5212if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5213then : 5214 printf %s "(cached) " >&6 5215else $as_nop 5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5217/* end confdefs.h. */ 5218int i; 5219_ACEOF 5220if ac_fn_c_try_compile "$LINENO" 5221then : 5222 xorg_cv_cc_flag_unused_command_line_argument=yes 5223else $as_nop 5224 xorg_cv_cc_flag_unused_command_line_argument=no 5225fi 5226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5227fi 5228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5229printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5231 CFLAGS="$xorg_testset_save_CFLAGS" 5232fi 5233 5234found="no" 5235 5236 if test $found = "no" ; then 5237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5239 fi 5240 5241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5243 fi 5244 5245 CFLAGS="$CFLAGS -Wpointer-arith" 5246 5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5248printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5249 cacheid=xorg_cv_cc_flag__Wpointer_arith 5250 if eval test \${$cacheid+y} 5251then : 5252 printf %s "(cached) " >&6 5253else $as_nop 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256int i; 5257int 5258main (void) 5259{ 5260 5261 ; 5262 return 0; 5263} 5264_ACEOF 5265if ac_fn_c_try_link "$LINENO" 5266then : 5267 eval $cacheid=yes 5268else $as_nop 5269 eval $cacheid=no 5270fi 5271rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5272 conftest$ac_exeext conftest.$ac_ext 5273fi 5274 5275 5276 CFLAGS="$xorg_testset_save_CFLAGS" 5277 5278 eval supported=\$$cacheid 5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5280printf "%s\n" "$supported" >&6; } 5281 if test "$supported" = "yes" ; then 5282 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5283 found="yes" 5284 fi 5285 fi 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301xorg_testset_save_CFLAGS="$CFLAGS" 5302 5303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5306printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5307if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5308then : 5309 printf %s "(cached) " >&6 5310else $as_nop 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313int i; 5314_ACEOF 5315if ac_fn_c_try_compile "$LINENO" 5316then : 5317 xorg_cv_cc_flag_unknown_warning_option=yes 5318else $as_nop 5319 xorg_cv_cc_flag_unknown_warning_option=no 5320fi 5321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5322fi 5323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5324printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5326 CFLAGS="$xorg_testset_save_CFLAGS" 5327fi 5328 5329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5332 fi 5333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5335printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5336if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5337then : 5338 printf %s "(cached) " >&6 5339else $as_nop 5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5341/* end confdefs.h. */ 5342int i; 5343_ACEOF 5344if ac_fn_c_try_compile "$LINENO" 5345then : 5346 xorg_cv_cc_flag_unused_command_line_argument=yes 5347else $as_nop 5348 xorg_cv_cc_flag_unused_command_line_argument=no 5349fi 5350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5351fi 5352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5353printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5355 CFLAGS="$xorg_testset_save_CFLAGS" 5356fi 5357 5358found="no" 5359 5360 if test $found = "no" ; then 5361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5363 fi 5364 5365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5367 fi 5368 5369 CFLAGS="$CFLAGS -Wmissing-declarations" 5370 5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5372printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5373 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5374 if eval test \${$cacheid+y} 5375then : 5376 printf %s "(cached) " >&6 5377else $as_nop 5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5379/* end confdefs.h. */ 5380int i; 5381int 5382main (void) 5383{ 5384 5385 ; 5386 return 0; 5387} 5388_ACEOF 5389if ac_fn_c_try_link "$LINENO" 5390then : 5391 eval $cacheid=yes 5392else $as_nop 5393 eval $cacheid=no 5394fi 5395rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5396 conftest$ac_exeext conftest.$ac_ext 5397fi 5398 5399 5400 CFLAGS="$xorg_testset_save_CFLAGS" 5401 5402 eval supported=\$$cacheid 5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5404printf "%s\n" "$supported" >&6; } 5405 if test "$supported" = "yes" ; then 5406 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5407 found="yes" 5408 fi 5409 fi 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425xorg_testset_save_CFLAGS="$CFLAGS" 5426 5427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5430printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5431if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5432then : 5433 printf %s "(cached) " >&6 5434else $as_nop 5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5436/* end confdefs.h. */ 5437int i; 5438_ACEOF 5439if ac_fn_c_try_compile "$LINENO" 5440then : 5441 xorg_cv_cc_flag_unknown_warning_option=yes 5442else $as_nop 5443 xorg_cv_cc_flag_unknown_warning_option=no 5444fi 5445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5446fi 5447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5448printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5450 CFLAGS="$xorg_testset_save_CFLAGS" 5451fi 5452 5453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5456 fi 5457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5459printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5460if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5461then : 5462 printf %s "(cached) " >&6 5463else $as_nop 5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5465/* end confdefs.h. */ 5466int i; 5467_ACEOF 5468if ac_fn_c_try_compile "$LINENO" 5469then : 5470 xorg_cv_cc_flag_unused_command_line_argument=yes 5471else $as_nop 5472 xorg_cv_cc_flag_unused_command_line_argument=no 5473fi 5474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5475fi 5476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5477printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5479 CFLAGS="$xorg_testset_save_CFLAGS" 5480fi 5481 5482found="no" 5483 5484 if test $found = "no" ; then 5485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5487 fi 5488 5489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5491 fi 5492 5493 CFLAGS="$CFLAGS -Wformat=2" 5494 5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5496printf %s "checking if $CC supports -Wformat=2... " >&6; } 5497 cacheid=xorg_cv_cc_flag__Wformat_2 5498 if eval test \${$cacheid+y} 5499then : 5500 printf %s "(cached) " >&6 5501else $as_nop 5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5503/* end confdefs.h. */ 5504int i; 5505int 5506main (void) 5507{ 5508 5509 ; 5510 return 0; 5511} 5512_ACEOF 5513if ac_fn_c_try_link "$LINENO" 5514then : 5515 eval $cacheid=yes 5516else $as_nop 5517 eval $cacheid=no 5518fi 5519rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5520 conftest$ac_exeext conftest.$ac_ext 5521fi 5522 5523 5524 CFLAGS="$xorg_testset_save_CFLAGS" 5525 5526 eval supported=\$$cacheid 5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5528printf "%s\n" "$supported" >&6; } 5529 if test "$supported" = "yes" ; then 5530 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5531 found="yes" 5532 fi 5533 fi 5534 5535 if test $found = "no" ; then 5536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5538 fi 5539 5540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5542 fi 5543 5544 CFLAGS="$CFLAGS -Wformat" 5545 5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5547printf %s "checking if $CC supports -Wformat... " >&6; } 5548 cacheid=xorg_cv_cc_flag__Wformat 5549 if eval test \${$cacheid+y} 5550then : 5551 printf %s "(cached) " >&6 5552else $as_nop 5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5554/* end confdefs.h. */ 5555int i; 5556int 5557main (void) 5558{ 5559 5560 ; 5561 return 0; 5562} 5563_ACEOF 5564if ac_fn_c_try_link "$LINENO" 5565then : 5566 eval $cacheid=yes 5567else $as_nop 5568 eval $cacheid=no 5569fi 5570rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5571 conftest$ac_exeext conftest.$ac_ext 5572fi 5573 5574 5575 CFLAGS="$xorg_testset_save_CFLAGS" 5576 5577 eval supported=\$$cacheid 5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5579printf "%s\n" "$supported" >&6; } 5580 if test "$supported" = "yes" ; then 5581 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5582 found="yes" 5583 fi 5584 fi 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602xorg_testset_save_CFLAGS="$CFLAGS" 5603 5604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5607printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5608if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5609then : 5610 printf %s "(cached) " >&6 5611else $as_nop 5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5613/* end confdefs.h. */ 5614int i; 5615_ACEOF 5616if ac_fn_c_try_compile "$LINENO" 5617then : 5618 xorg_cv_cc_flag_unknown_warning_option=yes 5619else $as_nop 5620 xorg_cv_cc_flag_unknown_warning_option=no 5621fi 5622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5623fi 5624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5627 CFLAGS="$xorg_testset_save_CFLAGS" 5628fi 5629 5630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5633 fi 5634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5637if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5638then : 5639 printf %s "(cached) " >&6 5640else $as_nop 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643int i; 5644_ACEOF 5645if ac_fn_c_try_compile "$LINENO" 5646then : 5647 xorg_cv_cc_flag_unused_command_line_argument=yes 5648else $as_nop 5649 xorg_cv_cc_flag_unused_command_line_argument=no 5650fi 5651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5652fi 5653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5656 CFLAGS="$xorg_testset_save_CFLAGS" 5657fi 5658 5659found="no" 5660 5661 if test $found = "no" ; then 5662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5664 fi 5665 5666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5668 fi 5669 5670 CFLAGS="$CFLAGS -Wstrict-prototypes" 5671 5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5673printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5674 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5675 if eval test \${$cacheid+y} 5676then : 5677 printf %s "(cached) " >&6 5678else $as_nop 5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5680/* end confdefs.h. */ 5681int i; 5682int 5683main (void) 5684{ 5685 5686 ; 5687 return 0; 5688} 5689_ACEOF 5690if ac_fn_c_try_link "$LINENO" 5691then : 5692 eval $cacheid=yes 5693else $as_nop 5694 eval $cacheid=no 5695fi 5696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5697 conftest$ac_exeext conftest.$ac_ext 5698fi 5699 5700 5701 CFLAGS="$xorg_testset_save_CFLAGS" 5702 5703 eval supported=\$$cacheid 5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5705printf "%s\n" "$supported" >&6; } 5706 if test "$supported" = "yes" ; then 5707 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5708 found="yes" 5709 fi 5710 fi 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726xorg_testset_save_CFLAGS="$CFLAGS" 5727 5728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5731printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5732if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5733then : 5734 printf %s "(cached) " >&6 5735else $as_nop 5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737/* end confdefs.h. */ 5738int i; 5739_ACEOF 5740if ac_fn_c_try_compile "$LINENO" 5741then : 5742 xorg_cv_cc_flag_unknown_warning_option=yes 5743else $as_nop 5744 xorg_cv_cc_flag_unknown_warning_option=no 5745fi 5746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5747fi 5748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5749printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5751 CFLAGS="$xorg_testset_save_CFLAGS" 5752fi 5753 5754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5757 fi 5758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5760printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5761if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5762then : 5763 printf %s "(cached) " >&6 5764else $as_nop 5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766/* end confdefs.h. */ 5767int i; 5768_ACEOF 5769if ac_fn_c_try_compile "$LINENO" 5770then : 5771 xorg_cv_cc_flag_unused_command_line_argument=yes 5772else $as_nop 5773 xorg_cv_cc_flag_unused_command_line_argument=no 5774fi 5775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5776fi 5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5778printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5780 CFLAGS="$xorg_testset_save_CFLAGS" 5781fi 5782 5783found="no" 5784 5785 if test $found = "no" ; then 5786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5788 fi 5789 5790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5792 fi 5793 5794 CFLAGS="$CFLAGS -Wmissing-prototypes" 5795 5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5797printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5798 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5799 if eval test \${$cacheid+y} 5800then : 5801 printf %s "(cached) " >&6 5802else $as_nop 5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5804/* end confdefs.h. */ 5805int i; 5806int 5807main (void) 5808{ 5809 5810 ; 5811 return 0; 5812} 5813_ACEOF 5814if ac_fn_c_try_link "$LINENO" 5815then : 5816 eval $cacheid=yes 5817else $as_nop 5818 eval $cacheid=no 5819fi 5820rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5821 conftest$ac_exeext conftest.$ac_ext 5822fi 5823 5824 5825 CFLAGS="$xorg_testset_save_CFLAGS" 5826 5827 eval supported=\$$cacheid 5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5829printf "%s\n" "$supported" >&6; } 5830 if test "$supported" = "yes" ; then 5831 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5832 found="yes" 5833 fi 5834 fi 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850xorg_testset_save_CFLAGS="$CFLAGS" 5851 5852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5855printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5856if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5857then : 5858 printf %s "(cached) " >&6 5859else $as_nop 5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5861/* end confdefs.h. */ 5862int i; 5863_ACEOF 5864if ac_fn_c_try_compile "$LINENO" 5865then : 5866 xorg_cv_cc_flag_unknown_warning_option=yes 5867else $as_nop 5868 xorg_cv_cc_flag_unknown_warning_option=no 5869fi 5870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5871fi 5872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5875 CFLAGS="$xorg_testset_save_CFLAGS" 5876fi 5877 5878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5881 fi 5882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5885if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5886then : 5887 printf %s "(cached) " >&6 5888else $as_nop 5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5890/* end confdefs.h. */ 5891int i; 5892_ACEOF 5893if ac_fn_c_try_compile "$LINENO" 5894then : 5895 xorg_cv_cc_flag_unused_command_line_argument=yes 5896else $as_nop 5897 xorg_cv_cc_flag_unused_command_line_argument=no 5898fi 5899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5900fi 5901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5902printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5904 CFLAGS="$xorg_testset_save_CFLAGS" 5905fi 5906 5907found="no" 5908 5909 if test $found = "no" ; then 5910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5912 fi 5913 5914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5916 fi 5917 5918 CFLAGS="$CFLAGS -Wnested-externs" 5919 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5921printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5922 cacheid=xorg_cv_cc_flag__Wnested_externs 5923 if eval test \${$cacheid+y} 5924then : 5925 printf %s "(cached) " >&6 5926else $as_nop 5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929int i; 5930int 5931main (void) 5932{ 5933 5934 ; 5935 return 0; 5936} 5937_ACEOF 5938if ac_fn_c_try_link "$LINENO" 5939then : 5940 eval $cacheid=yes 5941else $as_nop 5942 eval $cacheid=no 5943fi 5944rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5945 conftest$ac_exeext conftest.$ac_ext 5946fi 5947 5948 5949 CFLAGS="$xorg_testset_save_CFLAGS" 5950 5951 eval supported=\$$cacheid 5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5953printf "%s\n" "$supported" >&6; } 5954 if test "$supported" = "yes" ; then 5955 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5956 found="yes" 5957 fi 5958 fi 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974xorg_testset_save_CFLAGS="$CFLAGS" 5975 5976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5980if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5981then : 5982 printf %s "(cached) " >&6 5983else $as_nop 5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5985/* end confdefs.h. */ 5986int i; 5987_ACEOF 5988if ac_fn_c_try_compile "$LINENO" 5989then : 5990 xorg_cv_cc_flag_unknown_warning_option=yes 5991else $as_nop 5992 xorg_cv_cc_flag_unknown_warning_option=no 5993fi 5994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5995fi 5996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5999 CFLAGS="$xorg_testset_save_CFLAGS" 6000fi 6001 6002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6005 fi 6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6009if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6010then : 6011 printf %s "(cached) " >&6 6012else $as_nop 6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6014/* end confdefs.h. */ 6015int i; 6016_ACEOF 6017if ac_fn_c_try_compile "$LINENO" 6018then : 6019 xorg_cv_cc_flag_unused_command_line_argument=yes 6020else $as_nop 6021 xorg_cv_cc_flag_unused_command_line_argument=no 6022fi 6023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6024fi 6025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6028 CFLAGS="$xorg_testset_save_CFLAGS" 6029fi 6030 6031found="no" 6032 6033 if test $found = "no" ; then 6034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6036 fi 6037 6038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6040 fi 6041 6042 CFLAGS="$CFLAGS -Wbad-function-cast" 6043 6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6045printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6046 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6047 if eval test \${$cacheid+y} 6048then : 6049 printf %s "(cached) " >&6 6050else $as_nop 6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6052/* end confdefs.h. */ 6053int i; 6054int 6055main (void) 6056{ 6057 6058 ; 6059 return 0; 6060} 6061_ACEOF 6062if ac_fn_c_try_link "$LINENO" 6063then : 6064 eval $cacheid=yes 6065else $as_nop 6066 eval $cacheid=no 6067fi 6068rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6069 conftest$ac_exeext conftest.$ac_ext 6070fi 6071 6072 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074 6075 eval supported=\$$cacheid 6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6077printf "%s\n" "$supported" >&6; } 6078 if test "$supported" = "yes" ; then 6079 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6080 found="yes" 6081 fi 6082 fi 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098xorg_testset_save_CFLAGS="$CFLAGS" 6099 6100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6104if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6105then : 6106 printf %s "(cached) " >&6 6107else $as_nop 6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6109/* end confdefs.h. */ 6110int i; 6111_ACEOF 6112if ac_fn_c_try_compile "$LINENO" 6113then : 6114 xorg_cv_cc_flag_unknown_warning_option=yes 6115else $as_nop 6116 xorg_cv_cc_flag_unknown_warning_option=no 6117fi 6118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6119fi 6120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6123 CFLAGS="$xorg_testset_save_CFLAGS" 6124fi 6125 6126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6129 fi 6130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6133if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6134then : 6135 printf %s "(cached) " >&6 6136else $as_nop 6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138/* end confdefs.h. */ 6139int i; 6140_ACEOF 6141if ac_fn_c_try_compile "$LINENO" 6142then : 6143 xorg_cv_cc_flag_unused_command_line_argument=yes 6144else $as_nop 6145 xorg_cv_cc_flag_unused_command_line_argument=no 6146fi 6147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6148fi 6149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6152 CFLAGS="$xorg_testset_save_CFLAGS" 6153fi 6154 6155found="no" 6156 6157 if test $found = "no" ; then 6158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6160 fi 6161 6162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6164 fi 6165 6166 CFLAGS="$CFLAGS -Wold-style-definition" 6167 6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6169printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6170 cacheid=xorg_cv_cc_flag__Wold_style_definition 6171 if eval test \${$cacheid+y} 6172then : 6173 printf %s "(cached) " >&6 6174else $as_nop 6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6176/* end confdefs.h. */ 6177int i; 6178int 6179main (void) 6180{ 6181 6182 ; 6183 return 0; 6184} 6185_ACEOF 6186if ac_fn_c_try_link "$LINENO" 6187then : 6188 eval $cacheid=yes 6189else $as_nop 6190 eval $cacheid=no 6191fi 6192rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6193 conftest$ac_exeext conftest.$ac_ext 6194fi 6195 6196 6197 CFLAGS="$xorg_testset_save_CFLAGS" 6198 6199 eval supported=\$$cacheid 6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6201printf "%s\n" "$supported" >&6; } 6202 if test "$supported" = "yes" ; then 6203 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6204 found="yes" 6205 fi 6206 fi 6207 6208 if test $found = "no" ; then 6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6211 fi 6212 6213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6215 fi 6216 6217 CFLAGS="$CFLAGS -fd" 6218 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6220printf %s "checking if $CC supports -fd... " >&6; } 6221 cacheid=xorg_cv_cc_flag__fd 6222 if eval test \${$cacheid+y} 6223then : 6224 printf %s "(cached) " >&6 6225else $as_nop 6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227/* end confdefs.h. */ 6228int i; 6229int 6230main (void) 6231{ 6232 6233 ; 6234 return 0; 6235} 6236_ACEOF 6237if ac_fn_c_try_link "$LINENO" 6238then : 6239 eval $cacheid=yes 6240else $as_nop 6241 eval $cacheid=no 6242fi 6243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6244 conftest$ac_exeext conftest.$ac_ext 6245fi 6246 6247 6248 CFLAGS="$xorg_testset_save_CFLAGS" 6249 6250 eval supported=\$$cacheid 6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6252printf "%s\n" "$supported" >&6; } 6253 if test "$supported" = "yes" ; then 6254 BASE_CFLAGS="$BASE_CFLAGS -fd" 6255 found="yes" 6256 fi 6257 fi 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273xorg_testset_save_CFLAGS="$CFLAGS" 6274 6275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6279if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6280then : 6281 printf %s "(cached) " >&6 6282else $as_nop 6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285int i; 6286_ACEOF 6287if ac_fn_c_try_compile "$LINENO" 6288then : 6289 xorg_cv_cc_flag_unknown_warning_option=yes 6290else $as_nop 6291 xorg_cv_cc_flag_unknown_warning_option=no 6292fi 6293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6294fi 6295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6298 CFLAGS="$xorg_testset_save_CFLAGS" 6299fi 6300 6301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6304 fi 6305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6308if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6309then : 6310 printf %s "(cached) " >&6 6311else $as_nop 6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6313/* end confdefs.h. */ 6314int i; 6315_ACEOF 6316if ac_fn_c_try_compile "$LINENO" 6317then : 6318 xorg_cv_cc_flag_unused_command_line_argument=yes 6319else $as_nop 6320 xorg_cv_cc_flag_unused_command_line_argument=no 6321fi 6322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6323fi 6324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6327 CFLAGS="$xorg_testset_save_CFLAGS" 6328fi 6329 6330found="no" 6331 6332 if test $found = "no" ; then 6333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6335 fi 6336 6337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6339 fi 6340 6341 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6342 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6344printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6345 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6346 if eval test \${$cacheid+y} 6347then : 6348 printf %s "(cached) " >&6 6349else $as_nop 6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6351/* end confdefs.h. */ 6352int i; 6353int 6354main (void) 6355{ 6356 6357 ; 6358 return 0; 6359} 6360_ACEOF 6361if ac_fn_c_try_link "$LINENO" 6362then : 6363 eval $cacheid=yes 6364else $as_nop 6365 eval $cacheid=no 6366fi 6367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6368 conftest$ac_exeext conftest.$ac_ext 6369fi 6370 6371 6372 CFLAGS="$xorg_testset_save_CFLAGS" 6373 6374 eval supported=\$$cacheid 6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6376printf "%s\n" "$supported" >&6; } 6377 if test "$supported" = "yes" ; then 6378 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6379 found="yes" 6380 fi 6381 fi 6382 6383 6384 6385 6386 6387# This chunk adds additional warnings that could catch undesired effects. 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401xorg_testset_save_CFLAGS="$CFLAGS" 6402 6403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6407if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6408then : 6409 printf %s "(cached) " >&6 6410else $as_nop 6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6412/* end confdefs.h. */ 6413int i; 6414_ACEOF 6415if ac_fn_c_try_compile "$LINENO" 6416then : 6417 xorg_cv_cc_flag_unknown_warning_option=yes 6418else $as_nop 6419 xorg_cv_cc_flag_unknown_warning_option=no 6420fi 6421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6422fi 6423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6426 CFLAGS="$xorg_testset_save_CFLAGS" 6427fi 6428 6429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6432 fi 6433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6436if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6437then : 6438 printf %s "(cached) " >&6 6439else $as_nop 6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442int i; 6443_ACEOF 6444if ac_fn_c_try_compile "$LINENO" 6445then : 6446 xorg_cv_cc_flag_unused_command_line_argument=yes 6447else $as_nop 6448 xorg_cv_cc_flag_unused_command_line_argument=no 6449fi 6450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6451fi 6452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6453printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6455 CFLAGS="$xorg_testset_save_CFLAGS" 6456fi 6457 6458found="no" 6459 6460 if test $found = "no" ; then 6461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6463 fi 6464 6465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6467 fi 6468 6469 CFLAGS="$CFLAGS -Wunused" 6470 6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6472printf %s "checking if $CC supports -Wunused... " >&6; } 6473 cacheid=xorg_cv_cc_flag__Wunused 6474 if eval test \${$cacheid+y} 6475then : 6476 printf %s "(cached) " >&6 6477else $as_nop 6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6479/* end confdefs.h. */ 6480int i; 6481int 6482main (void) 6483{ 6484 6485 ; 6486 return 0; 6487} 6488_ACEOF 6489if ac_fn_c_try_link "$LINENO" 6490then : 6491 eval $cacheid=yes 6492else $as_nop 6493 eval $cacheid=no 6494fi 6495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6496 conftest$ac_exeext conftest.$ac_ext 6497fi 6498 6499 6500 CFLAGS="$xorg_testset_save_CFLAGS" 6501 6502 eval supported=\$$cacheid 6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6504printf "%s\n" "$supported" >&6; } 6505 if test "$supported" = "yes" ; then 6506 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6507 found="yes" 6508 fi 6509 fi 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525xorg_testset_save_CFLAGS="$CFLAGS" 6526 6527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6530printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6531if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6532then : 6533 printf %s "(cached) " >&6 6534else $as_nop 6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6536/* end confdefs.h. */ 6537int i; 6538_ACEOF 6539if ac_fn_c_try_compile "$LINENO" 6540then : 6541 xorg_cv_cc_flag_unknown_warning_option=yes 6542else $as_nop 6543 xorg_cv_cc_flag_unknown_warning_option=no 6544fi 6545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6546fi 6547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6550 CFLAGS="$xorg_testset_save_CFLAGS" 6551fi 6552 6553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6556 fi 6557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6560if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6561then : 6562 printf %s "(cached) " >&6 6563else $as_nop 6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6565/* end confdefs.h. */ 6566int i; 6567_ACEOF 6568if ac_fn_c_try_compile "$LINENO" 6569then : 6570 xorg_cv_cc_flag_unused_command_line_argument=yes 6571else $as_nop 6572 xorg_cv_cc_flag_unused_command_line_argument=no 6573fi 6574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6575fi 6576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6577printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6579 CFLAGS="$xorg_testset_save_CFLAGS" 6580fi 6581 6582found="no" 6583 6584 if test $found = "no" ; then 6585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6587 fi 6588 6589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6591 fi 6592 6593 CFLAGS="$CFLAGS -Wuninitialized" 6594 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6596printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6597 cacheid=xorg_cv_cc_flag__Wuninitialized 6598 if eval test \${$cacheid+y} 6599then : 6600 printf %s "(cached) " >&6 6601else $as_nop 6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6603/* end confdefs.h. */ 6604int i; 6605int 6606main (void) 6607{ 6608 6609 ; 6610 return 0; 6611} 6612_ACEOF 6613if ac_fn_c_try_link "$LINENO" 6614then : 6615 eval $cacheid=yes 6616else $as_nop 6617 eval $cacheid=no 6618fi 6619rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6620 conftest$ac_exeext conftest.$ac_ext 6621fi 6622 6623 6624 CFLAGS="$xorg_testset_save_CFLAGS" 6625 6626 eval supported=\$$cacheid 6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6628printf "%s\n" "$supported" >&6; } 6629 if test "$supported" = "yes" ; then 6630 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6631 found="yes" 6632 fi 6633 fi 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649xorg_testset_save_CFLAGS="$CFLAGS" 6650 6651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6655if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6656then : 6657 printf %s "(cached) " >&6 6658else $as_nop 6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6660/* end confdefs.h. */ 6661int i; 6662_ACEOF 6663if ac_fn_c_try_compile "$LINENO" 6664then : 6665 xorg_cv_cc_flag_unknown_warning_option=yes 6666else $as_nop 6667 xorg_cv_cc_flag_unknown_warning_option=no 6668fi 6669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6670fi 6671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6674 CFLAGS="$xorg_testset_save_CFLAGS" 6675fi 6676 6677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6680 fi 6681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6684if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6685then : 6686 printf %s "(cached) " >&6 6687else $as_nop 6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6689/* end confdefs.h. */ 6690int i; 6691_ACEOF 6692if ac_fn_c_try_compile "$LINENO" 6693then : 6694 xorg_cv_cc_flag_unused_command_line_argument=yes 6695else $as_nop 6696 xorg_cv_cc_flag_unused_command_line_argument=no 6697fi 6698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6699fi 6700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6703 CFLAGS="$xorg_testset_save_CFLAGS" 6704fi 6705 6706found="no" 6707 6708 if test $found = "no" ; then 6709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6711 fi 6712 6713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6715 fi 6716 6717 CFLAGS="$CFLAGS -Wshadow" 6718 6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6720printf %s "checking if $CC supports -Wshadow... " >&6; } 6721 cacheid=xorg_cv_cc_flag__Wshadow 6722 if eval test \${$cacheid+y} 6723then : 6724 printf %s "(cached) " >&6 6725else $as_nop 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6727/* end confdefs.h. */ 6728int i; 6729int 6730main (void) 6731{ 6732 6733 ; 6734 return 0; 6735} 6736_ACEOF 6737if ac_fn_c_try_link "$LINENO" 6738then : 6739 eval $cacheid=yes 6740else $as_nop 6741 eval $cacheid=no 6742fi 6743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6744 conftest$ac_exeext conftest.$ac_ext 6745fi 6746 6747 6748 CFLAGS="$xorg_testset_save_CFLAGS" 6749 6750 eval supported=\$$cacheid 6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6752printf "%s\n" "$supported" >&6; } 6753 if test "$supported" = "yes" ; then 6754 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6755 found="yes" 6756 fi 6757 fi 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773xorg_testset_save_CFLAGS="$CFLAGS" 6774 6775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6780then : 6781 printf %s "(cached) " >&6 6782else $as_nop 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785int i; 6786_ACEOF 6787if ac_fn_c_try_compile "$LINENO" 6788then : 6789 xorg_cv_cc_flag_unknown_warning_option=yes 6790else $as_nop 6791 xorg_cv_cc_flag_unknown_warning_option=no 6792fi 6793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6794fi 6795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6798 CFLAGS="$xorg_testset_save_CFLAGS" 6799fi 6800 6801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6804 fi 6805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6809then : 6810 printf %s "(cached) " >&6 6811else $as_nop 6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813/* end confdefs.h. */ 6814int i; 6815_ACEOF 6816if ac_fn_c_try_compile "$LINENO" 6817then : 6818 xorg_cv_cc_flag_unused_command_line_argument=yes 6819else $as_nop 6820 xorg_cv_cc_flag_unused_command_line_argument=no 6821fi 6822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6823fi 6824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6827 CFLAGS="$xorg_testset_save_CFLAGS" 6828fi 6829 6830found="no" 6831 6832 if test $found = "no" ; then 6833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6835 fi 6836 6837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6839 fi 6840 6841 CFLAGS="$CFLAGS -Wmissing-noreturn" 6842 6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6844printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6845 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6846 if eval test \${$cacheid+y} 6847then : 6848 printf %s "(cached) " >&6 6849else $as_nop 6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6851/* end confdefs.h. */ 6852int i; 6853int 6854main (void) 6855{ 6856 6857 ; 6858 return 0; 6859} 6860_ACEOF 6861if ac_fn_c_try_link "$LINENO" 6862then : 6863 eval $cacheid=yes 6864else $as_nop 6865 eval $cacheid=no 6866fi 6867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6868 conftest$ac_exeext conftest.$ac_ext 6869fi 6870 6871 6872 CFLAGS="$xorg_testset_save_CFLAGS" 6873 6874 eval supported=\$$cacheid 6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6876printf "%s\n" "$supported" >&6; } 6877 if test "$supported" = "yes" ; then 6878 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6879 found="yes" 6880 fi 6881 fi 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897xorg_testset_save_CFLAGS="$CFLAGS" 6898 6899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6904then : 6905 printf %s "(cached) " >&6 6906else $as_nop 6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6908/* end confdefs.h. */ 6909int i; 6910_ACEOF 6911if ac_fn_c_try_compile "$LINENO" 6912then : 6913 xorg_cv_cc_flag_unknown_warning_option=yes 6914else $as_nop 6915 xorg_cv_cc_flag_unknown_warning_option=no 6916fi 6917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6918fi 6919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6922 CFLAGS="$xorg_testset_save_CFLAGS" 6923fi 6924 6925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6928 fi 6929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6933then : 6934 printf %s "(cached) " >&6 6935else $as_nop 6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6937/* end confdefs.h. */ 6938int i; 6939_ACEOF 6940if ac_fn_c_try_compile "$LINENO" 6941then : 6942 xorg_cv_cc_flag_unused_command_line_argument=yes 6943else $as_nop 6944 xorg_cv_cc_flag_unused_command_line_argument=no 6945fi 6946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6947fi 6948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6951 CFLAGS="$xorg_testset_save_CFLAGS" 6952fi 6953 6954found="no" 6955 6956 if test $found = "no" ; then 6957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6959 fi 6960 6961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6963 fi 6964 6965 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6966 6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6968printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6969 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6970 if eval test \${$cacheid+y} 6971then : 6972 printf %s "(cached) " >&6 6973else $as_nop 6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6975/* end confdefs.h. */ 6976int i; 6977int 6978main (void) 6979{ 6980 6981 ; 6982 return 0; 6983} 6984_ACEOF 6985if ac_fn_c_try_link "$LINENO" 6986then : 6987 eval $cacheid=yes 6988else $as_nop 6989 eval $cacheid=no 6990fi 6991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6992 conftest$ac_exeext conftest.$ac_ext 6993fi 6994 6995 6996 CFLAGS="$xorg_testset_save_CFLAGS" 6997 6998 eval supported=\$$cacheid 6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7000printf "%s\n" "$supported" >&6; } 7001 if test "$supported" = "yes" ; then 7002 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7003 found="yes" 7004 fi 7005 fi 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021xorg_testset_save_CFLAGS="$CFLAGS" 7022 7023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7028then : 7029 printf %s "(cached) " >&6 7030else $as_nop 7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7032/* end confdefs.h. */ 7033int i; 7034_ACEOF 7035if ac_fn_c_try_compile "$LINENO" 7036then : 7037 xorg_cv_cc_flag_unknown_warning_option=yes 7038else $as_nop 7039 xorg_cv_cc_flag_unknown_warning_option=no 7040fi 7041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7042fi 7043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7046 CFLAGS="$xorg_testset_save_CFLAGS" 7047fi 7048 7049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7052 fi 7053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7057then : 7058 printf %s "(cached) " >&6 7059else $as_nop 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062int i; 7063_ACEOF 7064if ac_fn_c_try_compile "$LINENO" 7065then : 7066 xorg_cv_cc_flag_unused_command_line_argument=yes 7067else $as_nop 7068 xorg_cv_cc_flag_unused_command_line_argument=no 7069fi 7070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7071fi 7072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7075 CFLAGS="$xorg_testset_save_CFLAGS" 7076fi 7077 7078found="no" 7079 7080 if test $found = "no" ; then 7081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7083 fi 7084 7085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7087 fi 7088 7089 CFLAGS="$CFLAGS -Wredundant-decls" 7090 7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7092printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7093 cacheid=xorg_cv_cc_flag__Wredundant_decls 7094 if eval test \${$cacheid+y} 7095then : 7096 printf %s "(cached) " >&6 7097else $as_nop 7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7099/* end confdefs.h. */ 7100int i; 7101int 7102main (void) 7103{ 7104 7105 ; 7106 return 0; 7107} 7108_ACEOF 7109if ac_fn_c_try_link "$LINENO" 7110then : 7111 eval $cacheid=yes 7112else $as_nop 7113 eval $cacheid=no 7114fi 7115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7116 conftest$ac_exeext conftest.$ac_ext 7117fi 7118 7119 7120 CFLAGS="$xorg_testset_save_CFLAGS" 7121 7122 eval supported=\$$cacheid 7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7124printf "%s\n" "$supported" >&6; } 7125 if test "$supported" = "yes" ; then 7126 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7127 found="yes" 7128 fi 7129 fi 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145xorg_testset_save_CFLAGS="$CFLAGS" 7146 7147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7152then : 7153 printf %s "(cached) " >&6 7154else $as_nop 7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7156/* end confdefs.h. */ 7157int i; 7158_ACEOF 7159if ac_fn_c_try_compile "$LINENO" 7160then : 7161 xorg_cv_cc_flag_unknown_warning_option=yes 7162else $as_nop 7163 xorg_cv_cc_flag_unknown_warning_option=no 7164fi 7165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7166fi 7167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7170 CFLAGS="$xorg_testset_save_CFLAGS" 7171fi 7172 7173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7176 fi 7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7181then : 7182 printf %s "(cached) " >&6 7183else $as_nop 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186int i; 7187_ACEOF 7188if ac_fn_c_try_compile "$LINENO" 7189then : 7190 xorg_cv_cc_flag_unused_command_line_argument=yes 7191else $as_nop 7192 xorg_cv_cc_flag_unused_command_line_argument=no 7193fi 7194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7195fi 7196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7199 CFLAGS="$xorg_testset_save_CFLAGS" 7200fi 7201 7202found="no" 7203 7204 if test $found = "no" ; then 7205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7207 fi 7208 7209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7211 fi 7212 7213 CFLAGS="$CFLAGS -Wlogical-op" 7214 7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7216printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7217 cacheid=xorg_cv_cc_flag__Wlogical_op 7218 if eval test \${$cacheid+y} 7219then : 7220 printf %s "(cached) " >&6 7221else $as_nop 7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7223/* end confdefs.h. */ 7224int i; 7225int 7226main (void) 7227{ 7228 7229 ; 7230 return 0; 7231} 7232_ACEOF 7233if ac_fn_c_try_link "$LINENO" 7234then : 7235 eval $cacheid=yes 7236else $as_nop 7237 eval $cacheid=no 7238fi 7239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7240 conftest$ac_exeext conftest.$ac_ext 7241fi 7242 7243 7244 CFLAGS="$xorg_testset_save_CFLAGS" 7245 7246 eval supported=\$$cacheid 7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7248printf "%s\n" "$supported" >&6; } 7249 if test "$supported" = "yes" ; then 7250 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7251 found="yes" 7252 fi 7253 fi 7254 7255 7256 7257# These are currently disabled because they are noisy. They will be enabled 7258# in the future once the codebase is sufficiently modernized to silence 7259# them. For now, I don't want them to drown out the other warnings. 7260# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7261# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7262# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7263 7264# Turn some warnings into errors, so we don't accidently get successful builds 7265# when there are problems that should be fixed. 7266 7267if test "x$SELECTIVE_WERROR" = "xyes" ; then 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281xorg_testset_save_CFLAGS="$CFLAGS" 7282 7283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7286printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7287if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7288then : 7289 printf %s "(cached) " >&6 7290else $as_nop 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292/* end confdefs.h. */ 7293int i; 7294_ACEOF 7295if ac_fn_c_try_compile "$LINENO" 7296then : 7297 xorg_cv_cc_flag_unknown_warning_option=yes 7298else $as_nop 7299 xorg_cv_cc_flag_unknown_warning_option=no 7300fi 7301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7302fi 7303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7306 CFLAGS="$xorg_testset_save_CFLAGS" 7307fi 7308 7309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7312 fi 7313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7316if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7317then : 7318 printf %s "(cached) " >&6 7319else $as_nop 7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7321/* end confdefs.h. */ 7322int i; 7323_ACEOF 7324if ac_fn_c_try_compile "$LINENO" 7325then : 7326 xorg_cv_cc_flag_unused_command_line_argument=yes 7327else $as_nop 7328 xorg_cv_cc_flag_unused_command_line_argument=no 7329fi 7330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7331fi 7332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7333printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7335 CFLAGS="$xorg_testset_save_CFLAGS" 7336fi 7337 7338found="no" 7339 7340 if test $found = "no" ; then 7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7343 fi 7344 7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7347 fi 7348 7349 CFLAGS="$CFLAGS -Werror=implicit" 7350 7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7352printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7353 cacheid=xorg_cv_cc_flag__Werror_implicit 7354 if eval test \${$cacheid+y} 7355then : 7356 printf %s "(cached) " >&6 7357else $as_nop 7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7359/* end confdefs.h. */ 7360int i; 7361int 7362main (void) 7363{ 7364 7365 ; 7366 return 0; 7367} 7368_ACEOF 7369if ac_fn_c_try_link "$LINENO" 7370then : 7371 eval $cacheid=yes 7372else $as_nop 7373 eval $cacheid=no 7374fi 7375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7376 conftest$ac_exeext conftest.$ac_ext 7377fi 7378 7379 7380 CFLAGS="$xorg_testset_save_CFLAGS" 7381 7382 eval supported=\$$cacheid 7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7384printf "%s\n" "$supported" >&6; } 7385 if test "$supported" = "yes" ; then 7386 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7387 found="yes" 7388 fi 7389 fi 7390 7391 if test $found = "no" ; then 7392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7394 fi 7395 7396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7398 fi 7399 7400 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7401 7402 { 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 7403printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7404 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7405 if eval test \${$cacheid+y} 7406then : 7407 printf %s "(cached) " >&6 7408else $as_nop 7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7410/* end confdefs.h. */ 7411int i; 7412int 7413main (void) 7414{ 7415 7416 ; 7417 return 0; 7418} 7419_ACEOF 7420if ac_fn_c_try_link "$LINENO" 7421then : 7422 eval $cacheid=yes 7423else $as_nop 7424 eval $cacheid=no 7425fi 7426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7427 conftest$ac_exeext conftest.$ac_ext 7428fi 7429 7430 7431 CFLAGS="$xorg_testset_save_CFLAGS" 7432 7433 eval supported=\$$cacheid 7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7435printf "%s\n" "$supported" >&6; } 7436 if test "$supported" = "yes" ; then 7437 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7438 found="yes" 7439 fi 7440 fi 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456xorg_testset_save_CFLAGS="$CFLAGS" 7457 7458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7462if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7463then : 7464 printf %s "(cached) " >&6 7465else $as_nop 7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7467/* end confdefs.h. */ 7468int i; 7469_ACEOF 7470if ac_fn_c_try_compile "$LINENO" 7471then : 7472 xorg_cv_cc_flag_unknown_warning_option=yes 7473else $as_nop 7474 xorg_cv_cc_flag_unknown_warning_option=no 7475fi 7476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7477fi 7478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7481 CFLAGS="$xorg_testset_save_CFLAGS" 7482fi 7483 7484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7487 fi 7488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7491if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7492then : 7493 printf %s "(cached) " >&6 7494else $as_nop 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7496/* end confdefs.h. */ 7497int i; 7498_ACEOF 7499if ac_fn_c_try_compile "$LINENO" 7500then : 7501 xorg_cv_cc_flag_unused_command_line_argument=yes 7502else $as_nop 7503 xorg_cv_cc_flag_unused_command_line_argument=no 7504fi 7505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7506fi 7507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7508printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7510 CFLAGS="$xorg_testset_save_CFLAGS" 7511fi 7512 7513found="no" 7514 7515 if test $found = "no" ; then 7516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7518 fi 7519 7520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7522 fi 7523 7524 CFLAGS="$CFLAGS -Werror=nonnull" 7525 7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7527printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7528 cacheid=xorg_cv_cc_flag__Werror_nonnull 7529 if eval test \${$cacheid+y} 7530then : 7531 printf %s "(cached) " >&6 7532else $as_nop 7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534/* end confdefs.h. */ 7535int i; 7536int 7537main (void) 7538{ 7539 7540 ; 7541 return 0; 7542} 7543_ACEOF 7544if ac_fn_c_try_link "$LINENO" 7545then : 7546 eval $cacheid=yes 7547else $as_nop 7548 eval $cacheid=no 7549fi 7550rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7551 conftest$ac_exeext conftest.$ac_ext 7552fi 7553 7554 7555 CFLAGS="$xorg_testset_save_CFLAGS" 7556 7557 eval supported=\$$cacheid 7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7559printf "%s\n" "$supported" >&6; } 7560 if test "$supported" = "yes" ; then 7561 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7562 found="yes" 7563 fi 7564 fi 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580xorg_testset_save_CFLAGS="$CFLAGS" 7581 7582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7585printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7586if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7587then : 7588 printf %s "(cached) " >&6 7589else $as_nop 7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7591/* end confdefs.h. */ 7592int i; 7593_ACEOF 7594if ac_fn_c_try_compile "$LINENO" 7595then : 7596 xorg_cv_cc_flag_unknown_warning_option=yes 7597else $as_nop 7598 xorg_cv_cc_flag_unknown_warning_option=no 7599fi 7600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7601fi 7602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7603printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7605 CFLAGS="$xorg_testset_save_CFLAGS" 7606fi 7607 7608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7611 fi 7612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7614printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7615if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7616then : 7617 printf %s "(cached) " >&6 7618else $as_nop 7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7620/* end confdefs.h. */ 7621int i; 7622_ACEOF 7623if ac_fn_c_try_compile "$LINENO" 7624then : 7625 xorg_cv_cc_flag_unused_command_line_argument=yes 7626else $as_nop 7627 xorg_cv_cc_flag_unused_command_line_argument=no 7628fi 7629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7630fi 7631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7632printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7634 CFLAGS="$xorg_testset_save_CFLAGS" 7635fi 7636 7637found="no" 7638 7639 if test $found = "no" ; then 7640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7642 fi 7643 7644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7646 fi 7647 7648 CFLAGS="$CFLAGS -Werror=init-self" 7649 7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7651printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7652 cacheid=xorg_cv_cc_flag__Werror_init_self 7653 if eval test \${$cacheid+y} 7654then : 7655 printf %s "(cached) " >&6 7656else $as_nop 7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7658/* end confdefs.h. */ 7659int i; 7660int 7661main (void) 7662{ 7663 7664 ; 7665 return 0; 7666} 7667_ACEOF 7668if ac_fn_c_try_link "$LINENO" 7669then : 7670 eval $cacheid=yes 7671else $as_nop 7672 eval $cacheid=no 7673fi 7674rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7675 conftest$ac_exeext conftest.$ac_ext 7676fi 7677 7678 7679 CFLAGS="$xorg_testset_save_CFLAGS" 7680 7681 eval supported=\$$cacheid 7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7683printf "%s\n" "$supported" >&6; } 7684 if test "$supported" = "yes" ; then 7685 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7686 found="yes" 7687 fi 7688 fi 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704xorg_testset_save_CFLAGS="$CFLAGS" 7705 7706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7710if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7711then : 7712 printf %s "(cached) " >&6 7713else $as_nop 7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7715/* end confdefs.h. */ 7716int i; 7717_ACEOF 7718if ac_fn_c_try_compile "$LINENO" 7719then : 7720 xorg_cv_cc_flag_unknown_warning_option=yes 7721else $as_nop 7722 xorg_cv_cc_flag_unknown_warning_option=no 7723fi 7724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7725fi 7726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7727printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7729 CFLAGS="$xorg_testset_save_CFLAGS" 7730fi 7731 7732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7735 fi 7736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7738printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7739if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7740then : 7741 printf %s "(cached) " >&6 7742else $as_nop 7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7744/* end confdefs.h. */ 7745int i; 7746_ACEOF 7747if ac_fn_c_try_compile "$LINENO" 7748then : 7749 xorg_cv_cc_flag_unused_command_line_argument=yes 7750else $as_nop 7751 xorg_cv_cc_flag_unused_command_line_argument=no 7752fi 7753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7754fi 7755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7758 CFLAGS="$xorg_testset_save_CFLAGS" 7759fi 7760 7761found="no" 7762 7763 if test $found = "no" ; then 7764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7766 fi 7767 7768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7770 fi 7771 7772 CFLAGS="$CFLAGS -Werror=main" 7773 7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7775printf %s "checking if $CC supports -Werror=main... " >&6; } 7776 cacheid=xorg_cv_cc_flag__Werror_main 7777 if eval test \${$cacheid+y} 7778then : 7779 printf %s "(cached) " >&6 7780else $as_nop 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783int i; 7784int 7785main (void) 7786{ 7787 7788 ; 7789 return 0; 7790} 7791_ACEOF 7792if ac_fn_c_try_link "$LINENO" 7793then : 7794 eval $cacheid=yes 7795else $as_nop 7796 eval $cacheid=no 7797fi 7798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7799 conftest$ac_exeext conftest.$ac_ext 7800fi 7801 7802 7803 CFLAGS="$xorg_testset_save_CFLAGS" 7804 7805 eval supported=\$$cacheid 7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7807printf "%s\n" "$supported" >&6; } 7808 if test "$supported" = "yes" ; then 7809 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7810 found="yes" 7811 fi 7812 fi 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828xorg_testset_save_CFLAGS="$CFLAGS" 7829 7830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7833printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7834if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7835then : 7836 printf %s "(cached) " >&6 7837else $as_nop 7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7839/* end confdefs.h. */ 7840int i; 7841_ACEOF 7842if ac_fn_c_try_compile "$LINENO" 7843then : 7844 xorg_cv_cc_flag_unknown_warning_option=yes 7845else $as_nop 7846 xorg_cv_cc_flag_unknown_warning_option=no 7847fi 7848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7849fi 7850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7853 CFLAGS="$xorg_testset_save_CFLAGS" 7854fi 7855 7856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7859 fi 7860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7864then : 7865 printf %s "(cached) " >&6 7866else $as_nop 7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7868/* end confdefs.h. */ 7869int i; 7870_ACEOF 7871if ac_fn_c_try_compile "$LINENO" 7872then : 7873 xorg_cv_cc_flag_unused_command_line_argument=yes 7874else $as_nop 7875 xorg_cv_cc_flag_unused_command_line_argument=no 7876fi 7877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7878fi 7879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7882 CFLAGS="$xorg_testset_save_CFLAGS" 7883fi 7884 7885found="no" 7886 7887 if test $found = "no" ; then 7888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7890 fi 7891 7892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7894 fi 7895 7896 CFLAGS="$CFLAGS -Werror=missing-braces" 7897 7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7899printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7900 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7901 if eval test \${$cacheid+y} 7902then : 7903 printf %s "(cached) " >&6 7904else $as_nop 7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7906/* end confdefs.h. */ 7907int i; 7908int 7909main (void) 7910{ 7911 7912 ; 7913 return 0; 7914} 7915_ACEOF 7916if ac_fn_c_try_link "$LINENO" 7917then : 7918 eval $cacheid=yes 7919else $as_nop 7920 eval $cacheid=no 7921fi 7922rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7923 conftest$ac_exeext conftest.$ac_ext 7924fi 7925 7926 7927 CFLAGS="$xorg_testset_save_CFLAGS" 7928 7929 eval supported=\$$cacheid 7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7931printf "%s\n" "$supported" >&6; } 7932 if test "$supported" = "yes" ; then 7933 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7934 found="yes" 7935 fi 7936 fi 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952xorg_testset_save_CFLAGS="$CFLAGS" 7953 7954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7958if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7959then : 7960 printf %s "(cached) " >&6 7961else $as_nop 7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7963/* end confdefs.h. */ 7964int i; 7965_ACEOF 7966if ac_fn_c_try_compile "$LINENO" 7967then : 7968 xorg_cv_cc_flag_unknown_warning_option=yes 7969else $as_nop 7970 xorg_cv_cc_flag_unknown_warning_option=no 7971fi 7972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7973fi 7974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7977 CFLAGS="$xorg_testset_save_CFLAGS" 7978fi 7979 7980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7983 fi 7984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7987if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7988then : 7989 printf %s "(cached) " >&6 7990else $as_nop 7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7992/* end confdefs.h. */ 7993int i; 7994_ACEOF 7995if ac_fn_c_try_compile "$LINENO" 7996then : 7997 xorg_cv_cc_flag_unused_command_line_argument=yes 7998else $as_nop 7999 xorg_cv_cc_flag_unused_command_line_argument=no 8000fi 8001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8002fi 8003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8004printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8006 CFLAGS="$xorg_testset_save_CFLAGS" 8007fi 8008 8009found="no" 8010 8011 if test $found = "no" ; then 8012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8014 fi 8015 8016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8018 fi 8019 8020 CFLAGS="$CFLAGS -Werror=sequence-point" 8021 8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8023printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8024 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8025 if eval test \${$cacheid+y} 8026then : 8027 printf %s "(cached) " >&6 8028else $as_nop 8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8030/* end confdefs.h. */ 8031int i; 8032int 8033main (void) 8034{ 8035 8036 ; 8037 return 0; 8038} 8039_ACEOF 8040if ac_fn_c_try_link "$LINENO" 8041then : 8042 eval $cacheid=yes 8043else $as_nop 8044 eval $cacheid=no 8045fi 8046rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8047 conftest$ac_exeext conftest.$ac_ext 8048fi 8049 8050 8051 CFLAGS="$xorg_testset_save_CFLAGS" 8052 8053 eval supported=\$$cacheid 8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8055printf "%s\n" "$supported" >&6; } 8056 if test "$supported" = "yes" ; then 8057 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8058 found="yes" 8059 fi 8060 fi 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076xorg_testset_save_CFLAGS="$CFLAGS" 8077 8078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8082if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8083then : 8084 printf %s "(cached) " >&6 8085else $as_nop 8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8087/* end confdefs.h. */ 8088int i; 8089_ACEOF 8090if ac_fn_c_try_compile "$LINENO" 8091then : 8092 xorg_cv_cc_flag_unknown_warning_option=yes 8093else $as_nop 8094 xorg_cv_cc_flag_unknown_warning_option=no 8095fi 8096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8097fi 8098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8101 CFLAGS="$xorg_testset_save_CFLAGS" 8102fi 8103 8104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8107 fi 8108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8111if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8112then : 8113 printf %s "(cached) " >&6 8114else $as_nop 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116/* end confdefs.h. */ 8117int i; 8118_ACEOF 8119if ac_fn_c_try_compile "$LINENO" 8120then : 8121 xorg_cv_cc_flag_unused_command_line_argument=yes 8122else $as_nop 8123 xorg_cv_cc_flag_unused_command_line_argument=no 8124fi 8125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8126fi 8127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8130 CFLAGS="$xorg_testset_save_CFLAGS" 8131fi 8132 8133found="no" 8134 8135 if test $found = "no" ; then 8136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8138 fi 8139 8140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8142 fi 8143 8144 CFLAGS="$CFLAGS -Werror=return-type" 8145 8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8147printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8148 cacheid=xorg_cv_cc_flag__Werror_return_type 8149 if eval test \${$cacheid+y} 8150then : 8151 printf %s "(cached) " >&6 8152else $as_nop 8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8154/* end confdefs.h. */ 8155int i; 8156int 8157main (void) 8158{ 8159 8160 ; 8161 return 0; 8162} 8163_ACEOF 8164if ac_fn_c_try_link "$LINENO" 8165then : 8166 eval $cacheid=yes 8167else $as_nop 8168 eval $cacheid=no 8169fi 8170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8171 conftest$ac_exeext conftest.$ac_ext 8172fi 8173 8174 8175 CFLAGS="$xorg_testset_save_CFLAGS" 8176 8177 eval supported=\$$cacheid 8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8179printf "%s\n" "$supported" >&6; } 8180 if test "$supported" = "yes" ; then 8181 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8182 found="yes" 8183 fi 8184 fi 8185 8186 if test $found = "no" ; then 8187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8189 fi 8190 8191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8193 fi 8194 8195 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8196 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8198printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8199 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8200 if eval test \${$cacheid+y} 8201then : 8202 printf %s "(cached) " >&6 8203else $as_nop 8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8205/* end confdefs.h. */ 8206int i; 8207int 8208main (void) 8209{ 8210 8211 ; 8212 return 0; 8213} 8214_ACEOF 8215if ac_fn_c_try_link "$LINENO" 8216then : 8217 eval $cacheid=yes 8218else $as_nop 8219 eval $cacheid=no 8220fi 8221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8222 conftest$ac_exeext conftest.$ac_ext 8223fi 8224 8225 8226 CFLAGS="$xorg_testset_save_CFLAGS" 8227 8228 eval supported=\$$cacheid 8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8230printf "%s\n" "$supported" >&6; } 8231 if test "$supported" = "yes" ; then 8232 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8233 found="yes" 8234 fi 8235 fi 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251xorg_testset_save_CFLAGS="$CFLAGS" 8252 8253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8257if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8258then : 8259 printf %s "(cached) " >&6 8260else $as_nop 8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8262/* end confdefs.h. */ 8263int i; 8264_ACEOF 8265if ac_fn_c_try_compile "$LINENO" 8266then : 8267 xorg_cv_cc_flag_unknown_warning_option=yes 8268else $as_nop 8269 xorg_cv_cc_flag_unknown_warning_option=no 8270fi 8271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8272fi 8273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8276 CFLAGS="$xorg_testset_save_CFLAGS" 8277fi 8278 8279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8282 fi 8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8286if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8287then : 8288 printf %s "(cached) " >&6 8289else $as_nop 8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8291/* end confdefs.h. */ 8292int i; 8293_ACEOF 8294if ac_fn_c_try_compile "$LINENO" 8295then : 8296 xorg_cv_cc_flag_unused_command_line_argument=yes 8297else $as_nop 8298 xorg_cv_cc_flag_unused_command_line_argument=no 8299fi 8300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8301fi 8302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8305 CFLAGS="$xorg_testset_save_CFLAGS" 8306fi 8307 8308found="no" 8309 8310 if test $found = "no" ; then 8311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8313 fi 8314 8315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8317 fi 8318 8319 CFLAGS="$CFLAGS -Werror=trigraphs" 8320 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8322printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8323 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8324 if eval test \${$cacheid+y} 8325then : 8326 printf %s "(cached) " >&6 8327else $as_nop 8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8329/* end confdefs.h. */ 8330int i; 8331int 8332main (void) 8333{ 8334 8335 ; 8336 return 0; 8337} 8338_ACEOF 8339if ac_fn_c_try_link "$LINENO" 8340then : 8341 eval $cacheid=yes 8342else $as_nop 8343 eval $cacheid=no 8344fi 8345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8346 conftest$ac_exeext conftest.$ac_ext 8347fi 8348 8349 8350 CFLAGS="$xorg_testset_save_CFLAGS" 8351 8352 eval supported=\$$cacheid 8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8354printf "%s\n" "$supported" >&6; } 8355 if test "$supported" = "yes" ; then 8356 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8357 found="yes" 8358 fi 8359 fi 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375xorg_testset_save_CFLAGS="$CFLAGS" 8376 8377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8381if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8382then : 8383 printf %s "(cached) " >&6 8384else $as_nop 8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8386/* end confdefs.h. */ 8387int i; 8388_ACEOF 8389if ac_fn_c_try_compile "$LINENO" 8390then : 8391 xorg_cv_cc_flag_unknown_warning_option=yes 8392else $as_nop 8393 xorg_cv_cc_flag_unknown_warning_option=no 8394fi 8395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8396fi 8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8398printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8400 CFLAGS="$xorg_testset_save_CFLAGS" 8401fi 8402 8403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 fi 8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8409printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8410if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8411then : 8412 printf %s "(cached) " >&6 8413else $as_nop 8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8415/* end confdefs.h. */ 8416int i; 8417_ACEOF 8418if ac_fn_c_try_compile "$LINENO" 8419then : 8420 xorg_cv_cc_flag_unused_command_line_argument=yes 8421else $as_nop 8422 xorg_cv_cc_flag_unused_command_line_argument=no 8423fi 8424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8425fi 8426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8429 CFLAGS="$xorg_testset_save_CFLAGS" 8430fi 8431 8432found="no" 8433 8434 if test $found = "no" ; then 8435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8437 fi 8438 8439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8441 fi 8442 8443 CFLAGS="$CFLAGS -Werror=array-bounds" 8444 8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8446printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8447 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8448 if eval test \${$cacheid+y} 8449then : 8450 printf %s "(cached) " >&6 8451else $as_nop 8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8453/* end confdefs.h. */ 8454int i; 8455int 8456main (void) 8457{ 8458 8459 ; 8460 return 0; 8461} 8462_ACEOF 8463if ac_fn_c_try_link "$LINENO" 8464then : 8465 eval $cacheid=yes 8466else $as_nop 8467 eval $cacheid=no 8468fi 8469rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8470 conftest$ac_exeext conftest.$ac_ext 8471fi 8472 8473 8474 CFLAGS="$xorg_testset_save_CFLAGS" 8475 8476 eval supported=\$$cacheid 8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8478printf "%s\n" "$supported" >&6; } 8479 if test "$supported" = "yes" ; then 8480 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8481 found="yes" 8482 fi 8483 fi 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499xorg_testset_save_CFLAGS="$CFLAGS" 8500 8501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8506then : 8507 printf %s "(cached) " >&6 8508else $as_nop 8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8510/* end confdefs.h. */ 8511int i; 8512_ACEOF 8513if ac_fn_c_try_compile "$LINENO" 8514then : 8515 xorg_cv_cc_flag_unknown_warning_option=yes 8516else $as_nop 8517 xorg_cv_cc_flag_unknown_warning_option=no 8518fi 8519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8520fi 8521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8524 CFLAGS="$xorg_testset_save_CFLAGS" 8525fi 8526 8527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8530 fi 8531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8534if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8535then : 8536 printf %s "(cached) " >&6 8537else $as_nop 8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8539/* end confdefs.h. */ 8540int i; 8541_ACEOF 8542if ac_fn_c_try_compile "$LINENO" 8543then : 8544 xorg_cv_cc_flag_unused_command_line_argument=yes 8545else $as_nop 8546 xorg_cv_cc_flag_unused_command_line_argument=no 8547fi 8548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8549fi 8550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8553 CFLAGS="$xorg_testset_save_CFLAGS" 8554fi 8555 8556found="no" 8557 8558 if test $found = "no" ; then 8559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8561 fi 8562 8563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8565 fi 8566 8567 CFLAGS="$CFLAGS -Werror=write-strings" 8568 8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8570printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8571 cacheid=xorg_cv_cc_flag__Werror_write_strings 8572 if eval test \${$cacheid+y} 8573then : 8574 printf %s "(cached) " >&6 8575else $as_nop 8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8577/* end confdefs.h. */ 8578int i; 8579int 8580main (void) 8581{ 8582 8583 ; 8584 return 0; 8585} 8586_ACEOF 8587if ac_fn_c_try_link "$LINENO" 8588then : 8589 eval $cacheid=yes 8590else $as_nop 8591 eval $cacheid=no 8592fi 8593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8594 conftest$ac_exeext conftest.$ac_ext 8595fi 8596 8597 8598 CFLAGS="$xorg_testset_save_CFLAGS" 8599 8600 eval supported=\$$cacheid 8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8602printf "%s\n" "$supported" >&6; } 8603 if test "$supported" = "yes" ; then 8604 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8605 found="yes" 8606 fi 8607 fi 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623xorg_testset_save_CFLAGS="$CFLAGS" 8624 8625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8630then : 8631 printf %s "(cached) " >&6 8632else $as_nop 8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8634/* end confdefs.h. */ 8635int i; 8636_ACEOF 8637if ac_fn_c_try_compile "$LINENO" 8638then : 8639 xorg_cv_cc_flag_unknown_warning_option=yes 8640else $as_nop 8641 xorg_cv_cc_flag_unknown_warning_option=no 8642fi 8643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8644fi 8645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8648 CFLAGS="$xorg_testset_save_CFLAGS" 8649fi 8650 8651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8654 fi 8655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8658if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8659then : 8660 printf %s "(cached) " >&6 8661else $as_nop 8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8663/* end confdefs.h. */ 8664int i; 8665_ACEOF 8666if ac_fn_c_try_compile "$LINENO" 8667then : 8668 xorg_cv_cc_flag_unused_command_line_argument=yes 8669else $as_nop 8670 xorg_cv_cc_flag_unused_command_line_argument=no 8671fi 8672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8673fi 8674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8677 CFLAGS="$xorg_testset_save_CFLAGS" 8678fi 8679 8680found="no" 8681 8682 if test $found = "no" ; then 8683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8685 fi 8686 8687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8689 fi 8690 8691 CFLAGS="$CFLAGS -Werror=address" 8692 8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8694printf %s "checking if $CC supports -Werror=address... " >&6; } 8695 cacheid=xorg_cv_cc_flag__Werror_address 8696 if eval test \${$cacheid+y} 8697then : 8698 printf %s "(cached) " >&6 8699else $as_nop 8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8701/* end confdefs.h. */ 8702int i; 8703int 8704main (void) 8705{ 8706 8707 ; 8708 return 0; 8709} 8710_ACEOF 8711if ac_fn_c_try_link "$LINENO" 8712then : 8713 eval $cacheid=yes 8714else $as_nop 8715 eval $cacheid=no 8716fi 8717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8718 conftest$ac_exeext conftest.$ac_ext 8719fi 8720 8721 8722 CFLAGS="$xorg_testset_save_CFLAGS" 8723 8724 eval supported=\$$cacheid 8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8726printf "%s\n" "$supported" >&6; } 8727 if test "$supported" = "yes" ; then 8728 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8729 found="yes" 8730 fi 8731 fi 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747xorg_testset_save_CFLAGS="$CFLAGS" 8748 8749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8753if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8754then : 8755 printf %s "(cached) " >&6 8756else $as_nop 8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758/* end confdefs.h. */ 8759int i; 8760_ACEOF 8761if ac_fn_c_try_compile "$LINENO" 8762then : 8763 xorg_cv_cc_flag_unknown_warning_option=yes 8764else $as_nop 8765 xorg_cv_cc_flag_unknown_warning_option=no 8766fi 8767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8768fi 8769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8772 CFLAGS="$xorg_testset_save_CFLAGS" 8773fi 8774 8775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8778 fi 8779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8782if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8783then : 8784 printf %s "(cached) " >&6 8785else $as_nop 8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8787/* end confdefs.h. */ 8788int i; 8789_ACEOF 8790if ac_fn_c_try_compile "$LINENO" 8791then : 8792 xorg_cv_cc_flag_unused_command_line_argument=yes 8793else $as_nop 8794 xorg_cv_cc_flag_unused_command_line_argument=no 8795fi 8796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8797fi 8798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8801 CFLAGS="$xorg_testset_save_CFLAGS" 8802fi 8803 8804found="no" 8805 8806 if test $found = "no" ; then 8807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8809 fi 8810 8811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8813 fi 8814 8815 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8816 8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8818printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8819 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8820 if eval test \${$cacheid+y} 8821then : 8822 printf %s "(cached) " >&6 8823else $as_nop 8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8825/* end confdefs.h. */ 8826int i; 8827int 8828main (void) 8829{ 8830 8831 ; 8832 return 0; 8833} 8834_ACEOF 8835if ac_fn_c_try_link "$LINENO" 8836then : 8837 eval $cacheid=yes 8838else $as_nop 8839 eval $cacheid=no 8840fi 8841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8842 conftest$ac_exeext conftest.$ac_ext 8843fi 8844 8845 8846 CFLAGS="$xorg_testset_save_CFLAGS" 8847 8848 eval supported=\$$cacheid 8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8850printf "%s\n" "$supported" >&6; } 8851 if test "$supported" = "yes" ; then 8852 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8853 found="yes" 8854 fi 8855 fi 8856 8857 if test $found = "no" ; then 8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8860 fi 8861 8862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8864 fi 8865 8866 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8867 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8869printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8870 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8871 if eval test \${$cacheid+y} 8872then : 8873 printf %s "(cached) " >&6 8874else $as_nop 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876/* end confdefs.h. */ 8877int i; 8878int 8879main (void) 8880{ 8881 8882 ; 8883 return 0; 8884} 8885_ACEOF 8886if ac_fn_c_try_link "$LINENO" 8887then : 8888 eval $cacheid=yes 8889else $as_nop 8890 eval $cacheid=no 8891fi 8892rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8893 conftest$ac_exeext conftest.$ac_ext 8894fi 8895 8896 8897 CFLAGS="$xorg_testset_save_CFLAGS" 8898 8899 eval supported=\$$cacheid 8900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8901printf "%s\n" "$supported" >&6; } 8902 if test "$supported" = "yes" ; then 8903 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8904 found="yes" 8905 fi 8906 fi 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922xorg_testset_save_CFLAGS="$CFLAGS" 8923 8924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8927printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8928if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8929then : 8930 printf %s "(cached) " >&6 8931else $as_nop 8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8933/* end confdefs.h. */ 8934int i; 8935_ACEOF 8936if ac_fn_c_try_compile "$LINENO" 8937then : 8938 xorg_cv_cc_flag_unknown_warning_option=yes 8939else $as_nop 8940 xorg_cv_cc_flag_unknown_warning_option=no 8941fi 8942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8943fi 8944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8945printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8947 CFLAGS="$xorg_testset_save_CFLAGS" 8948fi 8949 8950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8953 fi 8954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8956printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8957if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8958then : 8959 printf %s "(cached) " >&6 8960else $as_nop 8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962/* end confdefs.h. */ 8963int i; 8964_ACEOF 8965if ac_fn_c_try_compile "$LINENO" 8966then : 8967 xorg_cv_cc_flag_unused_command_line_argument=yes 8968else $as_nop 8969 xorg_cv_cc_flag_unused_command_line_argument=no 8970fi 8971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8972fi 8973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8974printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8976 CFLAGS="$xorg_testset_save_CFLAGS" 8977fi 8978 8979found="no" 8980 8981 if test $found = "no" ; then 8982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8984 fi 8985 8986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8988 fi 8989 8990 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8991 8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8993printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8994 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8995 if eval test \${$cacheid+y} 8996then : 8997 printf %s "(cached) " >&6 8998else $as_nop 8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9000/* end confdefs.h. */ 9001int i; 9002int 9003main (void) 9004{ 9005 9006 ; 9007 return 0; 9008} 9009_ACEOF 9010if ac_fn_c_try_link "$LINENO" 9011then : 9012 eval $cacheid=yes 9013else $as_nop 9014 eval $cacheid=no 9015fi 9016rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9017 conftest$ac_exeext conftest.$ac_ext 9018fi 9019 9020 9021 CFLAGS="$xorg_testset_save_CFLAGS" 9022 9023 eval supported=\$$cacheid 9024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9025printf "%s\n" "$supported" >&6; } 9026 if test "$supported" = "yes" ; then 9027 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9028 found="yes" 9029 fi 9030 fi 9031 9032 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9033else 9034{ 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 9035printf "%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;} 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049xorg_testset_save_CFLAGS="$CFLAGS" 9050 9051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9055if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9056then : 9057 printf %s "(cached) " >&6 9058else $as_nop 9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9060/* end confdefs.h. */ 9061int i; 9062_ACEOF 9063if ac_fn_c_try_compile "$LINENO" 9064then : 9065 xorg_cv_cc_flag_unknown_warning_option=yes 9066else $as_nop 9067 xorg_cv_cc_flag_unknown_warning_option=no 9068fi 9069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9070fi 9071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9072printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9074 CFLAGS="$xorg_testset_save_CFLAGS" 9075fi 9076 9077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9080 fi 9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9083printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9084if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9085then : 9086 printf %s "(cached) " >&6 9087else $as_nop 9088 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_unused_command_line_argument=yes 9095else $as_nop 9096 xorg_cv_cc_flag_unused_command_line_argument=no 9097fi 9098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9099fi 9100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9103 CFLAGS="$xorg_testset_save_CFLAGS" 9104fi 9105 9106found="no" 9107 9108 if test $found = "no" ; then 9109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9111 fi 9112 9113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9115 fi 9116 9117 CFLAGS="$CFLAGS -Wimplicit" 9118 9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9120printf %s "checking if $CC supports -Wimplicit... " >&6; } 9121 cacheid=xorg_cv_cc_flag__Wimplicit 9122 if eval test \${$cacheid+y} 9123then : 9124 printf %s "(cached) " >&6 9125else $as_nop 9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9127/* end confdefs.h. */ 9128int i; 9129int 9130main (void) 9131{ 9132 9133 ; 9134 return 0; 9135} 9136_ACEOF 9137if ac_fn_c_try_link "$LINENO" 9138then : 9139 eval $cacheid=yes 9140else $as_nop 9141 eval $cacheid=no 9142fi 9143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9144 conftest$ac_exeext conftest.$ac_ext 9145fi 9146 9147 9148 CFLAGS="$xorg_testset_save_CFLAGS" 9149 9150 eval supported=\$$cacheid 9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9152printf "%s\n" "$supported" >&6; } 9153 if test "$supported" = "yes" ; then 9154 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9155 found="yes" 9156 fi 9157 fi 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173xorg_testset_save_CFLAGS="$CFLAGS" 9174 9175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9178printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9179if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9180then : 9181 printf %s "(cached) " >&6 9182else $as_nop 9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184/* end confdefs.h. */ 9185int i; 9186_ACEOF 9187if ac_fn_c_try_compile "$LINENO" 9188then : 9189 xorg_cv_cc_flag_unknown_warning_option=yes 9190else $as_nop 9191 xorg_cv_cc_flag_unknown_warning_option=no 9192fi 9193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9194fi 9195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9196printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9198 CFLAGS="$xorg_testset_save_CFLAGS" 9199fi 9200 9201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9204 fi 9205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9207printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9208if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9209then : 9210 printf %s "(cached) " >&6 9211else $as_nop 9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9213/* end confdefs.h. */ 9214int i; 9215_ACEOF 9216if ac_fn_c_try_compile "$LINENO" 9217then : 9218 xorg_cv_cc_flag_unused_command_line_argument=yes 9219else $as_nop 9220 xorg_cv_cc_flag_unused_command_line_argument=no 9221fi 9222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9223fi 9224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9227 CFLAGS="$xorg_testset_save_CFLAGS" 9228fi 9229 9230found="no" 9231 9232 if test $found = "no" ; then 9233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9235 fi 9236 9237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9239 fi 9240 9241 CFLAGS="$CFLAGS -Wnonnull" 9242 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9244printf %s "checking if $CC supports -Wnonnull... " >&6; } 9245 cacheid=xorg_cv_cc_flag__Wnonnull 9246 if eval test \${$cacheid+y} 9247then : 9248 printf %s "(cached) " >&6 9249else $as_nop 9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251/* end confdefs.h. */ 9252int i; 9253int 9254main (void) 9255{ 9256 9257 ; 9258 return 0; 9259} 9260_ACEOF 9261if ac_fn_c_try_link "$LINENO" 9262then : 9263 eval $cacheid=yes 9264else $as_nop 9265 eval $cacheid=no 9266fi 9267rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9268 conftest$ac_exeext conftest.$ac_ext 9269fi 9270 9271 9272 CFLAGS="$xorg_testset_save_CFLAGS" 9273 9274 eval supported=\$$cacheid 9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9276printf "%s\n" "$supported" >&6; } 9277 if test "$supported" = "yes" ; then 9278 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9279 found="yes" 9280 fi 9281 fi 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297xorg_testset_save_CFLAGS="$CFLAGS" 9298 9299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9303if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9304then : 9305 printf %s "(cached) " >&6 9306else $as_nop 9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9308/* end confdefs.h. */ 9309int i; 9310_ACEOF 9311if ac_fn_c_try_compile "$LINENO" 9312then : 9313 xorg_cv_cc_flag_unknown_warning_option=yes 9314else $as_nop 9315 xorg_cv_cc_flag_unknown_warning_option=no 9316fi 9317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9318fi 9319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9322 CFLAGS="$xorg_testset_save_CFLAGS" 9323fi 9324 9325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9328 fi 9329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9332if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9333then : 9334 printf %s "(cached) " >&6 9335else $as_nop 9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9337/* end confdefs.h. */ 9338int i; 9339_ACEOF 9340if ac_fn_c_try_compile "$LINENO" 9341then : 9342 xorg_cv_cc_flag_unused_command_line_argument=yes 9343else $as_nop 9344 xorg_cv_cc_flag_unused_command_line_argument=no 9345fi 9346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9347fi 9348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9351 CFLAGS="$xorg_testset_save_CFLAGS" 9352fi 9353 9354found="no" 9355 9356 if test $found = "no" ; then 9357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9359 fi 9360 9361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9363 fi 9364 9365 CFLAGS="$CFLAGS -Winit-self" 9366 9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9368printf %s "checking if $CC supports -Winit-self... " >&6; } 9369 cacheid=xorg_cv_cc_flag__Winit_self 9370 if eval test \${$cacheid+y} 9371then : 9372 printf %s "(cached) " >&6 9373else $as_nop 9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9375/* end confdefs.h. */ 9376int i; 9377int 9378main (void) 9379{ 9380 9381 ; 9382 return 0; 9383} 9384_ACEOF 9385if ac_fn_c_try_link "$LINENO" 9386then : 9387 eval $cacheid=yes 9388else $as_nop 9389 eval $cacheid=no 9390fi 9391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9392 conftest$ac_exeext conftest.$ac_ext 9393fi 9394 9395 9396 CFLAGS="$xorg_testset_save_CFLAGS" 9397 9398 eval supported=\$$cacheid 9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9400printf "%s\n" "$supported" >&6; } 9401 if test "$supported" = "yes" ; then 9402 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9403 found="yes" 9404 fi 9405 fi 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421xorg_testset_save_CFLAGS="$CFLAGS" 9422 9423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9427if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9428then : 9429 printf %s "(cached) " >&6 9430else $as_nop 9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9432/* end confdefs.h. */ 9433int i; 9434_ACEOF 9435if ac_fn_c_try_compile "$LINENO" 9436then : 9437 xorg_cv_cc_flag_unknown_warning_option=yes 9438else $as_nop 9439 xorg_cv_cc_flag_unknown_warning_option=no 9440fi 9441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9442fi 9443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9444printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9446 CFLAGS="$xorg_testset_save_CFLAGS" 9447fi 9448 9449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9452 fi 9453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9455printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9456if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9457then : 9458 printf %s "(cached) " >&6 9459else $as_nop 9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9461/* end confdefs.h. */ 9462int i; 9463_ACEOF 9464if ac_fn_c_try_compile "$LINENO" 9465then : 9466 xorg_cv_cc_flag_unused_command_line_argument=yes 9467else $as_nop 9468 xorg_cv_cc_flag_unused_command_line_argument=no 9469fi 9470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9471fi 9472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9475 CFLAGS="$xorg_testset_save_CFLAGS" 9476fi 9477 9478found="no" 9479 9480 if test $found = "no" ; then 9481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9483 fi 9484 9485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9487 fi 9488 9489 CFLAGS="$CFLAGS -Wmain" 9490 9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9492printf %s "checking if $CC supports -Wmain... " >&6; } 9493 cacheid=xorg_cv_cc_flag__Wmain 9494 if eval test \${$cacheid+y} 9495then : 9496 printf %s "(cached) " >&6 9497else $as_nop 9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499/* end confdefs.h. */ 9500int i; 9501int 9502main (void) 9503{ 9504 9505 ; 9506 return 0; 9507} 9508_ACEOF 9509if ac_fn_c_try_link "$LINENO" 9510then : 9511 eval $cacheid=yes 9512else $as_nop 9513 eval $cacheid=no 9514fi 9515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9516 conftest$ac_exeext conftest.$ac_ext 9517fi 9518 9519 9520 CFLAGS="$xorg_testset_save_CFLAGS" 9521 9522 eval supported=\$$cacheid 9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9524printf "%s\n" "$supported" >&6; } 9525 if test "$supported" = "yes" ; then 9526 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9527 found="yes" 9528 fi 9529 fi 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545xorg_testset_save_CFLAGS="$CFLAGS" 9546 9547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9551if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9552then : 9553 printf %s "(cached) " >&6 9554else $as_nop 9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9556/* end confdefs.h. */ 9557int i; 9558_ACEOF 9559if ac_fn_c_try_compile "$LINENO" 9560then : 9561 xorg_cv_cc_flag_unknown_warning_option=yes 9562else $as_nop 9563 xorg_cv_cc_flag_unknown_warning_option=no 9564fi 9565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9566fi 9567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9568printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9570 CFLAGS="$xorg_testset_save_CFLAGS" 9571fi 9572 9573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9576 fi 9577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9579printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9580if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9581then : 9582 printf %s "(cached) " >&6 9583else $as_nop 9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9585/* end confdefs.h. */ 9586int i; 9587_ACEOF 9588if ac_fn_c_try_compile "$LINENO" 9589then : 9590 xorg_cv_cc_flag_unused_command_line_argument=yes 9591else $as_nop 9592 xorg_cv_cc_flag_unused_command_line_argument=no 9593fi 9594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9595fi 9596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9597printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9599 CFLAGS="$xorg_testset_save_CFLAGS" 9600fi 9601 9602found="no" 9603 9604 if test $found = "no" ; then 9605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9607 fi 9608 9609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9611 fi 9612 9613 CFLAGS="$CFLAGS -Wmissing-braces" 9614 9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9616printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9617 cacheid=xorg_cv_cc_flag__Wmissing_braces 9618 if eval test \${$cacheid+y} 9619then : 9620 printf %s "(cached) " >&6 9621else $as_nop 9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9623/* end confdefs.h. */ 9624int i; 9625int 9626main (void) 9627{ 9628 9629 ; 9630 return 0; 9631} 9632_ACEOF 9633if ac_fn_c_try_link "$LINENO" 9634then : 9635 eval $cacheid=yes 9636else $as_nop 9637 eval $cacheid=no 9638fi 9639rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9640 conftest$ac_exeext conftest.$ac_ext 9641fi 9642 9643 9644 CFLAGS="$xorg_testset_save_CFLAGS" 9645 9646 eval supported=\$$cacheid 9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9648printf "%s\n" "$supported" >&6; } 9649 if test "$supported" = "yes" ; then 9650 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9651 found="yes" 9652 fi 9653 fi 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669xorg_testset_save_CFLAGS="$CFLAGS" 9670 9671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9675if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9676then : 9677 printf %s "(cached) " >&6 9678else $as_nop 9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9680/* end confdefs.h. */ 9681int i; 9682_ACEOF 9683if ac_fn_c_try_compile "$LINENO" 9684then : 9685 xorg_cv_cc_flag_unknown_warning_option=yes 9686else $as_nop 9687 xorg_cv_cc_flag_unknown_warning_option=no 9688fi 9689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9690fi 9691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9694 CFLAGS="$xorg_testset_save_CFLAGS" 9695fi 9696 9697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9700 fi 9701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9704if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9705then : 9706 printf %s "(cached) " >&6 9707else $as_nop 9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9709/* end confdefs.h. */ 9710int i; 9711_ACEOF 9712if ac_fn_c_try_compile "$LINENO" 9713then : 9714 xorg_cv_cc_flag_unused_command_line_argument=yes 9715else $as_nop 9716 xorg_cv_cc_flag_unused_command_line_argument=no 9717fi 9718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9719fi 9720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9723 CFLAGS="$xorg_testset_save_CFLAGS" 9724fi 9725 9726found="no" 9727 9728 if test $found = "no" ; then 9729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9731 fi 9732 9733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9735 fi 9736 9737 CFLAGS="$CFLAGS -Wsequence-point" 9738 9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9740printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9741 cacheid=xorg_cv_cc_flag__Wsequence_point 9742 if eval test \${$cacheid+y} 9743then : 9744 printf %s "(cached) " >&6 9745else $as_nop 9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9747/* end confdefs.h. */ 9748int i; 9749int 9750main (void) 9751{ 9752 9753 ; 9754 return 0; 9755} 9756_ACEOF 9757if ac_fn_c_try_link "$LINENO" 9758then : 9759 eval $cacheid=yes 9760else $as_nop 9761 eval $cacheid=no 9762fi 9763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9764 conftest$ac_exeext conftest.$ac_ext 9765fi 9766 9767 9768 CFLAGS="$xorg_testset_save_CFLAGS" 9769 9770 eval supported=\$$cacheid 9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9772printf "%s\n" "$supported" >&6; } 9773 if test "$supported" = "yes" ; then 9774 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9775 found="yes" 9776 fi 9777 fi 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793xorg_testset_save_CFLAGS="$CFLAGS" 9794 9795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9799if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9800then : 9801 printf %s "(cached) " >&6 9802else $as_nop 9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9804/* end confdefs.h. */ 9805int i; 9806_ACEOF 9807if ac_fn_c_try_compile "$LINENO" 9808then : 9809 xorg_cv_cc_flag_unknown_warning_option=yes 9810else $as_nop 9811 xorg_cv_cc_flag_unknown_warning_option=no 9812fi 9813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9814fi 9815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9818 CFLAGS="$xorg_testset_save_CFLAGS" 9819fi 9820 9821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9824 fi 9825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9828if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9829then : 9830 printf %s "(cached) " >&6 9831else $as_nop 9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9833/* end confdefs.h. */ 9834int i; 9835_ACEOF 9836if ac_fn_c_try_compile "$LINENO" 9837then : 9838 xorg_cv_cc_flag_unused_command_line_argument=yes 9839else $as_nop 9840 xorg_cv_cc_flag_unused_command_line_argument=no 9841fi 9842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9843fi 9844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9845printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9847 CFLAGS="$xorg_testset_save_CFLAGS" 9848fi 9849 9850found="no" 9851 9852 if test $found = "no" ; then 9853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9855 fi 9856 9857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9859 fi 9860 9861 CFLAGS="$CFLAGS -Wreturn-type" 9862 9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9864printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9865 cacheid=xorg_cv_cc_flag__Wreturn_type 9866 if eval test \${$cacheid+y} 9867then : 9868 printf %s "(cached) " >&6 9869else $as_nop 9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872int i; 9873int 9874main (void) 9875{ 9876 9877 ; 9878 return 0; 9879} 9880_ACEOF 9881if ac_fn_c_try_link "$LINENO" 9882then : 9883 eval $cacheid=yes 9884else $as_nop 9885 eval $cacheid=no 9886fi 9887rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9888 conftest$ac_exeext conftest.$ac_ext 9889fi 9890 9891 9892 CFLAGS="$xorg_testset_save_CFLAGS" 9893 9894 eval supported=\$$cacheid 9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9896printf "%s\n" "$supported" >&6; } 9897 if test "$supported" = "yes" ; then 9898 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9899 found="yes" 9900 fi 9901 fi 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917xorg_testset_save_CFLAGS="$CFLAGS" 9918 9919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9922printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9923if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9924then : 9925 printf %s "(cached) " >&6 9926else $as_nop 9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9928/* end confdefs.h. */ 9929int i; 9930_ACEOF 9931if ac_fn_c_try_compile "$LINENO" 9932then : 9933 xorg_cv_cc_flag_unknown_warning_option=yes 9934else $as_nop 9935 xorg_cv_cc_flag_unknown_warning_option=no 9936fi 9937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9938fi 9939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9940printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9942 CFLAGS="$xorg_testset_save_CFLAGS" 9943fi 9944 9945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9948 fi 9949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9951printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9952if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9953then : 9954 printf %s "(cached) " >&6 9955else $as_nop 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958int i; 9959_ACEOF 9960if ac_fn_c_try_compile "$LINENO" 9961then : 9962 xorg_cv_cc_flag_unused_command_line_argument=yes 9963else $as_nop 9964 xorg_cv_cc_flag_unused_command_line_argument=no 9965fi 9966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9967fi 9968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9969printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9971 CFLAGS="$xorg_testset_save_CFLAGS" 9972fi 9973 9974found="no" 9975 9976 if test $found = "no" ; then 9977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9979 fi 9980 9981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9983 fi 9984 9985 CFLAGS="$CFLAGS -Wtrigraphs" 9986 9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9988printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9989 cacheid=xorg_cv_cc_flag__Wtrigraphs 9990 if eval test \${$cacheid+y} 9991then : 9992 printf %s "(cached) " >&6 9993else $as_nop 9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9995/* end confdefs.h. */ 9996int i; 9997int 9998main (void) 9999{ 10000 10001 ; 10002 return 0; 10003} 10004_ACEOF 10005if ac_fn_c_try_link "$LINENO" 10006then : 10007 eval $cacheid=yes 10008else $as_nop 10009 eval $cacheid=no 10010fi 10011rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10012 conftest$ac_exeext conftest.$ac_ext 10013fi 10014 10015 10016 CFLAGS="$xorg_testset_save_CFLAGS" 10017 10018 eval supported=\$$cacheid 10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10020printf "%s\n" "$supported" >&6; } 10021 if test "$supported" = "yes" ; then 10022 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10023 found="yes" 10024 fi 10025 fi 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041xorg_testset_save_CFLAGS="$CFLAGS" 10042 10043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10046printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10047if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10048then : 10049 printf %s "(cached) " >&6 10050else $as_nop 10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052/* end confdefs.h. */ 10053int i; 10054_ACEOF 10055if ac_fn_c_try_compile "$LINENO" 10056then : 10057 xorg_cv_cc_flag_unknown_warning_option=yes 10058else $as_nop 10059 xorg_cv_cc_flag_unknown_warning_option=no 10060fi 10061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10062fi 10063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10066 CFLAGS="$xorg_testset_save_CFLAGS" 10067fi 10068 10069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10072 fi 10073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10076if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10077then : 10078 printf %s "(cached) " >&6 10079else $as_nop 10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10081/* end confdefs.h. */ 10082int i; 10083_ACEOF 10084if ac_fn_c_try_compile "$LINENO" 10085then : 10086 xorg_cv_cc_flag_unused_command_line_argument=yes 10087else $as_nop 10088 xorg_cv_cc_flag_unused_command_line_argument=no 10089fi 10090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10091fi 10092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10095 CFLAGS="$xorg_testset_save_CFLAGS" 10096fi 10097 10098found="no" 10099 10100 if test $found = "no" ; then 10101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10103 fi 10104 10105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10107 fi 10108 10109 CFLAGS="$CFLAGS -Warray-bounds" 10110 10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10112printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10113 cacheid=xorg_cv_cc_flag__Warray_bounds 10114 if eval test \${$cacheid+y} 10115then : 10116 printf %s "(cached) " >&6 10117else $as_nop 10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10119/* end confdefs.h. */ 10120int i; 10121int 10122main (void) 10123{ 10124 10125 ; 10126 return 0; 10127} 10128_ACEOF 10129if ac_fn_c_try_link "$LINENO" 10130then : 10131 eval $cacheid=yes 10132else $as_nop 10133 eval $cacheid=no 10134fi 10135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10136 conftest$ac_exeext conftest.$ac_ext 10137fi 10138 10139 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141 10142 eval supported=\$$cacheid 10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10144printf "%s\n" "$supported" >&6; } 10145 if test "$supported" = "yes" ; then 10146 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10147 found="yes" 10148 fi 10149 fi 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165xorg_testset_save_CFLAGS="$CFLAGS" 10166 10167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10171if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10172then : 10173 printf %s "(cached) " >&6 10174else $as_nop 10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10176/* end confdefs.h. */ 10177int i; 10178_ACEOF 10179if ac_fn_c_try_compile "$LINENO" 10180then : 10181 xorg_cv_cc_flag_unknown_warning_option=yes 10182else $as_nop 10183 xorg_cv_cc_flag_unknown_warning_option=no 10184fi 10185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10186fi 10187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10190 CFLAGS="$xorg_testset_save_CFLAGS" 10191fi 10192 10193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10196 fi 10197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10200if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10201then : 10202 printf %s "(cached) " >&6 10203else $as_nop 10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10205/* end confdefs.h. */ 10206int i; 10207_ACEOF 10208if ac_fn_c_try_compile "$LINENO" 10209then : 10210 xorg_cv_cc_flag_unused_command_line_argument=yes 10211else $as_nop 10212 xorg_cv_cc_flag_unused_command_line_argument=no 10213fi 10214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10215fi 10216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10219 CFLAGS="$xorg_testset_save_CFLAGS" 10220fi 10221 10222found="no" 10223 10224 if test $found = "no" ; then 10225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10227 fi 10228 10229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10231 fi 10232 10233 CFLAGS="$CFLAGS -Wwrite-strings" 10234 10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10236printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10237 cacheid=xorg_cv_cc_flag__Wwrite_strings 10238 if eval test \${$cacheid+y} 10239then : 10240 printf %s "(cached) " >&6 10241else $as_nop 10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10243/* end confdefs.h. */ 10244int i; 10245int 10246main (void) 10247{ 10248 10249 ; 10250 return 0; 10251} 10252_ACEOF 10253if ac_fn_c_try_link "$LINENO" 10254then : 10255 eval $cacheid=yes 10256else $as_nop 10257 eval $cacheid=no 10258fi 10259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10260 conftest$ac_exeext conftest.$ac_ext 10261fi 10262 10263 10264 CFLAGS="$xorg_testset_save_CFLAGS" 10265 10266 eval supported=\$$cacheid 10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10268printf "%s\n" "$supported" >&6; } 10269 if test "$supported" = "yes" ; then 10270 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10271 found="yes" 10272 fi 10273 fi 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289xorg_testset_save_CFLAGS="$CFLAGS" 10290 10291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10294printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10295if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10296then : 10297 printf %s "(cached) " >&6 10298else $as_nop 10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10300/* end confdefs.h. */ 10301int i; 10302_ACEOF 10303if ac_fn_c_try_compile "$LINENO" 10304then : 10305 xorg_cv_cc_flag_unknown_warning_option=yes 10306else $as_nop 10307 xorg_cv_cc_flag_unknown_warning_option=no 10308fi 10309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10310fi 10311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10314 CFLAGS="$xorg_testset_save_CFLAGS" 10315fi 10316 10317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10320 fi 10321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10324if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10325then : 10326 printf %s "(cached) " >&6 10327else $as_nop 10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10329/* end confdefs.h. */ 10330int i; 10331_ACEOF 10332if ac_fn_c_try_compile "$LINENO" 10333then : 10334 xorg_cv_cc_flag_unused_command_line_argument=yes 10335else $as_nop 10336 xorg_cv_cc_flag_unused_command_line_argument=no 10337fi 10338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10339fi 10340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10341printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10343 CFLAGS="$xorg_testset_save_CFLAGS" 10344fi 10345 10346found="no" 10347 10348 if test $found = "no" ; then 10349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10351 fi 10352 10353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10355 fi 10356 10357 CFLAGS="$CFLAGS -Waddress" 10358 10359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10360printf %s "checking if $CC supports -Waddress... " >&6; } 10361 cacheid=xorg_cv_cc_flag__Waddress 10362 if eval test \${$cacheid+y} 10363then : 10364 printf %s "(cached) " >&6 10365else $as_nop 10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10367/* end confdefs.h. */ 10368int i; 10369int 10370main (void) 10371{ 10372 10373 ; 10374 return 0; 10375} 10376_ACEOF 10377if ac_fn_c_try_link "$LINENO" 10378then : 10379 eval $cacheid=yes 10380else $as_nop 10381 eval $cacheid=no 10382fi 10383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10384 conftest$ac_exeext conftest.$ac_ext 10385fi 10386 10387 10388 CFLAGS="$xorg_testset_save_CFLAGS" 10389 10390 eval supported=\$$cacheid 10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10392printf "%s\n" "$supported" >&6; } 10393 if test "$supported" = "yes" ; then 10394 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10395 found="yes" 10396 fi 10397 fi 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413xorg_testset_save_CFLAGS="$CFLAGS" 10414 10415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10418printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10419if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10420then : 10421 printf %s "(cached) " >&6 10422else $as_nop 10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10424/* end confdefs.h. */ 10425int i; 10426_ACEOF 10427if ac_fn_c_try_compile "$LINENO" 10428then : 10429 xorg_cv_cc_flag_unknown_warning_option=yes 10430else $as_nop 10431 xorg_cv_cc_flag_unknown_warning_option=no 10432fi 10433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10434fi 10435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10436printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10438 CFLAGS="$xorg_testset_save_CFLAGS" 10439fi 10440 10441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10444 fi 10445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10447printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10448if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10449then : 10450 printf %s "(cached) " >&6 10451else $as_nop 10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10453/* end confdefs.h. */ 10454int i; 10455_ACEOF 10456if ac_fn_c_try_compile "$LINENO" 10457then : 10458 xorg_cv_cc_flag_unused_command_line_argument=yes 10459else $as_nop 10460 xorg_cv_cc_flag_unused_command_line_argument=no 10461fi 10462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10463fi 10464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10467 CFLAGS="$xorg_testset_save_CFLAGS" 10468fi 10469 10470found="no" 10471 10472 if test $found = "no" ; then 10473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10475 fi 10476 10477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10479 fi 10480 10481 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10482 10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10484printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10485 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10486 if eval test \${$cacheid+y} 10487then : 10488 printf %s "(cached) " >&6 10489else $as_nop 10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10491/* end confdefs.h. */ 10492int i; 10493int 10494main (void) 10495{ 10496 10497 ; 10498 return 0; 10499} 10500_ACEOF 10501if ac_fn_c_try_link "$LINENO" 10502then : 10503 eval $cacheid=yes 10504else $as_nop 10505 eval $cacheid=no 10506fi 10507rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10508 conftest$ac_exeext conftest.$ac_ext 10509fi 10510 10511 10512 CFLAGS="$xorg_testset_save_CFLAGS" 10513 10514 eval supported=\$$cacheid 10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10516printf "%s\n" "$supported" >&6; } 10517 if test "$supported" = "yes" ; then 10518 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10519 found="yes" 10520 fi 10521 fi 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537xorg_testset_save_CFLAGS="$CFLAGS" 10538 10539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10543if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10544then : 10545 printf %s "(cached) " >&6 10546else $as_nop 10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10548/* end confdefs.h. */ 10549int i; 10550_ACEOF 10551if ac_fn_c_try_compile "$LINENO" 10552then : 10553 xorg_cv_cc_flag_unknown_warning_option=yes 10554else $as_nop 10555 xorg_cv_cc_flag_unknown_warning_option=no 10556fi 10557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10558fi 10559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10560printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10562 CFLAGS="$xorg_testset_save_CFLAGS" 10563fi 10564 10565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10568 fi 10569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10571printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10572if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10573then : 10574 printf %s "(cached) " >&6 10575else $as_nop 10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10577/* end confdefs.h. */ 10578int i; 10579_ACEOF 10580if ac_fn_c_try_compile "$LINENO" 10581then : 10582 xorg_cv_cc_flag_unused_command_line_argument=yes 10583else $as_nop 10584 xorg_cv_cc_flag_unused_command_line_argument=no 10585fi 10586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10587fi 10588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10591 CFLAGS="$xorg_testset_save_CFLAGS" 10592fi 10593 10594found="no" 10595 10596 if test $found = "no" ; then 10597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10599 fi 10600 10601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10603 fi 10604 10605 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10606 10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10608printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10609 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10610 if eval test \${$cacheid+y} 10611then : 10612 printf %s "(cached) " >&6 10613else $as_nop 10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10615/* end confdefs.h. */ 10616int i; 10617int 10618main (void) 10619{ 10620 10621 ; 10622 return 0; 10623} 10624_ACEOF 10625if ac_fn_c_try_link "$LINENO" 10626then : 10627 eval $cacheid=yes 10628else $as_nop 10629 eval $cacheid=no 10630fi 10631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10632 conftest$ac_exeext conftest.$ac_ext 10633fi 10634 10635 10636 CFLAGS="$xorg_testset_save_CFLAGS" 10637 10638 eval supported=\$$cacheid 10639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10640printf "%s\n" "$supported" >&6; } 10641 if test "$supported" = "yes" ; then 10642 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10643 found="yes" 10644 fi 10645 fi 10646 10647 10648fi 10649 10650 10651 10652 10653 10654 10655 10656 CWARNFLAGS="$BASE_CFLAGS" 10657 if test "x$GCC" = xyes ; then 10658 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10659 fi 10660 10661 10662 10663 10664 10665 10666 10667 10668# Check whether --enable-strict-compilation was given. 10669if test ${enable_strict_compilation+y} 10670then : 10671 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10672else $as_nop 10673 STRICT_COMPILE=no 10674fi 10675 10676 10677 10678 10679 10680 10681STRICT_CFLAGS="" 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695xorg_testset_save_CFLAGS="$CFLAGS" 10696 10697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10701if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10702then : 10703 printf %s "(cached) " >&6 10704else $as_nop 10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10706/* end confdefs.h. */ 10707int i; 10708_ACEOF 10709if ac_fn_c_try_compile "$LINENO" 10710then : 10711 xorg_cv_cc_flag_unknown_warning_option=yes 10712else $as_nop 10713 xorg_cv_cc_flag_unknown_warning_option=no 10714fi 10715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10716fi 10717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10718printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10720 CFLAGS="$xorg_testset_save_CFLAGS" 10721fi 10722 10723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10726 fi 10727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10729printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10730if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10731then : 10732 printf %s "(cached) " >&6 10733else $as_nop 10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10735/* end confdefs.h. */ 10736int i; 10737_ACEOF 10738if ac_fn_c_try_compile "$LINENO" 10739then : 10740 xorg_cv_cc_flag_unused_command_line_argument=yes 10741else $as_nop 10742 xorg_cv_cc_flag_unused_command_line_argument=no 10743fi 10744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10745fi 10746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10749 CFLAGS="$xorg_testset_save_CFLAGS" 10750fi 10751 10752found="no" 10753 10754 if test $found = "no" ; then 10755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10757 fi 10758 10759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10761 fi 10762 10763 CFLAGS="$CFLAGS -pedantic" 10764 10765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10766printf %s "checking if $CC supports -pedantic... " >&6; } 10767 cacheid=xorg_cv_cc_flag__pedantic 10768 if eval test \${$cacheid+y} 10769then : 10770 printf %s "(cached) " >&6 10771else $as_nop 10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10773/* end confdefs.h. */ 10774int i; 10775int 10776main (void) 10777{ 10778 10779 ; 10780 return 0; 10781} 10782_ACEOF 10783if ac_fn_c_try_link "$LINENO" 10784then : 10785 eval $cacheid=yes 10786else $as_nop 10787 eval $cacheid=no 10788fi 10789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10790 conftest$ac_exeext conftest.$ac_ext 10791fi 10792 10793 10794 CFLAGS="$xorg_testset_save_CFLAGS" 10795 10796 eval supported=\$$cacheid 10797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10798printf "%s\n" "$supported" >&6; } 10799 if test "$supported" = "yes" ; then 10800 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10801 found="yes" 10802 fi 10803 fi 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819xorg_testset_save_CFLAGS="$CFLAGS" 10820 10821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10824printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10825if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10826then : 10827 printf %s "(cached) " >&6 10828else $as_nop 10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10830/* end confdefs.h. */ 10831int i; 10832_ACEOF 10833if ac_fn_c_try_compile "$LINENO" 10834then : 10835 xorg_cv_cc_flag_unknown_warning_option=yes 10836else $as_nop 10837 xorg_cv_cc_flag_unknown_warning_option=no 10838fi 10839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10840fi 10841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10842printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10844 CFLAGS="$xorg_testset_save_CFLAGS" 10845fi 10846 10847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10850 fi 10851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10853printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10854if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10855then : 10856 printf %s "(cached) " >&6 10857else $as_nop 10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10859/* end confdefs.h. */ 10860int i; 10861_ACEOF 10862if ac_fn_c_try_compile "$LINENO" 10863then : 10864 xorg_cv_cc_flag_unused_command_line_argument=yes 10865else $as_nop 10866 xorg_cv_cc_flag_unused_command_line_argument=no 10867fi 10868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10869fi 10870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10871printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10873 CFLAGS="$xorg_testset_save_CFLAGS" 10874fi 10875 10876found="no" 10877 10878 if test $found = "no" ; then 10879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10881 fi 10882 10883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10885 fi 10886 10887 CFLAGS="$CFLAGS -Werror" 10888 10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10890printf %s "checking if $CC supports -Werror... " >&6; } 10891 cacheid=xorg_cv_cc_flag__Werror 10892 if eval test \${$cacheid+y} 10893then : 10894 printf %s "(cached) " >&6 10895else $as_nop 10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10897/* end confdefs.h. */ 10898int i; 10899int 10900main (void) 10901{ 10902 10903 ; 10904 return 0; 10905} 10906_ACEOF 10907if ac_fn_c_try_link "$LINENO" 10908then : 10909 eval $cacheid=yes 10910else $as_nop 10911 eval $cacheid=no 10912fi 10913rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10914 conftest$ac_exeext conftest.$ac_ext 10915fi 10916 10917 10918 CFLAGS="$xorg_testset_save_CFLAGS" 10919 10920 eval supported=\$$cacheid 10921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10922printf "%s\n" "$supported" >&6; } 10923 if test "$supported" = "yes" ; then 10924 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10925 found="yes" 10926 fi 10927 fi 10928 10929 if test $found = "no" ; then 10930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10932 fi 10933 10934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10936 fi 10937 10938 CFLAGS="$CFLAGS -errwarn" 10939 10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10941printf %s "checking if $CC supports -errwarn... " >&6; } 10942 cacheid=xorg_cv_cc_flag__errwarn 10943 if eval test \${$cacheid+y} 10944then : 10945 printf %s "(cached) " >&6 10946else $as_nop 10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10948/* end confdefs.h. */ 10949int i; 10950int 10951main (void) 10952{ 10953 10954 ; 10955 return 0; 10956} 10957_ACEOF 10958if ac_fn_c_try_link "$LINENO" 10959then : 10960 eval $cacheid=yes 10961else $as_nop 10962 eval $cacheid=no 10963fi 10964rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10965 conftest$ac_exeext conftest.$ac_ext 10966fi 10967 10968 10969 CFLAGS="$xorg_testset_save_CFLAGS" 10970 10971 eval supported=\$$cacheid 10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10973printf "%s\n" "$supported" >&6; } 10974 if test "$supported" = "yes" ; then 10975 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10976 found="yes" 10977 fi 10978 fi 10979 10980 10981 10982# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10983# activate it with -Werror, so we add it here explicitly. 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997xorg_testset_save_CFLAGS="$CFLAGS" 10998 10999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11003if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11004then : 11005 printf %s "(cached) " >&6 11006else $as_nop 11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11008/* end confdefs.h. */ 11009int i; 11010_ACEOF 11011if ac_fn_c_try_compile "$LINENO" 11012then : 11013 xorg_cv_cc_flag_unknown_warning_option=yes 11014else $as_nop 11015 xorg_cv_cc_flag_unknown_warning_option=no 11016fi 11017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11018fi 11019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11022 CFLAGS="$xorg_testset_save_CFLAGS" 11023fi 11024 11025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11028 fi 11029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11032if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11033then : 11034 printf %s "(cached) " >&6 11035else $as_nop 11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11037/* end confdefs.h. */ 11038int i; 11039_ACEOF 11040if ac_fn_c_try_compile "$LINENO" 11041then : 11042 xorg_cv_cc_flag_unused_command_line_argument=yes 11043else $as_nop 11044 xorg_cv_cc_flag_unused_command_line_argument=no 11045fi 11046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11047fi 11048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11051 CFLAGS="$xorg_testset_save_CFLAGS" 11052fi 11053 11054found="no" 11055 11056 if test $found = "no" ; then 11057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11059 fi 11060 11061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11063 fi 11064 11065 CFLAGS="$CFLAGS -Werror=attributes" 11066 11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11068printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11069 cacheid=xorg_cv_cc_flag__Werror_attributes 11070 if eval test \${$cacheid+y} 11071then : 11072 printf %s "(cached) " >&6 11073else $as_nop 11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11075/* end confdefs.h. */ 11076int i; 11077int 11078main (void) 11079{ 11080 11081 ; 11082 return 0; 11083} 11084_ACEOF 11085if ac_fn_c_try_link "$LINENO" 11086then : 11087 eval $cacheid=yes 11088else $as_nop 11089 eval $cacheid=no 11090fi 11091rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11092 conftest$ac_exeext conftest.$ac_ext 11093fi 11094 11095 11096 CFLAGS="$xorg_testset_save_CFLAGS" 11097 11098 eval supported=\$$cacheid 11099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11100printf "%s\n" "$supported" >&6; } 11101 if test "$supported" = "yes" ; then 11102 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11103 found="yes" 11104 fi 11105 fi 11106 11107 11108 11109if test "x$STRICT_COMPILE" = "xyes"; then 11110 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11111 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11112fi 11113 11114 11115 11116 11117 11118 11119cat >>confdefs.h <<_ACEOF 11120#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11121_ACEOF 11122 11123 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11124 if test "x$PVM" = "x"; then 11125 PVM="0" 11126 fi 11127 11128printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11129 11130 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11131 if test "x$PVP" = "x"; then 11132 PVP="0" 11133 fi 11134 11135printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11136 11137 11138 11139CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11140mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11141|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11142touch \$(top_srcdir)/ChangeLog; \ 11143echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11144 11145 11146 11147 11148macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11149INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11150mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11151|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11152touch \$(top_srcdir)/INSTALL; \ 11153echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11154 11155 11156 11157 11158 11159 11160case $host_os in 11161 solaris*) 11162 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11163 # check for a man page file found in later versions that use 11164 # traditional section numbers instead 11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11166printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11167if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11168then : 11169 printf %s "(cached) " >&6 11170else $as_nop 11171 test "$cross_compiling" = yes && 11172 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11173if test -r "/usr/share/man/man7/attributes.7"; then 11174 ac_cv_file__usr_share_man_man7_attributes_7=yes 11175else 11176 ac_cv_file__usr_share_man_man7_attributes_7=no 11177fi 11178fi 11179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11180printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11181if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11182then : 11183 SYSV_MAN_SECTIONS=false 11184else $as_nop 11185 SYSV_MAN_SECTIONS=true 11186fi 11187 11188 ;; 11189 *) SYSV_MAN_SECTIONS=false ;; 11190esac 11191 11192if test x$APP_MAN_SUFFIX = x ; then 11193 APP_MAN_SUFFIX=1 11194fi 11195if test x$APP_MAN_DIR = x ; then 11196 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11197fi 11198 11199if test x$LIB_MAN_SUFFIX = x ; then 11200 LIB_MAN_SUFFIX=3 11201fi 11202if test x$LIB_MAN_DIR = x ; then 11203 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11204fi 11205 11206if test x$FILE_MAN_SUFFIX = x ; then 11207 case $SYSV_MAN_SECTIONS in 11208 true) FILE_MAN_SUFFIX=4 ;; 11209 *) FILE_MAN_SUFFIX=5 ;; 11210 esac 11211fi 11212if test x$FILE_MAN_DIR = x ; then 11213 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11214fi 11215 11216if test x$MISC_MAN_SUFFIX = x ; then 11217 case $SYSV_MAN_SECTIONS in 11218 true) MISC_MAN_SUFFIX=5 ;; 11219 *) MISC_MAN_SUFFIX=7 ;; 11220 esac 11221fi 11222if test x$MISC_MAN_DIR = x ; then 11223 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11224fi 11225 11226if test x$DRIVER_MAN_SUFFIX = x ; then 11227 case $SYSV_MAN_SECTIONS in 11228 true) DRIVER_MAN_SUFFIX=7 ;; 11229 *) DRIVER_MAN_SUFFIX=4 ;; 11230 esac 11231fi 11232if test x$DRIVER_MAN_DIR = x ; then 11233 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11234fi 11235 11236if test x$ADMIN_MAN_SUFFIX = x ; then 11237 case $SYSV_MAN_SECTIONS in 11238 true) ADMIN_MAN_SUFFIX=1m ;; 11239 *) ADMIN_MAN_SUFFIX=8 ;; 11240 esac 11241fi 11242if test x$ADMIN_MAN_DIR = x ; then 11243 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11244fi 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260XORG_MAN_PAGE="X Version 11" 11261 11262MAN_SUBSTS="\ 11263 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11264 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11265 -e 's|__xservername__|Xorg|g' \ 11266 -e 's|__xconfigfile__|xorg.conf|g' \ 11267 -e 's|__projectroot__|\$(prefix)|g' \ 11268 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11269 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11270 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11271 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11272 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11273 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11274 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11275 11276 11277 11278# Check whether --enable-silent-rules was given. 11279if test ${enable_silent_rules+y} 11280then : 11281 enableval=$enable_silent_rules; 11282fi 11283 11284case $enable_silent_rules in # ((( 11285 yes) AM_DEFAULT_VERBOSITY=0;; 11286 no) AM_DEFAULT_VERBOSITY=1;; 11287 *) AM_DEFAULT_VERBOSITY=0;; 11288esac 11289am_make=${MAKE-make} 11290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11291printf %s "checking whether $am_make supports nested variables... " >&6; } 11292if test ${am_cv_make_support_nested_variables+y} 11293then : 11294 printf %s "(cached) " >&6 11295else $as_nop 11296 if printf "%s\n" 'TRUE=$(BAR$(V)) 11297BAR0=false 11298BAR1=true 11299V=1 11300am__doit: 11301 @$(TRUE) 11302.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11303 am_cv_make_support_nested_variables=yes 11304else 11305 am_cv_make_support_nested_variables=no 11306fi 11307fi 11308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11309printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11310if test $am_cv_make_support_nested_variables = yes; then 11311 AM_V='$(V)' 11312 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11313else 11314 AM_V=$AM_DEFAULT_VERBOSITY 11315 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11316fi 11317AM_BACKSLASH='\' 11318 11319 11320 11321ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11322if test "x$ac_cv_func_asprintf" = xyes 11323then : 11324 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11325 11326fi 11327 11328 11329 11330pkg_failed=no 11331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RGB" >&5 11332printf %s "checking for RGB... " >&6; } 11333 11334if test -n "$RGB_CFLAGS"; then 11335 pkg_cv_RGB_CFLAGS="$RGB_CFLAGS" 11336 elif test -n "$PKG_CONFIG"; then 11337 if test -n "$PKG_CONFIG" && \ 11338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 11339 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 11340 ac_status=$? 11341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11342 test $ac_status = 0; }; then 11343 pkg_cv_RGB_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 11344 test "x$?" != "x0" && pkg_failed=yes 11345else 11346 pkg_failed=yes 11347fi 11348 else 11349 pkg_failed=untried 11350fi 11351if test -n "$RGB_LIBS"; then 11352 pkg_cv_RGB_LIBS="$RGB_LIBS" 11353 elif test -n "$PKG_CONFIG"; then 11354 if test -n "$PKG_CONFIG" && \ 11355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 11356 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 11357 ac_status=$? 11358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11359 test $ac_status = 0; }; then 11360 pkg_cv_RGB_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 11361 test "x$?" != "x0" && pkg_failed=yes 11362else 11363 pkg_failed=yes 11364fi 11365 else 11366 pkg_failed=untried 11367fi 11368 11369 11370 11371if test $pkg_failed = yes; then 11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11373printf "%s\n" "no" >&6; } 11374 11375if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11376 _pkg_short_errors_supported=yes 11377else 11378 _pkg_short_errors_supported=no 11379fi 11380 if test $_pkg_short_errors_supported = yes; then 11381 RGB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1` 11382 else 11383 RGB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1` 11384 fi 11385 # Put the nasty error message in config.log where it belongs 11386 echo "$RGB_PKG_ERRORS" >&5 11387 11388 as_fn_error $? "Package requirements (xproto) were not met: 11389 11390$RGB_PKG_ERRORS 11391 11392Consider adjusting the PKG_CONFIG_PATH environment variable if you 11393installed software in a non-standard prefix. 11394 11395Alternatively, you may set the environment variables RGB_CFLAGS 11396and RGB_LIBS to avoid the need to call pkg-config. 11397See the pkg-config man page for more details." "$LINENO" 5 11398elif test $pkg_failed = untried; then 11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11400printf "%s\n" "no" >&6; } 11401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11402printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11403as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11404is in your PATH or set the PKG_CONFIG environment variable to the full 11405path to pkg-config. 11406 11407Alternatively, you may set the environment variables RGB_CFLAGS 11408and RGB_LIBS to avoid the need to call pkg-config. 11409See the pkg-config man page for more details. 11410 11411To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11412See \`config.log' for more details" "$LINENO" 5; } 11413else 11414 RGB_CFLAGS=$pkg_cv_RGB_CFLAGS 11415 RGB_LIBS=$pkg_cv_RGB_LIBS 11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11417printf "%s\n" "yes" >&6; } 11418 11419fi 11420 11421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rgb database location" >&5 11422printf %s "checking for rgb database location... " >&6; } 11423 11424# Check whether --with-rgb-db-dir was given. 11425if test ${with_rgb_db_dir+y} 11426then : 11427 withval=$with_rgb_db_dir; db_path=$withval 11428else $as_nop 11429 db_path=${datadir}/X11/rgb 11430fi 11431 11432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $db_path" >&5 11433printf "%s\n" "$db_path" >&6; } 11434db_file=`basename $db_path` 11435db_dir=`dirname $db_path` 11436 11437 11438 11439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rgb database format" >&5 11440printf %s "checking for rgb database format... " >&6; } 11441 11442# Check whether --with-rgb-db-type was given. 11443if test ${with_rgb_db_type+y} 11444then : 11445 withval=$with_rgb_db_type; db_type=$withval 11446else $as_nop 11447 db_type="text" 11448fi 11449 11450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $db_type" >&5 11451printf "%s\n" "$db_type" >&6; } 11452 11453RGB_DB_TYPE=$db_type 11454 11455 11456# Check whether --with-rgb-db-library was given. 11457if test ${with_rgb_db_library+y} 11458then : 11459 withval=$with_rgb_db_library; db_lib=$withval 11460else $as_nop 11461 db_lib="auto" 11462fi 11463 11464 11465case $db_type in 11466 text) 11467 RGB_DB_FILES="" 11468 11469printf "%s\n" "#define USE_RGB_TXT 1" >>confdefs.h 11470 11471 ;; 11472 dbm) 11473 if test "x$db_lib" = "xauto" 11474then : 11475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbminit" >&5 11476printf %s "checking for library containing dbminit... " >&6; } 11477if test ${ac_cv_search_dbminit+y} 11478then : 11479 printf %s "(cached) " >&6 11480else $as_nop 11481 ac_func_search_save_LIBS=$LIBS 11482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11483/* end confdefs.h. */ 11484 11485/* Override any GCC internal prototype to avoid an error. 11486 Use char because int might match the return type of a GCC 11487 builtin and then its argument prototype would still apply. */ 11488char dbminit (); 11489int 11490main (void) 11491{ 11492return dbminit (); 11493 ; 11494 return 0; 11495} 11496_ACEOF 11497for ac_lib in '' db dbm nsl 11498do 11499 if test -z "$ac_lib"; then 11500 ac_res="none required" 11501 else 11502 ac_res=-l$ac_lib 11503 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11504 fi 11505 if ac_fn_c_try_link "$LINENO" 11506then : 11507 ac_cv_search_dbminit=$ac_res 11508fi 11509rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11510 conftest$ac_exeext 11511 if test ${ac_cv_search_dbminit+y} 11512then : 11513 break 11514fi 11515done 11516if test ${ac_cv_search_dbminit+y} 11517then : 11518 11519else $as_nop 11520 ac_cv_search_dbminit=no 11521fi 11522rm conftest.$ac_ext 11523LIBS=$ac_func_search_save_LIBS 11524fi 11525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbminit" >&5 11526printf "%s\n" "$ac_cv_search_dbminit" >&6; } 11527ac_res=$ac_cv_search_dbminit 11528if test "$ac_res" != no 11529then : 11530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11531 11532else $as_nop 11533 as_fn_error $? "dbm requested but dbminit() not found in any libraries" "$LINENO" 5 11534fi 11535 11536else $as_nop 11537 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$db_lib""_dbminit" | $as_tr_sh` 11538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$db_lib" >&5 11539printf %s "checking for dbminit in -l$db_lib... " >&6; } 11540if eval test \${$as_ac_Lib+y} 11541then : 11542 printf %s "(cached) " >&6 11543else $as_nop 11544 ac_check_lib_save_LIBS=$LIBS 11545LIBS="-l$db_lib $LIBS" 11546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11547/* end confdefs.h. */ 11548 11549/* Override any GCC internal prototype to avoid an error. 11550 Use char because int might match the return type of a GCC 11551 builtin and then its argument prototype would still apply. */ 11552char dbminit (); 11553int 11554main (void) 11555{ 11556return dbminit (); 11557 ; 11558 return 0; 11559} 11560_ACEOF 11561if ac_fn_c_try_link "$LINENO" 11562then : 11563 eval "$as_ac_Lib=yes" 11564else $as_nop 11565 eval "$as_ac_Lib=no" 11566fi 11567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11568 conftest$ac_exeext conftest.$ac_ext 11569LIBS=$ac_check_lib_save_LIBS 11570fi 11571eval ac_res=\$$as_ac_Lib 11572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11573printf "%s\n" "$ac_res" >&6; } 11574if eval test \"x\$"$as_ac_Lib"\" = x"yes" 11575then : 11576 cat >>confdefs.h <<_ACEOF 11577#define `printf "%s\n" "HAVE_LIB$db_lib" | $as_tr_cpp` 1 11578_ACEOF 11579 11580 LIBS="-l$db_lib $LIBS" 11581 11582else $as_nop 11583 as_fn_error $? "dbm requested but dbminit() not found when linking with -l$db_lib" "$LINENO" 5 11584fi 11585 11586fi 11587 ac_fn_c_check_header_compile "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default" 11588if test "x$ac_cv_header_dbm_h" = xyes 11589then : 11590 DBM_HEADER='<dbm.h>' 11591else $as_nop 11592 ac_fn_c_check_header_compile "$LINENO" "rpcsvc/dbm.h" "ac_cv_header_rpcsvc_dbm_h" "$ac_includes_default" 11593if test "x$ac_cv_header_rpcsvc_dbm_h" = xyes 11594then : 11595 DBM_HEADER='<rpcsvc/dbm.h>' 11596else $as_nop 11597 as_fn_error $? "dbm requested but dbm.h not found" "$LINENO" 5 11598fi 11599 11600fi 11601 11602 11603pkg_failed=no 11604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 11605printf %s "checking for XORG... " >&6; } 11606 11607if test -n "$XORG_CFLAGS"; then 11608 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 11609 elif test -n "$PKG_CONFIG"; then 11610 if test -n "$PKG_CONFIG" && \ 11611 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 11612 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 11613 ac_status=$? 11614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11615 test $ac_status = 0; }; then 11616 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null` 11617 test "x$?" != "x0" && pkg_failed=yes 11618else 11619 pkg_failed=yes 11620fi 11621 else 11622 pkg_failed=untried 11623fi 11624if test -n "$XORG_LIBS"; then 11625 pkg_cv_XORG_LIBS="$XORG_LIBS" 11626 elif test -n "$PKG_CONFIG"; then 11627 if test -n "$PKG_CONFIG" && \ 11628 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 11629 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 11630 ac_status=$? 11631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11632 test $ac_status = 0; }; then 11633 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null` 11634 test "x$?" != "x0" && pkg_failed=yes 11635else 11636 pkg_failed=yes 11637fi 11638 else 11639 pkg_failed=untried 11640fi 11641 11642 11643 11644if test $pkg_failed = yes; then 11645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11646printf "%s\n" "no" >&6; } 11647 11648if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11649 _pkg_short_errors_supported=yes 11650else 11651 _pkg_short_errors_supported=no 11652fi 11653 if test $_pkg_short_errors_supported = yes; then 11654 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server" 2>&1` 11655 else 11656 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server" 2>&1` 11657 fi 11658 # Put the nasty error message in config.log where it belongs 11659 echo "$XORG_PKG_ERRORS" >&5 11660 11661 as_fn_error $? "Package requirements (xorg-server) were not met: 11662 11663$XORG_PKG_ERRORS 11664 11665Consider adjusting the PKG_CONFIG_PATH environment variable if you 11666installed software in a non-standard prefix. 11667 11668Alternatively, you may set the environment variables XORG_CFLAGS 11669and XORG_LIBS to avoid the need to call pkg-config. 11670See the pkg-config man page for more details." "$LINENO" 5 11671elif test $pkg_failed = untried; then 11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11673printf "%s\n" "no" >&6; } 11674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11675printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11676as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11677is in your PATH or set the PKG_CONFIG environment variable to the full 11678path to pkg-config. 11679 11680Alternatively, you may set the environment variables XORG_CFLAGS 11681and XORG_LIBS to avoid the need to call pkg-config. 11682See the pkg-config man page for more details. 11683 11684To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11685See \`config.log' for more details" "$LINENO" 5; } 11686else 11687 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 11688 XORG_LIBS=$pkg_cv_XORG_LIBS 11689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11690printf "%s\n" "yes" >&6; } 11691 11692fi 11693 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS" 11694 RGB_DB_FILES='$(db_file).dir $(db_file).pag' 11695 ;; 11696 ndbm) 11697 # Find a dbm or ndbm implementation 11698 if test "x$db_lib" = "xauto" 11699then : 11700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5 11701printf %s "checking for library containing dbm_open... " >&6; } 11702if test ${ac_cv_search_dbm_open+y} 11703then : 11704 printf %s "(cached) " >&6 11705else $as_nop 11706 ac_func_search_save_LIBS=$LIBS 11707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11708/* end confdefs.h. */ 11709 11710/* Override any GCC internal prototype to avoid an error. 11711 Use char because int might match the return type of a GCC 11712 builtin and then its argument prototype would still apply. */ 11713char dbm_open (); 11714int 11715main (void) 11716{ 11717return dbm_open (); 11718 ; 11719 return 0; 11720} 11721_ACEOF 11722for ac_lib in '' db ndbm dbm 11723do 11724 if test -z "$ac_lib"; then 11725 ac_res="none required" 11726 else 11727 ac_res=-l$ac_lib 11728 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11729 fi 11730 if ac_fn_c_try_link "$LINENO" 11731then : 11732 ac_cv_search_dbm_open=$ac_res 11733fi 11734rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11735 conftest$ac_exeext 11736 if test ${ac_cv_search_dbm_open+y} 11737then : 11738 break 11739fi 11740done 11741if test ${ac_cv_search_dbm_open+y} 11742then : 11743 11744else $as_nop 11745 ac_cv_search_dbm_open=no 11746fi 11747rm conftest.$ac_ext 11748LIBS=$ac_func_search_save_LIBS 11749fi 11750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5 11751printf "%s\n" "$ac_cv_search_dbm_open" >&6; } 11752ac_res=$ac_cv_search_dbm_open 11753if test "$ac_res" != no 11754then : 11755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11756 11757else $as_nop 11758 as_fn_error $? "ndbm requested but dbm_open() not found in any libraries" "$LINENO" 5 11759fi 11760 11761else $as_nop 11762 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$db_lib""_dbm_open" | $as_tr_sh` 11763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$db_lib" >&5 11764printf %s "checking for dbm_open in -l$db_lib... " >&6; } 11765if eval test \${$as_ac_Lib+y} 11766then : 11767 printf %s "(cached) " >&6 11768else $as_nop 11769 ac_check_lib_save_LIBS=$LIBS 11770LIBS="-l$db_lib $LIBS" 11771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11772/* end confdefs.h. */ 11773 11774/* Override any GCC internal prototype to avoid an error. 11775 Use char because int might match the return type of a GCC 11776 builtin and then its argument prototype would still apply. */ 11777char dbm_open (); 11778int 11779main (void) 11780{ 11781return dbm_open (); 11782 ; 11783 return 0; 11784} 11785_ACEOF 11786if ac_fn_c_try_link "$LINENO" 11787then : 11788 eval "$as_ac_Lib=yes" 11789else $as_nop 11790 eval "$as_ac_Lib=no" 11791fi 11792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11793 conftest$ac_exeext conftest.$ac_ext 11794LIBS=$ac_check_lib_save_LIBS 11795fi 11796eval ac_res=\$$as_ac_Lib 11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11798printf "%s\n" "$ac_res" >&6; } 11799if eval test \"x\$"$as_ac_Lib"\" = x"yes" 11800then : 11801 cat >>confdefs.h <<_ACEOF 11802#define `printf "%s\n" "HAVE_LIB$db_lib" | $as_tr_cpp` 1 11803_ACEOF 11804 11805 LIBS="-l$db_lib $LIBS" 11806 11807else $as_nop 11808 as_fn_error $? "ndbm requested but dbm_open() not found when linking with -l$db_lib" "$LINENO" 5 11809fi 11810 11811fi 11812 11813printf "%s\n" "#define NDBM 1" >>confdefs.h 11814 11815 DBM_HEADER='<ndbm.h>' 11816 11817pkg_failed=no 11818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 11819printf %s "checking for XORG... " >&6; } 11820 11821if test -n "$XORG_CFLAGS"; then 11822 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 11823 elif test -n "$PKG_CONFIG"; then 11824 if test -n "$PKG_CONFIG" && \ 11825 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 11826 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 11827 ac_status=$? 11828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11829 test $ac_status = 0; }; then 11830 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null` 11831 test "x$?" != "x0" && pkg_failed=yes 11832else 11833 pkg_failed=yes 11834fi 11835 else 11836 pkg_failed=untried 11837fi 11838if test -n "$XORG_LIBS"; then 11839 pkg_cv_XORG_LIBS="$XORG_LIBS" 11840 elif test -n "$PKG_CONFIG"; then 11841 if test -n "$PKG_CONFIG" && \ 11842 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 11843 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 11844 ac_status=$? 11845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11846 test $ac_status = 0; }; then 11847 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null` 11848 test "x$?" != "x0" && pkg_failed=yes 11849else 11850 pkg_failed=yes 11851fi 11852 else 11853 pkg_failed=untried 11854fi 11855 11856 11857 11858if test $pkg_failed = yes; then 11859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11860printf "%s\n" "no" >&6; } 11861 11862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11863 _pkg_short_errors_supported=yes 11864else 11865 _pkg_short_errors_supported=no 11866fi 11867 if test $_pkg_short_errors_supported = yes; then 11868 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server" 2>&1` 11869 else 11870 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server" 2>&1` 11871 fi 11872 # Put the nasty error message in config.log where it belongs 11873 echo "$XORG_PKG_ERRORS" >&5 11874 11875 as_fn_error $? "Package requirements (xorg-server) were not met: 11876 11877$XORG_PKG_ERRORS 11878 11879Consider adjusting the PKG_CONFIG_PATH environment variable if you 11880installed software in a non-standard prefix. 11881 11882Alternatively, you may set the environment variables XORG_CFLAGS 11883and XORG_LIBS to avoid the need to call pkg-config. 11884See the pkg-config man page for more details." "$LINENO" 5 11885elif test $pkg_failed = untried; then 11886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11887printf "%s\n" "no" >&6; } 11888 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11889printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11890as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11891is in your PATH or set the PKG_CONFIG environment variable to the full 11892path to pkg-config. 11893 11894Alternatively, you may set the environment variables XORG_CFLAGS 11895and XORG_LIBS to avoid the need to call pkg-config. 11896See the pkg-config man page for more details. 11897 11898To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11899See \`config.log' for more details" "$LINENO" 5; } 11900else 11901 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 11902 XORG_LIBS=$pkg_cv_XORG_LIBS 11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11904printf "%s\n" "yes" >&6; } 11905 11906fi 11907 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS" 11908 RGB_DB_FILES='$(db_file).dir $(db_file).pag' 11909 ;; 11910esac 11911if test x$DBM_HEADER != x ; then 11912 11913printf "%s\n" "#define DBM_HEADER $DBM_HEADER" >>confdefs.h 11914 11915fi 11916 11917 11918 if test x$db_type != xtext; then 11919 RGB_DB_TRUE= 11920 RGB_DB_FALSE='#' 11921else 11922 RGB_DB_TRUE='#' 11923 RGB_DB_FALSE= 11924fi 11925 11926 11927ac_config_files="$ac_config_files Makefile man/Makefile" 11928 11929 11930cat >confcache <<\_ACEOF 11931# This file is a shell script that caches the results of configure 11932# tests run on this system so they can be shared between configure 11933# scripts and configure runs, see configure's option --config-cache. 11934# It is not useful on other systems. If it contains results you don't 11935# want to keep, you may remove or edit it. 11936# 11937# config.status only pays attention to the cache file if you give it 11938# the --recheck option to rerun configure. 11939# 11940# `ac_cv_env_foo' variables (set or unset) will be overridden when 11941# loading this file, other *unset* `ac_cv_foo' will be assigned the 11942# following values. 11943 11944_ACEOF 11945 11946# The following way of writing the cache mishandles newlines in values, 11947# but we know of no workaround that is simple, portable, and efficient. 11948# So, we kill variables containing newlines. 11949# Ultrix sh set writes to stderr and can't be redirected directly, 11950# and sets the high bit in the cache file unless we assign to the vars. 11951( 11952 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11953 eval ac_val=\$$ac_var 11954 case $ac_val in #( 11955 *${as_nl}*) 11956 case $ac_var in #( 11957 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11958printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11959 esac 11960 case $ac_var in #( 11961 _ | IFS | as_nl) ;; #( 11962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11963 *) { eval $ac_var=; unset $ac_var;} ;; 11964 esac ;; 11965 esac 11966 done 11967 11968 (set) 2>&1 | 11969 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11970 *${as_nl}ac_space=\ *) 11971 # `set' does not quote correctly, so add quotes: double-quote 11972 # substitution turns \\\\ into \\, and sed turns \\ into \. 11973 sed -n \ 11974 "s/'/'\\\\''/g; 11975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11976 ;; #( 11977 *) 11978 # `set' quotes correctly as required by POSIX, so do not add quotes. 11979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11980 ;; 11981 esac | 11982 sort 11983) | 11984 sed ' 11985 /^ac_cv_env_/b end 11986 t clear 11987 :clear 11988 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11989 t end 11990 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11991 :end' >>confcache 11992if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11993 if test -w "$cache_file"; then 11994 if test "x$cache_file" != "x/dev/null"; then 11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11996printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11997 if test ! -f "$cache_file" || test -h "$cache_file"; then 11998 cat confcache >"$cache_file" 11999 else 12000 case $cache_file in #( 12001 */* | ?:*) 12002 mv -f confcache "$cache_file"$$ && 12003 mv -f "$cache_file"$$ "$cache_file" ;; #( 12004 *) 12005 mv -f confcache "$cache_file" ;; 12006 esac 12007 fi 12008 fi 12009 else 12010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12011printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12012 fi 12013fi 12014rm -f confcache 12015 12016test "x$prefix" = xNONE && prefix=$ac_default_prefix 12017# Let make expand exec_prefix. 12018test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12019 12020DEFS=-DHAVE_CONFIG_H 12021 12022ac_libobjs= 12023ac_ltlibobjs= 12024U= 12025for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12026 # 1. Remove the extension, and $U if already installed. 12027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12028 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12030 # will be set to the directory where LIBOBJS objects are built. 12031 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12032 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12033done 12034LIBOBJS=$ac_libobjs 12035 12036LTLIBOBJS=$ac_ltlibobjs 12037 12038 12039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12040printf %s "checking that generated files are newer than configure... " >&6; } 12041 if test -n "$am_sleep_pid"; then 12042 # Hide warnings about reused PIDs. 12043 wait $am_sleep_pid 2>/dev/null 12044 fi 12045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12046printf "%s\n" "done" >&6; } 12047if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12048 as_fn_error $? "conditional \"AMDEP\" was never defined. 12049Usually this means the macro was only invoked conditionally." "$LINENO" 5 12050fi 12051if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12052 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12053Usually this means the macro was only invoked conditionally." "$LINENO" 5 12054fi 12055 if test -n "$EXEEXT"; then 12056 am__EXEEXT_TRUE= 12057 am__EXEEXT_FALSE='#' 12058else 12059 am__EXEEXT_TRUE='#' 12060 am__EXEEXT_FALSE= 12061fi 12062 12063if test -z "${RGB_DB_TRUE}" && test -z "${RGB_DB_FALSE}"; then 12064 as_fn_error $? "conditional \"RGB_DB\" was never defined. 12065Usually this means the macro was only invoked conditionally." "$LINENO" 5 12066fi 12067 12068: "${CONFIG_STATUS=./config.status}" 12069ac_write_fail=0 12070ac_clean_files_save=$ac_clean_files 12071ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12073printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12074as_write_fail=0 12075cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12076#! $SHELL 12077# Generated by $as_me. 12078# Run this file to recreate the current configuration. 12079# Compiler output produced by configure, useful for debugging 12080# configure, is in config.log if it exists. 12081 12082debug=false 12083ac_cs_recheck=false 12084ac_cs_silent=false 12085 12086SHELL=\${CONFIG_SHELL-$SHELL} 12087export SHELL 12088_ASEOF 12089cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12090## -------------------- ## 12091## M4sh Initialization. ## 12092## -------------------- ## 12093 12094# Be more Bourne compatible 12095DUALCASE=1; export DUALCASE # for MKS sh 12096as_nop=: 12097if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12098then : 12099 emulate sh 12100 NULLCMD=: 12101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12102 # is contrary to our usage. Disable this feature. 12103 alias -g '${1+"$@"}'='"$@"' 12104 setopt NO_GLOB_SUBST 12105else $as_nop 12106 case `(set -o) 2>/dev/null` in #( 12107 *posix*) : 12108 set -o posix ;; #( 12109 *) : 12110 ;; 12111esac 12112fi 12113 12114 12115 12116# Reset variables that may have inherited troublesome values from 12117# the environment. 12118 12119# IFS needs to be set, to space, tab, and newline, in precisely that order. 12120# (If _AS_PATH_WALK were called with IFS unset, it would have the 12121# side effect of setting IFS to empty, thus disabling word splitting.) 12122# Quoting is to prevent editors from complaining about space-tab. 12123as_nl=' 12124' 12125export as_nl 12126IFS=" "" $as_nl" 12127 12128PS1='$ ' 12129PS2='> ' 12130PS4='+ ' 12131 12132# Ensure predictable behavior from utilities with locale-dependent output. 12133LC_ALL=C 12134export LC_ALL 12135LANGUAGE=C 12136export LANGUAGE 12137 12138# We cannot yet rely on "unset" to work, but we need these variables 12139# to be unset--not just set to an empty or harmless value--now, to 12140# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12141# also avoids known problems related to "unset" and subshell syntax 12142# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12143for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12144do eval test \${$as_var+y} \ 12145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12146done 12147 12148# Ensure that fds 0, 1, and 2 are open. 12149if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12150if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12151if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12152 12153# The user is always right. 12154if ${PATH_SEPARATOR+false} :; then 12155 PATH_SEPARATOR=: 12156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12158 PATH_SEPARATOR=';' 12159 } 12160fi 12161 12162 12163# Find who we are. Look in the path if we contain no directory separator. 12164as_myself= 12165case $0 in #(( 12166 *[\\/]* ) as_myself=$0 ;; 12167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12168for as_dir in $PATH 12169do 12170 IFS=$as_save_IFS 12171 case $as_dir in #((( 12172 '') as_dir=./ ;; 12173 */) ;; 12174 *) as_dir=$as_dir/ ;; 12175 esac 12176 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12177 done 12178IFS=$as_save_IFS 12179 12180 ;; 12181esac 12182# We did not find ourselves, most probably we were run as `sh COMMAND' 12183# in which case we are not to be found in the path. 12184if test "x$as_myself" = x; then 12185 as_myself=$0 12186fi 12187if test ! -f "$as_myself"; then 12188 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12189 exit 1 12190fi 12191 12192 12193 12194# as_fn_error STATUS ERROR [LINENO LOG_FD] 12195# ---------------------------------------- 12196# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12197# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12198# script with STATUS, using 1 if that was 0. 12199as_fn_error () 12200{ 12201 as_status=$1; test $as_status -eq 0 && as_status=1 12202 if test "$4"; then 12203 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12205 fi 12206 printf "%s\n" "$as_me: error: $2" >&2 12207 as_fn_exit $as_status 12208} # as_fn_error 12209 12210 12211 12212# as_fn_set_status STATUS 12213# ----------------------- 12214# Set $? to STATUS, without forking. 12215as_fn_set_status () 12216{ 12217 return $1 12218} # as_fn_set_status 12219 12220# as_fn_exit STATUS 12221# ----------------- 12222# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12223as_fn_exit () 12224{ 12225 set +e 12226 as_fn_set_status $1 12227 exit $1 12228} # as_fn_exit 12229 12230# as_fn_unset VAR 12231# --------------- 12232# Portably unset VAR. 12233as_fn_unset () 12234{ 12235 { eval $1=; unset $1;} 12236} 12237as_unset=as_fn_unset 12238 12239# as_fn_append VAR VALUE 12240# ---------------------- 12241# Append the text in VALUE to the end of the definition contained in VAR. Take 12242# advantage of any shell optimizations that allow amortized linear growth over 12243# repeated appends, instead of the typical quadratic growth present in naive 12244# implementations. 12245if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12246then : 12247 eval 'as_fn_append () 12248 { 12249 eval $1+=\$2 12250 }' 12251else $as_nop 12252 as_fn_append () 12253 { 12254 eval $1=\$$1\$2 12255 } 12256fi # as_fn_append 12257 12258# as_fn_arith ARG... 12259# ------------------ 12260# Perform arithmetic evaluation on the ARGs, and store the result in the 12261# global $as_val. Take advantage of shells that can avoid forks. The arguments 12262# must be portable across $(()) and expr. 12263if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12264then : 12265 eval 'as_fn_arith () 12266 { 12267 as_val=$(( $* )) 12268 }' 12269else $as_nop 12270 as_fn_arith () 12271 { 12272 as_val=`expr "$@" || test $? -eq 1` 12273 } 12274fi # as_fn_arith 12275 12276 12277if expr a : '\(a\)' >/dev/null 2>&1 && 12278 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12279 as_expr=expr 12280else 12281 as_expr=false 12282fi 12283 12284if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12285 as_basename=basename 12286else 12287 as_basename=false 12288fi 12289 12290if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12291 as_dirname=dirname 12292else 12293 as_dirname=false 12294fi 12295 12296as_me=`$as_basename -- "$0" || 12297$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12298 X"$0" : 'X\(//\)$' \| \ 12299 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12300printf "%s\n" X/"$0" | 12301 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12302 s//\1/ 12303 q 12304 } 12305 /^X\/\(\/\/\)$/{ 12306 s//\1/ 12307 q 12308 } 12309 /^X\/\(\/\).*/{ 12310 s//\1/ 12311 q 12312 } 12313 s/.*/./; q'` 12314 12315# Avoid depending upon Character Ranges. 12316as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12317as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12318as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12319as_cr_digits='0123456789' 12320as_cr_alnum=$as_cr_Letters$as_cr_digits 12321 12322 12323# Determine whether it's possible to make 'echo' print without a newline. 12324# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12325# for compatibility with existing Makefiles. 12326ECHO_C= ECHO_N= ECHO_T= 12327case `echo -n x` in #((((( 12328-n*) 12329 case `echo 'xy\c'` in 12330 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12331 xy) ECHO_C='\c';; 12332 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12333 ECHO_T=' ';; 12334 esac;; 12335*) 12336 ECHO_N='-n';; 12337esac 12338 12339# For backward compatibility with old third-party macros, we provide 12340# the shell variables $as_echo and $as_echo_n. New code should use 12341# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12342as_echo='printf %s\n' 12343as_echo_n='printf %s' 12344 12345rm -f conf$$ conf$$.exe conf$$.file 12346if test -d conf$$.dir; then 12347 rm -f conf$$.dir/conf$$.file 12348else 12349 rm -f conf$$.dir 12350 mkdir conf$$.dir 2>/dev/null 12351fi 12352if (echo >conf$$.file) 2>/dev/null; then 12353 if ln -s conf$$.file conf$$ 2>/dev/null; then 12354 as_ln_s='ln -s' 12355 # ... but there are two gotchas: 12356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12358 # In both cases, we have to default to `cp -pR'. 12359 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12360 as_ln_s='cp -pR' 12361 elif ln conf$$.file conf$$ 2>/dev/null; then 12362 as_ln_s=ln 12363 else 12364 as_ln_s='cp -pR' 12365 fi 12366else 12367 as_ln_s='cp -pR' 12368fi 12369rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12370rmdir conf$$.dir 2>/dev/null 12371 12372 12373# as_fn_mkdir_p 12374# ------------- 12375# Create "$as_dir" as a directory, including parents if necessary. 12376as_fn_mkdir_p () 12377{ 12378 12379 case $as_dir in #( 12380 -*) as_dir=./$as_dir;; 12381 esac 12382 test -d "$as_dir" || eval $as_mkdir_p || { 12383 as_dirs= 12384 while :; do 12385 case $as_dir in #( 12386 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12387 *) as_qdir=$as_dir;; 12388 esac 12389 as_dirs="'$as_qdir' $as_dirs" 12390 as_dir=`$as_dirname -- "$as_dir" || 12391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12392 X"$as_dir" : 'X\(//\)[^/]' \| \ 12393 X"$as_dir" : 'X\(//\)$' \| \ 12394 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12395printf "%s\n" X"$as_dir" | 12396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12397 s//\1/ 12398 q 12399 } 12400 /^X\(\/\/\)[^/].*/{ 12401 s//\1/ 12402 q 12403 } 12404 /^X\(\/\/\)$/{ 12405 s//\1/ 12406 q 12407 } 12408 /^X\(\/\).*/{ 12409 s//\1/ 12410 q 12411 } 12412 s/.*/./; q'` 12413 test -d "$as_dir" && break 12414 done 12415 test -z "$as_dirs" || eval "mkdir $as_dirs" 12416 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12417 12418 12419} # as_fn_mkdir_p 12420if mkdir -p . 2>/dev/null; then 12421 as_mkdir_p='mkdir -p "$as_dir"' 12422else 12423 test -d ./-p && rmdir ./-p 12424 as_mkdir_p=false 12425fi 12426 12427 12428# as_fn_executable_p FILE 12429# ----------------------- 12430# Test if FILE is an executable regular file. 12431as_fn_executable_p () 12432{ 12433 test -f "$1" && test -x "$1" 12434} # as_fn_executable_p 12435as_test_x='test -x' 12436as_executable_p=as_fn_executable_p 12437 12438# Sed expression to map a string onto a valid CPP name. 12439as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12440 12441# Sed expression to map a string onto a valid variable name. 12442as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12443 12444 12445exec 6>&1 12446## ----------------------------------- ## 12447## Main body of $CONFIG_STATUS script. ## 12448## ----------------------------------- ## 12449_ASEOF 12450test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12451 12452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12453# Save the log message, to keep $0 and so on meaningful, and to 12454# report actual input values of CONFIG_FILES etc. instead of their 12455# values after options handling. 12456ac_log=" 12457This file was extended by rgb $as_me 1.1.0, which was 12458generated by GNU Autoconf 2.71. Invocation command line was 12459 12460 CONFIG_FILES = $CONFIG_FILES 12461 CONFIG_HEADERS = $CONFIG_HEADERS 12462 CONFIG_LINKS = $CONFIG_LINKS 12463 CONFIG_COMMANDS = $CONFIG_COMMANDS 12464 $ $0 $@ 12465 12466on `(hostname || uname -n) 2>/dev/null | sed 1q` 12467" 12468 12469_ACEOF 12470 12471case $ac_config_files in *" 12472"*) set x $ac_config_files; shift; ac_config_files=$*;; 12473esac 12474 12475case $ac_config_headers in *" 12476"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12477esac 12478 12479 12480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12481# Files that config.status was made for. 12482config_files="$ac_config_files" 12483config_headers="$ac_config_headers" 12484config_commands="$ac_config_commands" 12485 12486_ACEOF 12487 12488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12489ac_cs_usage="\ 12490\`$as_me' instantiates files and other configuration actions 12491from templates according to the current configuration. Unless the files 12492and actions are specified as TAGs, all are instantiated by default. 12493 12494Usage: $0 [OPTION]... [TAG]... 12495 12496 -h, --help print this help, then exit 12497 -V, --version print version number and configuration settings, then exit 12498 --config print configuration, then exit 12499 -q, --quiet, --silent 12500 do not print progress messages 12501 -d, --debug don't remove temporary files 12502 --recheck update $as_me by reconfiguring in the same conditions 12503 --file=FILE[:TEMPLATE] 12504 instantiate the configuration file FILE 12505 --header=FILE[:TEMPLATE] 12506 instantiate the configuration header FILE 12507 12508Configuration files: 12509$config_files 12510 12511Configuration headers: 12512$config_headers 12513 12514Configuration commands: 12515$config_commands 12516 12517Report bugs to <https://gitlab.freedesktop.org/xorg/app/rgb/-/issues>." 12518 12519_ACEOF 12520ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12521ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12523ac_cs_config='$ac_cs_config_escaped' 12524ac_cs_version="\\ 12525rgb config.status 1.1.0 12526configured by $0, generated by GNU Autoconf 2.71, 12527 with options \\"\$ac_cs_config\\" 12528 12529Copyright (C) 2021 Free Software Foundation, Inc. 12530This config.status script is free software; the Free Software Foundation 12531gives unlimited permission to copy, distribute and modify it." 12532 12533ac_pwd='$ac_pwd' 12534srcdir='$srcdir' 12535INSTALL='$INSTALL' 12536MKDIR_P='$MKDIR_P' 12537AWK='$AWK' 12538test -n "\$AWK" || AWK=awk 12539_ACEOF 12540 12541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12542# The default lists apply if the user does not specify any file. 12543ac_need_defaults=: 12544while test $# != 0 12545do 12546 case $1 in 12547 --*=?*) 12548 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12550 ac_shift=: 12551 ;; 12552 --*=) 12553 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12554 ac_optarg= 12555 ac_shift=: 12556 ;; 12557 *) 12558 ac_option=$1 12559 ac_optarg=$2 12560 ac_shift=shift 12561 ;; 12562 esac 12563 12564 case $ac_option in 12565 # Handling of the options. 12566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12567 ac_cs_recheck=: ;; 12568 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12569 printf "%s\n" "$ac_cs_version"; exit ;; 12570 --config | --confi | --conf | --con | --co | --c ) 12571 printf "%s\n" "$ac_cs_config"; exit ;; 12572 --debug | --debu | --deb | --de | --d | -d ) 12573 debug=: ;; 12574 --file | --fil | --fi | --f ) 12575 $ac_shift 12576 case $ac_optarg in 12577 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12578 '') as_fn_error $? "missing file argument" ;; 12579 esac 12580 as_fn_append CONFIG_FILES " '$ac_optarg'" 12581 ac_need_defaults=false;; 12582 --header | --heade | --head | --hea ) 12583 $ac_shift 12584 case $ac_optarg in 12585 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12586 esac 12587 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12588 ac_need_defaults=false;; 12589 --he | --h) 12590 # Conflict between --help and --header 12591 as_fn_error $? "ambiguous option: \`$1' 12592Try \`$0 --help' for more information.";; 12593 --help | --hel | -h ) 12594 printf "%s\n" "$ac_cs_usage"; exit ;; 12595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12596 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12597 ac_cs_silent=: ;; 12598 12599 # This is an error. 12600 -*) as_fn_error $? "unrecognized option: \`$1' 12601Try \`$0 --help' for more information." ;; 12602 12603 *) as_fn_append ac_config_targets " $1" 12604 ac_need_defaults=false ;; 12605 12606 esac 12607 shift 12608done 12609 12610ac_configure_extra_args= 12611 12612if $ac_cs_silent; then 12613 exec 6>/dev/null 12614 ac_configure_extra_args="$ac_configure_extra_args --silent" 12615fi 12616 12617_ACEOF 12618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12619if \$ac_cs_recheck; then 12620 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12621 shift 12622 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12623 CONFIG_SHELL='$SHELL' 12624 export CONFIG_SHELL 12625 exec "\$@" 12626fi 12627 12628_ACEOF 12629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12630exec 5>>config.log 12631{ 12632 echo 12633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12634## Running $as_me. ## 12635_ASBOX 12636 printf "%s\n" "$ac_log" 12637} >&5 12638 12639_ACEOF 12640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12641# 12642# INIT-COMMANDS 12643# 12644AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12645 12646_ACEOF 12647 12648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12649 12650# Handling of arguments. 12651for ac_config_target in $ac_config_targets 12652do 12653 case $ac_config_target in 12654 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12655 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12656 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12657 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12658 12659 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12660 esac 12661done 12662 12663 12664# If the user did not use the arguments to specify the items to instantiate, 12665# then the envvar interface is used. Set only those that are not. 12666# We use the long form for the default assignment because of an extremely 12667# bizarre bug on SunOS 4.1.3. 12668if $ac_need_defaults; then 12669 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12670 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12671 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12672fi 12673 12674# Have a temporary directory for convenience. Make it in the build tree 12675# simply because there is no reason against having it here, and in addition, 12676# creating and moving files from /tmp can sometimes cause problems. 12677# Hook for its removal unless debugging. 12678# Note that there is a small window in which the directory will not be cleaned: 12679# after its creation but before its name has been assigned to `$tmp'. 12680$debug || 12681{ 12682 tmp= ac_tmp= 12683 trap 'exit_status=$? 12684 : "${ac_tmp:=$tmp}" 12685 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12686' 0 12687 trap 'as_fn_exit 1' 1 2 13 15 12688} 12689# Create a (secure) tmp directory for tmp files. 12690 12691{ 12692 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12693 test -d "$tmp" 12694} || 12695{ 12696 tmp=./conf$$-$RANDOM 12697 (umask 077 && mkdir "$tmp") 12698} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12699ac_tmp=$tmp 12700 12701# Set up the scripts for CONFIG_FILES section. 12702# No need to generate them if there are no CONFIG_FILES. 12703# This happens for instance with `./config.status config.h'. 12704if test -n "$CONFIG_FILES"; then 12705 12706 12707ac_cr=`echo X | tr X '\015'` 12708# On cygwin, bash can eat \r inside `` if the user requested igncr. 12709# But we know of no other shell where ac_cr would be empty at this 12710# point, so we can use a bashism as a fallback. 12711if test "x$ac_cr" = x; then 12712 eval ac_cr=\$\'\\r\' 12713fi 12714ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12715if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12716 ac_cs_awk_cr='\\r' 12717else 12718 ac_cs_awk_cr=$ac_cr 12719fi 12720 12721echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12722_ACEOF 12723 12724 12725{ 12726 echo "cat >conf$$subs.awk <<_ACEOF" && 12727 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12728 echo "_ACEOF" 12729} >conf$$subs.sh || 12730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12731ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12732ac_delim='%!_!# ' 12733for ac_last_try in false false false false false :; do 12734 . ./conf$$subs.sh || 12735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12736 12737 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12738 if test $ac_delim_n = $ac_delim_num; then 12739 break 12740 elif $ac_last_try; then 12741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12742 else 12743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12744 fi 12745done 12746rm -f conf$$subs.sh 12747 12748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12749cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12750_ACEOF 12751sed -n ' 12752h 12753s/^/S["/; s/!.*/"]=/ 12754p 12755g 12756s/^[^!]*!// 12757:repl 12758t repl 12759s/'"$ac_delim"'$// 12760t delim 12761:nl 12762h 12763s/\(.\{148\}\)..*/\1/ 12764t more1 12765s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12766p 12767n 12768b repl 12769:more1 12770s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12771p 12772g 12773s/.\{148\}// 12774t nl 12775:delim 12776h 12777s/\(.\{148\}\)..*/\1/ 12778t more2 12779s/["\\]/\\&/g; s/^/"/; s/$/"/ 12780p 12781b 12782:more2 12783s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12784p 12785g 12786s/.\{148\}// 12787t delim 12788' <conf$$subs.awk | sed ' 12789/^[^""]/{ 12790 N 12791 s/\n// 12792} 12793' >>$CONFIG_STATUS || ac_write_fail=1 12794rm -f conf$$subs.awk 12795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12796_ACAWK 12797cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12798 for (key in S) S_is_set[key] = 1 12799 FS = "" 12800 12801} 12802{ 12803 line = $ 0 12804 nfields = split(line, field, "@") 12805 substed = 0 12806 len = length(field[1]) 12807 for (i = 2; i < nfields; i++) { 12808 key = field[i] 12809 keylen = length(key) 12810 if (S_is_set[key]) { 12811 value = S[key] 12812 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12813 len += length(value) + length(field[++i]) 12814 substed = 1 12815 } else 12816 len += 1 + keylen 12817 } 12818 12819 print line 12820} 12821 12822_ACAWK 12823_ACEOF 12824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12825if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12826 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12827else 12828 cat 12829fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12830 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12831_ACEOF 12832 12833# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12834# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12835# trailing colons and then remove the whole line if VPATH becomes empty 12836# (actually we leave an empty line to preserve line numbers). 12837if test "x$srcdir" = x.; then 12838 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12839h 12840s/// 12841s/^/:/ 12842s/[ ]*$/:/ 12843s/:\$(srcdir):/:/g 12844s/:\${srcdir}:/:/g 12845s/:@srcdir@:/:/g 12846s/^:*// 12847s/:*$// 12848x 12849s/\(=[ ]*\).*/\1/ 12850G 12851s/\n// 12852s/^[^=]*=[ ]*$// 12853}' 12854fi 12855 12856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12857fi # test -n "$CONFIG_FILES" 12858 12859# Set up the scripts for CONFIG_HEADERS section. 12860# No need to generate them if there are no CONFIG_HEADERS. 12861# This happens for instance with `./config.status Makefile'. 12862if test -n "$CONFIG_HEADERS"; then 12863cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12864BEGIN { 12865_ACEOF 12866 12867# Transform confdefs.h into an awk script `defines.awk', embedded as 12868# here-document in config.status, that substitutes the proper values into 12869# config.h.in to produce config.h. 12870 12871# Create a delimiter string that does not exist in confdefs.h, to ease 12872# handling of long lines. 12873ac_delim='%!_!# ' 12874for ac_last_try in false false :; do 12875 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12876 if test -z "$ac_tt"; then 12877 break 12878 elif $ac_last_try; then 12879 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12880 else 12881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12882 fi 12883done 12884 12885# For the awk script, D is an array of macro values keyed by name, 12886# likewise P contains macro parameters if any. Preserve backslash 12887# newline sequences. 12888 12889ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12890sed -n ' 12891s/.\{148\}/&'"$ac_delim"'/g 12892t rset 12893:rset 12894s/^[ ]*#[ ]*define[ ][ ]*/ / 12895t def 12896d 12897:def 12898s/\\$// 12899t bsnl 12900s/["\\]/\\&/g 12901s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12902D["\1"]=" \3"/p 12903s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12904d 12905:bsnl 12906s/["\\]/\\&/g 12907s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12908D["\1"]=" \3\\\\\\n"\\/p 12909t cont 12910s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12911t cont 12912d 12913:cont 12914n 12915s/.\{148\}/&'"$ac_delim"'/g 12916t clear 12917:clear 12918s/\\$// 12919t bsnlc 12920s/["\\]/\\&/g; s/^/"/; s/$/"/p 12921d 12922:bsnlc 12923s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12924b cont 12925' <confdefs.h | sed ' 12926s/'"$ac_delim"'/"\\\ 12927"/g' >>$CONFIG_STATUS || ac_write_fail=1 12928 12929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12930 for (key in D) D_is_set[key] = 1 12931 FS = "" 12932} 12933/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12934 line = \$ 0 12935 split(line, arg, " ") 12936 if (arg[1] == "#") { 12937 defundef = arg[2] 12938 mac1 = arg[3] 12939 } else { 12940 defundef = substr(arg[1], 2) 12941 mac1 = arg[2] 12942 } 12943 split(mac1, mac2, "(") #) 12944 macro = mac2[1] 12945 prefix = substr(line, 1, index(line, defundef) - 1) 12946 if (D_is_set[macro]) { 12947 # Preserve the white space surrounding the "#". 12948 print prefix "define", macro P[macro] D[macro] 12949 next 12950 } else { 12951 # Replace #undef with comments. This is necessary, for example, 12952 # in the case of _POSIX_SOURCE, which is predefined and required 12953 # on some systems where configure will not decide to define it. 12954 if (defundef == "undef") { 12955 print "/*", prefix defundef, macro, "*/" 12956 next 12957 } 12958 } 12959} 12960{ print } 12961_ACAWK 12962_ACEOF 12963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12964 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12965fi # test -n "$CONFIG_HEADERS" 12966 12967 12968eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12969shift 12970for ac_tag 12971do 12972 case $ac_tag in 12973 :[FHLC]) ac_mode=$ac_tag; continue;; 12974 esac 12975 case $ac_mode$ac_tag in 12976 :[FHL]*:*);; 12977 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12978 :[FH]-) ac_tag=-:-;; 12979 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12980 esac 12981 ac_save_IFS=$IFS 12982 IFS=: 12983 set x $ac_tag 12984 IFS=$ac_save_IFS 12985 shift 12986 ac_file=$1 12987 shift 12988 12989 case $ac_mode in 12990 :L) ac_source=$1;; 12991 :[FH]) 12992 ac_file_inputs= 12993 for ac_f 12994 do 12995 case $ac_f in 12996 -) ac_f="$ac_tmp/stdin";; 12997 *) # Look for the file first in the build tree, then in the source tree 12998 # (if the path is not absolute). The absolute path cannot be DOS-style, 12999 # because $ac_f cannot contain `:'. 13000 test -f "$ac_f" || 13001 case $ac_f in 13002 [\\/$]*) false;; 13003 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13004 esac || 13005 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13006 esac 13007 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13008 as_fn_append ac_file_inputs " '$ac_f'" 13009 done 13010 13011 # Let's still pretend it is `configure' which instantiates (i.e., don't 13012 # use $as_me), people would be surprised to read: 13013 # /* config.h. Generated by config.status. */ 13014 configure_input='Generated from '` 13015 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13016 `' by configure.' 13017 if test x"$ac_file" != x-; then 13018 configure_input="$ac_file. $configure_input" 13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13020printf "%s\n" "$as_me: creating $ac_file" >&6;} 13021 fi 13022 # Neutralize special characters interpreted by sed in replacement strings. 13023 case $configure_input in #( 13024 *\&* | *\|* | *\\* ) 13025 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13026 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13027 *) ac_sed_conf_input=$configure_input;; 13028 esac 13029 13030 case $ac_tag in 13031 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13033 esac 13034 ;; 13035 esac 13036 13037 ac_dir=`$as_dirname -- "$ac_file" || 13038$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13039 X"$ac_file" : 'X\(//\)[^/]' \| \ 13040 X"$ac_file" : 'X\(//\)$' \| \ 13041 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13042printf "%s\n" X"$ac_file" | 13043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13044 s//\1/ 13045 q 13046 } 13047 /^X\(\/\/\)[^/].*/{ 13048 s//\1/ 13049 q 13050 } 13051 /^X\(\/\/\)$/{ 13052 s//\1/ 13053 q 13054 } 13055 /^X\(\/\).*/{ 13056 s//\1/ 13057 q 13058 } 13059 s/.*/./; q'` 13060 as_dir="$ac_dir"; as_fn_mkdir_p 13061 ac_builddir=. 13062 13063case "$ac_dir" in 13064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13065*) 13066 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13067 # A ".." for each directory in $ac_dir_suffix. 13068 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13069 case $ac_top_builddir_sub in 13070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13072 esac ;; 13073esac 13074ac_abs_top_builddir=$ac_pwd 13075ac_abs_builddir=$ac_pwd$ac_dir_suffix 13076# for backward compatibility: 13077ac_top_builddir=$ac_top_build_prefix 13078 13079case $srcdir in 13080 .) # We are building in place. 13081 ac_srcdir=. 13082 ac_top_srcdir=$ac_top_builddir_sub 13083 ac_abs_top_srcdir=$ac_pwd ;; 13084 [\\/]* | ?:[\\/]* ) # Absolute name. 13085 ac_srcdir=$srcdir$ac_dir_suffix; 13086 ac_top_srcdir=$srcdir 13087 ac_abs_top_srcdir=$srcdir ;; 13088 *) # Relative name. 13089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13090 ac_top_srcdir=$ac_top_build_prefix$srcdir 13091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13092esac 13093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13094 13095 13096 case $ac_mode in 13097 :F) 13098 # 13099 # CONFIG_FILE 13100 # 13101 13102 case $INSTALL in 13103 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13104 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13105 esac 13106 ac_MKDIR_P=$MKDIR_P 13107 case $MKDIR_P in 13108 [\\/$]* | ?:[\\/]* ) ;; 13109 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13110 esac 13111_ACEOF 13112 13113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13114# If the template does not know about datarootdir, expand it. 13115# FIXME: This hack should be removed a few years after 2.60. 13116ac_datarootdir_hack=; ac_datarootdir_seen= 13117ac_sed_dataroot=' 13118/datarootdir/ { 13119 p 13120 q 13121} 13122/@datadir@/p 13123/@docdir@/p 13124/@infodir@/p 13125/@localedir@/p 13126/@mandir@/p' 13127case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13128*datarootdir*) ac_datarootdir_seen=yes;; 13129*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13131printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13132_ACEOF 13133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13134 ac_datarootdir_hack=' 13135 s&@datadir@&$datadir&g 13136 s&@docdir@&$docdir&g 13137 s&@infodir@&$infodir&g 13138 s&@localedir@&$localedir&g 13139 s&@mandir@&$mandir&g 13140 s&\\\${datarootdir}&$datarootdir&g' ;; 13141esac 13142_ACEOF 13143 13144# Neutralize VPATH when `$srcdir' = `.'. 13145# Shell code in configure.ac might set extrasub. 13146# FIXME: do we really want to maintain this feature? 13147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13148ac_sed_extra="$ac_vpsub 13149$extrasub 13150_ACEOF 13151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13152:t 13153/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13154s|@configure_input@|$ac_sed_conf_input|;t t 13155s&@top_builddir@&$ac_top_builddir_sub&;t t 13156s&@top_build_prefix@&$ac_top_build_prefix&;t t 13157s&@srcdir@&$ac_srcdir&;t t 13158s&@abs_srcdir@&$ac_abs_srcdir&;t t 13159s&@top_srcdir@&$ac_top_srcdir&;t t 13160s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13161s&@builddir@&$ac_builddir&;t t 13162s&@abs_builddir@&$ac_abs_builddir&;t t 13163s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13164s&@INSTALL@&$ac_INSTALL&;t t 13165s&@MKDIR_P@&$ac_MKDIR_P&;t t 13166$ac_datarootdir_hack 13167" 13168eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13169 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13170 13171test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13172 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13173 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13174 "$ac_tmp/out"`; test -z "$ac_out"; } && 13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13176which seems to be undefined. Please make sure it is defined" >&5 13177printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13178which seems to be undefined. Please make sure it is defined" >&2;} 13179 13180 rm -f "$ac_tmp/stdin" 13181 case $ac_file in 13182 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13183 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13184 esac \ 13185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13186 ;; 13187 :H) 13188 # 13189 # CONFIG_HEADER 13190 # 13191 if test x"$ac_file" != x-; then 13192 { 13193 printf "%s\n" "/* $configure_input */" >&1 \ 13194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13195 } >"$ac_tmp/config.h" \ 13196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13197 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13199printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13200 else 13201 rm -f "$ac_file" 13202 mv "$ac_tmp/config.h" "$ac_file" \ 13203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13204 fi 13205 else 13206 printf "%s\n" "/* $configure_input */" >&1 \ 13207 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13208 || as_fn_error $? "could not create -" "$LINENO" 5 13209 fi 13210# Compute "$ac_file"'s index in $config_headers. 13211_am_arg="$ac_file" 13212_am_stamp_count=1 13213for _am_header in $config_headers :; do 13214 case $_am_header in 13215 $_am_arg | $_am_arg:* ) 13216 break ;; 13217 * ) 13218 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13219 esac 13220done 13221echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13222$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13223 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13224 X"$_am_arg" : 'X\(//\)$' \| \ 13225 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13226printf "%s\n" X"$_am_arg" | 13227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13228 s//\1/ 13229 q 13230 } 13231 /^X\(\/\/\)[^/].*/{ 13232 s//\1/ 13233 q 13234 } 13235 /^X\(\/\/\)$/{ 13236 s//\1/ 13237 q 13238 } 13239 /^X\(\/\).*/{ 13240 s//\1/ 13241 q 13242 } 13243 s/.*/./; q'`/stamp-h$_am_stamp_count 13244 ;; 13245 13246 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13247printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13248 ;; 13249 esac 13250 13251 13252 case $ac_file$ac_mode in 13253 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13254 # Older Autoconf quotes --file arguments for eval, but not when files 13255 # are listed without --file. Let's play safe and only enable the eval 13256 # if we detect the quoting. 13257 # TODO: see whether this extra hack can be removed once we start 13258 # requiring Autoconf 2.70 or later. 13259 case $CONFIG_FILES in #( 13260 *\'*) : 13261 eval set x "$CONFIG_FILES" ;; #( 13262 *) : 13263 set x $CONFIG_FILES ;; #( 13264 *) : 13265 ;; 13266esac 13267 shift 13268 # Used to flag and report bootstrapping failures. 13269 am_rc=0 13270 for am_mf 13271 do 13272 # Strip MF so we end up with the name of the file. 13273 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13274 # Check whether this is an Automake generated Makefile which includes 13275 # dependency-tracking related rules and includes. 13276 # Grep'ing the whole file directly is not great: AIX grep has a line 13277 # limit of 2048, but all sed's we know have understand at least 4000. 13278 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13279 || continue 13280 am_dirpart=`$as_dirname -- "$am_mf" || 13281$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13282 X"$am_mf" : 'X\(//\)[^/]' \| \ 13283 X"$am_mf" : 'X\(//\)$' \| \ 13284 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13285printf "%s\n" X"$am_mf" | 13286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13287 s//\1/ 13288 q 13289 } 13290 /^X\(\/\/\)[^/].*/{ 13291 s//\1/ 13292 q 13293 } 13294 /^X\(\/\/\)$/{ 13295 s//\1/ 13296 q 13297 } 13298 /^X\(\/\).*/{ 13299 s//\1/ 13300 q 13301 } 13302 s/.*/./; q'` 13303 am_filepart=`$as_basename -- "$am_mf" || 13304$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13305 X"$am_mf" : 'X\(//\)$' \| \ 13306 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13307printf "%s\n" X/"$am_mf" | 13308 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13309 s//\1/ 13310 q 13311 } 13312 /^X\/\(\/\/\)$/{ 13313 s//\1/ 13314 q 13315 } 13316 /^X\/\(\/\).*/{ 13317 s//\1/ 13318 q 13319 } 13320 s/.*/./; q'` 13321 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13322 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13323 | $MAKE -f - am--depfiles" >&5 13324 (cd "$am_dirpart" \ 13325 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13326 | $MAKE -f - am--depfiles) >&5 2>&5 13327 ac_status=$? 13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13329 (exit $ac_status); } || am_rc=$? 13330 done 13331 if test $am_rc -ne 0; then 13332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13333printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13334as_fn_error $? "Something went wrong bootstrapping makefile fragments 13335 for automatic dependency tracking. If GNU make was not used, consider 13336 re-running the configure script with MAKE=\"gmake\" (or whatever is 13337 necessary). You can also try re-running configure with the 13338 '--disable-dependency-tracking' option to at least be able to build 13339 the package (albeit without support for automatic dependency tracking). 13340See \`config.log' for more details" "$LINENO" 5; } 13341 fi 13342 { am_dirpart=; unset am_dirpart;} 13343 { am_filepart=; unset am_filepart;} 13344 { am_mf=; unset am_mf;} 13345 { am_rc=; unset am_rc;} 13346 rm -f conftest-deps.mk 13347} 13348 ;; 13349 13350 esac 13351done # for ac_tag 13352 13353 13354as_fn_exit 0 13355_ACEOF 13356ac_clean_files=$ac_clean_files_save 13357 13358test $ac_write_fail = 0 || 13359 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13360 13361 13362# configure is writing to config.log, and then calls config.status. 13363# config.status does its own redirection, appending to config.log. 13364# Unfortunately, on DOS this fails, as config.log is still kept open 13365# by configure, so config.status won't be able to write to it; its 13366# output is simply discarded. So we exec the FD to /dev/null, 13367# effectively closing config.log, so it can be properly (re)opened and 13368# appended to by config.status. When coming back to configure, we 13369# need to make the FD available again. 13370if test "$no_create" != yes; then 13371 ac_cs_success=: 13372 ac_config_status_args= 13373 test "$silent" = yes && 13374 ac_config_status_args="$ac_config_status_args --quiet" 13375 exec 5>/dev/null 13376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13377 exec 5>>config.log 13378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13379 # would make configure fail if this is the last instruction. 13380 $ac_cs_success || as_fn_exit 1 13381fi 13382if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13384printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13385fi 13386 13387 13388