1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xrdb 1.2.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrdb/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/xrdb/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='xrdb' 614PACKAGE_TARNAME='xrdb' 615PACKAGE_VERSION='1.2.2' 616PACKAGE_STRING='xrdb 1.2.2' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xrdb/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 657XRDB_LIBS 658XRDB_CFLAGS 659CPP_PATH 660MAN_SUBSTS 661XORG_MAN_PAGE 662ADMIN_MAN_DIR 663DRIVER_MAN_DIR 664MISC_MAN_DIR 665FILE_MAN_DIR 666LIB_MAN_DIR 667APP_MAN_DIR 668ADMIN_MAN_SUFFIX 669DRIVER_MAN_SUFFIX 670MISC_MAN_SUFFIX 671FILE_MAN_SUFFIX 672LIB_MAN_SUFFIX 673APP_MAN_SUFFIX 674SED 675host_os 676host_vendor 677host_cpu 678host 679build_os 680build_vendor 681build_cpu 682build 683INSTALL_CMD 684PKG_CONFIG_LIBDIR 685PKG_CONFIG_PATH 686PKG_CONFIG 687CHANGELOG_CMD 688STRICT_CFLAGS 689CWARNFLAGS 690BASE_CFLAGS 691AM_BACKSLASH 692AM_DEFAULT_VERBOSITY 693AM_DEFAULT_V 694AM_V 695CSCOPE 696ETAGS 697CTAGS 698am__fastdepCC_FALSE 699am__fastdepCC_TRUE 700CCDEPMODE 701am__nodep 702AMDEPBACKSLASH 703AMDEP_FALSE 704AMDEP_TRUE 705am__include 706DEPDIR 707am__untar 708am__tar 709AMTAR 710am__leading_dot 711SET_MAKE 712AWK 713mkdir_p 714MKDIR_P 715INSTALL_STRIP_PROGRAM 716STRIP 717install_sh 718MAKEINFO 719AUTOHEADER 720AUTOMAKE 721AUTOCONF 722ACLOCAL 723VERSION 724PACKAGE 725CYGPATH_W 726am__isrc 727INSTALL_DATA 728INSTALL_SCRIPT 729INSTALL_PROGRAM 730OBJEXT 731EXEEXT 732ac_ct_CC 733CPPFLAGS 734LDFLAGS 735CFLAGS 736CC 737target_alias 738host_alias 739build_alias 740LIBS 741ECHO_T 742ECHO_N 743ECHO_C 744DEFS 745mandir 746localedir 747libdir 748psdir 749pdfdir 750dvidir 751htmldir 752infodir 753docdir 754oldincludedir 755includedir 756runstatedir 757localstatedir 758sharedstatedir 759sysconfdir 760datadir 761datarootdir 762libexecdir 763sbindir 764bindir 765program_transform_name 766prefix 767exec_prefix 768PACKAGE_URL 769PACKAGE_BUGREPORT 770PACKAGE_STRING 771PACKAGE_VERSION 772PACKAGE_TARNAME 773PACKAGE_NAME 774PATH_SEPARATOR 775SHELL 776am__quote' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_dependency_tracking 781enable_silent_rules 782enable_selective_werror 783enable_strict_compilation 784with_cpp 785' 786 ac_precious_vars='build_alias 787host_alias 788target_alias 789CC 790CFLAGS 791LDFLAGS 792LIBS 793CPPFLAGS 794PKG_CONFIG 795PKG_CONFIG_PATH 796PKG_CONFIG_LIBDIR 797XRDB_CFLAGS 798XRDB_LIBS' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837runstatedir='${localstatedir}/run' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: \`$ac_useropt'" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: \`$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089 | --runstate | --runstat | --runsta | --runst | --runs \ 1090 | --run | --ru | --r) 1091 ac_prev=runstatedir ;; 1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094 | --run=* | --ru=* | --r=*) 1095 runstatedir=$ac_optarg ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: \`$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: \`$ac_useropt'" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1193Try \`$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir runstatedir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: `$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265fi 1266 1267ac_tool_prefix= 1268test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270test "$silent" = yes && exec 6>/dev/null 1271 1272 1273ac_pwd=`pwd` && test -n "$ac_pwd" && 1274ac_ls_di=`ls -di .` && 1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281# Find the source files, if location was not specified. 1282if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290printf "%s\n" X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312else 1313 ac_srcdir_defaulted=no 1314fi 1315if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318fi 1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1320ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323# When building in place, set srcdir=. 1324if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326fi 1327# Remove unnecessary trailing slashes from srcdir. 1328# Double slashes in file names in object file debugging info 1329# mess up M-x gdb in Emacs. 1330case $srcdir in 1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332esac 1333for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338done 1339 1340# 1341# Report the --help message. 1342# 1343if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347\`configure' configures xrdb 1.2.2 to adapt to many kinds of systems. 1348 1349Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354Defaults for the options are specified in brackets. 1355 1356Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print \`checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for \`--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1366 1367Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373By default, \`make install' will install all the files in 1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1375an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1376for instance \`--prefix=\$HOME'. 1377 1378For better control, use the options below. 1379 1380Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xrdb] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of xrdb 1.2.2:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-dependency-tracking 1427 do not reject slow dependency extractors 1428 --disable-dependency-tracking 1429 speeds up one-time build 1430 --enable-silent-rules less verbose build output (undo: "make V=1") 1431 --disable-silent-rules verbose build output (undo: "make V=0") 1432 --disable-selective-werror 1433 Turn off selective compiler errors. (default: 1434 enabled) 1435 --enable-strict-compilation 1436 Enable all warnings from compiler and make them 1437 errors (default: disabled) 1438 1439Optional Packages: 1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --with-cpp=path comma-separated list of paths to cpp command for 1443 xrdb to use at runtime 1444 1445Some influential environment variables: 1446 CC C compiler command 1447 CFLAGS C compiler flags 1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1449 nonstandard directory <lib dir> 1450 LIBS libraries to pass to the linker, e.g. -l<library> 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1452 you have headers in a nonstandard directory <include dir> 1453 PKG_CONFIG path to pkg-config utility 1454 PKG_CONFIG_PATH 1455 directories to add to pkg-config's search path 1456 PKG_CONFIG_LIBDIR 1457 path overriding pkg-config's built-in search path 1458 XRDB_CFLAGS C compiler flags for XRDB, overriding pkg-config 1459 XRDB_LIBS linker flags for XRDB, overriding pkg-config 1460 1461Use these variables to override the choices made by `configure' or to help 1462it to find libraries and programs with nonstandard names/locations. 1463 1464Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrdb/issues>. 1465_ACEOF 1466ac_status=$? 1467fi 1468 1469if test "$ac_init_help" = "recursive"; then 1470 # If there are subdirs, report their specific --help. 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1472 test -d "$ac_dir" || 1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1474 continue 1475 ac_builddir=. 1476 1477case "$ac_dir" in 1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479*) 1480 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1481 # A ".." for each directory in $ac_dir_suffix. 1482 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1483 case $ac_top_builddir_sub in 1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1486 esac ;; 1487esac 1488ac_abs_top_builddir=$ac_pwd 1489ac_abs_builddir=$ac_pwd$ac_dir_suffix 1490# for backward compatibility: 1491ac_top_builddir=$ac_top_build_prefix 1492 1493case $srcdir in 1494 .) # We are building in place. 1495 ac_srcdir=. 1496 ac_top_srcdir=$ac_top_builddir_sub 1497 ac_abs_top_srcdir=$ac_pwd ;; 1498 [\\/]* | ?:[\\/]* ) # Absolute name. 1499 ac_srcdir=$srcdir$ac_dir_suffix; 1500 ac_top_srcdir=$srcdir 1501 ac_abs_top_srcdir=$srcdir ;; 1502 *) # Relative name. 1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1504 ac_top_srcdir=$ac_top_build_prefix$srcdir 1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1506esac 1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1508 1509 cd "$ac_dir" || { ac_status=$?; continue; } 1510 # Check for configure.gnu first; this name is used for a wrapper for 1511 # Metaconfig's "Configure" on case-insensitive file systems. 1512 if test -f "$ac_srcdir/configure.gnu"; then 1513 echo && 1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1515 elif test -f "$ac_srcdir/configure"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure" --help=recursive 1518 else 1519 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1520 fi || ac_status=$? 1521 cd "$ac_pwd" || { ac_status=$?; break; } 1522 done 1523fi 1524 1525test -n "$ac_init_help" && exit $ac_status 1526if $ac_init_version; then 1527 cat <<\_ACEOF 1528xrdb configure 1.2.2 1529generated by GNU Autoconf 2.71 1530 1531Copyright (C) 2021 Free Software Foundation, Inc. 1532This configure script is free software; the Free Software Foundation 1533gives unlimited permission to copy, distribute and modify it. 1534_ACEOF 1535 exit 1536fi 1537 1538## ------------------------ ## 1539## Autoconf initialization. ## 1540## ------------------------ ## 1541 1542# ac_fn_c_try_compile LINENO 1543# -------------------------- 1544# Try to compile conftest.$ac_ext, and return whether this succeeded. 1545ac_fn_c_try_compile () 1546{ 1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548 rm -f conftest.$ac_objext conftest.beam 1549 if { { ac_try="$ac_compile" 1550case "(($ac_try" in 1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1552 *) ac_try_echo=$ac_try;; 1553esac 1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1555printf "%s\n" "$ac_try_echo"; } >&5 1556 (eval "$ac_compile") 2>conftest.err 1557 ac_status=$? 1558 if test -s conftest.err; then 1559 grep -v '^ *+' conftest.err >conftest.er1 1560 cat conftest.er1 >&5 1561 mv -f conftest.er1 conftest.err 1562 fi 1563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1564 test $ac_status = 0; } && { 1565 test -z "$ac_c_werror_flag" || 1566 test ! -s conftest.err 1567 } && test -s conftest.$ac_objext 1568then : 1569 ac_retval=0 1570else $as_nop 1571 printf "%s\n" "$as_me: failed program was:" >&5 1572sed 's/^/| /' conftest.$ac_ext >&5 1573 1574 ac_retval=1 1575fi 1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1577 as_fn_set_status $ac_retval 1578 1579} # ac_fn_c_try_compile 1580 1581# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1582# ------------------------------------------------------- 1583# Tests whether HEADER exists and can be compiled using the include files in 1584# INCLUDES, setting the cache variable VAR accordingly. 1585ac_fn_c_check_header_compile () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1589printf %s "checking for $2... " >&6; } 1590if eval test \${$3+y} 1591then : 1592 printf %s "(cached) " >&6 1593else $as_nop 1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1595/* end confdefs.h. */ 1596$4 1597#include <$2> 1598_ACEOF 1599if ac_fn_c_try_compile "$LINENO" 1600then : 1601 eval "$3=yes" 1602else $as_nop 1603 eval "$3=no" 1604fi 1605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1606fi 1607eval ac_res=\$$3 1608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1609printf "%s\n" "$ac_res" >&6; } 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 1612} # ac_fn_c_check_header_compile 1613 1614# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1615# ------------------------------------------------------------------ 1616# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1617# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1618ac_fn_check_decl () 1619{ 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 as_decl_name=`echo $2|sed 's/ *(.*//'` 1622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1623printf %s "checking whether $as_decl_name is declared... " >&6; } 1624if eval test \${$3+y} 1625then : 1626 printf %s "(cached) " >&6 1627else $as_nop 1628 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1629 eval ac_save_FLAGS=\$$6 1630 as_fn_append $6 " $5" 1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1632/* end confdefs.h. */ 1633$4 1634int 1635main (void) 1636{ 1637#ifndef $as_decl_name 1638#ifdef __cplusplus 1639 (void) $as_decl_use; 1640#else 1641 (void) $as_decl_name; 1642#endif 1643#endif 1644 1645 ; 1646 return 0; 1647} 1648_ACEOF 1649if ac_fn_c_try_compile "$LINENO" 1650then : 1651 eval "$3=yes" 1652else $as_nop 1653 eval "$3=no" 1654fi 1655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1656 eval $6=\$ac_save_FLAGS 1657 1658fi 1659eval ac_res=\$$3 1660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1661printf "%s\n" "$ac_res" >&6; } 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 1664} # ac_fn_check_decl 1665 1666# ac_fn_c_try_link LINENO 1667# ----------------------- 1668# Try to link conftest.$ac_ext, and return whether this succeeded. 1669ac_fn_c_try_link () 1670{ 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1673 if { { ac_try="$ac_link" 1674case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679printf "%s\n" "$ac_try_echo"; } >&5 1680 (eval "$ac_link") 2>conftest.err 1681 ac_status=$? 1682 if test -s conftest.err; then 1683 grep -v '^ *+' conftest.err >conftest.er1 1684 cat conftest.er1 >&5 1685 mv -f conftest.er1 conftest.err 1686 fi 1687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } && { 1689 test -z "$ac_c_werror_flag" || 1690 test ! -s conftest.err 1691 } && test -s conftest$ac_exeext && { 1692 test "$cross_compiling" = yes || 1693 test -x conftest$ac_exeext 1694 } 1695then : 1696 ac_retval=0 1697else $as_nop 1698 printf "%s\n" "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702fi 1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1705 # interfere with the next link command; also delete a directory that is 1706 # left behind by Apple's compiler. We do this before executing the actions. 1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_link 1712 1713# ac_fn_c_check_func LINENO FUNC VAR 1714# ---------------------------------- 1715# Tests whether FUNC exists, setting the cache variable VAR accordingly 1716ac_fn_c_check_func () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1720printf %s "checking for $2... " >&6; } 1721if eval test \${$3+y} 1722then : 1723 printf %s "(cached) " >&6 1724else $as_nop 1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1726/* end confdefs.h. */ 1727/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1729#define $2 innocuous_$2 1730 1731/* System header to define __stub macros and hopefully few prototypes, 1732 which can conflict with char $2 (); below. */ 1733 1734#include <limits.h> 1735#undef $2 1736 1737/* Override any GCC internal prototype to avoid an error. 1738 Use char because int might match the return type of a GCC 1739 builtin and then its argument prototype would still apply. */ 1740#ifdef __cplusplus 1741extern "C" 1742#endif 1743char $2 (); 1744/* The GNU C library defines this for functions which it implements 1745 to always fail with ENOSYS. Some functions are actually named 1746 something starting with __ and the normal name is an alias. */ 1747#if defined __stub_$2 || defined __stub___$2 1748choke me 1749#endif 1750 1751int 1752main (void) 1753{ 1754return $2 (); 1755 ; 1756 return 0; 1757} 1758_ACEOF 1759if ac_fn_c_try_link "$LINENO" 1760then : 1761 eval "$3=yes" 1762else $as_nop 1763 eval "$3=no" 1764fi 1765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1766 conftest$ac_exeext conftest.$ac_ext 1767fi 1768eval ac_res=\$$3 1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770printf "%s\n" "$ac_res" >&6; } 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 1773} # ac_fn_c_check_func 1774ac_configure_args_raw= 1775for ac_arg 1776do 1777 case $ac_arg in 1778 *\'*) 1779 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1780 esac 1781 as_fn_append ac_configure_args_raw " '$ac_arg'" 1782done 1783 1784case $ac_configure_args_raw in 1785 *$as_nl*) 1786 ac_safe_unquote= ;; 1787 *) 1788 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1789 ac_unsafe_a="$ac_unsafe_z#~" 1790 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1791 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1792esac 1793 1794cat >config.log <<_ACEOF 1795This file contains any messages produced by compilers while 1796running configure, to aid debugging if configure makes a mistake. 1797 1798It was created by xrdb $as_me 1.2.2, which was 1799generated by GNU Autoconf 2.71. Invocation command line was 1800 1801 $ $0$ac_configure_args_raw 1802 1803_ACEOF 1804exec 5>>config.log 1805{ 1806cat <<_ASUNAME 1807## --------- ## 1808## Platform. ## 1809## --------- ## 1810 1811hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1812uname -m = `(uname -m) 2>/dev/null || echo unknown` 1813uname -r = `(uname -r) 2>/dev/null || echo unknown` 1814uname -s = `(uname -s) 2>/dev/null || echo unknown` 1815uname -v = `(uname -v) 2>/dev/null || echo unknown` 1816 1817/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1818/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1819 1820/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1821/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1822/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1823/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1824/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1825/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1826/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1827 1828_ASUNAME 1829 1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1831for as_dir in $PATH 1832do 1833 IFS=$as_save_IFS 1834 case $as_dir in #((( 1835 '') as_dir=./ ;; 1836 */) ;; 1837 *) as_dir=$as_dir/ ;; 1838 esac 1839 printf "%s\n" "PATH: $as_dir" 1840 done 1841IFS=$as_save_IFS 1842 1843} >&5 1844 1845cat >&5 <<_ACEOF 1846 1847 1848## ----------- ## 1849## Core tests. ## 1850## ----------- ## 1851 1852_ACEOF 1853 1854 1855# Keep a trace of the command line. 1856# Strip out --no-create and --no-recursion so they do not pile up. 1857# Strip out --silent because we don't want to record it for future runs. 1858# Also quote any args containing shell meta-characters. 1859# Make two passes to allow for proper duplicate-argument suppression. 1860ac_configure_args= 1861ac_configure_args0= 1862ac_configure_args1= 1863ac_must_keep_next=false 1864for ac_pass in 1 2 1865do 1866 for ac_arg 1867 do 1868 case $ac_arg in 1869 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1871 | -silent | --silent | --silen | --sile | --sil) 1872 continue ;; 1873 *\'*) 1874 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1875 esac 1876 case $ac_pass in 1877 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1878 2) 1879 as_fn_append ac_configure_args1 " '$ac_arg'" 1880 if test $ac_must_keep_next = true; then 1881 ac_must_keep_next=false # Got value, back to normal. 1882 else 1883 case $ac_arg in 1884 *=* | --config-cache | -C | -disable-* | --disable-* \ 1885 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1886 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1887 | -with-* | --with-* | -without-* | --without-* | --x) 1888 case "$ac_configure_args0 " in 1889 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1890 esac 1891 ;; 1892 -* ) ac_must_keep_next=true ;; 1893 esac 1894 fi 1895 as_fn_append ac_configure_args " '$ac_arg'" 1896 ;; 1897 esac 1898 done 1899done 1900{ ac_configure_args0=; unset ac_configure_args0;} 1901{ ac_configure_args1=; unset ac_configure_args1;} 1902 1903# When interrupted or exit'd, cleanup temporary files, and complete 1904# config.log. We remove comments because anyway the quotes in there 1905# would cause problems or look ugly. 1906# WARNING: Use '\'' to represent an apostrophe within the trap. 1907# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1908trap 'exit_status=$? 1909 # Sanitize IFS. 1910 IFS=" "" $as_nl" 1911 # Save into config.log some information that might help in debugging. 1912 { 1913 echo 1914 1915 printf "%s\n" "## ---------------- ## 1916## Cache variables. ## 1917## ---------------- ##" 1918 echo 1919 # The following way of writing the cache mishandles newlines in values, 1920( 1921 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1922 eval ac_val=\$$ac_var 1923 case $ac_val in #( 1924 *${as_nl}*) 1925 case $ac_var in #( 1926 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1927printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1928 esac 1929 case $ac_var in #( 1930 _ | IFS | as_nl) ;; #( 1931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1932 *) { eval $ac_var=; unset $ac_var;} ;; 1933 esac ;; 1934 esac 1935 done 1936 (set) 2>&1 | 1937 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1938 *${as_nl}ac_space=\ *) 1939 sed -n \ 1940 "s/'\''/'\''\\\\'\'''\''/g; 1941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1942 ;; #( 1943 *) 1944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1945 ;; 1946 esac | 1947 sort 1948) 1949 echo 1950 1951 printf "%s\n" "## ----------------- ## 1952## Output variables. ## 1953## ----------------- ##" 1954 echo 1955 for ac_var in $ac_subst_vars 1956 do 1957 eval ac_val=\$$ac_var 1958 case $ac_val in 1959 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1960 esac 1961 printf "%s\n" "$ac_var='\''$ac_val'\''" 1962 done | sort 1963 echo 1964 1965 if test -n "$ac_subst_files"; then 1966 printf "%s\n" "## ------------------- ## 1967## File substitutions. ## 1968## ------------------- ##" 1969 echo 1970 for ac_var in $ac_subst_files 1971 do 1972 eval ac_val=\$$ac_var 1973 case $ac_val in 1974 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1975 esac 1976 printf "%s\n" "$ac_var='\''$ac_val'\''" 1977 done | sort 1978 echo 1979 fi 1980 1981 if test -s confdefs.h; then 1982 printf "%s\n" "## ----------- ## 1983## confdefs.h. ## 1984## ----------- ##" 1985 echo 1986 cat confdefs.h 1987 echo 1988 fi 1989 test "$ac_signal" != 0 && 1990 printf "%s\n" "$as_me: caught signal $ac_signal" 1991 printf "%s\n" "$as_me: exit $exit_status" 1992 } >&5 1993 rm -f core *.core core.conftest.* && 1994 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1995 exit $exit_status 1996' 0 1997for ac_signal in 1 2 13 15; do 1998 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1999done 2000ac_signal=0 2001 2002# confdefs.h avoids OS command line length limits that DEFS can exceed. 2003rm -f -r conftest* confdefs.h 2004 2005printf "%s\n" "/* confdefs.h */" > confdefs.h 2006 2007# Predefined preprocessor variables. 2008 2009printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2010 2011printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2012 2013printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2014 2015printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2016 2017printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2018 2019printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2020 2021 2022# Let the site file select an alternate cache file if it wants to. 2023# Prefer an explicitly selected file to automatically selected ones. 2024if test -n "$CONFIG_SITE"; then 2025 ac_site_files="$CONFIG_SITE" 2026elif test "x$prefix" != xNONE; then 2027 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2028else 2029 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2030fi 2031 2032for ac_site_file in $ac_site_files 2033do 2034 case $ac_site_file in #( 2035 */*) : 2036 ;; #( 2037 *) : 2038 ac_site_file=./$ac_site_file ;; 2039esac 2040 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2042printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2043 sed 's/^/| /' "$ac_site_file" >&5 2044 . "$ac_site_file" \ 2045 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2046printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2047as_fn_error $? "failed to load site script $ac_site_file 2048See \`config.log' for more details" "$LINENO" 5; } 2049 fi 2050done 2051 2052if test -r "$cache_file"; then 2053 # Some versions of bash will fail to source /dev/null (special files 2054 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2055 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2057printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2058 case $cache_file in 2059 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2060 *) . "./$cache_file";; 2061 esac 2062 fi 2063else 2064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2065printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2066 >$cache_file 2067fi 2068 2069as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2070# Test code for whether the C compiler supports C89 (global declarations) 2071ac_c_conftest_c89_globals=' 2072/* Does the compiler advertise C89 conformance? 2073 Do not test the value of __STDC__, because some compilers set it to 0 2074 while being otherwise adequately conformant. */ 2075#if !defined __STDC__ 2076# error "Compiler does not advertise C89 conformance" 2077#endif 2078 2079#include <stddef.h> 2080#include <stdarg.h> 2081struct stat; 2082/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2083struct buf { int x; }; 2084struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2085static char *e (p, i) 2086 char **p; 2087 int i; 2088{ 2089 return p[i]; 2090} 2091static char *f (char * (*g) (char **, int), char **p, ...) 2092{ 2093 char *s; 2094 va_list v; 2095 va_start (v,p); 2096 s = g (p, va_arg (v,int)); 2097 va_end (v); 2098 return s; 2099} 2100 2101/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2102 function prototypes and stuff, but not \xHH hex character constants. 2103 These do not provoke an error unfortunately, instead are silently treated 2104 as an "x". The following induces an error, until -std is added to get 2105 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2106 array size at least. It is necessary to write \x00 == 0 to get something 2107 that is true only with -std. */ 2108int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2109 2110/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2111 inside strings and character constants. */ 2112#define FOO(x) '\''x'\'' 2113int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2114 2115int test (int i, double x); 2116struct s1 {int (*f) (int a);}; 2117struct s2 {int (*f) (double a);}; 2118int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2119 int, int);' 2120 2121# Test code for whether the C compiler supports C89 (body of main). 2122ac_c_conftest_c89_main=' 2123ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2124' 2125 2126# Test code for whether the C compiler supports C99 (global declarations) 2127ac_c_conftest_c99_globals=' 2128// Does the compiler advertise C99 conformance? 2129#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2130# error "Compiler does not advertise C99 conformance" 2131#endif 2132 2133#include <stdbool.h> 2134extern int puts (const char *); 2135extern int printf (const char *, ...); 2136extern int dprintf (int, const char *, ...); 2137extern void *malloc (size_t); 2138 2139// Check varargs macros. These examples are taken from C99 6.10.3.5. 2140// dprintf is used instead of fprintf to avoid needing to declare 2141// FILE and stderr. 2142#define debug(...) dprintf (2, __VA_ARGS__) 2143#define showlist(...) puts (#__VA_ARGS__) 2144#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2145static void 2146test_varargs_macros (void) 2147{ 2148 int x = 1234; 2149 int y = 5678; 2150 debug ("Flag"); 2151 debug ("X = %d\n", x); 2152 showlist (The first, second, and third items.); 2153 report (x>y, "x is %d but y is %d", x, y); 2154} 2155 2156// Check long long types. 2157#define BIG64 18446744073709551615ull 2158#define BIG32 4294967295ul 2159#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2160#if !BIG_OK 2161 #error "your preprocessor is broken" 2162#endif 2163#if BIG_OK 2164#else 2165 #error "your preprocessor is broken" 2166#endif 2167static long long int bignum = -9223372036854775807LL; 2168static unsigned long long int ubignum = BIG64; 2169 2170struct incomplete_array 2171{ 2172 int datasize; 2173 double data[]; 2174}; 2175 2176struct named_init { 2177 int number; 2178 const wchar_t *name; 2179 double average; 2180}; 2181 2182typedef const char *ccp; 2183 2184static inline int 2185test_restrict (ccp restrict text) 2186{ 2187 // See if C++-style comments work. 2188 // Iterate through items via the restricted pointer. 2189 // Also check for declarations in for loops. 2190 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2191 continue; 2192 return 0; 2193} 2194 2195// Check varargs and va_copy. 2196static bool 2197test_varargs (const char *format, ...) 2198{ 2199 va_list args; 2200 va_start (args, format); 2201 va_list args_copy; 2202 va_copy (args_copy, args); 2203 2204 const char *str = ""; 2205 int number = 0; 2206 float fnumber = 0; 2207 2208 while (*format) 2209 { 2210 switch (*format++) 2211 { 2212 case '\''s'\'': // string 2213 str = va_arg (args_copy, const char *); 2214 break; 2215 case '\''d'\'': // int 2216 number = va_arg (args_copy, int); 2217 break; 2218 case '\''f'\'': // float 2219 fnumber = va_arg (args_copy, double); 2220 break; 2221 default: 2222 break; 2223 } 2224 } 2225 va_end (args_copy); 2226 va_end (args); 2227 2228 return *str && number && fnumber; 2229} 2230' 2231 2232# Test code for whether the C compiler supports C99 (body of main). 2233ac_c_conftest_c99_main=' 2234 // Check bool. 2235 _Bool success = false; 2236 success |= (argc != 0); 2237 2238 // Check restrict. 2239 if (test_restrict ("String literal") == 0) 2240 success = true; 2241 char *restrict newvar = "Another string"; 2242 2243 // Check varargs. 2244 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2245 test_varargs_macros (); 2246 2247 // Check flexible array members. 2248 struct incomplete_array *ia = 2249 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2250 ia->datasize = 10; 2251 for (int i = 0; i < ia->datasize; ++i) 2252 ia->data[i] = i * 1.234; 2253 2254 // Check named initializers. 2255 struct named_init ni = { 2256 .number = 34, 2257 .name = L"Test wide string", 2258 .average = 543.34343, 2259 }; 2260 2261 ni.number = 58; 2262 2263 int dynamic_array[ni.number]; 2264 dynamic_array[0] = argv[0][0]; 2265 dynamic_array[ni.number - 1] = 543; 2266 2267 // work around unused variable warnings 2268 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2269 || dynamic_array[ni.number - 1] != 543); 2270' 2271 2272# Test code for whether the C compiler supports C11 (global declarations) 2273ac_c_conftest_c11_globals=' 2274// Does the compiler advertise C11 conformance? 2275#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2276# error "Compiler does not advertise C11 conformance" 2277#endif 2278 2279// Check _Alignas. 2280char _Alignas (double) aligned_as_double; 2281char _Alignas (0) no_special_alignment; 2282extern char aligned_as_int; 2283char _Alignas (0) _Alignas (int) aligned_as_int; 2284 2285// Check _Alignof. 2286enum 2287{ 2288 int_alignment = _Alignof (int), 2289 int_array_alignment = _Alignof (int[100]), 2290 char_alignment = _Alignof (char) 2291}; 2292_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2293 2294// Check _Noreturn. 2295int _Noreturn does_not_return (void) { for (;;) continue; } 2296 2297// Check _Static_assert. 2298struct test_static_assert 2299{ 2300 int x; 2301 _Static_assert (sizeof (int) <= sizeof (long int), 2302 "_Static_assert does not work in struct"); 2303 long int y; 2304}; 2305 2306// Check UTF-8 literals. 2307#define u8 syntax error! 2308char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2309 2310// Check duplicate typedefs. 2311typedef long *long_ptr; 2312typedef long int *long_ptr; 2313typedef long_ptr long_ptr; 2314 2315// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2316struct anonymous 2317{ 2318 union { 2319 struct { int i; int j; }; 2320 struct { int k; long int l; } w; 2321 }; 2322 int m; 2323} v1; 2324' 2325 2326# Test code for whether the C compiler supports C11 (body of main). 2327ac_c_conftest_c11_main=' 2328 _Static_assert ((offsetof (struct anonymous, i) 2329 == offsetof (struct anonymous, w.k)), 2330 "Anonymous union alignment botch"); 2331 v1.i = 2; 2332 v1.w.k = 5; 2333 ok |= v1.i != 5; 2334' 2335 2336# Test code for whether the C compiler supports C11 (complete). 2337ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2338${ac_c_conftest_c99_globals} 2339${ac_c_conftest_c11_globals} 2340 2341int 2342main (int argc, char **argv) 2343{ 2344 int ok = 0; 2345 ${ac_c_conftest_c89_main} 2346 ${ac_c_conftest_c99_main} 2347 ${ac_c_conftest_c11_main} 2348 return ok; 2349} 2350" 2351 2352# Test code for whether the C compiler supports C99 (complete). 2353ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2354${ac_c_conftest_c99_globals} 2355 2356int 2357main (int argc, char **argv) 2358{ 2359 int ok = 0; 2360 ${ac_c_conftest_c89_main} 2361 ${ac_c_conftest_c99_main} 2362 return ok; 2363} 2364" 2365 2366# Test code for whether the C compiler supports C89 (complete). 2367ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2368 2369int 2370main (int argc, char **argv) 2371{ 2372 int ok = 0; 2373 ${ac_c_conftest_c89_main} 2374 return ok; 2375} 2376" 2377 2378as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2379as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2380as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2381as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2382as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2383as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2384as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2385as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2386as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2387as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2388 2389# Auxiliary files required by this configure script. 2390ac_aux_files="config.guess config.sub missing install-sh compile" 2391 2392# Locations in which to look for auxiliary files. 2393ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2394 2395# Search for a directory containing all of the required auxiliary files, 2396# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2397# If we don't find one directory that contains all the files we need, 2398# we report the set of missing files from the *first* directory in 2399# $ac_aux_dir_candidates and give up. 2400ac_missing_aux_files="" 2401ac_first_candidate=: 2402printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2404as_found=false 2405for as_dir in $ac_aux_dir_candidates 2406do 2407 IFS=$as_save_IFS 2408 case $as_dir in #((( 2409 '') as_dir=./ ;; 2410 */) ;; 2411 *) as_dir=$as_dir/ ;; 2412 esac 2413 as_found=: 2414 2415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2416 ac_aux_dir_found=yes 2417 ac_install_sh= 2418 for ac_aux in $ac_aux_files 2419 do 2420 # As a special case, if "install-sh" is required, that requirement 2421 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2422 # and $ac_install_sh is set appropriately for whichever one is found. 2423 if test x"$ac_aux" = x"install-sh" 2424 then 2425 if test -f "${as_dir}install-sh"; then 2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2427 ac_install_sh="${as_dir}install-sh -c" 2428 elif test -f "${as_dir}install.sh"; then 2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2430 ac_install_sh="${as_dir}install.sh -c" 2431 elif test -f "${as_dir}shtool"; then 2432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2433 ac_install_sh="${as_dir}shtool install -c" 2434 else 2435 ac_aux_dir_found=no 2436 if $ac_first_candidate; then 2437 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2438 else 2439 break 2440 fi 2441 fi 2442 else 2443 if test -f "${as_dir}${ac_aux}"; then 2444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2445 else 2446 ac_aux_dir_found=no 2447 if $ac_first_candidate; then 2448 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2449 else 2450 break 2451 fi 2452 fi 2453 fi 2454 done 2455 if test "$ac_aux_dir_found" = yes; then 2456 ac_aux_dir="$as_dir" 2457 break 2458 fi 2459 ac_first_candidate=false 2460 2461 as_found=false 2462done 2463IFS=$as_save_IFS 2464if $as_found 2465then : 2466 2467else $as_nop 2468 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2469fi 2470 2471 2472# These three variables are undocumented and unsupported, 2473# and are intended to be withdrawn in a future Autoconf release. 2474# They can cause serious problems if a builder's source tree is in a directory 2475# whose full name contains unusual characters. 2476if test -f "${ac_aux_dir}config.guess"; then 2477 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2478fi 2479if test -f "${ac_aux_dir}config.sub"; then 2480 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2481fi 2482if test -f "$ac_aux_dir/configure"; then 2483 ac_configure="$SHELL ${ac_aux_dir}configure" 2484fi 2485 2486# Check that the precious variables saved in the cache have kept the same 2487# value. 2488ac_cache_corrupted=false 2489for ac_var in $ac_precious_vars; do 2490 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2491 eval ac_new_set=\$ac_env_${ac_var}_set 2492 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2493 eval ac_new_val=\$ac_env_${ac_var}_value 2494 case $ac_old_set,$ac_new_set in 2495 set,) 2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2497printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2498 ac_cache_corrupted=: ;; 2499 ,set) 2500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2501printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2502 ac_cache_corrupted=: ;; 2503 ,);; 2504 *) 2505 if test "x$ac_old_val" != "x$ac_new_val"; then 2506 # differences in whitespace do not lead to failure. 2507 ac_old_val_w=`echo x $ac_old_val` 2508 ac_new_val_w=`echo x $ac_new_val` 2509 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2511printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2512 ac_cache_corrupted=: 2513 else 2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2515printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2516 eval $ac_var=\$ac_old_val 2517 fi 2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2519printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2521printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2522 fi;; 2523 esac 2524 # Pass precious variables to config.status. 2525 if test "$ac_new_set" = set; then 2526 case $ac_new_val in 2527 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2528 *) ac_arg=$ac_var=$ac_new_val ;; 2529 esac 2530 case " $ac_configure_args " in 2531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2532 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2533 esac 2534 fi 2535done 2536if $ac_cache_corrupted; then 2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2538printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2540printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2541 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2542 and start over" "$LINENO" 5 2543fi 2544## -------------------- ## 2545## Main body of script. ## 2546## -------------------- ## 2547 2548ac_ext=c 2549ac_cpp='$CPP $CPPFLAGS' 2550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2552ac_compiler_gnu=$ac_cv_c_compiler_gnu 2553 2554 2555 2556ac_config_headers="$ac_config_headers config.h" 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569# Expand $ac_aux_dir to an absolute path. 2570am_aux_dir=`cd "$ac_aux_dir" && pwd` 2571 2572ac_ext=c 2573ac_cpp='$CPP $CPPFLAGS' 2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2576ac_compiler_gnu=$ac_cv_c_compiler_gnu 2577if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2579set dummy ${ac_tool_prefix}gcc; ac_word=$2 2580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581printf %s "checking for $ac_word... " >&6; } 2582if test ${ac_cv_prog_CC+y} 2583then : 2584 printf %s "(cached) " >&6 2585else $as_nop 2586 if test -n "$CC"; then 2587 ac_cv_prog_CC="$CC" # Let the user override the test. 2588else 2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2590for as_dir in $PATH 2591do 2592 IFS=$as_save_IFS 2593 case $as_dir in #((( 2594 '') as_dir=./ ;; 2595 */) ;; 2596 *) as_dir=$as_dir/ ;; 2597 esac 2598 for ac_exec_ext in '' $ac_executable_extensions; do 2599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2600 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2602 break 2 2603 fi 2604done 2605 done 2606IFS=$as_save_IFS 2607 2608fi 2609fi 2610CC=$ac_cv_prog_CC 2611if test -n "$CC"; then 2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2613printf "%s\n" "$CC" >&6; } 2614else 2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2616printf "%s\n" "no" >&6; } 2617fi 2618 2619 2620fi 2621if test -z "$ac_cv_prog_CC"; then 2622 ac_ct_CC=$CC 2623 # Extract the first word of "gcc", so it can be a program name with args. 2624set dummy gcc; ac_word=$2 2625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2626printf %s "checking for $ac_word... " >&6; } 2627if test ${ac_cv_prog_ac_ct_CC+y} 2628then : 2629 printf %s "(cached) " >&6 2630else $as_nop 2631 if test -n "$ac_ct_CC"; then 2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2633else 2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2635for as_dir in $PATH 2636do 2637 IFS=$as_save_IFS 2638 case $as_dir in #((( 2639 '') as_dir=./ ;; 2640 */) ;; 2641 *) as_dir=$as_dir/ ;; 2642 esac 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2645 ac_cv_prog_ac_ct_CC="gcc" 2646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2647 break 2 2648 fi 2649done 2650 done 2651IFS=$as_save_IFS 2652 2653fi 2654fi 2655ac_ct_CC=$ac_cv_prog_ac_ct_CC 2656if test -n "$ac_ct_CC"; then 2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2658printf "%s\n" "$ac_ct_CC" >&6; } 2659else 2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2661printf "%s\n" "no" >&6; } 2662fi 2663 2664 if test "x$ac_ct_CC" = x; then 2665 CC="" 2666 else 2667 case $cross_compiling:$ac_tool_warned in 2668yes:) 2669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2670printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2671ac_tool_warned=yes ;; 2672esac 2673 CC=$ac_ct_CC 2674 fi 2675else 2676 CC="$ac_cv_prog_CC" 2677fi 2678 2679if test -z "$CC"; then 2680 if test -n "$ac_tool_prefix"; then 2681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2682set dummy ${ac_tool_prefix}cc; ac_word=$2 2683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2684printf %s "checking for $ac_word... " >&6; } 2685if test ${ac_cv_prog_CC+y} 2686then : 2687 printf %s "(cached) " >&6 2688else $as_nop 2689 if test -n "$CC"; then 2690 ac_cv_prog_CC="$CC" # Let the user override the test. 2691else 2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693for as_dir in $PATH 2694do 2695 IFS=$as_save_IFS 2696 case $as_dir in #((( 2697 '') as_dir=./ ;; 2698 */) ;; 2699 *) as_dir=$as_dir/ ;; 2700 esac 2701 for ac_exec_ext in '' $ac_executable_extensions; do 2702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2703 ac_cv_prog_CC="${ac_tool_prefix}cc" 2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2705 break 2 2706 fi 2707done 2708 done 2709IFS=$as_save_IFS 2710 2711fi 2712fi 2713CC=$ac_cv_prog_CC 2714if test -n "$CC"; then 2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2716printf "%s\n" "$CC" >&6; } 2717else 2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2719printf "%s\n" "no" >&6; } 2720fi 2721 2722 2723 fi 2724fi 2725if test -z "$CC"; then 2726 # Extract the first word of "cc", so it can be a program name with args. 2727set dummy cc; ac_word=$2 2728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2729printf %s "checking for $ac_word... " >&6; } 2730if test ${ac_cv_prog_CC+y} 2731then : 2732 printf %s "(cached) " >&6 2733else $as_nop 2734 if test -n "$CC"; then 2735 ac_cv_prog_CC="$CC" # Let the user override the test. 2736else 2737 ac_prog_rejected=no 2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2739for as_dir in $PATH 2740do 2741 IFS=$as_save_IFS 2742 case $as_dir in #((( 2743 '') as_dir=./ ;; 2744 */) ;; 2745 *) as_dir=$as_dir/ ;; 2746 esac 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2749 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2750 ac_prog_rejected=yes 2751 continue 2752 fi 2753 ac_cv_prog_CC="cc" 2754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2755 break 2 2756 fi 2757done 2758 done 2759IFS=$as_save_IFS 2760 2761if test $ac_prog_rejected = yes; then 2762 # We found a bogon in the path, so make sure we never use it. 2763 set dummy $ac_cv_prog_CC 2764 shift 2765 if test $# != 0; then 2766 # We chose a different compiler from the bogus one. 2767 # However, it has the same basename, so the bogon will be chosen 2768 # first if we set CC to just the basename; use the full file name. 2769 shift 2770 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2771 fi 2772fi 2773fi 2774fi 2775CC=$ac_cv_prog_CC 2776if test -n "$CC"; then 2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2778printf "%s\n" "$CC" >&6; } 2779else 2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2781printf "%s\n" "no" >&6; } 2782fi 2783 2784 2785fi 2786if test -z "$CC"; then 2787 if test -n "$ac_tool_prefix"; then 2788 for ac_prog in cl.exe 2789 do 2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2791set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2793printf %s "checking for $ac_word... " >&6; } 2794if test ${ac_cv_prog_CC+y} 2795then : 2796 printf %s "(cached) " >&6 2797else $as_nop 2798 if test -n "$CC"; then 2799 ac_cv_prog_CC="$CC" # Let the user override the test. 2800else 2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2802for as_dir in $PATH 2803do 2804 IFS=$as_save_IFS 2805 case $as_dir in #((( 2806 '') as_dir=./ ;; 2807 */) ;; 2808 *) as_dir=$as_dir/ ;; 2809 esac 2810 for ac_exec_ext in '' $ac_executable_extensions; do 2811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2814 break 2 2815 fi 2816done 2817 done 2818IFS=$as_save_IFS 2819 2820fi 2821fi 2822CC=$ac_cv_prog_CC 2823if test -n "$CC"; then 2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2825printf "%s\n" "$CC" >&6; } 2826else 2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2828printf "%s\n" "no" >&6; } 2829fi 2830 2831 2832 test -n "$CC" && break 2833 done 2834fi 2835if test -z "$CC"; then 2836 ac_ct_CC=$CC 2837 for ac_prog in cl.exe 2838do 2839 # Extract the first word of "$ac_prog", so it can be a program name with args. 2840set dummy $ac_prog; ac_word=$2 2841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2842printf %s "checking for $ac_word... " >&6; } 2843if test ${ac_cv_prog_ac_ct_CC+y} 2844then : 2845 printf %s "(cached) " >&6 2846else $as_nop 2847 if test -n "$ac_ct_CC"; then 2848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2849else 2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851for as_dir in $PATH 2852do 2853 IFS=$as_save_IFS 2854 case $as_dir in #((( 2855 '') as_dir=./ ;; 2856 */) ;; 2857 *) as_dir=$as_dir/ ;; 2858 esac 2859 for ac_exec_ext in '' $ac_executable_extensions; do 2860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2861 ac_cv_prog_ac_ct_CC="$ac_prog" 2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2863 break 2 2864 fi 2865done 2866 done 2867IFS=$as_save_IFS 2868 2869fi 2870fi 2871ac_ct_CC=$ac_cv_prog_ac_ct_CC 2872if test -n "$ac_ct_CC"; then 2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2874printf "%s\n" "$ac_ct_CC" >&6; } 2875else 2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2877printf "%s\n" "no" >&6; } 2878fi 2879 2880 2881 test -n "$ac_ct_CC" && break 2882done 2883 2884 if test "x$ac_ct_CC" = x; then 2885 CC="" 2886 else 2887 case $cross_compiling:$ac_tool_warned in 2888yes:) 2889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2890printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2891ac_tool_warned=yes ;; 2892esac 2893 CC=$ac_ct_CC 2894 fi 2895fi 2896 2897fi 2898if test -z "$CC"; then 2899 if test -n "$ac_tool_prefix"; then 2900 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2901set dummy ${ac_tool_prefix}clang; ac_word=$2 2902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2903printf %s "checking for $ac_word... " >&6; } 2904if test ${ac_cv_prog_CC+y} 2905then : 2906 printf %s "(cached) " >&6 2907else $as_nop 2908 if test -n "$CC"; then 2909 ac_cv_prog_CC="$CC" # Let the user override the test. 2910else 2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2912for as_dir in $PATH 2913do 2914 IFS=$as_save_IFS 2915 case $as_dir in #((( 2916 '') as_dir=./ ;; 2917 */) ;; 2918 *) as_dir=$as_dir/ ;; 2919 esac 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2922 ac_cv_prog_CC="${ac_tool_prefix}clang" 2923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932CC=$ac_cv_prog_CC 2933if test -n "$CC"; then 2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2935printf "%s\n" "$CC" >&6; } 2936else 2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938printf "%s\n" "no" >&6; } 2939fi 2940 2941 2942fi 2943if test -z "$ac_cv_prog_CC"; then 2944 ac_ct_CC=$CC 2945 # Extract the first word of "clang", so it can be a program name with args. 2946set dummy clang; ac_word=$2 2947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948printf %s "checking for $ac_word... " >&6; } 2949if test ${ac_cv_prog_ac_ct_CC+y} 2950then : 2951 printf %s "(cached) " >&6 2952else $as_nop 2953 if test -n "$ac_ct_CC"; then 2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2955else 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 case $as_dir in #((( 2961 '') as_dir=./ ;; 2962 */) ;; 2963 *) as_dir=$as_dir/ ;; 2964 esac 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2967 ac_cv_prog_ac_ct_CC="clang" 2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977ac_ct_CC=$ac_cv_prog_ac_ct_CC 2978if test -n "$ac_ct_CC"; then 2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2980printf "%s\n" "$ac_ct_CC" >&6; } 2981else 2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983printf "%s\n" "no" >&6; } 2984fi 2985 2986 if test "x$ac_ct_CC" = x; then 2987 CC="" 2988 else 2989 case $cross_compiling:$ac_tool_warned in 2990yes:) 2991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2992printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2993ac_tool_warned=yes ;; 2994esac 2995 CC=$ac_ct_CC 2996 fi 2997else 2998 CC="$ac_cv_prog_CC" 2999fi 3000 3001fi 3002 3003 3004test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3005printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3006as_fn_error $? "no acceptable C compiler found in \$PATH 3007See \`config.log' for more details" "$LINENO" 5; } 3008 3009# Provide some information about the compiler. 3010printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3011set X $ac_compile 3012ac_compiler=$2 3013for ac_option in --version -v -V -qversion -version; do 3014 { { ac_try="$ac_compiler $ac_option >&5" 3015case "(($ac_try" in 3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3017 *) ac_try_echo=$ac_try;; 3018esac 3019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3020printf "%s\n" "$ac_try_echo"; } >&5 3021 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3022 ac_status=$? 3023 if test -s conftest.err; then 3024 sed '10a\ 3025... rest of stderr output deleted ... 3026 10q' conftest.err >conftest.er1 3027 cat conftest.er1 >&5 3028 fi 3029 rm -f conftest.er1 conftest.err 3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3031 test $ac_status = 0; } 3032done 3033 3034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3035/* end confdefs.h. */ 3036 3037int 3038main (void) 3039{ 3040 3041 ; 3042 return 0; 3043} 3044_ACEOF 3045ac_clean_files_save=$ac_clean_files 3046ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3047# Try to create an executable without -o first, disregard a.out. 3048# It will help us diagnose broken compilers, and finding out an intuition 3049# of exeext. 3050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3051printf %s "checking whether the C compiler works... " >&6; } 3052ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3053 3054# The possible output files: 3055ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3056 3057ac_rmfiles= 3058for ac_file in $ac_files 3059do 3060 case $ac_file in 3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3062 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3063 esac 3064done 3065rm -f $ac_rmfiles 3066 3067if { { ac_try="$ac_link_default" 3068case "(($ac_try" in 3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *) ac_try_echo=$ac_try;; 3071esac 3072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3073printf "%s\n" "$ac_try_echo"; } >&5 3074 (eval "$ac_link_default") 2>&5 3075 ac_status=$? 3076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3077 test $ac_status = 0; } 3078then : 3079 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3080# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3081# in a Makefile. We should not override ac_cv_exeext if it was cached, 3082# so that the user can short-circuit this test for compilers unknown to 3083# Autoconf. 3084for ac_file in $ac_files '' 3085do 3086 test -f "$ac_file" || continue 3087 case $ac_file in 3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3089 ;; 3090 [ab].out ) 3091 # We found the default executable, but exeext='' is most 3092 # certainly right. 3093 break;; 3094 *.* ) 3095 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3096 then :; else 3097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3098 fi 3099 # We set ac_cv_exeext here because the later test for it is not 3100 # safe: cross compilers may not add the suffix if given an `-o' 3101 # argument, so we may need to know it at that point already. 3102 # Even if this section looks crufty: it has the advantage of 3103 # actually working. 3104 break;; 3105 * ) 3106 break;; 3107 esac 3108done 3109test "$ac_cv_exeext" = no && ac_cv_exeext= 3110 3111else $as_nop 3112 ac_file='' 3113fi 3114if test -z "$ac_file" 3115then : 3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3117printf "%s\n" "no" >&6; } 3118printf "%s\n" "$as_me: failed program was:" >&5 3119sed 's/^/| /' conftest.$ac_ext >&5 3120 3121{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3122printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3123as_fn_error 77 "C compiler cannot create executables 3124See \`config.log' for more details" "$LINENO" 5; } 3125else $as_nop 3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3127printf "%s\n" "yes" >&6; } 3128fi 3129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3130printf %s "checking for C compiler default output file name... " >&6; } 3131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3132printf "%s\n" "$ac_file" >&6; } 3133ac_exeext=$ac_cv_exeext 3134 3135rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3136ac_clean_files=$ac_clean_files_save 3137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3138printf %s "checking for suffix of executables... " >&6; } 3139if { { ac_try="$ac_link" 3140case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3145printf "%s\n" "$ac_try_echo"; } >&5 3146 (eval "$ac_link") 2>&5 3147 ac_status=$? 3148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3149 test $ac_status = 0; } 3150then : 3151 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3152# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3153# work properly (i.e., refer to `conftest.exe'), while it won't with 3154# `rm'. 3155for ac_file in conftest.exe conftest conftest.*; do 3156 test -f "$ac_file" || continue 3157 case $ac_file in 3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3160 break;; 3161 * ) break;; 3162 esac 3163done 3164else $as_nop 3165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3166printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3167as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3168See \`config.log' for more details" "$LINENO" 5; } 3169fi 3170rm -f conftest conftest$ac_cv_exeext 3171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3172printf "%s\n" "$ac_cv_exeext" >&6; } 3173 3174rm -f conftest.$ac_ext 3175EXEEXT=$ac_cv_exeext 3176ac_exeext=$EXEEXT 3177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3178/* end confdefs.h. */ 3179#include <stdio.h> 3180int 3181main (void) 3182{ 3183FILE *f = fopen ("conftest.out", "w"); 3184 return ferror (f) || fclose (f) != 0; 3185 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190ac_clean_files="$ac_clean_files conftest.out" 3191# Check that the compiler produces executables we can run. If not, either 3192# the compiler is broken, or we cross compile. 3193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3194printf %s "checking whether we are cross compiling... " >&6; } 3195if test "$cross_compiling" != yes; then 3196 { { ac_try="$ac_link" 3197case "(($ac_try" in 3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3199 *) ac_try_echo=$ac_try;; 3200esac 3201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3202printf "%s\n" "$ac_try_echo"; } >&5 3203 (eval "$ac_link") 2>&5 3204 ac_status=$? 3205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3206 test $ac_status = 0; } 3207 if { ac_try='./conftest$ac_cv_exeext' 3208 { { case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3213printf "%s\n" "$ac_try_echo"; } >&5 3214 (eval "$ac_try") 2>&5 3215 ac_status=$? 3216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3217 test $ac_status = 0; }; }; then 3218 cross_compiling=no 3219 else 3220 if test "$cross_compiling" = maybe; then 3221 cross_compiling=yes 3222 else 3223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3224printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3225as_fn_error 77 "cannot run C compiled programs. 3226If you meant to cross compile, use \`--host'. 3227See \`config.log' for more details" "$LINENO" 5; } 3228 fi 3229 fi 3230fi 3231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3232printf "%s\n" "$cross_compiling" >&6; } 3233 3234rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3235ac_clean_files=$ac_clean_files_save 3236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3237printf %s "checking for suffix of object files... " >&6; } 3238if test ${ac_cv_objext+y} 3239then : 3240 printf %s "(cached) " >&6 3241else $as_nop 3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3243/* end confdefs.h. */ 3244 3245int 3246main (void) 3247{ 3248 3249 ; 3250 return 0; 3251} 3252_ACEOF 3253rm -f conftest.o conftest.obj 3254if { { ac_try="$ac_compile" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3260printf "%s\n" "$ac_try_echo"; } >&5 3261 (eval "$ac_compile") 2>&5 3262 ac_status=$? 3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3264 test $ac_status = 0; } 3265then : 3266 for ac_file in conftest.o conftest.obj conftest.*; do 3267 test -f "$ac_file" || continue; 3268 case $ac_file in 3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3270 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3271 break;; 3272 esac 3273done 3274else $as_nop 3275 printf "%s\n" "$as_me: failed program was:" >&5 3276sed 's/^/| /' conftest.$ac_ext >&5 3277 3278{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3279printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3280as_fn_error $? "cannot compute suffix of object files: cannot compile 3281See \`config.log' for more details" "$LINENO" 5; } 3282fi 3283rm -f conftest.$ac_cv_objext conftest.$ac_ext 3284fi 3285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3286printf "%s\n" "$ac_cv_objext" >&6; } 3287OBJEXT=$ac_cv_objext 3288ac_objext=$OBJEXT 3289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3290printf %s "checking whether the compiler supports GNU C... " >&6; } 3291if test ${ac_cv_c_compiler_gnu+y} 3292then : 3293 printf %s "(cached) " >&6 3294else $as_nop 3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3296/* end confdefs.h. */ 3297 3298int 3299main (void) 3300{ 3301#ifndef __GNUC__ 3302 choke me 3303#endif 3304 3305 ; 3306 return 0; 3307} 3308_ACEOF 3309if ac_fn_c_try_compile "$LINENO" 3310then : 3311 ac_compiler_gnu=yes 3312else $as_nop 3313 ac_compiler_gnu=no 3314fi 3315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3316ac_cv_c_compiler_gnu=$ac_compiler_gnu 3317 3318fi 3319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3320printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3321ac_compiler_gnu=$ac_cv_c_compiler_gnu 3322 3323if test $ac_compiler_gnu = yes; then 3324 GCC=yes 3325else 3326 GCC= 3327fi 3328ac_test_CFLAGS=${CFLAGS+y} 3329ac_save_CFLAGS=$CFLAGS 3330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3331printf %s "checking whether $CC accepts -g... " >&6; } 3332if test ${ac_cv_prog_cc_g+y} 3333then : 3334 printf %s "(cached) " >&6 3335else $as_nop 3336 ac_save_c_werror_flag=$ac_c_werror_flag 3337 ac_c_werror_flag=yes 3338 ac_cv_prog_cc_g=no 3339 CFLAGS="-g" 3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3341/* end confdefs.h. */ 3342 3343int 3344main (void) 3345{ 3346 3347 ; 3348 return 0; 3349} 3350_ACEOF 3351if ac_fn_c_try_compile "$LINENO" 3352then : 3353 ac_cv_prog_cc_g=yes 3354else $as_nop 3355 CFLAGS="" 3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3357/* end confdefs.h. */ 3358 3359int 3360main (void) 3361{ 3362 3363 ; 3364 return 0; 3365} 3366_ACEOF 3367if ac_fn_c_try_compile "$LINENO" 3368then : 3369 3370else $as_nop 3371 ac_c_werror_flag=$ac_save_c_werror_flag 3372 CFLAGS="-g" 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3374/* end confdefs.h. */ 3375 3376int 3377main (void) 3378{ 3379 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384if ac_fn_c_try_compile "$LINENO" 3385then : 3386 ac_cv_prog_cc_g=yes 3387fi 3388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3389fi 3390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3391fi 3392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3393 ac_c_werror_flag=$ac_save_c_werror_flag 3394fi 3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3396printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3397if test $ac_test_CFLAGS; then 3398 CFLAGS=$ac_save_CFLAGS 3399elif test $ac_cv_prog_cc_g = yes; then 3400 if test "$GCC" = yes; then 3401 CFLAGS="-g -O2" 3402 else 3403 CFLAGS="-g" 3404 fi 3405else 3406 if test "$GCC" = yes; then 3407 CFLAGS="-O2" 3408 else 3409 CFLAGS= 3410 fi 3411fi 3412ac_prog_cc_stdc=no 3413if test x$ac_prog_cc_stdc = xno 3414then : 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3416printf %s "checking for $CC option to enable C11 features... " >&6; } 3417if test ${ac_cv_prog_cc_c11+y} 3418then : 3419 printf %s "(cached) " >&6 3420else $as_nop 3421 ac_cv_prog_cc_c11=no 3422ac_save_CC=$CC 3423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3424/* end confdefs.h. */ 3425$ac_c_conftest_c11_program 3426_ACEOF 3427for ac_arg in '' -std=gnu11 3428do 3429 CC="$ac_save_CC $ac_arg" 3430 if ac_fn_c_try_compile "$LINENO" 3431then : 3432 ac_cv_prog_cc_c11=$ac_arg 3433fi 3434rm -f core conftest.err conftest.$ac_objext conftest.beam 3435 test "x$ac_cv_prog_cc_c11" != "xno" && break 3436done 3437rm -f conftest.$ac_ext 3438CC=$ac_save_CC 3439fi 3440 3441if test "x$ac_cv_prog_cc_c11" = xno 3442then : 3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3444printf "%s\n" "unsupported" >&6; } 3445else $as_nop 3446 if test "x$ac_cv_prog_cc_c11" = x 3447then : 3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3449printf "%s\n" "none needed" >&6; } 3450else $as_nop 3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3452printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3453 CC="$CC $ac_cv_prog_cc_c11" 3454fi 3455 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3456 ac_prog_cc_stdc=c11 3457fi 3458fi 3459if test x$ac_prog_cc_stdc = xno 3460then : 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3462printf %s "checking for $CC option to enable C99 features... " >&6; } 3463if test ${ac_cv_prog_cc_c99+y} 3464then : 3465 printf %s "(cached) " >&6 3466else $as_nop 3467 ac_cv_prog_cc_c99=no 3468ac_save_CC=$CC 3469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3470/* end confdefs.h. */ 3471$ac_c_conftest_c99_program 3472_ACEOF 3473for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3474do 3475 CC="$ac_save_CC $ac_arg" 3476 if ac_fn_c_try_compile "$LINENO" 3477then : 3478 ac_cv_prog_cc_c99=$ac_arg 3479fi 3480rm -f core conftest.err conftest.$ac_objext conftest.beam 3481 test "x$ac_cv_prog_cc_c99" != "xno" && break 3482done 3483rm -f conftest.$ac_ext 3484CC=$ac_save_CC 3485fi 3486 3487if test "x$ac_cv_prog_cc_c99" = xno 3488then : 3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3490printf "%s\n" "unsupported" >&6; } 3491else $as_nop 3492 if test "x$ac_cv_prog_cc_c99" = x 3493then : 3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3495printf "%s\n" "none needed" >&6; } 3496else $as_nop 3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3498printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3499 CC="$CC $ac_cv_prog_cc_c99" 3500fi 3501 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3502 ac_prog_cc_stdc=c99 3503fi 3504fi 3505if test x$ac_prog_cc_stdc = xno 3506then : 3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3508printf %s "checking for $CC option to enable C89 features... " >&6; } 3509if test ${ac_cv_prog_cc_c89+y} 3510then : 3511 printf %s "(cached) " >&6 3512else $as_nop 3513 ac_cv_prog_cc_c89=no 3514ac_save_CC=$CC 3515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517$ac_c_conftest_c89_program 3518_ACEOF 3519for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3520do 3521 CC="$ac_save_CC $ac_arg" 3522 if ac_fn_c_try_compile "$LINENO" 3523then : 3524 ac_cv_prog_cc_c89=$ac_arg 3525fi 3526rm -f core conftest.err conftest.$ac_objext conftest.beam 3527 test "x$ac_cv_prog_cc_c89" != "xno" && break 3528done 3529rm -f conftest.$ac_ext 3530CC=$ac_save_CC 3531fi 3532 3533if test "x$ac_cv_prog_cc_c89" = xno 3534then : 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3536printf "%s\n" "unsupported" >&6; } 3537else $as_nop 3538 if test "x$ac_cv_prog_cc_c89" = x 3539then : 3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3541printf "%s\n" "none needed" >&6; } 3542else $as_nop 3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3544printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3545 CC="$CC $ac_cv_prog_cc_c89" 3546fi 3547 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3548 ac_prog_cc_stdc=c89 3549fi 3550fi 3551 3552ac_ext=c 3553ac_cpp='$CPP $CPPFLAGS' 3554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3556ac_compiler_gnu=$ac_cv_c_compiler_gnu 3557 3558 3559 ac_ext=c 3560ac_cpp='$CPP $CPPFLAGS' 3561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3563ac_compiler_gnu=$ac_cv_c_compiler_gnu 3564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3565printf %s "checking whether $CC understands -c and -o together... " >&6; } 3566if test ${am_cv_prog_cc_c_o+y} 3567then : 3568 printf %s "(cached) " >&6 3569else $as_nop 3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3571/* end confdefs.h. */ 3572 3573int 3574main (void) 3575{ 3576 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581 # Make sure it works both with $CC and with simple cc. 3582 # Following AC_PROG_CC_C_O, we do the test twice because some 3583 # compilers refuse to overwrite an existing .o file with -o, 3584 # though they will create one. 3585 am_cv_prog_cc_c_o=yes 3586 for am_i in 1 2; do 3587 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3588 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3589 ac_status=$? 3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3591 (exit $ac_status); } \ 3592 && test -f conftest2.$ac_objext; then 3593 : OK 3594 else 3595 am_cv_prog_cc_c_o=no 3596 break 3597 fi 3598 done 3599 rm -f core conftest* 3600 unset am_i 3601fi 3602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3603printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3604if test "$am_cv_prog_cc_c_o" != yes; then 3605 # Losing compiler, so override with the script. 3606 # FIXME: It is wrong to rewrite CC. 3607 # But if we don't then we get into trouble of one sort or another. 3608 # A longer-term fix would be to have automake use am__CC in this case, 3609 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3610 CC="$am_aux_dir/compile $CC" 3611fi 3612ac_ext=c 3613ac_cpp='$CPP $CPPFLAGS' 3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3616ac_compiler_gnu=$ac_cv_c_compiler_gnu 3617 3618 3619 3620ac_header= ac_cache= 3621for ac_item in $ac_header_c_list 3622do 3623 if test $ac_cache; then 3624 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3625 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3626 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3627 fi 3628 ac_header= ac_cache= 3629 elif test $ac_header; then 3630 ac_cache=$ac_item 3631 else 3632 ac_header=$ac_item 3633 fi 3634done 3635 3636 3637 3638 3639 3640 3641 3642 3643if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3644then : 3645 3646printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3647 3648fi 3649 3650 3651 3652 3653 3654 3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3656printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3657if test ${ac_cv_safe_to_define___extensions__+y} 3658then : 3659 printf %s "(cached) " >&6 3660else $as_nop 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663 3664# define __EXTENSIONS__ 1 3665 $ac_includes_default 3666int 3667main (void) 3668{ 3669 3670 ; 3671 return 0; 3672} 3673_ACEOF 3674if ac_fn_c_try_compile "$LINENO" 3675then : 3676 ac_cv_safe_to_define___extensions__=yes 3677else $as_nop 3678 ac_cv_safe_to_define___extensions__=no 3679fi 3680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3681fi 3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3683printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3684 3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3686printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3687if test ${ac_cv_should_define__xopen_source+y} 3688then : 3689 printf %s "(cached) " >&6 3690else $as_nop 3691 ac_cv_should_define__xopen_source=no 3692 if test $ac_cv_header_wchar_h = yes 3693then : 3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3695/* end confdefs.h. */ 3696 3697 #include <wchar.h> 3698 mbstate_t x; 3699int 3700main (void) 3701{ 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707if ac_fn_c_try_compile "$LINENO" 3708then : 3709 3710else $as_nop 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712/* end confdefs.h. */ 3713 3714 #define _XOPEN_SOURCE 500 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 ac_cv_should_define__xopen_source=yes 3728fi 3729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3730fi 3731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3732fi 3733fi 3734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3735printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3736 3737 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3738 3739 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3740 3741 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3742 3743 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3744 3745 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3746 3747 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3748 3749 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3750 3751 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3752 3753 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3754 3755 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3756 3757 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3758 3759 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3760 3761 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3762 3763 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3764 3765 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3766 3767 if test $ac_cv_header_minix_config_h = yes 3768then : 3769 MINIX=yes 3770 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3771 3772 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3773 3774 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3775 3776else $as_nop 3777 MINIX= 3778fi 3779 if test $ac_cv_safe_to_define___extensions__ = yes 3780then : 3781 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3782 3783fi 3784 if test $ac_cv_should_define__xopen_source = yes 3785then : 3786 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3787 3788fi 3789 3790 3791# Initialize Automake 3792am__api_version='1.16' 3793 3794 3795 # Find a good install program. We prefer a C program (faster), 3796# so one script is as good as another. But avoid the broken or 3797# incompatible versions: 3798# SysV /etc/install, /usr/sbin/install 3799# SunOS /usr/etc/install 3800# IRIX /sbin/install 3801# AIX /bin/install 3802# AmigaOS /C/install, which installs bootblocks on floppy discs 3803# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3804# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3805# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3806# OS/2's system install, which has a completely different semantic 3807# ./install, which can be erroneously created by make from ./install.sh. 3808# Reject install programs that cannot install multiple files. 3809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3810printf %s "checking for a BSD-compatible install... " >&6; } 3811if test -z "$INSTALL"; then 3812if test ${ac_cv_path_install+y} 3813then : 3814 printf %s "(cached) " >&6 3815else $as_nop 3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817for as_dir in $PATH 3818do 3819 IFS=$as_save_IFS 3820 case $as_dir in #((( 3821 '') as_dir=./ ;; 3822 */) ;; 3823 *) as_dir=$as_dir/ ;; 3824 esac 3825 # Account for fact that we put trailing slashes in our PATH walk. 3826case $as_dir in #(( 3827 ./ | /[cC]/* | \ 3828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3829 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3830 /usr/ucb/* ) ;; 3831 *) 3832 # OSF1 and SCO ODT 3.0 have their own names for install. 3833 # Don't use installbsd from OSF since it installs stuff as root 3834 # by default. 3835 for ac_prog in ginstall scoinst install; do 3836 for ac_exec_ext in '' $ac_executable_extensions; do 3837 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3838 if test $ac_prog = install && 3839 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3840 # AIX install. It has an incompatible calling convention. 3841 : 3842 elif test $ac_prog = install && 3843 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3844 # program-specific install script used by HP pwplus--don't use. 3845 : 3846 else 3847 rm -rf conftest.one conftest.two conftest.dir 3848 echo one > conftest.one 3849 echo two > conftest.two 3850 mkdir conftest.dir 3851 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3852 test -s conftest.one && test -s conftest.two && 3853 test -s conftest.dir/conftest.one && 3854 test -s conftest.dir/conftest.two 3855 then 3856 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3857 break 3 3858 fi 3859 fi 3860 fi 3861 done 3862 done 3863 ;; 3864esac 3865 3866 done 3867IFS=$as_save_IFS 3868 3869rm -rf conftest.one conftest.two conftest.dir 3870 3871fi 3872 if test ${ac_cv_path_install+y}; then 3873 INSTALL=$ac_cv_path_install 3874 else 3875 # As a last resort, use the slow shell script. Don't cache a 3876 # value for INSTALL within a source directory, because that will 3877 # break other packages using the cache if that directory is 3878 # removed, or if the value is a relative name. 3879 INSTALL=$ac_install_sh 3880 fi 3881fi 3882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3883printf "%s\n" "$INSTALL" >&6; } 3884 3885# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3886# It thinks the first close brace ends the variable substitution. 3887test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3888 3889test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3890 3891test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3892 3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3894printf %s "checking whether build environment is sane... " >&6; } 3895# Reject unsafe characters in $srcdir or the absolute working directory 3896# name. Accept space and tab only in the latter. 3897am_lf=' 3898' 3899case `pwd` in 3900 *[\\\"\#\$\&\'\`$am_lf]*) 3901 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3902esac 3903case $srcdir in 3904 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3905 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3906esac 3907 3908# Do 'set' in a subshell so we don't clobber the current shell's 3909# arguments. Must try -L first in case configure is actually a 3910# symlink; some systems play weird games with the mod time of symlinks 3911# (eg FreeBSD returns the mod time of the symlink's containing 3912# directory). 3913if ( 3914 am_has_slept=no 3915 for am_try in 1 2; do 3916 echo "timestamp, slept: $am_has_slept" > conftest.file 3917 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3918 if test "$*" = "X"; then 3919 # -L didn't work. 3920 set X `ls -t "$srcdir/configure" conftest.file` 3921 fi 3922 if test "$*" != "X $srcdir/configure conftest.file" \ 3923 && test "$*" != "X conftest.file $srcdir/configure"; then 3924 3925 # If neither matched, then we have a broken ls. This can happen 3926 # if, for instance, CONFIG_SHELL is bash and it inherits a 3927 # broken ls alias from the environment. This has actually 3928 # happened. Such a system could not be considered "sane". 3929 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3930 alias in your environment" "$LINENO" 5 3931 fi 3932 if test "$2" = conftest.file || test $am_try -eq 2; then 3933 break 3934 fi 3935 # Just in case. 3936 sleep 1 3937 am_has_slept=yes 3938 done 3939 test "$2" = conftest.file 3940 ) 3941then 3942 # Ok. 3943 : 3944else 3945 as_fn_error $? "newly created file is older than distributed files! 3946Check your system clock" "$LINENO" 5 3947fi 3948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3949printf "%s\n" "yes" >&6; } 3950# If we didn't sleep, we still need to ensure time stamps of config.status and 3951# generated files are strictly newer. 3952am_sleep_pid= 3953if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3954 ( sleep 1 ) & 3955 am_sleep_pid=$! 3956fi 3957 3958rm -f conftest.file 3959 3960test "$program_prefix" != NONE && 3961 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3962# Use a double $ so make ignores it. 3963test "$program_suffix" != NONE && 3964 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3965# Double any \ or $. 3966# By default was `s,x,x', remove it if useless. 3967ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3968program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3969 3970 3971 if test x"${MISSING+set}" != xset; then 3972 MISSING="\${SHELL} '$am_aux_dir/missing'" 3973fi 3974# Use eval to expand $SHELL 3975if eval "$MISSING --is-lightweight"; then 3976 am_missing_run="$MISSING " 3977else 3978 am_missing_run= 3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3980printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3981fi 3982 3983if test x"${install_sh+set}" != xset; then 3984 case $am_aux_dir in 3985 *\ * | *\ *) 3986 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3987 *) 3988 install_sh="\${SHELL} $am_aux_dir/install-sh" 3989 esac 3990fi 3991 3992# Installed binaries are usually stripped using 'strip' when the user 3993# run "make install-strip". However 'strip' might not be the right 3994# tool to use in cross-compilation environments, therefore Automake 3995# will honor the 'STRIP' environment variable to overrule this program. 3996if test "$cross_compiling" != no; then 3997 if test -n "$ac_tool_prefix"; then 3998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3999set dummy ${ac_tool_prefix}strip; ac_word=$2 4000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4001printf %s "checking for $ac_word... " >&6; } 4002if test ${ac_cv_prog_STRIP+y} 4003then : 4004 printf %s "(cached) " >&6 4005else $as_nop 4006 if test -n "$STRIP"; then 4007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4008else 4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4010for as_dir in $PATH 4011do 4012 IFS=$as_save_IFS 4013 case $as_dir in #((( 4014 '') as_dir=./ ;; 4015 */) ;; 4016 *) as_dir=$as_dir/ ;; 4017 esac 4018 for ac_exec_ext in '' $ac_executable_extensions; do 4019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4020 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4022 break 2 4023 fi 4024done 4025 done 4026IFS=$as_save_IFS 4027 4028fi 4029fi 4030STRIP=$ac_cv_prog_STRIP 4031if test -n "$STRIP"; then 4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4033printf "%s\n" "$STRIP" >&6; } 4034else 4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4036printf "%s\n" "no" >&6; } 4037fi 4038 4039 4040fi 4041if test -z "$ac_cv_prog_STRIP"; then 4042 ac_ct_STRIP=$STRIP 4043 # Extract the first word of "strip", so it can be a program name with args. 4044set dummy strip; ac_word=$2 4045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4046printf %s "checking for $ac_word... " >&6; } 4047if test ${ac_cv_prog_ac_ct_STRIP+y} 4048then : 4049 printf %s "(cached) " >&6 4050else $as_nop 4051 if test -n "$ac_ct_STRIP"; then 4052 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4053else 4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH 4056do 4057 IFS=$as_save_IFS 4058 case $as_dir in #((( 4059 '') as_dir=./ ;; 4060 */) ;; 4061 *) as_dir=$as_dir/ ;; 4062 esac 4063 for ac_exec_ext in '' $ac_executable_extensions; do 4064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4065 ac_cv_prog_ac_ct_STRIP="strip" 4066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4067 break 2 4068 fi 4069done 4070 done 4071IFS=$as_save_IFS 4072 4073fi 4074fi 4075ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4076if test -n "$ac_ct_STRIP"; then 4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4078printf "%s\n" "$ac_ct_STRIP" >&6; } 4079else 4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4081printf "%s\n" "no" >&6; } 4082fi 4083 4084 if test "x$ac_ct_STRIP" = x; then 4085 STRIP=":" 4086 else 4087 case $cross_compiling:$ac_tool_warned in 4088yes:) 4089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4090printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4091ac_tool_warned=yes ;; 4092esac 4093 STRIP=$ac_ct_STRIP 4094 fi 4095else 4096 STRIP="$ac_cv_prog_STRIP" 4097fi 4098 4099fi 4100INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4101 4102 4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4104printf %s "checking for a race-free mkdir -p... " >&6; } 4105if test -z "$MKDIR_P"; then 4106 if test ${ac_cv_path_mkdir+y} 4107then : 4108 printf %s "(cached) " >&6 4109else $as_nop 4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4111for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4112do 4113 IFS=$as_save_IFS 4114 case $as_dir in #((( 4115 '') as_dir=./ ;; 4116 */) ;; 4117 *) as_dir=$as_dir/ ;; 4118 esac 4119 for ac_prog in mkdir gmkdir; do 4120 for ac_exec_ext in '' $ac_executable_extensions; do 4121 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4122 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4123 'mkdir ('*'coreutils) '* | \ 4124 'BusyBox '* | \ 4125 'mkdir (fileutils) '4.1*) 4126 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4127 break 3;; 4128 esac 4129 done 4130 done 4131 done 4132IFS=$as_save_IFS 4133 4134fi 4135 4136 test -d ./--version && rmdir ./--version 4137 if test ${ac_cv_path_mkdir+y}; then 4138 MKDIR_P="$ac_cv_path_mkdir -p" 4139 else 4140 # As a last resort, use the slow shell script. Don't cache a 4141 # value for MKDIR_P within a source directory, because that will 4142 # break other packages using the cache if that directory is 4143 # removed, or if the value is a relative name. 4144 MKDIR_P="$ac_install_sh -d" 4145 fi 4146fi 4147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4148printf "%s\n" "$MKDIR_P" >&6; } 4149 4150for ac_prog in gawk mawk nawk awk 4151do 4152 # Extract the first word of "$ac_prog", so it can be a program name with args. 4153set dummy $ac_prog; ac_word=$2 4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4155printf %s "checking for $ac_word... " >&6; } 4156if test ${ac_cv_prog_AWK+y} 4157then : 4158 printf %s "(cached) " >&6 4159else $as_nop 4160 if test -n "$AWK"; then 4161 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4162else 4163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164for as_dir in $PATH 4165do 4166 IFS=$as_save_IFS 4167 case $as_dir in #((( 4168 '') as_dir=./ ;; 4169 */) ;; 4170 *) as_dir=$as_dir/ ;; 4171 esac 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4174 ac_cv_prog_AWK="$ac_prog" 4175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4176 break 2 4177 fi 4178done 4179 done 4180IFS=$as_save_IFS 4181 4182fi 4183fi 4184AWK=$ac_cv_prog_AWK 4185if test -n "$AWK"; then 4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4187printf "%s\n" "$AWK" >&6; } 4188else 4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4190printf "%s\n" "no" >&6; } 4191fi 4192 4193 4194 test -n "$AWK" && break 4195done 4196 4197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4198printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4199set x ${MAKE-make} 4200ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4201if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4202then : 4203 printf %s "(cached) " >&6 4204else $as_nop 4205 cat >conftest.make <<\_ACEOF 4206SHELL = /bin/sh 4207all: 4208 @echo '@@@%%%=$(MAKE)=@@@%%%' 4209_ACEOF 4210# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4211case `${MAKE-make} -f conftest.make 2>/dev/null` in 4212 *@@@%%%=?*=@@@%%%*) 4213 eval ac_cv_prog_make_${ac_make}_set=yes;; 4214 *) 4215 eval ac_cv_prog_make_${ac_make}_set=no;; 4216esac 4217rm -f conftest.make 4218fi 4219if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4221printf "%s\n" "yes" >&6; } 4222 SET_MAKE= 4223else 4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4225printf "%s\n" "no" >&6; } 4226 SET_MAKE="MAKE=${MAKE-make}" 4227fi 4228 4229rm -rf .tst 2>/dev/null 4230mkdir .tst 2>/dev/null 4231if test -d .tst; then 4232 am__leading_dot=. 4233else 4234 am__leading_dot=_ 4235fi 4236rmdir .tst 2>/dev/null 4237 4238DEPDIR="${am__leading_dot}deps" 4239 4240ac_config_commands="$ac_config_commands depfiles" 4241 4242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4243printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4244cat > confinc.mk << 'END' 4245am__doit: 4246 @echo this is the am__doit target >confinc.out 4247.PHONY: am__doit 4248END 4249am__include="#" 4250am__quote= 4251# BSD make does it like this. 4252echo '.include "confinc.mk" # ignored' > confmf.BSD 4253# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4254echo 'include confinc.mk # ignored' > confmf.GNU 4255_am_result=no 4256for s in GNU BSD; do 4257 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4258 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4259 ac_status=$? 4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4261 (exit $ac_status); } 4262 case $?:`cat confinc.out 2>/dev/null` in #( 4263 '0:this is the am__doit target') : 4264 case $s in #( 4265 BSD) : 4266 am__include='.include' am__quote='"' ;; #( 4267 *) : 4268 am__include='include' am__quote='' ;; 4269esac ;; #( 4270 *) : 4271 ;; 4272esac 4273 if test "$am__include" != "#"; then 4274 _am_result="yes ($s style)" 4275 break 4276 fi 4277done 4278rm -f confinc.* confmf.* 4279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4280printf "%s\n" "${_am_result}" >&6; } 4281 4282# Check whether --enable-dependency-tracking was given. 4283if test ${enable_dependency_tracking+y} 4284then : 4285 enableval=$enable_dependency_tracking; 4286fi 4287 4288if test "x$enable_dependency_tracking" != xno; then 4289 am_depcomp="$ac_aux_dir/depcomp" 4290 AMDEPBACKSLASH='\' 4291 am__nodep='_no' 4292fi 4293 if test "x$enable_dependency_tracking" != xno; then 4294 AMDEP_TRUE= 4295 AMDEP_FALSE='#' 4296else 4297 AMDEP_TRUE='#' 4298 AMDEP_FALSE= 4299fi 4300 4301 4302# Check whether --enable-silent-rules was given. 4303if test ${enable_silent_rules+y} 4304then : 4305 enableval=$enable_silent_rules; 4306fi 4307 4308case $enable_silent_rules in # ((( 4309 yes) AM_DEFAULT_VERBOSITY=0;; 4310 no) AM_DEFAULT_VERBOSITY=1;; 4311 *) AM_DEFAULT_VERBOSITY=1;; 4312esac 4313am_make=${MAKE-make} 4314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4315printf %s "checking whether $am_make supports nested variables... " >&6; } 4316if test ${am_cv_make_support_nested_variables+y} 4317then : 4318 printf %s "(cached) " >&6 4319else $as_nop 4320 if printf "%s\n" 'TRUE=$(BAR$(V)) 4321BAR0=false 4322BAR1=true 4323V=1 4324am__doit: 4325 @$(TRUE) 4326.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4327 am_cv_make_support_nested_variables=yes 4328else 4329 am_cv_make_support_nested_variables=no 4330fi 4331fi 4332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4333printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4334if test $am_cv_make_support_nested_variables = yes; then 4335 AM_V='$(V)' 4336 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4337else 4338 AM_V=$AM_DEFAULT_VERBOSITY 4339 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4340fi 4341AM_BACKSLASH='\' 4342 4343if test "`cd $srcdir && pwd`" != "`pwd`"; then 4344 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4345 # is not polluted with repeated "-I." 4346 am__isrc=' -I$(srcdir)' 4347 # test to see if srcdir already configured 4348 if test -f $srcdir/config.status; then 4349 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4350 fi 4351fi 4352 4353# test whether we have cygpath 4354if test -z "$CYGPATH_W"; then 4355 if (cygpath --version) >/dev/null 2>/dev/null; then 4356 CYGPATH_W='cygpath -w' 4357 else 4358 CYGPATH_W=echo 4359 fi 4360fi 4361 4362 4363# Define the identity of the package. 4364 PACKAGE='xrdb' 4365 VERSION='1.2.2' 4366 4367 4368printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4369 4370 4371printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4372 4373# Some tools Automake needs. 4374 4375ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4376 4377 4378AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4379 4380 4381AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4382 4383 4384AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4385 4386 4387MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4388 4389# For better backward compatibility. To be removed once Automake 1.9.x 4390# dies out for good. For more background, see: 4391# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4392# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4393mkdir_p='$(MKDIR_P)' 4394 4395# We need awk for the "check" target (and possibly the TAP driver). The 4396# system "awk" is bad on some platforms. 4397# Always define AMTAR for backward compatibility. Yes, it's still used 4398# in the wild :-( We should find a proper way to deprecate it ... 4399AMTAR='$${TAR-tar}' 4400 4401 4402# We'll loop over all known methods to create a tar archive until one works. 4403_am_tools='gnutar pax cpio none' 4404 4405am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4406 4407 4408 4409 4410 4411depcc="$CC" am_compiler_list= 4412 4413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4414printf %s "checking dependency style of $depcc... " >&6; } 4415if test ${am_cv_CC_dependencies_compiler_type+y} 4416then : 4417 printf %s "(cached) " >&6 4418else $as_nop 4419 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4420 # We make a subdir and do the tests there. Otherwise we can end up 4421 # making bogus files that we don't know about and never remove. For 4422 # instance it was reported that on HP-UX the gcc test will end up 4423 # making a dummy file named 'D' -- because '-MD' means "put the output 4424 # in D". 4425 rm -rf conftest.dir 4426 mkdir conftest.dir 4427 # Copy depcomp to subdir because otherwise we won't find it if we're 4428 # using a relative directory. 4429 cp "$am_depcomp" conftest.dir 4430 cd conftest.dir 4431 # We will build objects and dependencies in a subdirectory because 4432 # it helps to detect inapplicable dependency modes. For instance 4433 # both Tru64's cc and ICC support -MD to output dependencies as a 4434 # side effect of compilation, but ICC will put the dependencies in 4435 # the current directory while Tru64 will put them in the object 4436 # directory. 4437 mkdir sub 4438 4439 am_cv_CC_dependencies_compiler_type=none 4440 if test "$am_compiler_list" = ""; then 4441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4442 fi 4443 am__universal=false 4444 case " $depcc " in #( 4445 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4446 esac 4447 4448 for depmode in $am_compiler_list; do 4449 # Setup a source with many dependencies, because some compilers 4450 # like to wrap large dependency lists on column 80 (with \), and 4451 # we should not choose a depcomp mode which is confused by this. 4452 # 4453 # We need to recreate these files for each test, as the compiler may 4454 # overwrite some of them when testing with obscure command lines. 4455 # This happens at least with the AIX C compiler. 4456 : > sub/conftest.c 4457 for i in 1 2 3 4 5 6; do 4458 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4459 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4460 # Solaris 10 /bin/sh. 4461 echo '/* dummy */' > sub/conftst$i.h 4462 done 4463 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4464 4465 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4466 # mode. It turns out that the SunPro C++ compiler does not properly 4467 # handle '-M -o', and we need to detect this. Also, some Intel 4468 # versions had trouble with output in subdirs. 4469 am__obj=sub/conftest.${OBJEXT-o} 4470 am__minus_obj="-o $am__obj" 4471 case $depmode in 4472 gcc) 4473 # This depmode causes a compiler race in universal mode. 4474 test "$am__universal" = false || continue 4475 ;; 4476 nosideeffect) 4477 # After this tag, mechanisms are not by side-effect, so they'll 4478 # only be used when explicitly requested. 4479 if test "x$enable_dependency_tracking" = xyes; then 4480 continue 4481 else 4482 break 4483 fi 4484 ;; 4485 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4486 # This compiler won't grok '-c -o', but also, the minuso test has 4487 # not run yet. These depmodes are late enough in the game, and 4488 # so weak that their functioning should not be impacted. 4489 am__obj=conftest.${OBJEXT-o} 4490 am__minus_obj= 4491 ;; 4492 none) break ;; 4493 esac 4494 if depmode=$depmode \ 4495 source=sub/conftest.c object=$am__obj \ 4496 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4497 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4498 >/dev/null 2>conftest.err && 4499 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4500 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4501 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4502 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4503 # icc doesn't choke on unknown options, it will just issue warnings 4504 # or remarks (even with -Werror). So we grep stderr for any message 4505 # that says an option was ignored or not supported. 4506 # When given -MP, icc 7.0 and 7.1 complain thusly: 4507 # icc: Command line warning: ignoring option '-M'; no argument required 4508 # The diagnosis changed in icc 8.0: 4509 # icc: Command line remark: option '-MP' not supported 4510 if (grep 'ignoring option' conftest.err || 4511 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4512 am_cv_CC_dependencies_compiler_type=$depmode 4513 break 4514 fi 4515 fi 4516 done 4517 4518 cd .. 4519 rm -rf conftest.dir 4520else 4521 am_cv_CC_dependencies_compiler_type=none 4522fi 4523 4524fi 4525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4526printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4527CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4528 4529 if 4530 test "x$enable_dependency_tracking" != xno \ 4531 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4532 am__fastdepCC_TRUE= 4533 am__fastdepCC_FALSE='#' 4534else 4535 am__fastdepCC_TRUE='#' 4536 am__fastdepCC_FALSE= 4537fi 4538 4539 4540# Variables for tags utilities; see am/tags.am 4541if test -z "$CTAGS"; then 4542 CTAGS=ctags 4543fi 4544 4545if test -z "$ETAGS"; then 4546 ETAGS=etags 4547fi 4548 4549if test -z "$CSCOPE"; then 4550 CSCOPE=cscope 4551fi 4552 4553 4554 4555# POSIX will say in a future version that running "rm -f" with no argument 4556# is OK; and we want to be able to make that assumption in our Makefile 4557# recipes. So use an aggressive probe to check that the usage we want is 4558# actually supported "in the wild" to an acceptable degree. 4559# See automake bug#10828. 4560# To make any issue more visible, cause the running configure to be aborted 4561# by default if the 'rm' program in use doesn't match our expectations; the 4562# user can still override this though. 4563if rm -f && rm -fr && rm -rf; then : OK; else 4564 cat >&2 <<'END' 4565Oops! 4566 4567Your 'rm' program seems unable to run without file operands specified 4568on the command line, even when the '-f' option is present. This is contrary 4569to the behaviour of most rm programs out there, and not conforming with 4570the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4571 4572Please tell bug-automake@gnu.org about your system, including the value 4573of your $PATH and any error possibly output before this message. This 4574can help us improve future automake versions. 4575 4576END 4577 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4578 echo 'Configuration will proceed anyway, since you have set the' >&2 4579 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4580 echo >&2 4581 else 4582 cat >&2 <<'END' 4583Aborting the configuration process, to ensure you take notice of the issue. 4584 4585You can download and install GNU coreutils to get an 'rm' implementation 4586that behaves properly: <https://www.gnu.org/software/coreutils/>. 4587 4588If you want to complete the configuration process using your problematic 4589'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4590to "yes", and re-run configure. 4591 4592END 4593 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4594 fi 4595fi 4596 4597 4598# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4611printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4612if test ${ac_cv_c_undeclared_builtin_options+y} 4613then : 4614 printf %s "(cached) " >&6 4615else $as_nop 4616 ac_save_CFLAGS=$CFLAGS 4617 ac_cv_c_undeclared_builtin_options='cannot detect' 4618 for ac_arg in '' -fno-builtin; do 4619 CFLAGS="$ac_save_CFLAGS $ac_arg" 4620 # This test program should *not* compile successfully. 4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4622/* end confdefs.h. */ 4623 4624int 4625main (void) 4626{ 4627(void) strchr; 4628 ; 4629 return 0; 4630} 4631_ACEOF 4632if ac_fn_c_try_compile "$LINENO" 4633then : 4634 4635else $as_nop 4636 # This test program should compile successfully. 4637 # No library function is consistently available on 4638 # freestanding implementations, so test against a dummy 4639 # declaration. Include always-available headers on the 4640 # off chance that they somehow elicit warnings. 4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4642/* end confdefs.h. */ 4643#include <float.h> 4644#include <limits.h> 4645#include <stdarg.h> 4646#include <stddef.h> 4647extern void ac_decl (int, char *); 4648 4649int 4650main (void) 4651{ 4652(void) ac_decl (0, (char *) 0); 4653 (void) ac_decl; 4654 4655 ; 4656 return 0; 4657} 4658_ACEOF 4659if ac_fn_c_try_compile "$LINENO" 4660then : 4661 if test x"$ac_arg" = x 4662then : 4663 ac_cv_c_undeclared_builtin_options='none needed' 4664else $as_nop 4665 ac_cv_c_undeclared_builtin_options=$ac_arg 4666fi 4667 break 4668fi 4669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4670fi 4671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4672 done 4673 CFLAGS=$ac_save_CFLAGS 4674 4675fi 4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4677printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4678 case $ac_cv_c_undeclared_builtin_options in #( 4679 'cannot detect') : 4680 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4681printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4682as_fn_error $? "cannot make $CC report undeclared builtins 4683See \`config.log' for more details" "$LINENO" 5; } ;; #( 4684 'none needed') : 4685 ac_c_undeclared_builtin_options='' ;; #( 4686 *) : 4687 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4688esac 4689 4690 4691 4692 4693 4694ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4695if test "x$ac_cv_have_decl___clang__" = xyes 4696then : 4697 CLANGCC="yes" 4698else $as_nop 4699 CLANGCC="no" 4700fi 4701ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4702if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4703then : 4704 INTELCC="yes" 4705else $as_nop 4706 INTELCC="no" 4707fi 4708ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4709if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4710then : 4711 SUNCC="yes" 4712else $as_nop 4713 SUNCC="no" 4714fi 4715 4716 4717 4718 4719 4720 4721 4722 4723if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4724 if test -n "$ac_tool_prefix"; then 4725 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4726set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4728printf %s "checking for $ac_word... " >&6; } 4729if test ${ac_cv_path_PKG_CONFIG+y} 4730then : 4731 printf %s "(cached) " >&6 4732else $as_nop 4733 case $PKG_CONFIG in 4734 [\\/]* | ?:[\\/]*) 4735 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4736 ;; 4737 *) 4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4739for as_dir in $PATH 4740do 4741 IFS=$as_save_IFS 4742 case $as_dir in #((( 4743 '') as_dir=./ ;; 4744 */) ;; 4745 *) as_dir=$as_dir/ ;; 4746 esac 4747 for ac_exec_ext in '' $ac_executable_extensions; do 4748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4749 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4751 break 2 4752 fi 4753done 4754 done 4755IFS=$as_save_IFS 4756 4757 ;; 4758esac 4759fi 4760PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4761if test -n "$PKG_CONFIG"; then 4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4763printf "%s\n" "$PKG_CONFIG" >&6; } 4764else 4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4766printf "%s\n" "no" >&6; } 4767fi 4768 4769 4770fi 4771if test -z "$ac_cv_path_PKG_CONFIG"; then 4772 ac_pt_PKG_CONFIG=$PKG_CONFIG 4773 # Extract the first word of "pkg-config", so it can be a program name with args. 4774set dummy pkg-config; ac_word=$2 4775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4776printf %s "checking for $ac_word... " >&6; } 4777if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4778then : 4779 printf %s "(cached) " >&6 4780else $as_nop 4781 case $ac_pt_PKG_CONFIG in 4782 [\\/]* | ?:[\\/]*) 4783 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4784 ;; 4785 *) 4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4787for as_dir in $PATH 4788do 4789 IFS=$as_save_IFS 4790 case $as_dir in #((( 4791 '') as_dir=./ ;; 4792 */) ;; 4793 *) as_dir=$as_dir/ ;; 4794 esac 4795 for ac_exec_ext in '' $ac_executable_extensions; do 4796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4797 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4799 break 2 4800 fi 4801done 4802 done 4803IFS=$as_save_IFS 4804 4805 ;; 4806esac 4807fi 4808ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4809if test -n "$ac_pt_PKG_CONFIG"; then 4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4811printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4812else 4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4814printf "%s\n" "no" >&6; } 4815fi 4816 4817 if test "x$ac_pt_PKG_CONFIG" = x; then 4818 PKG_CONFIG="" 4819 else 4820 case $cross_compiling:$ac_tool_warned in 4821yes:) 4822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4823printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4824ac_tool_warned=yes ;; 4825esac 4826 PKG_CONFIG=$ac_pt_PKG_CONFIG 4827 fi 4828else 4829 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4830fi 4831 4832fi 4833if test -n "$PKG_CONFIG"; then 4834 _pkg_min_version=0.9.0 4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4836printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4837 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4839printf "%s\n" "yes" >&6; } 4840 else 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4842printf "%s\n" "no" >&6; } 4843 PKG_CONFIG="" 4844 fi 4845fi 4846 4847 4848 # Make sure we can run config.sub. 4849$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4850 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4851 4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4853printf %s "checking build system type... " >&6; } 4854if test ${ac_cv_build+y} 4855then : 4856 printf %s "(cached) " >&6 4857else $as_nop 4858 ac_build_alias=$build_alias 4859test "x$ac_build_alias" = x && 4860 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4861test "x$ac_build_alias" = x && 4862 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4863ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4864 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4865 4866fi 4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4868printf "%s\n" "$ac_cv_build" >&6; } 4869case $ac_cv_build in 4870*-*-*) ;; 4871*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4872esac 4873build=$ac_cv_build 4874ac_save_IFS=$IFS; IFS='-' 4875set x $ac_cv_build 4876shift 4877build_cpu=$1 4878build_vendor=$2 4879shift; shift 4880# Remember, the first character of IFS is used to create $*, 4881# except with old shells: 4882build_os=$* 4883IFS=$ac_save_IFS 4884case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4885 4886 4887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4888printf %s "checking host system type... " >&6; } 4889if test ${ac_cv_host+y} 4890then : 4891 printf %s "(cached) " >&6 4892else $as_nop 4893 if test "x$host_alias" = x; then 4894 ac_cv_host=$ac_cv_build 4895else 4896 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4897 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4898fi 4899 4900fi 4901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4902printf "%s\n" "$ac_cv_host" >&6; } 4903case $ac_cv_host in 4904*-*-*) ;; 4905*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4906esac 4907host=$ac_cv_host 4908ac_save_IFS=$IFS; IFS='-' 4909set x $ac_cv_host 4910shift 4911host_cpu=$1 4912host_vendor=$2 4913shift; shift 4914# Remember, the first character of IFS is used to create $*, 4915# except with old shells: 4916host_os=$* 4917IFS=$ac_save_IFS 4918case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4919 4920 4921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4922printf %s "checking for a sed that does not truncate output... " >&6; } 4923if test ${ac_cv_path_SED+y} 4924then : 4925 printf %s "(cached) " >&6 4926else $as_nop 4927 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4928 for ac_i in 1 2 3 4 5 6 7; do 4929 ac_script="$ac_script$as_nl$ac_script" 4930 done 4931 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4932 { ac_script=; unset ac_script;} 4933 if test -z "$SED"; then 4934 ac_path_SED_found=false 4935 # Loop through the user's path and test for each of PROGNAME-LIST 4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4937for as_dir in $PATH 4938do 4939 IFS=$as_save_IFS 4940 case $as_dir in #((( 4941 '') as_dir=./ ;; 4942 */) ;; 4943 *) as_dir=$as_dir/ ;; 4944 esac 4945 for ac_prog in sed gsed 4946 do 4947 for ac_exec_ext in '' $ac_executable_extensions; do 4948 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4949 as_fn_executable_p "$ac_path_SED" || continue 4950# Check for GNU ac_path_SED and select it if it is found. 4951 # Check for GNU $ac_path_SED 4952case `"$ac_path_SED" --version 2>&1` in 4953*GNU*) 4954 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4955*) 4956 ac_count=0 4957 printf %s 0123456789 >"conftest.in" 4958 while : 4959 do 4960 cat "conftest.in" "conftest.in" >"conftest.tmp" 4961 mv "conftest.tmp" "conftest.in" 4962 cp "conftest.in" "conftest.nl" 4963 printf "%s\n" '' >> "conftest.nl" 4964 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4966 as_fn_arith $ac_count + 1 && ac_count=$as_val 4967 if test $ac_count -gt ${ac_path_SED_max-0}; then 4968 # Best one so far, save it but keep looking for a better one 4969 ac_cv_path_SED="$ac_path_SED" 4970 ac_path_SED_max=$ac_count 4971 fi 4972 # 10*(2^10) chars as input seems more than enough 4973 test $ac_count -gt 10 && break 4974 done 4975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4976esac 4977 4978 $ac_path_SED_found && break 3 4979 done 4980 done 4981 done 4982IFS=$as_save_IFS 4983 if test -z "$ac_cv_path_SED"; then 4984 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4985 fi 4986else 4987 ac_cv_path_SED=$SED 4988fi 4989 4990fi 4991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4992printf "%s\n" "$ac_cv_path_SED" >&6; } 4993 SED="$ac_cv_path_SED" 4994 rm -f conftest.sed 4995 4996 4997 4998 4999 5000 5001# Check whether --enable-selective-werror was given. 5002if test ${enable_selective_werror+y} 5003then : 5004 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5005else $as_nop 5006 SELECTIVE_WERROR=yes 5007fi 5008 5009 5010 5011 5012 5013# -v is too short to test reliably with XORG_TESTSET_CFLAG 5014if test "x$SUNCC" = "xyes"; then 5015 BASE_CFLAGS="-v" 5016else 5017 BASE_CFLAGS="" 5018fi 5019 5020# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034xorg_testset_save_CFLAGS="$CFLAGS" 5035 5036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5039printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5040if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5041then : 5042 printf %s "(cached) " >&6 5043else $as_nop 5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5045/* end confdefs.h. */ 5046int i; 5047_ACEOF 5048if ac_fn_c_try_compile "$LINENO" 5049then : 5050 xorg_cv_cc_flag_unknown_warning_option=yes 5051else $as_nop 5052 xorg_cv_cc_flag_unknown_warning_option=no 5053fi 5054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5055fi 5056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060fi 5061 5062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 fi 5066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5069if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5070then : 5071 printf %s "(cached) " >&6 5072else $as_nop 5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5074/* end confdefs.h. */ 5075int i; 5076_ACEOF 5077if ac_fn_c_try_compile "$LINENO" 5078then : 5079 xorg_cv_cc_flag_unused_command_line_argument=yes 5080else $as_nop 5081 xorg_cv_cc_flag_unused_command_line_argument=no 5082fi 5083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5084fi 5085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5088 CFLAGS="$xorg_testset_save_CFLAGS" 5089fi 5090 5091found="no" 5092 5093 if test $found = "no" ; then 5094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5096 fi 5097 5098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5100 fi 5101 5102 CFLAGS="$CFLAGS -Wall" 5103 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5105printf %s "checking if $CC supports -Wall... " >&6; } 5106 cacheid=xorg_cv_cc_flag__Wall 5107 if eval test \${$cacheid+y} 5108then : 5109 printf %s "(cached) " >&6 5110else $as_nop 5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113int i; 5114int 5115main (void) 5116{ 5117 5118 ; 5119 return 0; 5120} 5121_ACEOF 5122if ac_fn_c_try_link "$LINENO" 5123then : 5124 eval $cacheid=yes 5125else $as_nop 5126 eval $cacheid=no 5127fi 5128rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5129 conftest$ac_exeext conftest.$ac_ext 5130fi 5131 5132 5133 CFLAGS="$xorg_testset_save_CFLAGS" 5134 5135 eval supported=\$$cacheid 5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5137printf "%s\n" "$supported" >&6; } 5138 if test "$supported" = "yes" ; then 5139 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5140 found="yes" 5141 fi 5142 fi 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158xorg_testset_save_CFLAGS="$CFLAGS" 5159 5160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5163printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5164if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5165then : 5166 printf %s "(cached) " >&6 5167else $as_nop 5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170int i; 5171_ACEOF 5172if ac_fn_c_try_compile "$LINENO" 5173then : 5174 xorg_cv_cc_flag_unknown_warning_option=yes 5175else $as_nop 5176 xorg_cv_cc_flag_unknown_warning_option=no 5177fi 5178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5179fi 5180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5183 CFLAGS="$xorg_testset_save_CFLAGS" 5184fi 5185 5186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5189 fi 5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5193if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5194then : 5195 printf %s "(cached) " >&6 5196else $as_nop 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199int i; 5200_ACEOF 5201if ac_fn_c_try_compile "$LINENO" 5202then : 5203 xorg_cv_cc_flag_unused_command_line_argument=yes 5204else $as_nop 5205 xorg_cv_cc_flag_unused_command_line_argument=no 5206fi 5207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5208fi 5209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5210printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5212 CFLAGS="$xorg_testset_save_CFLAGS" 5213fi 5214 5215found="no" 5216 5217 if test $found = "no" ; then 5218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5220 fi 5221 5222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5224 fi 5225 5226 CFLAGS="$CFLAGS -Wpointer-arith" 5227 5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5229printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5230 cacheid=xorg_cv_cc_flag__Wpointer_arith 5231 if eval test \${$cacheid+y} 5232then : 5233 printf %s "(cached) " >&6 5234else $as_nop 5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5236/* end confdefs.h. */ 5237int i; 5238int 5239main (void) 5240{ 5241 5242 ; 5243 return 0; 5244} 5245_ACEOF 5246if ac_fn_c_try_link "$LINENO" 5247then : 5248 eval $cacheid=yes 5249else $as_nop 5250 eval $cacheid=no 5251fi 5252rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5253 conftest$ac_exeext conftest.$ac_ext 5254fi 5255 5256 5257 CFLAGS="$xorg_testset_save_CFLAGS" 5258 5259 eval supported=\$$cacheid 5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5261printf "%s\n" "$supported" >&6; } 5262 if test "$supported" = "yes" ; then 5263 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5264 found="yes" 5265 fi 5266 fi 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282xorg_testset_save_CFLAGS="$CFLAGS" 5283 5284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5287printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5288if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5289then : 5290 printf %s "(cached) " >&6 5291else $as_nop 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295_ACEOF 5296if ac_fn_c_try_compile "$LINENO" 5297then : 5298 xorg_cv_cc_flag_unknown_warning_option=yes 5299else $as_nop 5300 xorg_cv_cc_flag_unknown_warning_option=no 5301fi 5302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5303fi 5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5307 CFLAGS="$xorg_testset_save_CFLAGS" 5308fi 5309 5310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 fi 5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5317if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5318then : 5319 printf %s "(cached) " >&6 5320else $as_nop 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5322/* end confdefs.h. */ 5323int i; 5324_ACEOF 5325if ac_fn_c_try_compile "$LINENO" 5326then : 5327 xorg_cv_cc_flag_unused_command_line_argument=yes 5328else $as_nop 5329 xorg_cv_cc_flag_unused_command_line_argument=no 5330fi 5331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5332fi 5333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5334printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337fi 5338 5339found="no" 5340 5341 if test $found = "no" ; then 5342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5344 fi 5345 5346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5348 fi 5349 5350 CFLAGS="$CFLAGS -Wmissing-declarations" 5351 5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5353printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5354 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5355 if eval test \${$cacheid+y} 5356then : 5357 printf %s "(cached) " >&6 5358else $as_nop 5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5360/* end confdefs.h. */ 5361int i; 5362int 5363main (void) 5364{ 5365 5366 ; 5367 return 0; 5368} 5369_ACEOF 5370if ac_fn_c_try_link "$LINENO" 5371then : 5372 eval $cacheid=yes 5373else $as_nop 5374 eval $cacheid=no 5375fi 5376rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5377 conftest$ac_exeext conftest.$ac_ext 5378fi 5379 5380 5381 CFLAGS="$xorg_testset_save_CFLAGS" 5382 5383 eval supported=\$$cacheid 5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5385printf "%s\n" "$supported" >&6; } 5386 if test "$supported" = "yes" ; then 5387 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5388 found="yes" 5389 fi 5390 fi 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406xorg_testset_save_CFLAGS="$CFLAGS" 5407 5408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5412if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5413then : 5414 printf %s "(cached) " >&6 5415else $as_nop 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418int i; 5419_ACEOF 5420if ac_fn_c_try_compile "$LINENO" 5421then : 5422 xorg_cv_cc_flag_unknown_warning_option=yes 5423else $as_nop 5424 xorg_cv_cc_flag_unknown_warning_option=no 5425fi 5426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5427fi 5428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5429printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5431 CFLAGS="$xorg_testset_save_CFLAGS" 5432fi 5433 5434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5437 fi 5438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5440printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5441if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5442then : 5443 printf %s "(cached) " >&6 5444else $as_nop 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447int i; 5448_ACEOF 5449if ac_fn_c_try_compile "$LINENO" 5450then : 5451 xorg_cv_cc_flag_unused_command_line_argument=yes 5452else $as_nop 5453 xorg_cv_cc_flag_unused_command_line_argument=no 5454fi 5455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5456fi 5457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5458printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5460 CFLAGS="$xorg_testset_save_CFLAGS" 5461fi 5462 5463found="no" 5464 5465 if test $found = "no" ; then 5466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5468 fi 5469 5470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5472 fi 5473 5474 CFLAGS="$CFLAGS -Wformat=2" 5475 5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5477printf %s "checking if $CC supports -Wformat=2... " >&6; } 5478 cacheid=xorg_cv_cc_flag__Wformat_2 5479 if eval test \${$cacheid+y} 5480then : 5481 printf %s "(cached) " >&6 5482else $as_nop 5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5484/* end confdefs.h. */ 5485int i; 5486int 5487main (void) 5488{ 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494if ac_fn_c_try_link "$LINENO" 5495then : 5496 eval $cacheid=yes 5497else $as_nop 5498 eval $cacheid=no 5499fi 5500rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5501 conftest$ac_exeext conftest.$ac_ext 5502fi 5503 5504 5505 CFLAGS="$xorg_testset_save_CFLAGS" 5506 5507 eval supported=\$$cacheid 5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5509printf "%s\n" "$supported" >&6; } 5510 if test "$supported" = "yes" ; then 5511 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5512 found="yes" 5513 fi 5514 fi 5515 5516 if test $found = "no" ; then 5517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5519 fi 5520 5521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5523 fi 5524 5525 CFLAGS="$CFLAGS -Wformat" 5526 5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5528printf %s "checking if $CC supports -Wformat... " >&6; } 5529 cacheid=xorg_cv_cc_flag__Wformat 5530 if eval test \${$cacheid+y} 5531then : 5532 printf %s "(cached) " >&6 5533else $as_nop 5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5535/* end confdefs.h. */ 5536int i; 5537int 5538main (void) 5539{ 5540 5541 ; 5542 return 0; 5543} 5544_ACEOF 5545if ac_fn_c_try_link "$LINENO" 5546then : 5547 eval $cacheid=yes 5548else $as_nop 5549 eval $cacheid=no 5550fi 5551rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5552 conftest$ac_exeext conftest.$ac_ext 5553fi 5554 5555 5556 CFLAGS="$xorg_testset_save_CFLAGS" 5557 5558 eval supported=\$$cacheid 5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5560printf "%s\n" "$supported" >&6; } 5561 if test "$supported" = "yes" ; then 5562 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5563 found="yes" 5564 fi 5565 fi 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583xorg_testset_save_CFLAGS="$CFLAGS" 5584 5585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5589if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5590then : 5591 printf %s "(cached) " >&6 5592else $as_nop 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595int i; 5596_ACEOF 5597if ac_fn_c_try_compile "$LINENO" 5598then : 5599 xorg_cv_cc_flag_unknown_warning_option=yes 5600else $as_nop 5601 xorg_cv_cc_flag_unknown_warning_option=no 5602fi 5603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5604fi 5605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5608 CFLAGS="$xorg_testset_save_CFLAGS" 5609fi 5610 5611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5614 fi 5615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5618if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5619then : 5620 printf %s "(cached) " >&6 5621else $as_nop 5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5623/* end confdefs.h. */ 5624int i; 5625_ACEOF 5626if ac_fn_c_try_compile "$LINENO" 5627then : 5628 xorg_cv_cc_flag_unused_command_line_argument=yes 5629else $as_nop 5630 xorg_cv_cc_flag_unused_command_line_argument=no 5631fi 5632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5633fi 5634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5637 CFLAGS="$xorg_testset_save_CFLAGS" 5638fi 5639 5640found="no" 5641 5642 if test $found = "no" ; then 5643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5645 fi 5646 5647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5649 fi 5650 5651 CFLAGS="$CFLAGS -Wstrict-prototypes" 5652 5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5654printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5655 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5656 if eval test \${$cacheid+y} 5657then : 5658 printf %s "(cached) " >&6 5659else $as_nop 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662int i; 5663int 5664main (void) 5665{ 5666 5667 ; 5668 return 0; 5669} 5670_ACEOF 5671if ac_fn_c_try_link "$LINENO" 5672then : 5673 eval $cacheid=yes 5674else $as_nop 5675 eval $cacheid=no 5676fi 5677rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5678 conftest$ac_exeext conftest.$ac_ext 5679fi 5680 5681 5682 CFLAGS="$xorg_testset_save_CFLAGS" 5683 5684 eval supported=\$$cacheid 5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5686printf "%s\n" "$supported" >&6; } 5687 if test "$supported" = "yes" ; then 5688 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5689 found="yes" 5690 fi 5691 fi 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707xorg_testset_save_CFLAGS="$CFLAGS" 5708 5709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5713if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5714then : 5715 printf %s "(cached) " >&6 5716else $as_nop 5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5718/* end confdefs.h. */ 5719int i; 5720_ACEOF 5721if ac_fn_c_try_compile "$LINENO" 5722then : 5723 xorg_cv_cc_flag_unknown_warning_option=yes 5724else $as_nop 5725 xorg_cv_cc_flag_unknown_warning_option=no 5726fi 5727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5728fi 5729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5730printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5732 CFLAGS="$xorg_testset_save_CFLAGS" 5733fi 5734 5735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5738 fi 5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5741printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5742if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5743then : 5744 printf %s "(cached) " >&6 5745else $as_nop 5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5747/* end confdefs.h. */ 5748int i; 5749_ACEOF 5750if ac_fn_c_try_compile "$LINENO" 5751then : 5752 xorg_cv_cc_flag_unused_command_line_argument=yes 5753else $as_nop 5754 xorg_cv_cc_flag_unused_command_line_argument=no 5755fi 5756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5757fi 5758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5761 CFLAGS="$xorg_testset_save_CFLAGS" 5762fi 5763 5764found="no" 5765 5766 if test $found = "no" ; then 5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5769 fi 5770 5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5773 fi 5774 5775 CFLAGS="$CFLAGS -Wmissing-prototypes" 5776 5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5778printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5779 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5780 if eval test \${$cacheid+y} 5781then : 5782 printf %s "(cached) " >&6 5783else $as_nop 5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5785/* end confdefs.h. */ 5786int i; 5787int 5788main (void) 5789{ 5790 5791 ; 5792 return 0; 5793} 5794_ACEOF 5795if ac_fn_c_try_link "$LINENO" 5796then : 5797 eval $cacheid=yes 5798else $as_nop 5799 eval $cacheid=no 5800fi 5801rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5802 conftest$ac_exeext conftest.$ac_ext 5803fi 5804 5805 5806 CFLAGS="$xorg_testset_save_CFLAGS" 5807 5808 eval supported=\$$cacheid 5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5810printf "%s\n" "$supported" >&6; } 5811 if test "$supported" = "yes" ; then 5812 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5813 found="yes" 5814 fi 5815 fi 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831xorg_testset_save_CFLAGS="$CFLAGS" 5832 5833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5837if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5838then : 5839 printf %s "(cached) " >&6 5840else $as_nop 5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842/* end confdefs.h. */ 5843int i; 5844_ACEOF 5845if ac_fn_c_try_compile "$LINENO" 5846then : 5847 xorg_cv_cc_flag_unknown_warning_option=yes 5848else $as_nop 5849 xorg_cv_cc_flag_unknown_warning_option=no 5850fi 5851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5852fi 5853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5856 CFLAGS="$xorg_testset_save_CFLAGS" 5857fi 5858 5859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5862 fi 5863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5866if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5867then : 5868 printf %s "(cached) " >&6 5869else $as_nop 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871/* end confdefs.h. */ 5872int i; 5873_ACEOF 5874if ac_fn_c_try_compile "$LINENO" 5875then : 5876 xorg_cv_cc_flag_unused_command_line_argument=yes 5877else $as_nop 5878 xorg_cv_cc_flag_unused_command_line_argument=no 5879fi 5880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5881fi 5882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5885 CFLAGS="$xorg_testset_save_CFLAGS" 5886fi 5887 5888found="no" 5889 5890 if test $found = "no" ; then 5891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5893 fi 5894 5895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5897 fi 5898 5899 CFLAGS="$CFLAGS -Wnested-externs" 5900 5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5902printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5903 cacheid=xorg_cv_cc_flag__Wnested_externs 5904 if eval test \${$cacheid+y} 5905then : 5906 printf %s "(cached) " >&6 5907else $as_nop 5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909/* end confdefs.h. */ 5910int i; 5911int 5912main (void) 5913{ 5914 5915 ; 5916 return 0; 5917} 5918_ACEOF 5919if ac_fn_c_try_link "$LINENO" 5920then : 5921 eval $cacheid=yes 5922else $as_nop 5923 eval $cacheid=no 5924fi 5925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5926 conftest$ac_exeext conftest.$ac_ext 5927fi 5928 5929 5930 CFLAGS="$xorg_testset_save_CFLAGS" 5931 5932 eval supported=\$$cacheid 5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5934printf "%s\n" "$supported" >&6; } 5935 if test "$supported" = "yes" ; then 5936 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5937 found="yes" 5938 fi 5939 fi 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955xorg_testset_save_CFLAGS="$CFLAGS" 5956 5957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5961if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5962then : 5963 printf %s "(cached) " >&6 5964else $as_nop 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967int i; 5968_ACEOF 5969if ac_fn_c_try_compile "$LINENO" 5970then : 5971 xorg_cv_cc_flag_unknown_warning_option=yes 5972else $as_nop 5973 xorg_cv_cc_flag_unknown_warning_option=no 5974fi 5975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5976fi 5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5980 CFLAGS="$xorg_testset_save_CFLAGS" 5981fi 5982 5983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5986 fi 5987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5990if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5991then : 5992 printf %s "(cached) " >&6 5993else $as_nop 5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5995/* end confdefs.h. */ 5996int i; 5997_ACEOF 5998if ac_fn_c_try_compile "$LINENO" 5999then : 6000 xorg_cv_cc_flag_unused_command_line_argument=yes 6001else $as_nop 6002 xorg_cv_cc_flag_unused_command_line_argument=no 6003fi 6004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6005fi 6006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6009 CFLAGS="$xorg_testset_save_CFLAGS" 6010fi 6011 6012found="no" 6013 6014 if test $found = "no" ; then 6015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6017 fi 6018 6019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6021 fi 6022 6023 CFLAGS="$CFLAGS -Wbad-function-cast" 6024 6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6026printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6027 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6028 if eval test \${$cacheid+y} 6029then : 6030 printf %s "(cached) " >&6 6031else $as_nop 6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6033/* end confdefs.h. */ 6034int i; 6035int 6036main (void) 6037{ 6038 6039 ; 6040 return 0; 6041} 6042_ACEOF 6043if ac_fn_c_try_link "$LINENO" 6044then : 6045 eval $cacheid=yes 6046else $as_nop 6047 eval $cacheid=no 6048fi 6049rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6050 conftest$ac_exeext conftest.$ac_ext 6051fi 6052 6053 6054 CFLAGS="$xorg_testset_save_CFLAGS" 6055 6056 eval supported=\$$cacheid 6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6058printf "%s\n" "$supported" >&6; } 6059 if test "$supported" = "yes" ; then 6060 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6061 found="yes" 6062 fi 6063 fi 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079xorg_testset_save_CFLAGS="$CFLAGS" 6080 6081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6084printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6085if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6086then : 6087 printf %s "(cached) " >&6 6088else $as_nop 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090/* end confdefs.h. */ 6091int i; 6092_ACEOF 6093if ac_fn_c_try_compile "$LINENO" 6094then : 6095 xorg_cv_cc_flag_unknown_warning_option=yes 6096else $as_nop 6097 xorg_cv_cc_flag_unknown_warning_option=no 6098fi 6099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6100fi 6101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6102printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6104 CFLAGS="$xorg_testset_save_CFLAGS" 6105fi 6106 6107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6110 fi 6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6113printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6114if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6115then : 6116 printf %s "(cached) " >&6 6117else $as_nop 6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119/* end confdefs.h. */ 6120int i; 6121_ACEOF 6122if ac_fn_c_try_compile "$LINENO" 6123then : 6124 xorg_cv_cc_flag_unused_command_line_argument=yes 6125else $as_nop 6126 xorg_cv_cc_flag_unused_command_line_argument=no 6127fi 6128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6129fi 6130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6131printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6133 CFLAGS="$xorg_testset_save_CFLAGS" 6134fi 6135 6136found="no" 6137 6138 if test $found = "no" ; then 6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6141 fi 6142 6143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6145 fi 6146 6147 CFLAGS="$CFLAGS -Wold-style-definition" 6148 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6150printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6151 cacheid=xorg_cv_cc_flag__Wold_style_definition 6152 if eval test \${$cacheid+y} 6153then : 6154 printf %s "(cached) " >&6 6155else $as_nop 6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6157/* end confdefs.h. */ 6158int i; 6159int 6160main (void) 6161{ 6162 6163 ; 6164 return 0; 6165} 6166_ACEOF 6167if ac_fn_c_try_link "$LINENO" 6168then : 6169 eval $cacheid=yes 6170else $as_nop 6171 eval $cacheid=no 6172fi 6173rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6174 conftest$ac_exeext conftest.$ac_ext 6175fi 6176 6177 6178 CFLAGS="$xorg_testset_save_CFLAGS" 6179 6180 eval supported=\$$cacheid 6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6182printf "%s\n" "$supported" >&6; } 6183 if test "$supported" = "yes" ; then 6184 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6185 found="yes" 6186 fi 6187 fi 6188 6189 if test $found = "no" ; then 6190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6192 fi 6193 6194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6196 fi 6197 6198 CFLAGS="$CFLAGS -fd" 6199 6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6201printf %s "checking if $CC supports -fd... " >&6; } 6202 cacheid=xorg_cv_cc_flag__fd 6203 if eval test \${$cacheid+y} 6204then : 6205 printf %s "(cached) " >&6 6206else $as_nop 6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6208/* end confdefs.h. */ 6209int i; 6210int 6211main (void) 6212{ 6213 6214 ; 6215 return 0; 6216} 6217_ACEOF 6218if ac_fn_c_try_link "$LINENO" 6219then : 6220 eval $cacheid=yes 6221else $as_nop 6222 eval $cacheid=no 6223fi 6224rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6225 conftest$ac_exeext conftest.$ac_ext 6226fi 6227 6228 6229 CFLAGS="$xorg_testset_save_CFLAGS" 6230 6231 eval supported=\$$cacheid 6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6233printf "%s\n" "$supported" >&6; } 6234 if test "$supported" = "yes" ; then 6235 BASE_CFLAGS="$BASE_CFLAGS -fd" 6236 found="yes" 6237 fi 6238 fi 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254xorg_testset_save_CFLAGS="$CFLAGS" 6255 6256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6259printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6260if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6261then : 6262 printf %s "(cached) " >&6 6263else $as_nop 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265/* end confdefs.h. */ 6266int i; 6267_ACEOF 6268if ac_fn_c_try_compile "$LINENO" 6269then : 6270 xorg_cv_cc_flag_unknown_warning_option=yes 6271else $as_nop 6272 xorg_cv_cc_flag_unknown_warning_option=no 6273fi 6274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6275fi 6276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6277printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6279 CFLAGS="$xorg_testset_save_CFLAGS" 6280fi 6281 6282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6285 fi 6286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6288printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6289if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6290then : 6291 printf %s "(cached) " >&6 6292else $as_nop 6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6294/* end confdefs.h. */ 6295int i; 6296_ACEOF 6297if ac_fn_c_try_compile "$LINENO" 6298then : 6299 xorg_cv_cc_flag_unused_command_line_argument=yes 6300else $as_nop 6301 xorg_cv_cc_flag_unused_command_line_argument=no 6302fi 6303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6304fi 6305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6306printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6308 CFLAGS="$xorg_testset_save_CFLAGS" 6309fi 6310 6311found="no" 6312 6313 if test $found = "no" ; then 6314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6316 fi 6317 6318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6320 fi 6321 6322 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6323 6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6325printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6326 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6327 if eval test \${$cacheid+y} 6328then : 6329 printf %s "(cached) " >&6 6330else $as_nop 6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6332/* end confdefs.h. */ 6333int i; 6334int 6335main (void) 6336{ 6337 6338 ; 6339 return 0; 6340} 6341_ACEOF 6342if ac_fn_c_try_link "$LINENO" 6343then : 6344 eval $cacheid=yes 6345else $as_nop 6346 eval $cacheid=no 6347fi 6348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6349 conftest$ac_exeext conftest.$ac_ext 6350fi 6351 6352 6353 CFLAGS="$xorg_testset_save_CFLAGS" 6354 6355 eval supported=\$$cacheid 6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6357printf "%s\n" "$supported" >&6; } 6358 if test "$supported" = "yes" ; then 6359 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6360 found="yes" 6361 fi 6362 fi 6363 6364 6365 6366 6367 6368# This chunk adds additional warnings that could catch undesired effects. 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382xorg_testset_save_CFLAGS="$CFLAGS" 6383 6384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6388if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6389then : 6390 printf %s "(cached) " >&6 6391else $as_nop 6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6393/* end confdefs.h. */ 6394int i; 6395_ACEOF 6396if ac_fn_c_try_compile "$LINENO" 6397then : 6398 xorg_cv_cc_flag_unknown_warning_option=yes 6399else $as_nop 6400 xorg_cv_cc_flag_unknown_warning_option=no 6401fi 6402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6403fi 6404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6407 CFLAGS="$xorg_testset_save_CFLAGS" 6408fi 6409 6410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6413 fi 6414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6417if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6418then : 6419 printf %s "(cached) " >&6 6420else $as_nop 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422/* end confdefs.h. */ 6423int i; 6424_ACEOF 6425if ac_fn_c_try_compile "$LINENO" 6426then : 6427 xorg_cv_cc_flag_unused_command_line_argument=yes 6428else $as_nop 6429 xorg_cv_cc_flag_unused_command_line_argument=no 6430fi 6431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6432fi 6433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6436 CFLAGS="$xorg_testset_save_CFLAGS" 6437fi 6438 6439found="no" 6440 6441 if test $found = "no" ; then 6442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6444 fi 6445 6446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6448 fi 6449 6450 CFLAGS="$CFLAGS -Wunused" 6451 6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6453printf %s "checking if $CC supports -Wunused... " >&6; } 6454 cacheid=xorg_cv_cc_flag__Wunused 6455 if eval test \${$cacheid+y} 6456then : 6457 printf %s "(cached) " >&6 6458else $as_nop 6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6460/* end confdefs.h. */ 6461int i; 6462int 6463main (void) 6464{ 6465 6466 ; 6467 return 0; 6468} 6469_ACEOF 6470if ac_fn_c_try_link "$LINENO" 6471then : 6472 eval $cacheid=yes 6473else $as_nop 6474 eval $cacheid=no 6475fi 6476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6477 conftest$ac_exeext conftest.$ac_ext 6478fi 6479 6480 6481 CFLAGS="$xorg_testset_save_CFLAGS" 6482 6483 eval supported=\$$cacheid 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6485printf "%s\n" "$supported" >&6; } 6486 if test "$supported" = "yes" ; then 6487 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6488 found="yes" 6489 fi 6490 fi 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506xorg_testset_save_CFLAGS="$CFLAGS" 6507 6508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6512if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6513then : 6514 printf %s "(cached) " >&6 6515else $as_nop 6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6517/* end confdefs.h. */ 6518int i; 6519_ACEOF 6520if ac_fn_c_try_compile "$LINENO" 6521then : 6522 xorg_cv_cc_flag_unknown_warning_option=yes 6523else $as_nop 6524 xorg_cv_cc_flag_unknown_warning_option=no 6525fi 6526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6527fi 6528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6529printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6532fi 6533 6534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6537 fi 6538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6540printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6541if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6542then : 6543 printf %s "(cached) " >&6 6544else $as_nop 6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6546/* end confdefs.h. */ 6547int i; 6548_ACEOF 6549if ac_fn_c_try_compile "$LINENO" 6550then : 6551 xorg_cv_cc_flag_unused_command_line_argument=yes 6552else $as_nop 6553 xorg_cv_cc_flag_unused_command_line_argument=no 6554fi 6555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6556fi 6557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6558printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6560 CFLAGS="$xorg_testset_save_CFLAGS" 6561fi 6562 6563found="no" 6564 6565 if test $found = "no" ; then 6566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6568 fi 6569 6570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6572 fi 6573 6574 CFLAGS="$CFLAGS -Wuninitialized" 6575 6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6577printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6578 cacheid=xorg_cv_cc_flag__Wuninitialized 6579 if eval test \${$cacheid+y} 6580then : 6581 printf %s "(cached) " >&6 6582else $as_nop 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585int i; 6586int 6587main (void) 6588{ 6589 6590 ; 6591 return 0; 6592} 6593_ACEOF 6594if ac_fn_c_try_link "$LINENO" 6595then : 6596 eval $cacheid=yes 6597else $as_nop 6598 eval $cacheid=no 6599fi 6600rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6601 conftest$ac_exeext conftest.$ac_ext 6602fi 6603 6604 6605 CFLAGS="$xorg_testset_save_CFLAGS" 6606 6607 eval supported=\$$cacheid 6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6609printf "%s\n" "$supported" >&6; } 6610 if test "$supported" = "yes" ; then 6611 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6612 found="yes" 6613 fi 6614 fi 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630xorg_testset_save_CFLAGS="$CFLAGS" 6631 6632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6635printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6636if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6637then : 6638 printf %s "(cached) " >&6 6639else $as_nop 6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6641/* end confdefs.h. */ 6642int i; 6643_ACEOF 6644if ac_fn_c_try_compile "$LINENO" 6645then : 6646 xorg_cv_cc_flag_unknown_warning_option=yes 6647else $as_nop 6648 xorg_cv_cc_flag_unknown_warning_option=no 6649fi 6650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6651fi 6652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6655 CFLAGS="$xorg_testset_save_CFLAGS" 6656fi 6657 6658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6661 fi 6662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6665if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6666then : 6667 printf %s "(cached) " >&6 6668else $as_nop 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670/* end confdefs.h. */ 6671int i; 6672_ACEOF 6673if ac_fn_c_try_compile "$LINENO" 6674then : 6675 xorg_cv_cc_flag_unused_command_line_argument=yes 6676else $as_nop 6677 xorg_cv_cc_flag_unused_command_line_argument=no 6678fi 6679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6680fi 6681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6682printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6684 CFLAGS="$xorg_testset_save_CFLAGS" 6685fi 6686 6687found="no" 6688 6689 if test $found = "no" ; then 6690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6692 fi 6693 6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6696 fi 6697 6698 CFLAGS="$CFLAGS -Wshadow" 6699 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6701printf %s "checking if $CC supports -Wshadow... " >&6; } 6702 cacheid=xorg_cv_cc_flag__Wshadow 6703 if eval test \${$cacheid+y} 6704then : 6705 printf %s "(cached) " >&6 6706else $as_nop 6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708/* end confdefs.h. */ 6709int i; 6710int 6711main (void) 6712{ 6713 6714 ; 6715 return 0; 6716} 6717_ACEOF 6718if ac_fn_c_try_link "$LINENO" 6719then : 6720 eval $cacheid=yes 6721else $as_nop 6722 eval $cacheid=no 6723fi 6724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6725 conftest$ac_exeext conftest.$ac_ext 6726fi 6727 6728 6729 CFLAGS="$xorg_testset_save_CFLAGS" 6730 6731 eval supported=\$$cacheid 6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6733printf "%s\n" "$supported" >&6; } 6734 if test "$supported" = "yes" ; then 6735 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6736 found="yes" 6737 fi 6738 fi 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754xorg_testset_save_CFLAGS="$CFLAGS" 6755 6756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6759printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6760if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6761then : 6762 printf %s "(cached) " >&6 6763else $as_nop 6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765/* end confdefs.h. */ 6766int i; 6767_ACEOF 6768if ac_fn_c_try_compile "$LINENO" 6769then : 6770 xorg_cv_cc_flag_unknown_warning_option=yes 6771else $as_nop 6772 xorg_cv_cc_flag_unknown_warning_option=no 6773fi 6774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6775fi 6776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6777printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6779 CFLAGS="$xorg_testset_save_CFLAGS" 6780fi 6781 6782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6785 fi 6786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6788printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6789if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6790then : 6791 printf %s "(cached) " >&6 6792else $as_nop 6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6794/* end confdefs.h. */ 6795int i; 6796_ACEOF 6797if ac_fn_c_try_compile "$LINENO" 6798then : 6799 xorg_cv_cc_flag_unused_command_line_argument=yes 6800else $as_nop 6801 xorg_cv_cc_flag_unused_command_line_argument=no 6802fi 6803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6804fi 6805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6806printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6808 CFLAGS="$xorg_testset_save_CFLAGS" 6809fi 6810 6811found="no" 6812 6813 if test $found = "no" ; then 6814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6816 fi 6817 6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6820 fi 6821 6822 CFLAGS="$CFLAGS -Wmissing-noreturn" 6823 6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6825printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6826 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6827 if eval test \${$cacheid+y} 6828then : 6829 printf %s "(cached) " >&6 6830else $as_nop 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833int i; 6834int 6835main (void) 6836{ 6837 6838 ; 6839 return 0; 6840} 6841_ACEOF 6842if ac_fn_c_try_link "$LINENO" 6843then : 6844 eval $cacheid=yes 6845else $as_nop 6846 eval $cacheid=no 6847fi 6848rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6849 conftest$ac_exeext conftest.$ac_ext 6850fi 6851 6852 6853 CFLAGS="$xorg_testset_save_CFLAGS" 6854 6855 eval supported=\$$cacheid 6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6857printf "%s\n" "$supported" >&6; } 6858 if test "$supported" = "yes" ; then 6859 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6860 found="yes" 6861 fi 6862 fi 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878xorg_testset_save_CFLAGS="$CFLAGS" 6879 6880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6884if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6885then : 6886 printf %s "(cached) " >&6 6887else $as_nop 6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889/* end confdefs.h. */ 6890int i; 6891_ACEOF 6892if ac_fn_c_try_compile "$LINENO" 6893then : 6894 xorg_cv_cc_flag_unknown_warning_option=yes 6895else $as_nop 6896 xorg_cv_cc_flag_unknown_warning_option=no 6897fi 6898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6899fi 6900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6903 CFLAGS="$xorg_testset_save_CFLAGS" 6904fi 6905 6906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6909 fi 6910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6913if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6914then : 6915 printf %s "(cached) " >&6 6916else $as_nop 6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6918/* end confdefs.h. */ 6919int i; 6920_ACEOF 6921if ac_fn_c_try_compile "$LINENO" 6922then : 6923 xorg_cv_cc_flag_unused_command_line_argument=yes 6924else $as_nop 6925 xorg_cv_cc_flag_unused_command_line_argument=no 6926fi 6927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6928fi 6929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6932 CFLAGS="$xorg_testset_save_CFLAGS" 6933fi 6934 6935found="no" 6936 6937 if test $found = "no" ; then 6938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6940 fi 6941 6942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6944 fi 6945 6946 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6947 6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6949printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6950 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6951 if eval test \${$cacheid+y} 6952then : 6953 printf %s "(cached) " >&6 6954else $as_nop 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957int i; 6958int 6959main (void) 6960{ 6961 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966if ac_fn_c_try_link "$LINENO" 6967then : 6968 eval $cacheid=yes 6969else $as_nop 6970 eval $cacheid=no 6971fi 6972rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6973 conftest$ac_exeext conftest.$ac_ext 6974fi 6975 6976 6977 CFLAGS="$xorg_testset_save_CFLAGS" 6978 6979 eval supported=\$$cacheid 6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6981printf "%s\n" "$supported" >&6; } 6982 if test "$supported" = "yes" ; then 6983 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6984 found="yes" 6985 fi 6986 fi 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002xorg_testset_save_CFLAGS="$CFLAGS" 7003 7004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7007printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7008if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7009then : 7010 printf %s "(cached) " >&6 7011else $as_nop 7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7013/* end confdefs.h. */ 7014int i; 7015_ACEOF 7016if ac_fn_c_try_compile "$LINENO" 7017then : 7018 xorg_cv_cc_flag_unknown_warning_option=yes 7019else $as_nop 7020 xorg_cv_cc_flag_unknown_warning_option=no 7021fi 7022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7023fi 7024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7025printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7027 CFLAGS="$xorg_testset_save_CFLAGS" 7028fi 7029 7030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7033 fi 7034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7036printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7037if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7038then : 7039 printf %s "(cached) " >&6 7040else $as_nop 7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7042/* end confdefs.h. */ 7043int i; 7044_ACEOF 7045if ac_fn_c_try_compile "$LINENO" 7046then : 7047 xorg_cv_cc_flag_unused_command_line_argument=yes 7048else $as_nop 7049 xorg_cv_cc_flag_unused_command_line_argument=no 7050fi 7051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7052fi 7053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7054printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7056 CFLAGS="$xorg_testset_save_CFLAGS" 7057fi 7058 7059found="no" 7060 7061 if test $found = "no" ; then 7062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7064 fi 7065 7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7068 fi 7069 7070 CFLAGS="$CFLAGS -Wredundant-decls" 7071 7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7073printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7074 cacheid=xorg_cv_cc_flag__Wredundant_decls 7075 if eval test \${$cacheid+y} 7076then : 7077 printf %s "(cached) " >&6 7078else $as_nop 7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7080/* end confdefs.h. */ 7081int i; 7082int 7083main (void) 7084{ 7085 7086 ; 7087 return 0; 7088} 7089_ACEOF 7090if ac_fn_c_try_link "$LINENO" 7091then : 7092 eval $cacheid=yes 7093else $as_nop 7094 eval $cacheid=no 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7097 conftest$ac_exeext conftest.$ac_ext 7098fi 7099 7100 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102 7103 eval supported=\$$cacheid 7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7105printf "%s\n" "$supported" >&6; } 7106 if test "$supported" = "yes" ; then 7107 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7108 found="yes" 7109 fi 7110 fi 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126xorg_testset_save_CFLAGS="$CFLAGS" 7127 7128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7131printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7132if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7133then : 7134 printf %s "(cached) " >&6 7135else $as_nop 7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7137/* end confdefs.h. */ 7138int i; 7139_ACEOF 7140if ac_fn_c_try_compile "$LINENO" 7141then : 7142 xorg_cv_cc_flag_unknown_warning_option=yes 7143else $as_nop 7144 xorg_cv_cc_flag_unknown_warning_option=no 7145fi 7146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7147fi 7148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7149printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7151 CFLAGS="$xorg_testset_save_CFLAGS" 7152fi 7153 7154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7157 fi 7158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7160printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7161if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7162then : 7163 printf %s "(cached) " >&6 7164else $as_nop 7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166/* end confdefs.h. */ 7167int i; 7168_ACEOF 7169if ac_fn_c_try_compile "$LINENO" 7170then : 7171 xorg_cv_cc_flag_unused_command_line_argument=yes 7172else $as_nop 7173 xorg_cv_cc_flag_unused_command_line_argument=no 7174fi 7175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7176fi 7177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7178printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7180 CFLAGS="$xorg_testset_save_CFLAGS" 7181fi 7182 7183found="no" 7184 7185 if test $found = "no" ; then 7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7188 fi 7189 7190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7192 fi 7193 7194 CFLAGS="$CFLAGS -Wlogical-op" 7195 7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7197printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7198 cacheid=xorg_cv_cc_flag__Wlogical_op 7199 if eval test \${$cacheid+y} 7200then : 7201 printf %s "(cached) " >&6 7202else $as_nop 7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7204/* end confdefs.h. */ 7205int i; 7206int 7207main (void) 7208{ 7209 7210 ; 7211 return 0; 7212} 7213_ACEOF 7214if ac_fn_c_try_link "$LINENO" 7215then : 7216 eval $cacheid=yes 7217else $as_nop 7218 eval $cacheid=no 7219fi 7220rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7221 conftest$ac_exeext conftest.$ac_ext 7222fi 7223 7224 7225 CFLAGS="$xorg_testset_save_CFLAGS" 7226 7227 eval supported=\$$cacheid 7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7229printf "%s\n" "$supported" >&6; } 7230 if test "$supported" = "yes" ; then 7231 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7232 found="yes" 7233 fi 7234 fi 7235 7236 7237 7238# These are currently disabled because they are noisy. They will be enabled 7239# in the future once the codebase is sufficiently modernized to silence 7240# them. For now, I don't want them to drown out the other warnings. 7241# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7242# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7243# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7244 7245# Turn some warnings into errors, so we don't accidentally get successful builds 7246# when there are problems that should be fixed. 7247 7248if test "x$SELECTIVE_WERROR" = "xyes" ; then 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262xorg_testset_save_CFLAGS="$CFLAGS" 7263 7264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7268if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7269then : 7270 printf %s "(cached) " >&6 7271else $as_nop 7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273/* end confdefs.h. */ 7274int i; 7275_ACEOF 7276if ac_fn_c_try_compile "$LINENO" 7277then : 7278 xorg_cv_cc_flag_unknown_warning_option=yes 7279else $as_nop 7280 xorg_cv_cc_flag_unknown_warning_option=no 7281fi 7282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7283fi 7284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7285printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7287 CFLAGS="$xorg_testset_save_CFLAGS" 7288fi 7289 7290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7293 fi 7294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7296printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7297if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7298then : 7299 printf %s "(cached) " >&6 7300else $as_nop 7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7302/* end confdefs.h. */ 7303int i; 7304_ACEOF 7305if ac_fn_c_try_compile "$LINENO" 7306then : 7307 xorg_cv_cc_flag_unused_command_line_argument=yes 7308else $as_nop 7309 xorg_cv_cc_flag_unused_command_line_argument=no 7310fi 7311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7312fi 7313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7314printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7316 CFLAGS="$xorg_testset_save_CFLAGS" 7317fi 7318 7319found="no" 7320 7321 if test $found = "no" ; then 7322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7324 fi 7325 7326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7328 fi 7329 7330 CFLAGS="$CFLAGS -Werror=implicit" 7331 7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7333printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7334 cacheid=xorg_cv_cc_flag__Werror_implicit 7335 if eval test \${$cacheid+y} 7336then : 7337 printf %s "(cached) " >&6 7338else $as_nop 7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7340/* end confdefs.h. */ 7341int i; 7342int 7343main (void) 7344{ 7345 7346 ; 7347 return 0; 7348} 7349_ACEOF 7350if ac_fn_c_try_link "$LINENO" 7351then : 7352 eval $cacheid=yes 7353else $as_nop 7354 eval $cacheid=no 7355fi 7356rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7357 conftest$ac_exeext conftest.$ac_ext 7358fi 7359 7360 7361 CFLAGS="$xorg_testset_save_CFLAGS" 7362 7363 eval supported=\$$cacheid 7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7365printf "%s\n" "$supported" >&6; } 7366 if test "$supported" = "yes" ; then 7367 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7368 found="yes" 7369 fi 7370 fi 7371 7372 if test $found = "no" ; then 7373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7375 fi 7376 7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7379 fi 7380 7381 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7382 7383 { 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 7384printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7385 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7386 if eval test \${$cacheid+y} 7387then : 7388 printf %s "(cached) " >&6 7389else $as_nop 7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7391/* end confdefs.h. */ 7392int i; 7393int 7394main (void) 7395{ 7396 7397 ; 7398 return 0; 7399} 7400_ACEOF 7401if ac_fn_c_try_link "$LINENO" 7402then : 7403 eval $cacheid=yes 7404else $as_nop 7405 eval $cacheid=no 7406fi 7407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7408 conftest$ac_exeext conftest.$ac_ext 7409fi 7410 7411 7412 CFLAGS="$xorg_testset_save_CFLAGS" 7413 7414 eval supported=\$$cacheid 7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7416printf "%s\n" "$supported" >&6; } 7417 if test "$supported" = "yes" ; then 7418 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7419 found="yes" 7420 fi 7421 fi 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437xorg_testset_save_CFLAGS="$CFLAGS" 7438 7439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7443if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7444then : 7445 printf %s "(cached) " >&6 7446else $as_nop 7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449int i; 7450_ACEOF 7451if ac_fn_c_try_compile "$LINENO" 7452then : 7453 xorg_cv_cc_flag_unknown_warning_option=yes 7454else $as_nop 7455 xorg_cv_cc_flag_unknown_warning_option=no 7456fi 7457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7458fi 7459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7462 CFLAGS="$xorg_testset_save_CFLAGS" 7463fi 7464 7465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7468 fi 7469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7472if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7473then : 7474 printf %s "(cached) " >&6 7475else $as_nop 7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477/* end confdefs.h. */ 7478int i; 7479_ACEOF 7480if ac_fn_c_try_compile "$LINENO" 7481then : 7482 xorg_cv_cc_flag_unused_command_line_argument=yes 7483else $as_nop 7484 xorg_cv_cc_flag_unused_command_line_argument=no 7485fi 7486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7487fi 7488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7491 CFLAGS="$xorg_testset_save_CFLAGS" 7492fi 7493 7494found="no" 7495 7496 if test $found = "no" ; then 7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7499 fi 7500 7501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7503 fi 7504 7505 CFLAGS="$CFLAGS -Werror=nonnull" 7506 7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7508printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7509 cacheid=xorg_cv_cc_flag__Werror_nonnull 7510 if eval test \${$cacheid+y} 7511then : 7512 printf %s "(cached) " >&6 7513else $as_nop 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516int i; 7517int 7518main (void) 7519{ 7520 7521 ; 7522 return 0; 7523} 7524_ACEOF 7525if ac_fn_c_try_link "$LINENO" 7526then : 7527 eval $cacheid=yes 7528else $as_nop 7529 eval $cacheid=no 7530fi 7531rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7532 conftest$ac_exeext conftest.$ac_ext 7533fi 7534 7535 7536 CFLAGS="$xorg_testset_save_CFLAGS" 7537 7538 eval supported=\$$cacheid 7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7540printf "%s\n" "$supported" >&6; } 7541 if test "$supported" = "yes" ; then 7542 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7543 found="yes" 7544 fi 7545 fi 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561xorg_testset_save_CFLAGS="$CFLAGS" 7562 7563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7567if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7568then : 7569 printf %s "(cached) " >&6 7570else $as_nop 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573int i; 7574_ACEOF 7575if ac_fn_c_try_compile "$LINENO" 7576then : 7577 xorg_cv_cc_flag_unknown_warning_option=yes 7578else $as_nop 7579 xorg_cv_cc_flag_unknown_warning_option=no 7580fi 7581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7582fi 7583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7584printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7586 CFLAGS="$xorg_testset_save_CFLAGS" 7587fi 7588 7589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 fi 7593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7595printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7596if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7597then : 7598 printf %s "(cached) " >&6 7599else $as_nop 7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7601/* end confdefs.h. */ 7602int i; 7603_ACEOF 7604if ac_fn_c_try_compile "$LINENO" 7605then : 7606 xorg_cv_cc_flag_unused_command_line_argument=yes 7607else $as_nop 7608 xorg_cv_cc_flag_unused_command_line_argument=no 7609fi 7610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7611fi 7612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7613printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7615 CFLAGS="$xorg_testset_save_CFLAGS" 7616fi 7617 7618found="no" 7619 7620 if test $found = "no" ; then 7621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7623 fi 7624 7625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7627 fi 7628 7629 CFLAGS="$CFLAGS -Werror=init-self" 7630 7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7632printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7633 cacheid=xorg_cv_cc_flag__Werror_init_self 7634 if eval test \${$cacheid+y} 7635then : 7636 printf %s "(cached) " >&6 7637else $as_nop 7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7639/* end confdefs.h. */ 7640int i; 7641int 7642main (void) 7643{ 7644 7645 ; 7646 return 0; 7647} 7648_ACEOF 7649if ac_fn_c_try_link "$LINENO" 7650then : 7651 eval $cacheid=yes 7652else $as_nop 7653 eval $cacheid=no 7654fi 7655rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7656 conftest$ac_exeext conftest.$ac_ext 7657fi 7658 7659 7660 CFLAGS="$xorg_testset_save_CFLAGS" 7661 7662 eval supported=\$$cacheid 7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7664printf "%s\n" "$supported" >&6; } 7665 if test "$supported" = "yes" ; then 7666 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7667 found="yes" 7668 fi 7669 fi 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685xorg_testset_save_CFLAGS="$CFLAGS" 7686 7687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7690printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7691if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7692then : 7693 printf %s "(cached) " >&6 7694else $as_nop 7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697int i; 7698_ACEOF 7699if ac_fn_c_try_compile "$LINENO" 7700then : 7701 xorg_cv_cc_flag_unknown_warning_option=yes 7702else $as_nop 7703 xorg_cv_cc_flag_unknown_warning_option=no 7704fi 7705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7706fi 7707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7708printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7710 CFLAGS="$xorg_testset_save_CFLAGS" 7711fi 7712 7713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7716 fi 7717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7719printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7720if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7721then : 7722 printf %s "(cached) " >&6 7723else $as_nop 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726int i; 7727_ACEOF 7728if ac_fn_c_try_compile "$LINENO" 7729then : 7730 xorg_cv_cc_flag_unused_command_line_argument=yes 7731else $as_nop 7732 xorg_cv_cc_flag_unused_command_line_argument=no 7733fi 7734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7735fi 7736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7737printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7739 CFLAGS="$xorg_testset_save_CFLAGS" 7740fi 7741 7742found="no" 7743 7744 if test $found = "no" ; then 7745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7747 fi 7748 7749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7751 fi 7752 7753 CFLAGS="$CFLAGS -Werror=main" 7754 7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7756printf %s "checking if $CC supports -Werror=main... " >&6; } 7757 cacheid=xorg_cv_cc_flag__Werror_main 7758 if eval test \${$cacheid+y} 7759then : 7760 printf %s "(cached) " >&6 7761else $as_nop 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764int i; 7765int 7766main (void) 7767{ 7768 7769 ; 7770 return 0; 7771} 7772_ACEOF 7773if ac_fn_c_try_link "$LINENO" 7774then : 7775 eval $cacheid=yes 7776else $as_nop 7777 eval $cacheid=no 7778fi 7779rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7780 conftest$ac_exeext conftest.$ac_ext 7781fi 7782 7783 7784 CFLAGS="$xorg_testset_save_CFLAGS" 7785 7786 eval supported=\$$cacheid 7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7788printf "%s\n" "$supported" >&6; } 7789 if test "$supported" = "yes" ; then 7790 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7791 found="yes" 7792 fi 7793 fi 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809xorg_testset_save_CFLAGS="$CFLAGS" 7810 7811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7815if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7816then : 7817 printf %s "(cached) " >&6 7818else $as_nop 7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7820/* end confdefs.h. */ 7821int i; 7822_ACEOF 7823if ac_fn_c_try_compile "$LINENO" 7824then : 7825 xorg_cv_cc_flag_unknown_warning_option=yes 7826else $as_nop 7827 xorg_cv_cc_flag_unknown_warning_option=no 7828fi 7829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7830fi 7831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7832printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7834 CFLAGS="$xorg_testset_save_CFLAGS" 7835fi 7836 7837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7840 fi 7841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7843printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7844if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7845then : 7846 printf %s "(cached) " >&6 7847else $as_nop 7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850int i; 7851_ACEOF 7852if ac_fn_c_try_compile "$LINENO" 7853then : 7854 xorg_cv_cc_flag_unused_command_line_argument=yes 7855else $as_nop 7856 xorg_cv_cc_flag_unused_command_line_argument=no 7857fi 7858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7859fi 7860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7863 CFLAGS="$xorg_testset_save_CFLAGS" 7864fi 7865 7866found="no" 7867 7868 if test $found = "no" ; then 7869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7871 fi 7872 7873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7875 fi 7876 7877 CFLAGS="$CFLAGS -Werror=missing-braces" 7878 7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7880printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7881 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7882 if eval test \${$cacheid+y} 7883then : 7884 printf %s "(cached) " >&6 7885else $as_nop 7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7887/* end confdefs.h. */ 7888int i; 7889int 7890main (void) 7891{ 7892 7893 ; 7894 return 0; 7895} 7896_ACEOF 7897if ac_fn_c_try_link "$LINENO" 7898then : 7899 eval $cacheid=yes 7900else $as_nop 7901 eval $cacheid=no 7902fi 7903rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7904 conftest$ac_exeext conftest.$ac_ext 7905fi 7906 7907 7908 CFLAGS="$xorg_testset_save_CFLAGS" 7909 7910 eval supported=\$$cacheid 7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7912printf "%s\n" "$supported" >&6; } 7913 if test "$supported" = "yes" ; then 7914 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7915 found="yes" 7916 fi 7917 fi 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933xorg_testset_save_CFLAGS="$CFLAGS" 7934 7935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7939if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7940then : 7941 printf %s "(cached) " >&6 7942else $as_nop 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946_ACEOF 7947if ac_fn_c_try_compile "$LINENO" 7948then : 7949 xorg_cv_cc_flag_unknown_warning_option=yes 7950else $as_nop 7951 xorg_cv_cc_flag_unknown_warning_option=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7954fi 7955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959fi 7960 7961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7968if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7969then : 7970 printf %s "(cached) " >&6 7971else $as_nop 7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7973/* end confdefs.h. */ 7974int i; 7975_ACEOF 7976if ac_fn_c_try_compile "$LINENO" 7977then : 7978 xorg_cv_cc_flag_unused_command_line_argument=yes 7979else $as_nop 7980 xorg_cv_cc_flag_unused_command_line_argument=no 7981fi 7982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7983fi 7984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988fi 7989 7990found="no" 7991 7992 if test $found = "no" ; then 7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7995 fi 7996 7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7999 fi 8000 8001 CFLAGS="$CFLAGS -Werror=sequence-point" 8002 8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8004printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8005 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8006 if eval test \${$cacheid+y} 8007then : 8008 printf %s "(cached) " >&6 8009else $as_nop 8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012int i; 8013int 8014main (void) 8015{ 8016 8017 ; 8018 return 0; 8019} 8020_ACEOF 8021if ac_fn_c_try_link "$LINENO" 8022then : 8023 eval $cacheid=yes 8024else $as_nop 8025 eval $cacheid=no 8026fi 8027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8028 conftest$ac_exeext conftest.$ac_ext 8029fi 8030 8031 8032 CFLAGS="$xorg_testset_save_CFLAGS" 8033 8034 eval supported=\$$cacheid 8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8036printf "%s\n" "$supported" >&6; } 8037 if test "$supported" = "yes" ; then 8038 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8039 found="yes" 8040 fi 8041 fi 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057xorg_testset_save_CFLAGS="$CFLAGS" 8058 8059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8062printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8063if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8064then : 8065 printf %s "(cached) " >&6 8066else $as_nop 8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8068/* end confdefs.h. */ 8069int i; 8070_ACEOF 8071if ac_fn_c_try_compile "$LINENO" 8072then : 8073 xorg_cv_cc_flag_unknown_warning_option=yes 8074else $as_nop 8075 xorg_cv_cc_flag_unknown_warning_option=no 8076fi 8077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8078fi 8079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8080printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8082 CFLAGS="$xorg_testset_save_CFLAGS" 8083fi 8084 8085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8088 fi 8089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8091printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8092if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8093then : 8094 printf %s "(cached) " >&6 8095else $as_nop 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097/* end confdefs.h. */ 8098int i; 8099_ACEOF 8100if ac_fn_c_try_compile "$LINENO" 8101then : 8102 xorg_cv_cc_flag_unused_command_line_argument=yes 8103else $as_nop 8104 xorg_cv_cc_flag_unused_command_line_argument=no 8105fi 8106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8107fi 8108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8109printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8111 CFLAGS="$xorg_testset_save_CFLAGS" 8112fi 8113 8114found="no" 8115 8116 if test $found = "no" ; then 8117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8119 fi 8120 8121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8123 fi 8124 8125 CFLAGS="$CFLAGS -Werror=return-type" 8126 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8128printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8129 cacheid=xorg_cv_cc_flag__Werror_return_type 8130 if eval test \${$cacheid+y} 8131then : 8132 printf %s "(cached) " >&6 8133else $as_nop 8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8135/* end confdefs.h. */ 8136int i; 8137int 8138main (void) 8139{ 8140 8141 ; 8142 return 0; 8143} 8144_ACEOF 8145if ac_fn_c_try_link "$LINENO" 8146then : 8147 eval $cacheid=yes 8148else $as_nop 8149 eval $cacheid=no 8150fi 8151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8152 conftest$ac_exeext conftest.$ac_ext 8153fi 8154 8155 8156 CFLAGS="$xorg_testset_save_CFLAGS" 8157 8158 eval supported=\$$cacheid 8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8160printf "%s\n" "$supported" >&6; } 8161 if test "$supported" = "yes" ; then 8162 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8163 found="yes" 8164 fi 8165 fi 8166 8167 if test $found = "no" ; then 8168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8170 fi 8171 8172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8174 fi 8175 8176 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8177 8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8179printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8180 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8181 if eval test \${$cacheid+y} 8182then : 8183 printf %s "(cached) " >&6 8184else $as_nop 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187int i; 8188int 8189main (void) 8190{ 8191 8192 ; 8193 return 0; 8194} 8195_ACEOF 8196if ac_fn_c_try_link "$LINENO" 8197then : 8198 eval $cacheid=yes 8199else $as_nop 8200 eval $cacheid=no 8201fi 8202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8203 conftest$ac_exeext conftest.$ac_ext 8204fi 8205 8206 8207 CFLAGS="$xorg_testset_save_CFLAGS" 8208 8209 eval supported=\$$cacheid 8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8211printf "%s\n" "$supported" >&6; } 8212 if test "$supported" = "yes" ; then 8213 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8214 found="yes" 8215 fi 8216 fi 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232xorg_testset_save_CFLAGS="$CFLAGS" 8233 8234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8238if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8239then : 8240 printf %s "(cached) " >&6 8241else $as_nop 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244int i; 8245_ACEOF 8246if ac_fn_c_try_compile "$LINENO" 8247then : 8248 xorg_cv_cc_flag_unknown_warning_option=yes 8249else $as_nop 8250 xorg_cv_cc_flag_unknown_warning_option=no 8251fi 8252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8253fi 8254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8257 CFLAGS="$xorg_testset_save_CFLAGS" 8258fi 8259 8260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8263 fi 8264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8267if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8268then : 8269 printf %s "(cached) " >&6 8270else $as_nop 8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8272/* end confdefs.h. */ 8273int i; 8274_ACEOF 8275if ac_fn_c_try_compile "$LINENO" 8276then : 8277 xorg_cv_cc_flag_unused_command_line_argument=yes 8278else $as_nop 8279 xorg_cv_cc_flag_unused_command_line_argument=no 8280fi 8281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8282fi 8283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8286 CFLAGS="$xorg_testset_save_CFLAGS" 8287fi 8288 8289found="no" 8290 8291 if test $found = "no" ; then 8292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8294 fi 8295 8296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8298 fi 8299 8300 CFLAGS="$CFLAGS -Werror=trigraphs" 8301 8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8303printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8304 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8305 if eval test \${$cacheid+y} 8306then : 8307 printf %s "(cached) " >&6 8308else $as_nop 8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8310/* end confdefs.h. */ 8311int i; 8312int 8313main (void) 8314{ 8315 8316 ; 8317 return 0; 8318} 8319_ACEOF 8320if ac_fn_c_try_link "$LINENO" 8321then : 8322 eval $cacheid=yes 8323else $as_nop 8324 eval $cacheid=no 8325fi 8326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8327 conftest$ac_exeext conftest.$ac_ext 8328fi 8329 8330 8331 CFLAGS="$xorg_testset_save_CFLAGS" 8332 8333 eval supported=\$$cacheid 8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8335printf "%s\n" "$supported" >&6; } 8336 if test "$supported" = "yes" ; then 8337 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8338 found="yes" 8339 fi 8340 fi 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356xorg_testset_save_CFLAGS="$CFLAGS" 8357 8358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8362if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8363then : 8364 printf %s "(cached) " >&6 8365else $as_nop 8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8367/* end confdefs.h. */ 8368int i; 8369_ACEOF 8370if ac_fn_c_try_compile "$LINENO" 8371then : 8372 xorg_cv_cc_flag_unknown_warning_option=yes 8373else $as_nop 8374 xorg_cv_cc_flag_unknown_warning_option=no 8375fi 8376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8377fi 8378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8381 CFLAGS="$xorg_testset_save_CFLAGS" 8382fi 8383 8384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 fi 8388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8391if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8392then : 8393 printf %s "(cached) " >&6 8394else $as_nop 8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397int i; 8398_ACEOF 8399if ac_fn_c_try_compile "$LINENO" 8400then : 8401 xorg_cv_cc_flag_unused_command_line_argument=yes 8402else $as_nop 8403 xorg_cv_cc_flag_unused_command_line_argument=no 8404fi 8405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8406fi 8407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8410 CFLAGS="$xorg_testset_save_CFLAGS" 8411fi 8412 8413found="no" 8414 8415 if test $found = "no" ; then 8416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8418 fi 8419 8420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8422 fi 8423 8424 CFLAGS="$CFLAGS -Werror=array-bounds" 8425 8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8427printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8428 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8429 if eval test \${$cacheid+y} 8430then : 8431 printf %s "(cached) " >&6 8432else $as_nop 8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434/* end confdefs.h. */ 8435int i; 8436int 8437main (void) 8438{ 8439 8440 ; 8441 return 0; 8442} 8443_ACEOF 8444if ac_fn_c_try_link "$LINENO" 8445then : 8446 eval $cacheid=yes 8447else $as_nop 8448 eval $cacheid=no 8449fi 8450rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8451 conftest$ac_exeext conftest.$ac_ext 8452fi 8453 8454 8455 CFLAGS="$xorg_testset_save_CFLAGS" 8456 8457 eval supported=\$$cacheid 8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8459printf "%s\n" "$supported" >&6; } 8460 if test "$supported" = "yes" ; then 8461 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8462 found="yes" 8463 fi 8464 fi 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480xorg_testset_save_CFLAGS="$CFLAGS" 8481 8482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8485printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8486if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8487then : 8488 printf %s "(cached) " >&6 8489else $as_nop 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491/* end confdefs.h. */ 8492int i; 8493_ACEOF 8494if ac_fn_c_try_compile "$LINENO" 8495then : 8496 xorg_cv_cc_flag_unknown_warning_option=yes 8497else $as_nop 8498 xorg_cv_cc_flag_unknown_warning_option=no 8499fi 8500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8501fi 8502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8505 CFLAGS="$xorg_testset_save_CFLAGS" 8506fi 8507 8508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8511 fi 8512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8515if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8516then : 8517 printf %s "(cached) " >&6 8518else $as_nop 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521int i; 8522_ACEOF 8523if ac_fn_c_try_compile "$LINENO" 8524then : 8525 xorg_cv_cc_flag_unused_command_line_argument=yes 8526else $as_nop 8527 xorg_cv_cc_flag_unused_command_line_argument=no 8528fi 8529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8530fi 8531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8534 CFLAGS="$xorg_testset_save_CFLAGS" 8535fi 8536 8537found="no" 8538 8539 if test $found = "no" ; then 8540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8542 fi 8543 8544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8546 fi 8547 8548 CFLAGS="$CFLAGS -Werror=write-strings" 8549 8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8551printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8552 cacheid=xorg_cv_cc_flag__Werror_write_strings 8553 if eval test \${$cacheid+y} 8554then : 8555 printf %s "(cached) " >&6 8556else $as_nop 8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8558/* end confdefs.h. */ 8559int i; 8560int 8561main (void) 8562{ 8563 8564 ; 8565 return 0; 8566} 8567_ACEOF 8568if ac_fn_c_try_link "$LINENO" 8569then : 8570 eval $cacheid=yes 8571else $as_nop 8572 eval $cacheid=no 8573fi 8574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8575 conftest$ac_exeext conftest.$ac_ext 8576fi 8577 8578 8579 CFLAGS="$xorg_testset_save_CFLAGS" 8580 8581 eval supported=\$$cacheid 8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8583printf "%s\n" "$supported" >&6; } 8584 if test "$supported" = "yes" ; then 8585 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8586 found="yes" 8587 fi 8588 fi 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604xorg_testset_save_CFLAGS="$CFLAGS" 8605 8606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8609printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8610if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8611then : 8612 printf %s "(cached) " >&6 8613else $as_nop 8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8615/* end confdefs.h. */ 8616int i; 8617_ACEOF 8618if ac_fn_c_try_compile "$LINENO" 8619then : 8620 xorg_cv_cc_flag_unknown_warning_option=yes 8621else $as_nop 8622 xorg_cv_cc_flag_unknown_warning_option=no 8623fi 8624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8625fi 8626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8627printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8629 CFLAGS="$xorg_testset_save_CFLAGS" 8630fi 8631 8632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8635 fi 8636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8638printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8639if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8640then : 8641 printf %s "(cached) " >&6 8642else $as_nop 8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644/* end confdefs.h. */ 8645int i; 8646_ACEOF 8647if ac_fn_c_try_compile "$LINENO" 8648then : 8649 xorg_cv_cc_flag_unused_command_line_argument=yes 8650else $as_nop 8651 xorg_cv_cc_flag_unused_command_line_argument=no 8652fi 8653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8654fi 8655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8658 CFLAGS="$xorg_testset_save_CFLAGS" 8659fi 8660 8661found="no" 8662 8663 if test $found = "no" ; then 8664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666 fi 8667 8668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8670 fi 8671 8672 CFLAGS="$CFLAGS -Werror=address" 8673 8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8675printf %s "checking if $CC supports -Werror=address... " >&6; } 8676 cacheid=xorg_cv_cc_flag__Werror_address 8677 if eval test \${$cacheid+y} 8678then : 8679 printf %s "(cached) " >&6 8680else $as_nop 8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8682/* end confdefs.h. */ 8683int i; 8684int 8685main (void) 8686{ 8687 8688 ; 8689 return 0; 8690} 8691_ACEOF 8692if ac_fn_c_try_link "$LINENO" 8693then : 8694 eval $cacheid=yes 8695else $as_nop 8696 eval $cacheid=no 8697fi 8698rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8699 conftest$ac_exeext conftest.$ac_ext 8700fi 8701 8702 8703 CFLAGS="$xorg_testset_save_CFLAGS" 8704 8705 eval supported=\$$cacheid 8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8707printf "%s\n" "$supported" >&6; } 8708 if test "$supported" = "yes" ; then 8709 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8710 found="yes" 8711 fi 8712 fi 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728xorg_testset_save_CFLAGS="$CFLAGS" 8729 8730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8733printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8734if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8735then : 8736 printf %s "(cached) " >&6 8737else $as_nop 8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739/* end confdefs.h. */ 8740int i; 8741_ACEOF 8742if ac_fn_c_try_compile "$LINENO" 8743then : 8744 xorg_cv_cc_flag_unknown_warning_option=yes 8745else $as_nop 8746 xorg_cv_cc_flag_unknown_warning_option=no 8747fi 8748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8749fi 8750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8751printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8753 CFLAGS="$xorg_testset_save_CFLAGS" 8754fi 8755 8756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8759 fi 8760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8762printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8763if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8764then : 8765 printf %s "(cached) " >&6 8766else $as_nop 8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8768/* end confdefs.h. */ 8769int i; 8770_ACEOF 8771if ac_fn_c_try_compile "$LINENO" 8772then : 8773 xorg_cv_cc_flag_unused_command_line_argument=yes 8774else $as_nop 8775 xorg_cv_cc_flag_unused_command_line_argument=no 8776fi 8777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8778fi 8779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8780printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8782 CFLAGS="$xorg_testset_save_CFLAGS" 8783fi 8784 8785found="no" 8786 8787 if test $found = "no" ; then 8788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8790 fi 8791 8792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8794 fi 8795 8796 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8797 8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8799printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8800 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8801 if eval test \${$cacheid+y} 8802then : 8803 printf %s "(cached) " >&6 8804else $as_nop 8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8806/* end confdefs.h. */ 8807int i; 8808int 8809main (void) 8810{ 8811 8812 ; 8813 return 0; 8814} 8815_ACEOF 8816if ac_fn_c_try_link "$LINENO" 8817then : 8818 eval $cacheid=yes 8819else $as_nop 8820 eval $cacheid=no 8821fi 8822rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8823 conftest$ac_exeext conftest.$ac_ext 8824fi 8825 8826 8827 CFLAGS="$xorg_testset_save_CFLAGS" 8828 8829 eval supported=\$$cacheid 8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8831printf "%s\n" "$supported" >&6; } 8832 if test "$supported" = "yes" ; then 8833 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8834 found="yes" 8835 fi 8836 fi 8837 8838 if test $found = "no" ; then 8839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8841 fi 8842 8843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8845 fi 8846 8847 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8848 8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8850printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8851 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8852 if eval test \${$cacheid+y} 8853then : 8854 printf %s "(cached) " >&6 8855else $as_nop 8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8857/* end confdefs.h. */ 8858int i; 8859int 8860main (void) 8861{ 8862 8863 ; 8864 return 0; 8865} 8866_ACEOF 8867if ac_fn_c_try_link "$LINENO" 8868then : 8869 eval $cacheid=yes 8870else $as_nop 8871 eval $cacheid=no 8872fi 8873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8874 conftest$ac_exeext conftest.$ac_ext 8875fi 8876 8877 8878 CFLAGS="$xorg_testset_save_CFLAGS" 8879 8880 eval supported=\$$cacheid 8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8882printf "%s\n" "$supported" >&6; } 8883 if test "$supported" = "yes" ; then 8884 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8885 found="yes" 8886 fi 8887 fi 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903xorg_testset_save_CFLAGS="$CFLAGS" 8904 8905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8909if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8910then : 8911 printf %s "(cached) " >&6 8912else $as_nop 8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8914/* end confdefs.h. */ 8915int i; 8916_ACEOF 8917if ac_fn_c_try_compile "$LINENO" 8918then : 8919 xorg_cv_cc_flag_unknown_warning_option=yes 8920else $as_nop 8921 xorg_cv_cc_flag_unknown_warning_option=no 8922fi 8923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8924fi 8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8928 CFLAGS="$xorg_testset_save_CFLAGS" 8929fi 8930 8931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8934 fi 8935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8938if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8939then : 8940 printf %s "(cached) " >&6 8941else $as_nop 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943/* end confdefs.h. */ 8944int i; 8945_ACEOF 8946if ac_fn_c_try_compile "$LINENO" 8947then : 8948 xorg_cv_cc_flag_unused_command_line_argument=yes 8949else $as_nop 8950 xorg_cv_cc_flag_unused_command_line_argument=no 8951fi 8952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8953fi 8954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8955printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8957 CFLAGS="$xorg_testset_save_CFLAGS" 8958fi 8959 8960found="no" 8961 8962 if test $found = "no" ; then 8963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8965 fi 8966 8967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8969 fi 8970 8971 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8972 8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8974printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8975 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8976 if eval test \${$cacheid+y} 8977then : 8978 printf %s "(cached) " >&6 8979else $as_nop 8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8981/* end confdefs.h. */ 8982int i; 8983int 8984main (void) 8985{ 8986 8987 ; 8988 return 0; 8989} 8990_ACEOF 8991if ac_fn_c_try_link "$LINENO" 8992then : 8993 eval $cacheid=yes 8994else $as_nop 8995 eval $cacheid=no 8996fi 8997rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8998 conftest$ac_exeext conftest.$ac_ext 8999fi 9000 9001 9002 CFLAGS="$xorg_testset_save_CFLAGS" 9003 9004 eval supported=\$$cacheid 9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9006printf "%s\n" "$supported" >&6; } 9007 if test "$supported" = "yes" ; then 9008 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9009 found="yes" 9010 fi 9011 fi 9012 9013 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9014else 9015{ 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 9016printf "%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;} 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030xorg_testset_save_CFLAGS="$CFLAGS" 9031 9032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9036if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9037then : 9038 printf %s "(cached) " >&6 9039else $as_nop 9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9041/* end confdefs.h. */ 9042int i; 9043_ACEOF 9044if ac_fn_c_try_compile "$LINENO" 9045then : 9046 xorg_cv_cc_flag_unknown_warning_option=yes 9047else $as_nop 9048 xorg_cv_cc_flag_unknown_warning_option=no 9049fi 9050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9051fi 9052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9055 CFLAGS="$xorg_testset_save_CFLAGS" 9056fi 9057 9058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9061 fi 9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9065if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9066then : 9067 printf %s "(cached) " >&6 9068else $as_nop 9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9070/* end confdefs.h. */ 9071int i; 9072_ACEOF 9073if ac_fn_c_try_compile "$LINENO" 9074then : 9075 xorg_cv_cc_flag_unused_command_line_argument=yes 9076else $as_nop 9077 xorg_cv_cc_flag_unused_command_line_argument=no 9078fi 9079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9080fi 9081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9084 CFLAGS="$xorg_testset_save_CFLAGS" 9085fi 9086 9087found="no" 9088 9089 if test $found = "no" ; then 9090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9092 fi 9093 9094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9096 fi 9097 9098 CFLAGS="$CFLAGS -Wimplicit" 9099 9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9101printf %s "checking if $CC supports -Wimplicit... " >&6; } 9102 cacheid=xorg_cv_cc_flag__Wimplicit 9103 if eval test \${$cacheid+y} 9104then : 9105 printf %s "(cached) " >&6 9106else $as_nop 9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9108/* end confdefs.h. */ 9109int i; 9110int 9111main (void) 9112{ 9113 9114 ; 9115 return 0; 9116} 9117_ACEOF 9118if ac_fn_c_try_link "$LINENO" 9119then : 9120 eval $cacheid=yes 9121else $as_nop 9122 eval $cacheid=no 9123fi 9124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9125 conftest$ac_exeext conftest.$ac_ext 9126fi 9127 9128 9129 CFLAGS="$xorg_testset_save_CFLAGS" 9130 9131 eval supported=\$$cacheid 9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9133printf "%s\n" "$supported" >&6; } 9134 if test "$supported" = "yes" ; then 9135 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9136 found="yes" 9137 fi 9138 fi 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154xorg_testset_save_CFLAGS="$CFLAGS" 9155 9156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9160if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9161then : 9162 printf %s "(cached) " >&6 9163else $as_nop 9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9165/* end confdefs.h. */ 9166int i; 9167_ACEOF 9168if ac_fn_c_try_compile "$LINENO" 9169then : 9170 xorg_cv_cc_flag_unknown_warning_option=yes 9171else $as_nop 9172 xorg_cv_cc_flag_unknown_warning_option=no 9173fi 9174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9175fi 9176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9177printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9179 CFLAGS="$xorg_testset_save_CFLAGS" 9180fi 9181 9182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9185 fi 9186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9188printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9189if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9190then : 9191 printf %s "(cached) " >&6 9192else $as_nop 9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194/* end confdefs.h. */ 9195int i; 9196_ACEOF 9197if ac_fn_c_try_compile "$LINENO" 9198then : 9199 xorg_cv_cc_flag_unused_command_line_argument=yes 9200else $as_nop 9201 xorg_cv_cc_flag_unused_command_line_argument=no 9202fi 9203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9204fi 9205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9208 CFLAGS="$xorg_testset_save_CFLAGS" 9209fi 9210 9211found="no" 9212 9213 if test $found = "no" ; then 9214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9216 fi 9217 9218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9220 fi 9221 9222 CFLAGS="$CFLAGS -Wnonnull" 9223 9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9225printf %s "checking if $CC supports -Wnonnull... " >&6; } 9226 cacheid=xorg_cv_cc_flag__Wnonnull 9227 if eval test \${$cacheid+y} 9228then : 9229 printf %s "(cached) " >&6 9230else $as_nop 9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9232/* end confdefs.h. */ 9233int i; 9234int 9235main (void) 9236{ 9237 9238 ; 9239 return 0; 9240} 9241_ACEOF 9242if ac_fn_c_try_link "$LINENO" 9243then : 9244 eval $cacheid=yes 9245else $as_nop 9246 eval $cacheid=no 9247fi 9248rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9249 conftest$ac_exeext conftest.$ac_ext 9250fi 9251 9252 9253 CFLAGS="$xorg_testset_save_CFLAGS" 9254 9255 eval supported=\$$cacheid 9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9257printf "%s\n" "$supported" >&6; } 9258 if test "$supported" = "yes" ; then 9259 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9260 found="yes" 9261 fi 9262 fi 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278xorg_testset_save_CFLAGS="$CFLAGS" 9279 9280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9283printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9284if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9285then : 9286 printf %s "(cached) " >&6 9287else $as_nop 9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9289/* end confdefs.h. */ 9290int i; 9291_ACEOF 9292if ac_fn_c_try_compile "$LINENO" 9293then : 9294 xorg_cv_cc_flag_unknown_warning_option=yes 9295else $as_nop 9296 xorg_cv_cc_flag_unknown_warning_option=no 9297fi 9298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9299fi 9300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9301printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9303 CFLAGS="$xorg_testset_save_CFLAGS" 9304fi 9305 9306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9309 fi 9310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9312printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9313if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9314then : 9315 printf %s "(cached) " >&6 9316else $as_nop 9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9318/* end confdefs.h. */ 9319int i; 9320_ACEOF 9321if ac_fn_c_try_compile "$LINENO" 9322then : 9323 xorg_cv_cc_flag_unused_command_line_argument=yes 9324else $as_nop 9325 xorg_cv_cc_flag_unused_command_line_argument=no 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9328fi 9329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9330printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333fi 9334 9335found="no" 9336 9337 if test $found = "no" ; then 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 fi 9341 9342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9344 fi 9345 9346 CFLAGS="$CFLAGS -Winit-self" 9347 9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9349printf %s "checking if $CC supports -Winit-self... " >&6; } 9350 cacheid=xorg_cv_cc_flag__Winit_self 9351 if eval test \${$cacheid+y} 9352then : 9353 printf %s "(cached) " >&6 9354else $as_nop 9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9356/* end confdefs.h. */ 9357int i; 9358int 9359main (void) 9360{ 9361 9362 ; 9363 return 0; 9364} 9365_ACEOF 9366if ac_fn_c_try_link "$LINENO" 9367then : 9368 eval $cacheid=yes 9369else $as_nop 9370 eval $cacheid=no 9371fi 9372rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9373 conftest$ac_exeext conftest.$ac_ext 9374fi 9375 9376 9377 CFLAGS="$xorg_testset_save_CFLAGS" 9378 9379 eval supported=\$$cacheid 9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9381printf "%s\n" "$supported" >&6; } 9382 if test "$supported" = "yes" ; then 9383 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9384 found="yes" 9385 fi 9386 fi 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402xorg_testset_save_CFLAGS="$CFLAGS" 9403 9404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9408if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9409then : 9410 printf %s "(cached) " >&6 9411else $as_nop 9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9413/* end confdefs.h. */ 9414int i; 9415_ACEOF 9416if ac_fn_c_try_compile "$LINENO" 9417then : 9418 xorg_cv_cc_flag_unknown_warning_option=yes 9419else $as_nop 9420 xorg_cv_cc_flag_unknown_warning_option=no 9421fi 9422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9423fi 9424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9427 CFLAGS="$xorg_testset_save_CFLAGS" 9428fi 9429 9430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9433 fi 9434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9437if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9438then : 9439 printf %s "(cached) " >&6 9440else $as_nop 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442/* end confdefs.h. */ 9443int i; 9444_ACEOF 9445if ac_fn_c_try_compile "$LINENO" 9446then : 9447 xorg_cv_cc_flag_unused_command_line_argument=yes 9448else $as_nop 9449 xorg_cv_cc_flag_unused_command_line_argument=no 9450fi 9451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9452fi 9453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9456 CFLAGS="$xorg_testset_save_CFLAGS" 9457fi 9458 9459found="no" 9460 9461 if test $found = "no" ; then 9462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9464 fi 9465 9466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9468 fi 9469 9470 CFLAGS="$CFLAGS -Wmain" 9471 9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9473printf %s "checking if $CC supports -Wmain... " >&6; } 9474 cacheid=xorg_cv_cc_flag__Wmain 9475 if eval test \${$cacheid+y} 9476then : 9477 printf %s "(cached) " >&6 9478else $as_nop 9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480/* end confdefs.h. */ 9481int i; 9482int 9483main (void) 9484{ 9485 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490if ac_fn_c_try_link "$LINENO" 9491then : 9492 eval $cacheid=yes 9493else $as_nop 9494 eval $cacheid=no 9495fi 9496rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9497 conftest$ac_exeext conftest.$ac_ext 9498fi 9499 9500 9501 CFLAGS="$xorg_testset_save_CFLAGS" 9502 9503 eval supported=\$$cacheid 9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9505printf "%s\n" "$supported" >&6; } 9506 if test "$supported" = "yes" ; then 9507 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9508 found="yes" 9509 fi 9510 fi 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526xorg_testset_save_CFLAGS="$CFLAGS" 9527 9528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9532if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9533then : 9534 printf %s "(cached) " >&6 9535else $as_nop 9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9537/* end confdefs.h. */ 9538int i; 9539_ACEOF 9540if ac_fn_c_try_compile "$LINENO" 9541then : 9542 xorg_cv_cc_flag_unknown_warning_option=yes 9543else $as_nop 9544 xorg_cv_cc_flag_unknown_warning_option=no 9545fi 9546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9547fi 9548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9549printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9551 CFLAGS="$xorg_testset_save_CFLAGS" 9552fi 9553 9554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9557 fi 9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9560printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9561if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9562then : 9563 printf %s "(cached) " >&6 9564else $as_nop 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567int i; 9568_ACEOF 9569if ac_fn_c_try_compile "$LINENO" 9570then : 9571 xorg_cv_cc_flag_unused_command_line_argument=yes 9572else $as_nop 9573 xorg_cv_cc_flag_unused_command_line_argument=no 9574fi 9575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9576fi 9577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9580 CFLAGS="$xorg_testset_save_CFLAGS" 9581fi 9582 9583found="no" 9584 9585 if test $found = "no" ; then 9586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9588 fi 9589 9590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9592 fi 9593 9594 CFLAGS="$CFLAGS -Wmissing-braces" 9595 9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9597printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9598 cacheid=xorg_cv_cc_flag__Wmissing_braces 9599 if eval test \${$cacheid+y} 9600then : 9601 printf %s "(cached) " >&6 9602else $as_nop 9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9604/* end confdefs.h. */ 9605int i; 9606int 9607main (void) 9608{ 9609 9610 ; 9611 return 0; 9612} 9613_ACEOF 9614if ac_fn_c_try_link "$LINENO" 9615then : 9616 eval $cacheid=yes 9617else $as_nop 9618 eval $cacheid=no 9619fi 9620rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9621 conftest$ac_exeext conftest.$ac_ext 9622fi 9623 9624 9625 CFLAGS="$xorg_testset_save_CFLAGS" 9626 9627 eval supported=\$$cacheid 9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9629printf "%s\n" "$supported" >&6; } 9630 if test "$supported" = "yes" ; then 9631 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9632 found="yes" 9633 fi 9634 fi 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650xorg_testset_save_CFLAGS="$CFLAGS" 9651 9652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9656if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9657then : 9658 printf %s "(cached) " >&6 9659else $as_nop 9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9661/* end confdefs.h. */ 9662int i; 9663_ACEOF 9664if ac_fn_c_try_compile "$LINENO" 9665then : 9666 xorg_cv_cc_flag_unknown_warning_option=yes 9667else $as_nop 9668 xorg_cv_cc_flag_unknown_warning_option=no 9669fi 9670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9671fi 9672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9675 CFLAGS="$xorg_testset_save_CFLAGS" 9676fi 9677 9678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9681 fi 9682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9685if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9686then : 9687 printf %s "(cached) " >&6 9688else $as_nop 9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9690/* end confdefs.h. */ 9691int i; 9692_ACEOF 9693if ac_fn_c_try_compile "$LINENO" 9694then : 9695 xorg_cv_cc_flag_unused_command_line_argument=yes 9696else $as_nop 9697 xorg_cv_cc_flag_unused_command_line_argument=no 9698fi 9699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9700fi 9701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9704 CFLAGS="$xorg_testset_save_CFLAGS" 9705fi 9706 9707found="no" 9708 9709 if test $found = "no" ; then 9710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9712 fi 9713 9714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9716 fi 9717 9718 CFLAGS="$CFLAGS -Wsequence-point" 9719 9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9721printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9722 cacheid=xorg_cv_cc_flag__Wsequence_point 9723 if eval test \${$cacheid+y} 9724then : 9725 printf %s "(cached) " >&6 9726else $as_nop 9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9728/* end confdefs.h. */ 9729int i; 9730int 9731main (void) 9732{ 9733 9734 ; 9735 return 0; 9736} 9737_ACEOF 9738if ac_fn_c_try_link "$LINENO" 9739then : 9740 eval $cacheid=yes 9741else $as_nop 9742 eval $cacheid=no 9743fi 9744rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9745 conftest$ac_exeext conftest.$ac_ext 9746fi 9747 9748 9749 CFLAGS="$xorg_testset_save_CFLAGS" 9750 9751 eval supported=\$$cacheid 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9753printf "%s\n" "$supported" >&6; } 9754 if test "$supported" = "yes" ; then 9755 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9756 found="yes" 9757 fi 9758 fi 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774xorg_testset_save_CFLAGS="$CFLAGS" 9775 9776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9779printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9780if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9781then : 9782 printf %s "(cached) " >&6 9783else $as_nop 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785/* end confdefs.h. */ 9786int i; 9787_ACEOF 9788if ac_fn_c_try_compile "$LINENO" 9789then : 9790 xorg_cv_cc_flag_unknown_warning_option=yes 9791else $as_nop 9792 xorg_cv_cc_flag_unknown_warning_option=no 9793fi 9794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9795fi 9796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9799 CFLAGS="$xorg_testset_save_CFLAGS" 9800fi 9801 9802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9805 fi 9806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9809if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9810then : 9811 printf %s "(cached) " >&6 9812else $as_nop 9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9814/* end confdefs.h. */ 9815int i; 9816_ACEOF 9817if ac_fn_c_try_compile "$LINENO" 9818then : 9819 xorg_cv_cc_flag_unused_command_line_argument=yes 9820else $as_nop 9821 xorg_cv_cc_flag_unused_command_line_argument=no 9822fi 9823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9824fi 9825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9828 CFLAGS="$xorg_testset_save_CFLAGS" 9829fi 9830 9831found="no" 9832 9833 if test $found = "no" ; then 9834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9836 fi 9837 9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9840 fi 9841 9842 CFLAGS="$CFLAGS -Wreturn-type" 9843 9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9845printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9846 cacheid=xorg_cv_cc_flag__Wreturn_type 9847 if eval test \${$cacheid+y} 9848then : 9849 printf %s "(cached) " >&6 9850else $as_nop 9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853int i; 9854int 9855main (void) 9856{ 9857 9858 ; 9859 return 0; 9860} 9861_ACEOF 9862if ac_fn_c_try_link "$LINENO" 9863then : 9864 eval $cacheid=yes 9865else $as_nop 9866 eval $cacheid=no 9867fi 9868rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9869 conftest$ac_exeext conftest.$ac_ext 9870fi 9871 9872 9873 CFLAGS="$xorg_testset_save_CFLAGS" 9874 9875 eval supported=\$$cacheid 9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9877printf "%s\n" "$supported" >&6; } 9878 if test "$supported" = "yes" ; then 9879 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9880 found="yes" 9881 fi 9882 fi 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898xorg_testset_save_CFLAGS="$CFLAGS" 9899 9900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9904if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9905then : 9906 printf %s "(cached) " >&6 9907else $as_nop 9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909/* end confdefs.h. */ 9910int i; 9911_ACEOF 9912if ac_fn_c_try_compile "$LINENO" 9913then : 9914 xorg_cv_cc_flag_unknown_warning_option=yes 9915else $as_nop 9916 xorg_cv_cc_flag_unknown_warning_option=no 9917fi 9918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9919fi 9920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9923 CFLAGS="$xorg_testset_save_CFLAGS" 9924fi 9925 9926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9929 fi 9930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9933if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9934then : 9935 printf %s "(cached) " >&6 9936else $as_nop 9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938/* end confdefs.h. */ 9939int i; 9940_ACEOF 9941if ac_fn_c_try_compile "$LINENO" 9942then : 9943 xorg_cv_cc_flag_unused_command_line_argument=yes 9944else $as_nop 9945 xorg_cv_cc_flag_unused_command_line_argument=no 9946fi 9947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9948fi 9949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9952 CFLAGS="$xorg_testset_save_CFLAGS" 9953fi 9954 9955found="no" 9956 9957 if test $found = "no" ; then 9958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9960 fi 9961 9962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9964 fi 9965 9966 CFLAGS="$CFLAGS -Wtrigraphs" 9967 9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9969printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9970 cacheid=xorg_cv_cc_flag__Wtrigraphs 9971 if eval test \${$cacheid+y} 9972then : 9973 printf %s "(cached) " >&6 9974else $as_nop 9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976/* end confdefs.h. */ 9977int i; 9978int 9979main (void) 9980{ 9981 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986if ac_fn_c_try_link "$LINENO" 9987then : 9988 eval $cacheid=yes 9989else $as_nop 9990 eval $cacheid=no 9991fi 9992rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9993 conftest$ac_exeext conftest.$ac_ext 9994fi 9995 9996 9997 CFLAGS="$xorg_testset_save_CFLAGS" 9998 9999 eval supported=\$$cacheid 10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10001printf "%s\n" "$supported" >&6; } 10002 if test "$supported" = "yes" ; then 10003 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10004 found="yes" 10005 fi 10006 fi 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022xorg_testset_save_CFLAGS="$CFLAGS" 10023 10024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10028if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10029then : 10030 printf %s "(cached) " >&6 10031else $as_nop 10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10033/* end confdefs.h. */ 10034int i; 10035_ACEOF 10036if ac_fn_c_try_compile "$LINENO" 10037then : 10038 xorg_cv_cc_flag_unknown_warning_option=yes 10039else $as_nop 10040 xorg_cv_cc_flag_unknown_warning_option=no 10041fi 10042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10043fi 10044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10047 CFLAGS="$xorg_testset_save_CFLAGS" 10048fi 10049 10050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10053 fi 10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10057if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10058then : 10059 printf %s "(cached) " >&6 10060else $as_nop 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063int i; 10064_ACEOF 10065if ac_fn_c_try_compile "$LINENO" 10066then : 10067 xorg_cv_cc_flag_unused_command_line_argument=yes 10068else $as_nop 10069 xorg_cv_cc_flag_unused_command_line_argument=no 10070fi 10071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10072fi 10073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10076 CFLAGS="$xorg_testset_save_CFLAGS" 10077fi 10078 10079found="no" 10080 10081 if test $found = "no" ; then 10082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10084 fi 10085 10086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10088 fi 10089 10090 CFLAGS="$CFLAGS -Warray-bounds" 10091 10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10093printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10094 cacheid=xorg_cv_cc_flag__Warray_bounds 10095 if eval test \${$cacheid+y} 10096then : 10097 printf %s "(cached) " >&6 10098else $as_nop 10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10100/* end confdefs.h. */ 10101int i; 10102int 10103main (void) 10104{ 10105 10106 ; 10107 return 0; 10108} 10109_ACEOF 10110if ac_fn_c_try_link "$LINENO" 10111then : 10112 eval $cacheid=yes 10113else $as_nop 10114 eval $cacheid=no 10115fi 10116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10117 conftest$ac_exeext conftest.$ac_ext 10118fi 10119 10120 10121 CFLAGS="$xorg_testset_save_CFLAGS" 10122 10123 eval supported=\$$cacheid 10124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10125printf "%s\n" "$supported" >&6; } 10126 if test "$supported" = "yes" ; then 10127 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10128 found="yes" 10129 fi 10130 fi 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146xorg_testset_save_CFLAGS="$CFLAGS" 10147 10148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10152if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10153then : 10154 printf %s "(cached) " >&6 10155else $as_nop 10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10157/* end confdefs.h. */ 10158int i; 10159_ACEOF 10160if ac_fn_c_try_compile "$LINENO" 10161then : 10162 xorg_cv_cc_flag_unknown_warning_option=yes 10163else $as_nop 10164 xorg_cv_cc_flag_unknown_warning_option=no 10165fi 10166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10167fi 10168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10171 CFLAGS="$xorg_testset_save_CFLAGS" 10172fi 10173 10174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10177 fi 10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10181if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10182then : 10183 printf %s "(cached) " >&6 10184else $as_nop 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187int i; 10188_ACEOF 10189if ac_fn_c_try_compile "$LINENO" 10190then : 10191 xorg_cv_cc_flag_unused_command_line_argument=yes 10192else $as_nop 10193 xorg_cv_cc_flag_unused_command_line_argument=no 10194fi 10195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10196fi 10197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10200 CFLAGS="$xorg_testset_save_CFLAGS" 10201fi 10202 10203found="no" 10204 10205 if test $found = "no" ; then 10206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10208 fi 10209 10210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10212 fi 10213 10214 CFLAGS="$CFLAGS -Wwrite-strings" 10215 10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10217printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10218 cacheid=xorg_cv_cc_flag__Wwrite_strings 10219 if eval test \${$cacheid+y} 10220then : 10221 printf %s "(cached) " >&6 10222else $as_nop 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225int i; 10226int 10227main (void) 10228{ 10229 10230 ; 10231 return 0; 10232} 10233_ACEOF 10234if ac_fn_c_try_link "$LINENO" 10235then : 10236 eval $cacheid=yes 10237else $as_nop 10238 eval $cacheid=no 10239fi 10240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10241 conftest$ac_exeext conftest.$ac_ext 10242fi 10243 10244 10245 CFLAGS="$xorg_testset_save_CFLAGS" 10246 10247 eval supported=\$$cacheid 10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10249printf "%s\n" "$supported" >&6; } 10250 if test "$supported" = "yes" ; then 10251 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10252 found="yes" 10253 fi 10254 fi 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270xorg_testset_save_CFLAGS="$CFLAGS" 10271 10272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10276if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10277then : 10278 printf %s "(cached) " >&6 10279else $as_nop 10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281/* end confdefs.h. */ 10282int i; 10283_ACEOF 10284if ac_fn_c_try_compile "$LINENO" 10285then : 10286 xorg_cv_cc_flag_unknown_warning_option=yes 10287else $as_nop 10288 xorg_cv_cc_flag_unknown_warning_option=no 10289fi 10290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10291fi 10292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10295 CFLAGS="$xorg_testset_save_CFLAGS" 10296fi 10297 10298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10301 fi 10302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10305if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10306then : 10307 printf %s "(cached) " >&6 10308else $as_nop 10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311int i; 10312_ACEOF 10313if ac_fn_c_try_compile "$LINENO" 10314then : 10315 xorg_cv_cc_flag_unused_command_line_argument=yes 10316else $as_nop 10317 xorg_cv_cc_flag_unused_command_line_argument=no 10318fi 10319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10320fi 10321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10324 CFLAGS="$xorg_testset_save_CFLAGS" 10325fi 10326 10327found="no" 10328 10329 if test $found = "no" ; then 10330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10332 fi 10333 10334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10336 fi 10337 10338 CFLAGS="$CFLAGS -Waddress" 10339 10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10341printf %s "checking if $CC supports -Waddress... " >&6; } 10342 cacheid=xorg_cv_cc_flag__Waddress 10343 if eval test \${$cacheid+y} 10344then : 10345 printf %s "(cached) " >&6 10346else $as_nop 10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10348/* end confdefs.h. */ 10349int i; 10350int 10351main (void) 10352{ 10353 10354 ; 10355 return 0; 10356} 10357_ACEOF 10358if ac_fn_c_try_link "$LINENO" 10359then : 10360 eval $cacheid=yes 10361else $as_nop 10362 eval $cacheid=no 10363fi 10364rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10365 conftest$ac_exeext conftest.$ac_ext 10366fi 10367 10368 10369 CFLAGS="$xorg_testset_save_CFLAGS" 10370 10371 eval supported=\$$cacheid 10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10373printf "%s\n" "$supported" >&6; } 10374 if test "$supported" = "yes" ; then 10375 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10376 found="yes" 10377 fi 10378 fi 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394xorg_testset_save_CFLAGS="$CFLAGS" 10395 10396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10400if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10401then : 10402 printf %s "(cached) " >&6 10403else $as_nop 10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10405/* end confdefs.h. */ 10406int i; 10407_ACEOF 10408if ac_fn_c_try_compile "$LINENO" 10409then : 10410 xorg_cv_cc_flag_unknown_warning_option=yes 10411else $as_nop 10412 xorg_cv_cc_flag_unknown_warning_option=no 10413fi 10414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10415fi 10416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10419 CFLAGS="$xorg_testset_save_CFLAGS" 10420fi 10421 10422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10425 fi 10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10429if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10430then : 10431 printf %s "(cached) " >&6 10432else $as_nop 10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10434/* end confdefs.h. */ 10435int i; 10436_ACEOF 10437if ac_fn_c_try_compile "$LINENO" 10438then : 10439 xorg_cv_cc_flag_unused_command_line_argument=yes 10440else $as_nop 10441 xorg_cv_cc_flag_unused_command_line_argument=no 10442fi 10443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10444fi 10445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10448 CFLAGS="$xorg_testset_save_CFLAGS" 10449fi 10450 10451found="no" 10452 10453 if test $found = "no" ; then 10454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10456 fi 10457 10458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10460 fi 10461 10462 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10463 10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10465printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10466 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10467 if eval test \${$cacheid+y} 10468then : 10469 printf %s "(cached) " >&6 10470else $as_nop 10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10472/* end confdefs.h. */ 10473int i; 10474int 10475main (void) 10476{ 10477 10478 ; 10479 return 0; 10480} 10481_ACEOF 10482if ac_fn_c_try_link "$LINENO" 10483then : 10484 eval $cacheid=yes 10485else $as_nop 10486 eval $cacheid=no 10487fi 10488rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10489 conftest$ac_exeext conftest.$ac_ext 10490fi 10491 10492 10493 CFLAGS="$xorg_testset_save_CFLAGS" 10494 10495 eval supported=\$$cacheid 10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10497printf "%s\n" "$supported" >&6; } 10498 if test "$supported" = "yes" ; then 10499 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10500 found="yes" 10501 fi 10502 fi 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518xorg_testset_save_CFLAGS="$CFLAGS" 10519 10520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10524if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10525then : 10526 printf %s "(cached) " >&6 10527else $as_nop 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530int i; 10531_ACEOF 10532if ac_fn_c_try_compile "$LINENO" 10533then : 10534 xorg_cv_cc_flag_unknown_warning_option=yes 10535else $as_nop 10536 xorg_cv_cc_flag_unknown_warning_option=no 10537fi 10538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10539fi 10540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10543 CFLAGS="$xorg_testset_save_CFLAGS" 10544fi 10545 10546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10549 fi 10550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10553if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10554then : 10555 printf %s "(cached) " >&6 10556else $as_nop 10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10558/* end confdefs.h. */ 10559int i; 10560_ACEOF 10561if ac_fn_c_try_compile "$LINENO" 10562then : 10563 xorg_cv_cc_flag_unused_command_line_argument=yes 10564else $as_nop 10565 xorg_cv_cc_flag_unused_command_line_argument=no 10566fi 10567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10568fi 10569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10572 CFLAGS="$xorg_testset_save_CFLAGS" 10573fi 10574 10575found="no" 10576 10577 if test $found = "no" ; then 10578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10580 fi 10581 10582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10584 fi 10585 10586 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10587 10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10589printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10590 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10591 if eval test \${$cacheid+y} 10592then : 10593 printf %s "(cached) " >&6 10594else $as_nop 10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10596/* end confdefs.h. */ 10597int i; 10598int 10599main (void) 10600{ 10601 10602 ; 10603 return 0; 10604} 10605_ACEOF 10606if ac_fn_c_try_link "$LINENO" 10607then : 10608 eval $cacheid=yes 10609else $as_nop 10610 eval $cacheid=no 10611fi 10612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10613 conftest$ac_exeext conftest.$ac_ext 10614fi 10615 10616 10617 CFLAGS="$xorg_testset_save_CFLAGS" 10618 10619 eval supported=\$$cacheid 10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10621printf "%s\n" "$supported" >&6; } 10622 if test "$supported" = "yes" ; then 10623 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10624 found="yes" 10625 fi 10626 fi 10627 10628 10629fi 10630 10631 10632 10633 10634 10635 10636 10637 CWARNFLAGS="$BASE_CFLAGS" 10638 if test "x$GCC" = xyes ; then 10639 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10640 fi 10641 10642 10643 10644 10645 10646 10647 10648 10649# Check whether --enable-strict-compilation was given. 10650if test ${enable_strict_compilation+y} 10651then : 10652 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10653else $as_nop 10654 STRICT_COMPILE=no 10655fi 10656 10657 10658 10659 10660 10661 10662STRICT_CFLAGS="" 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676xorg_testset_save_CFLAGS="$CFLAGS" 10677 10678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10682if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10683then : 10684 printf %s "(cached) " >&6 10685else $as_nop 10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10687/* end confdefs.h. */ 10688int i; 10689_ACEOF 10690if ac_fn_c_try_compile "$LINENO" 10691then : 10692 xorg_cv_cc_flag_unknown_warning_option=yes 10693else $as_nop 10694 xorg_cv_cc_flag_unknown_warning_option=no 10695fi 10696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10697fi 10698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10699printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10701 CFLAGS="$xorg_testset_save_CFLAGS" 10702fi 10703 10704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10707 fi 10708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10710printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10711if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10712then : 10713 printf %s "(cached) " >&6 10714else $as_nop 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716/* end confdefs.h. */ 10717int i; 10718_ACEOF 10719if ac_fn_c_try_compile "$LINENO" 10720then : 10721 xorg_cv_cc_flag_unused_command_line_argument=yes 10722else $as_nop 10723 xorg_cv_cc_flag_unused_command_line_argument=no 10724fi 10725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10726fi 10727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10728printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10730 CFLAGS="$xorg_testset_save_CFLAGS" 10731fi 10732 10733found="no" 10734 10735 if test $found = "no" ; then 10736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10738 fi 10739 10740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10742 fi 10743 10744 CFLAGS="$CFLAGS -pedantic" 10745 10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10747printf %s "checking if $CC supports -pedantic... " >&6; } 10748 cacheid=xorg_cv_cc_flag__pedantic 10749 if eval test \${$cacheid+y} 10750then : 10751 printf %s "(cached) " >&6 10752else $as_nop 10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10754/* end confdefs.h. */ 10755int i; 10756int 10757main (void) 10758{ 10759 10760 ; 10761 return 0; 10762} 10763_ACEOF 10764if ac_fn_c_try_link "$LINENO" 10765then : 10766 eval $cacheid=yes 10767else $as_nop 10768 eval $cacheid=no 10769fi 10770rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10771 conftest$ac_exeext conftest.$ac_ext 10772fi 10773 10774 10775 CFLAGS="$xorg_testset_save_CFLAGS" 10776 10777 eval supported=\$$cacheid 10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10779printf "%s\n" "$supported" >&6; } 10780 if test "$supported" = "yes" ; then 10781 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10782 found="yes" 10783 fi 10784 fi 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800xorg_testset_save_CFLAGS="$CFLAGS" 10801 10802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10806if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10807then : 10808 printf %s "(cached) " >&6 10809else $as_nop 10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10811/* end confdefs.h. */ 10812int i; 10813_ACEOF 10814if ac_fn_c_try_compile "$LINENO" 10815then : 10816 xorg_cv_cc_flag_unknown_warning_option=yes 10817else $as_nop 10818 xorg_cv_cc_flag_unknown_warning_option=no 10819fi 10820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10821fi 10822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10823printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10825 CFLAGS="$xorg_testset_save_CFLAGS" 10826fi 10827 10828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10831 fi 10832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10834printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10835if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10836then : 10837 printf %s "(cached) " >&6 10838else $as_nop 10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10840/* end confdefs.h. */ 10841int i; 10842_ACEOF 10843if ac_fn_c_try_compile "$LINENO" 10844then : 10845 xorg_cv_cc_flag_unused_command_line_argument=yes 10846else $as_nop 10847 xorg_cv_cc_flag_unused_command_line_argument=no 10848fi 10849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10850fi 10851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10852printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10854 CFLAGS="$xorg_testset_save_CFLAGS" 10855fi 10856 10857found="no" 10858 10859 if test $found = "no" ; then 10860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10862 fi 10863 10864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10866 fi 10867 10868 CFLAGS="$CFLAGS -Werror" 10869 10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10871printf %s "checking if $CC supports -Werror... " >&6; } 10872 cacheid=xorg_cv_cc_flag__Werror 10873 if eval test \${$cacheid+y} 10874then : 10875 printf %s "(cached) " >&6 10876else $as_nop 10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10878/* end confdefs.h. */ 10879int i; 10880int 10881main (void) 10882{ 10883 10884 ; 10885 return 0; 10886} 10887_ACEOF 10888if ac_fn_c_try_link "$LINENO" 10889then : 10890 eval $cacheid=yes 10891else $as_nop 10892 eval $cacheid=no 10893fi 10894rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10895 conftest$ac_exeext conftest.$ac_ext 10896fi 10897 10898 10899 CFLAGS="$xorg_testset_save_CFLAGS" 10900 10901 eval supported=\$$cacheid 10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10903printf "%s\n" "$supported" >&6; } 10904 if test "$supported" = "yes" ; then 10905 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10906 found="yes" 10907 fi 10908 fi 10909 10910 if test $found = "no" ; then 10911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10913 fi 10914 10915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10917 fi 10918 10919 CFLAGS="$CFLAGS -errwarn" 10920 10921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10922printf %s "checking if $CC supports -errwarn... " >&6; } 10923 cacheid=xorg_cv_cc_flag__errwarn 10924 if eval test \${$cacheid+y} 10925then : 10926 printf %s "(cached) " >&6 10927else $as_nop 10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929/* end confdefs.h. */ 10930int i; 10931int 10932main (void) 10933{ 10934 10935 ; 10936 return 0; 10937} 10938_ACEOF 10939if ac_fn_c_try_link "$LINENO" 10940then : 10941 eval $cacheid=yes 10942else $as_nop 10943 eval $cacheid=no 10944fi 10945rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10946 conftest$ac_exeext conftest.$ac_ext 10947fi 10948 10949 10950 CFLAGS="$xorg_testset_save_CFLAGS" 10951 10952 eval supported=\$$cacheid 10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10954printf "%s\n" "$supported" >&6; } 10955 if test "$supported" = "yes" ; then 10956 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10957 found="yes" 10958 fi 10959 fi 10960 10961 10962 10963# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10964# activate it with -Werror, so we add it here explicitly. 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978xorg_testset_save_CFLAGS="$CFLAGS" 10979 10980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10984if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10985then : 10986 printf %s "(cached) " >&6 10987else $as_nop 10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10989/* end confdefs.h. */ 10990int i; 10991_ACEOF 10992if ac_fn_c_try_compile "$LINENO" 10993then : 10994 xorg_cv_cc_flag_unknown_warning_option=yes 10995else $as_nop 10996 xorg_cv_cc_flag_unknown_warning_option=no 10997fi 10998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10999fi 11000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11001printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11003 CFLAGS="$xorg_testset_save_CFLAGS" 11004fi 11005 11006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11009 fi 11010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11012printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11013if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11014then : 11015 printf %s "(cached) " >&6 11016else $as_nop 11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11018/* end confdefs.h. */ 11019int i; 11020_ACEOF 11021if ac_fn_c_try_compile "$LINENO" 11022then : 11023 xorg_cv_cc_flag_unused_command_line_argument=yes 11024else $as_nop 11025 xorg_cv_cc_flag_unused_command_line_argument=no 11026fi 11027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11028fi 11029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11032 CFLAGS="$xorg_testset_save_CFLAGS" 11033fi 11034 11035found="no" 11036 11037 if test $found = "no" ; then 11038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11040 fi 11041 11042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11044 fi 11045 11046 CFLAGS="$CFLAGS -Werror=attributes" 11047 11048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11049printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11050 cacheid=xorg_cv_cc_flag__Werror_attributes 11051 if eval test \${$cacheid+y} 11052then : 11053 printf %s "(cached) " >&6 11054else $as_nop 11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11056/* end confdefs.h. */ 11057int i; 11058int 11059main (void) 11060{ 11061 11062 ; 11063 return 0; 11064} 11065_ACEOF 11066if ac_fn_c_try_link "$LINENO" 11067then : 11068 eval $cacheid=yes 11069else $as_nop 11070 eval $cacheid=no 11071fi 11072rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11073 conftest$ac_exeext conftest.$ac_ext 11074fi 11075 11076 11077 CFLAGS="$xorg_testset_save_CFLAGS" 11078 11079 eval supported=\$$cacheid 11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11081printf "%s\n" "$supported" >&6; } 11082 if test "$supported" = "yes" ; then 11083 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11084 found="yes" 11085 fi 11086 fi 11087 11088 11089 11090if test "x$STRICT_COMPILE" = "xyes"; then 11091 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11092 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11093fi 11094 11095 11096 11097 11098 11099 11100 11101 11102cat >>confdefs.h <<_ACEOF 11103#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11104_ACEOF 11105 11106 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11107 if test "x$PVM" = "x"; then 11108 PVM="0" 11109 fi 11110 11111printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11112 11113 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11114 if test "x$PVP" = "x"; then 11115 PVP="0" 11116 fi 11117 11118printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11119 11120 11121 11122CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11123mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11124|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11125touch \$(top_srcdir)/ChangeLog; \ 11126echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11127 11128 11129 11130 11131macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11132INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11133mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11134|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11135touch \$(top_srcdir)/INSTALL; \ 11136echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11137 11138 11139 11140 11141 11142 11143case $host_os in 11144 solaris*) 11145 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11146 # check for a man page file found in later versions that use 11147 # traditional section numbers instead 11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11149printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11150if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11151then : 11152 printf %s "(cached) " >&6 11153else $as_nop 11154 test "$cross_compiling" = yes && 11155 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11156if test -r "/usr/share/man/man7/attributes.7"; then 11157 ac_cv_file__usr_share_man_man7_attributes_7=yes 11158else 11159 ac_cv_file__usr_share_man_man7_attributes_7=no 11160fi 11161fi 11162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11163printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11164if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11165then : 11166 SYSV_MAN_SECTIONS=false 11167else $as_nop 11168 SYSV_MAN_SECTIONS=true 11169fi 11170 11171 ;; 11172 *) SYSV_MAN_SECTIONS=false ;; 11173esac 11174 11175if test x$APP_MAN_SUFFIX = x ; then 11176 APP_MAN_SUFFIX=1 11177fi 11178if test x$APP_MAN_DIR = x ; then 11179 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11180fi 11181 11182if test x$LIB_MAN_SUFFIX = x ; then 11183 LIB_MAN_SUFFIX=3 11184fi 11185if test x$LIB_MAN_DIR = x ; then 11186 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11187fi 11188 11189if test x$FILE_MAN_SUFFIX = x ; then 11190 case $SYSV_MAN_SECTIONS in 11191 true) FILE_MAN_SUFFIX=4 ;; 11192 *) FILE_MAN_SUFFIX=5 ;; 11193 esac 11194fi 11195if test x$FILE_MAN_DIR = x ; then 11196 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11197fi 11198 11199if test x$MISC_MAN_SUFFIX = x ; then 11200 case $SYSV_MAN_SECTIONS in 11201 true) MISC_MAN_SUFFIX=5 ;; 11202 *) MISC_MAN_SUFFIX=7 ;; 11203 esac 11204fi 11205if test x$MISC_MAN_DIR = x ; then 11206 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11207fi 11208 11209if test x$DRIVER_MAN_SUFFIX = x ; then 11210 case $SYSV_MAN_SECTIONS in 11211 true) DRIVER_MAN_SUFFIX=7 ;; 11212 *) DRIVER_MAN_SUFFIX=4 ;; 11213 esac 11214fi 11215if test x$DRIVER_MAN_DIR = x ; then 11216 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11217fi 11218 11219if test x$ADMIN_MAN_SUFFIX = x ; then 11220 case $SYSV_MAN_SECTIONS in 11221 true) ADMIN_MAN_SUFFIX=1m ;; 11222 *) ADMIN_MAN_SUFFIX=8 ;; 11223 esac 11224fi 11225if test x$ADMIN_MAN_DIR = x ; then 11226 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11227fi 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243XORG_MAN_PAGE="X Version 11" 11244 11245MAN_SUBSTS="\ 11246 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11247 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11248 -e 's|__xservername__|Xorg|g' \ 11249 -e 's|__xconfigfile__|xorg.conf|g' \ 11250 -e 's|__projectroot__|\$(prefix)|g' \ 11251 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11252 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11253 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11254 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11255 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11256 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11257 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11258 11259 11260 11261# Check whether --enable-silent-rules was given. 11262if test ${enable_silent_rules+y} 11263then : 11264 enableval=$enable_silent_rules; 11265fi 11266 11267case $enable_silent_rules in # ((( 11268 yes) AM_DEFAULT_VERBOSITY=0;; 11269 no) AM_DEFAULT_VERBOSITY=1;; 11270 *) AM_DEFAULT_VERBOSITY=0;; 11271esac 11272am_make=${MAKE-make} 11273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11274printf %s "checking whether $am_make supports nested variables... " >&6; } 11275if test ${am_cv_make_support_nested_variables+y} 11276then : 11277 printf %s "(cached) " >&6 11278else $as_nop 11279 if printf "%s\n" 'TRUE=$(BAR$(V)) 11280BAR0=false 11281BAR1=true 11282V=1 11283am__doit: 11284 @$(TRUE) 11285.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11286 am_cv_make_support_nested_variables=yes 11287else 11288 am_cv_make_support_nested_variables=no 11289fi 11290fi 11291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11292printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11293if test $am_cv_make_support_nested_variables = yes; then 11294 AM_V='$(V)' 11295 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11296else 11297 AM_V=$AM_DEFAULT_VERBOSITY 11298 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11299fi 11300AM_BACKSLASH='\' 11301 11302 11303 11304 11305ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 11306if test "x$ac_cv_func_mkstemp" = xyes 11307then : 11308 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 11309 11310fi 11311ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11312if test "x$ac_cv_func_asprintf" = xyes 11313then : 11314 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11315 11316fi 11317ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 11318if test "x$ac_cv_func_reallocarray" = xyes 11319then : 11320 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 11321 11322fi 11323 11324 11325# Find MAXHOSTNAMELEN definition 11326# Common hidey holes: 11327# BSD & Linux - <sys/param.h> 11328# Solaris - <netdb.h> 11329 11330ac_fn_check_decl "$LINENO" "MAXHOSTNAMELEN" "ac_cv_have_decl_MAXHOSTNAMELEN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 11331if test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = xyes 11332then : 11333 FOUND_MAXHOSTNAMELEN=yes 11334fi 11335 11336if test x$FOUND_MAXHOSTNAMELEN != xyes ; then 11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for header that defines MAXHOSTNAMELEN" >&5 11338printf %s "checking for header that defines MAXHOSTNAMELEN... " >&6; } 11339 11340 FOUND_MAXHOSTNAMELEN='not found' 11341 11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11343/* end confdefs.h. */ 11344#include <sys/param.h> 11345int 11346main (void) 11347{ 11348int h = MAXHOSTNAMELEN; 11349 ; 11350 return 0; 11351} 11352_ACEOF 11353if ac_fn_c_try_compile "$LINENO" 11354then : 11355 FOUND_MAXHOSTNAMELEN='sys/param.h' 11356 11357printf "%s\n" "#define NEED_SYS_PARAM_H 1" >>confdefs.h 11358 11359fi 11360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11361 11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11363/* end confdefs.h. */ 11364#include <netdb.h> 11365int 11366main (void) 11367{ 11368int h = MAXHOSTNAMELEN; 11369 ; 11370 return 0; 11371} 11372_ACEOF 11373if ac_fn_c_try_compile "$LINENO" 11374then : 11375 FOUND_MAXHOSTNAMELEN='netdb.h' 11376 11377printf "%s\n" "#define NEED_NETDB_H 1" >>confdefs.h 11378 11379fi 11380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11381 11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOUND_MAXHOSTNAMELEN" >&5 11383printf "%s\n" "$FOUND_MAXHOSTNAMELEN" >&6; } 11384fi 11385 11386# xrdb needs to know where to find cpp at runtime - previously set as CppCmd 11387# in Imake config files for each OS 11388 11389# Check whether --with-cpp was given. 11390if test ${with_cpp+y} 11391then : 11392 withval=$with_cpp; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpp" >&5 11393printf %s "checking for cpp... " >&6; } 11394 CPP_PATH=$withval 11395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: --with-cpp specified $CPP_PATH" >&5 11396printf "%s\n" "--with-cpp specified $CPP_PATH" >&6; } 11397else $as_nop 11398 # Extract the first word of "cpp", so it can be a program name with args. 11399set dummy cpp; ac_word=$2 11400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11401printf %s "checking for $ac_word... " >&6; } 11402if test ${ac_cv_path_CPP_PATH+y} 11403then : 11404 printf %s "(cached) " >&6 11405else $as_nop 11406 case $CPP_PATH in 11407 [\\/]* | ?:[\\/]*) 11408 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path. 11409 ;; 11410 *) 11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11412as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 11413for as_dir in $as_dummy 11414do 11415 IFS=$as_save_IFS 11416 case $as_dir in #((( 11417 '') as_dir=./ ;; 11418 */) ;; 11419 *) as_dir=$as_dir/ ;; 11420 esac 11421 for ac_exec_ext in '' $ac_executable_extensions; do 11422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11423 ac_cv_path_CPP_PATH="$as_dir$ac_word$ac_exec_ext" 11424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11425 break 2 11426 fi 11427done 11428 done 11429IFS=$as_save_IFS 11430 11431 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="cpp" 11432 ;; 11433esac 11434fi 11435CPP_PATH=$ac_cv_path_CPP_PATH 11436if test -n "$CPP_PATH"; then 11437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_PATH" >&5 11438printf "%s\n" "$CPP_PATH" >&6; } 11439else 11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11441printf "%s\n" "no" >&6; } 11442fi 11443 11444 11445fi 11446 11447CPP_PATH=`echo ${CPP_PATH} | sed 's/,/\\",\\"/g'` 11448 11449printf "%s\n" "#define CPP \"$CPP_PATH\"" >>confdefs.h 11450 11451 11452# Checks for pkg-config packages 11453 11454pkg_failed=no 11455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRDB" >&5 11456printf %s "checking for XRDB... " >&6; } 11457 11458if test -n "$XRDB_CFLAGS"; then 11459 pkg_cv_XRDB_CFLAGS="$XRDB_CFLAGS" 11460 elif test -n "$PKG_CONFIG"; then 11461 if test -n "$PKG_CONFIG" && \ 11462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.25\""; } >&5 11463 ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.25") 2>&5 11464 ac_status=$? 11465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11466 test $ac_status = 0; }; then 11467 pkg_cv_XRDB_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11 xproto >= 7.0.25" 2>/dev/null` 11468 test "x$?" != "x0" && pkg_failed=yes 11469else 11470 pkg_failed=yes 11471fi 11472 else 11473 pkg_failed=untried 11474fi 11475if test -n "$XRDB_LIBS"; then 11476 pkg_cv_XRDB_LIBS="$XRDB_LIBS" 11477 elif test -n "$PKG_CONFIG"; then 11478 if test -n "$PKG_CONFIG" && \ 11479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.25\""; } >&5 11480 ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.25") 2>&5 11481 ac_status=$? 11482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11483 test $ac_status = 0; }; then 11484 pkg_cv_XRDB_LIBS=`$PKG_CONFIG --libs "xmuu x11 xproto >= 7.0.25" 2>/dev/null` 11485 test "x$?" != "x0" && pkg_failed=yes 11486else 11487 pkg_failed=yes 11488fi 11489 else 11490 pkg_failed=untried 11491fi 11492 11493 11494 11495if test $pkg_failed = yes; then 11496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11497printf "%s\n" "no" >&6; } 11498 11499if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11500 _pkg_short_errors_supported=yes 11501else 11502 _pkg_short_errors_supported=no 11503fi 11504 if test $_pkg_short_errors_supported = yes; then 11505 XRDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu x11 xproto >= 7.0.25" 2>&1` 11506 else 11507 XRDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu x11 xproto >= 7.0.25" 2>&1` 11508 fi 11509 # Put the nasty error message in config.log where it belongs 11510 echo "$XRDB_PKG_ERRORS" >&5 11511 11512 as_fn_error $? "Package requirements (xmuu x11 xproto >= 7.0.25) were not met: 11513 11514$XRDB_PKG_ERRORS 11515 11516Consider adjusting the PKG_CONFIG_PATH environment variable if you 11517installed software in a non-standard prefix. 11518 11519Alternatively, you may set the environment variables XRDB_CFLAGS 11520and XRDB_LIBS to avoid the need to call pkg-config. 11521See the pkg-config man page for more details." "$LINENO" 5 11522elif test $pkg_failed = untried; then 11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11524printf "%s\n" "no" >&6; } 11525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11526printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11527as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11528is in your PATH or set the PKG_CONFIG environment variable to the full 11529path to pkg-config. 11530 11531Alternatively, you may set the environment variables XRDB_CFLAGS 11532and XRDB_LIBS to avoid the need to call pkg-config. 11533See the pkg-config man page for more details. 11534 11535To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11536See \`config.log' for more details" "$LINENO" 5; } 11537else 11538 XRDB_CFLAGS=$pkg_cv_XRDB_CFLAGS 11539 XRDB_LIBS=$pkg_cv_XRDB_LIBS 11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11541printf "%s\n" "yes" >&6; } 11542 11543fi 11544 11545ac_config_files="$ac_config_files Makefile man/Makefile" 11546 11547cat >confcache <<\_ACEOF 11548# This file is a shell script that caches the results of configure 11549# tests run on this system so they can be shared between configure 11550# scripts and configure runs, see configure's option --config-cache. 11551# It is not useful on other systems. If it contains results you don't 11552# want to keep, you may remove or edit it. 11553# 11554# config.status only pays attention to the cache file if you give it 11555# the --recheck option to rerun configure. 11556# 11557# `ac_cv_env_foo' variables (set or unset) will be overridden when 11558# loading this file, other *unset* `ac_cv_foo' will be assigned the 11559# following values. 11560 11561_ACEOF 11562 11563# The following way of writing the cache mishandles newlines in values, 11564# but we know of no workaround that is simple, portable, and efficient. 11565# So, we kill variables containing newlines. 11566# Ultrix sh set writes to stderr and can't be redirected directly, 11567# and sets the high bit in the cache file unless we assign to the vars. 11568( 11569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11570 eval ac_val=\$$ac_var 11571 case $ac_val in #( 11572 *${as_nl}*) 11573 case $ac_var in #( 11574 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11575printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11576 esac 11577 case $ac_var in #( 11578 _ | IFS | as_nl) ;; #( 11579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11580 *) { eval $ac_var=; unset $ac_var;} ;; 11581 esac ;; 11582 esac 11583 done 11584 11585 (set) 2>&1 | 11586 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11587 *${as_nl}ac_space=\ *) 11588 # `set' does not quote correctly, so add quotes: double-quote 11589 # substitution turns \\\\ into \\, and sed turns \\ into \. 11590 sed -n \ 11591 "s/'/'\\\\''/g; 11592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11593 ;; #( 11594 *) 11595 # `set' quotes correctly as required by POSIX, so do not add quotes. 11596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11597 ;; 11598 esac | 11599 sort 11600) | 11601 sed ' 11602 /^ac_cv_env_/b end 11603 t clear 11604 :clear 11605 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11606 t end 11607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11608 :end' >>confcache 11609if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11610 if test -w "$cache_file"; then 11611 if test "x$cache_file" != "x/dev/null"; then 11612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11613printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11614 if test ! -f "$cache_file" || test -h "$cache_file"; then 11615 cat confcache >"$cache_file" 11616 else 11617 case $cache_file in #( 11618 */* | ?:*) 11619 mv -f confcache "$cache_file"$$ && 11620 mv -f "$cache_file"$$ "$cache_file" ;; #( 11621 *) 11622 mv -f confcache "$cache_file" ;; 11623 esac 11624 fi 11625 fi 11626 else 11627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11628printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11629 fi 11630fi 11631rm -f confcache 11632 11633test "x$prefix" = xNONE && prefix=$ac_default_prefix 11634# Let make expand exec_prefix. 11635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11636 11637DEFS=-DHAVE_CONFIG_H 11638 11639ac_libobjs= 11640ac_ltlibobjs= 11641U= 11642for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11643 # 1. Remove the extension, and $U if already installed. 11644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11645 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11647 # will be set to the directory where LIBOBJS objects are built. 11648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11650done 11651LIBOBJS=$ac_libobjs 11652 11653LTLIBOBJS=$ac_ltlibobjs 11654 11655 11656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11657printf %s "checking that generated files are newer than configure... " >&6; } 11658 if test -n "$am_sleep_pid"; then 11659 # Hide warnings about reused PIDs. 11660 wait $am_sleep_pid 2>/dev/null 11661 fi 11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11663printf "%s\n" "done" >&6; } 11664if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11665 as_fn_error $? "conditional \"AMDEP\" was never defined. 11666Usually this means the macro was only invoked conditionally." "$LINENO" 5 11667fi 11668if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11669 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11670Usually this means the macro was only invoked conditionally." "$LINENO" 5 11671fi 11672 if test -n "$EXEEXT"; then 11673 am__EXEEXT_TRUE= 11674 am__EXEEXT_FALSE='#' 11675else 11676 am__EXEEXT_TRUE='#' 11677 am__EXEEXT_FALSE= 11678fi 11679 11680 11681: "${CONFIG_STATUS=./config.status}" 11682ac_write_fail=0 11683ac_clean_files_save=$ac_clean_files 11684ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11686printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11687as_write_fail=0 11688cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11689#! $SHELL 11690# Generated by $as_me. 11691# Run this file to recreate the current configuration. 11692# Compiler output produced by configure, useful for debugging 11693# configure, is in config.log if it exists. 11694 11695debug=false 11696ac_cs_recheck=false 11697ac_cs_silent=false 11698 11699SHELL=\${CONFIG_SHELL-$SHELL} 11700export SHELL 11701_ASEOF 11702cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11703## -------------------- ## 11704## M4sh Initialization. ## 11705## -------------------- ## 11706 11707# Be more Bourne compatible 11708DUALCASE=1; export DUALCASE # for MKS sh 11709as_nop=: 11710if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11711then : 11712 emulate sh 11713 NULLCMD=: 11714 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11715 # is contrary to our usage. Disable this feature. 11716 alias -g '${1+"$@"}'='"$@"' 11717 setopt NO_GLOB_SUBST 11718else $as_nop 11719 case `(set -o) 2>/dev/null` in #( 11720 *posix*) : 11721 set -o posix ;; #( 11722 *) : 11723 ;; 11724esac 11725fi 11726 11727 11728 11729# Reset variables that may have inherited troublesome values from 11730# the environment. 11731 11732# IFS needs to be set, to space, tab, and newline, in precisely that order. 11733# (If _AS_PATH_WALK were called with IFS unset, it would have the 11734# side effect of setting IFS to empty, thus disabling word splitting.) 11735# Quoting is to prevent editors from complaining about space-tab. 11736as_nl=' 11737' 11738export as_nl 11739IFS=" "" $as_nl" 11740 11741PS1='$ ' 11742PS2='> ' 11743PS4='+ ' 11744 11745# Ensure predictable behavior from utilities with locale-dependent output. 11746LC_ALL=C 11747export LC_ALL 11748LANGUAGE=C 11749export LANGUAGE 11750 11751# We cannot yet rely on "unset" to work, but we need these variables 11752# to be unset--not just set to an empty or harmless value--now, to 11753# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11754# also avoids known problems related to "unset" and subshell syntax 11755# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11756for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11757do eval test \${$as_var+y} \ 11758 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11759done 11760 11761# Ensure that fds 0, 1, and 2 are open. 11762if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11763if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11764if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11765 11766# The user is always right. 11767if ${PATH_SEPARATOR+false} :; then 11768 PATH_SEPARATOR=: 11769 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11770 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11771 PATH_SEPARATOR=';' 11772 } 11773fi 11774 11775 11776# Find who we are. Look in the path if we contain no directory separator. 11777as_myself= 11778case $0 in #(( 11779 *[\\/]* ) as_myself=$0 ;; 11780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11781for as_dir in $PATH 11782do 11783 IFS=$as_save_IFS 11784 case $as_dir in #((( 11785 '') as_dir=./ ;; 11786 */) ;; 11787 *) as_dir=$as_dir/ ;; 11788 esac 11789 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11790 done 11791IFS=$as_save_IFS 11792 11793 ;; 11794esac 11795# We did not find ourselves, most probably we were run as `sh COMMAND' 11796# in which case we are not to be found in the path. 11797if test "x$as_myself" = x; then 11798 as_myself=$0 11799fi 11800if test ! -f "$as_myself"; then 11801 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11802 exit 1 11803fi 11804 11805 11806 11807# as_fn_error STATUS ERROR [LINENO LOG_FD] 11808# ---------------------------------------- 11809# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11810# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11811# script with STATUS, using 1 if that was 0. 11812as_fn_error () 11813{ 11814 as_status=$1; test $as_status -eq 0 && as_status=1 11815 if test "$4"; then 11816 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11818 fi 11819 printf "%s\n" "$as_me: error: $2" >&2 11820 as_fn_exit $as_status 11821} # as_fn_error 11822 11823 11824 11825# as_fn_set_status STATUS 11826# ----------------------- 11827# Set $? to STATUS, without forking. 11828as_fn_set_status () 11829{ 11830 return $1 11831} # as_fn_set_status 11832 11833# as_fn_exit STATUS 11834# ----------------- 11835# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11836as_fn_exit () 11837{ 11838 set +e 11839 as_fn_set_status $1 11840 exit $1 11841} # as_fn_exit 11842 11843# as_fn_unset VAR 11844# --------------- 11845# Portably unset VAR. 11846as_fn_unset () 11847{ 11848 { eval $1=; unset $1;} 11849} 11850as_unset=as_fn_unset 11851 11852# as_fn_append VAR VALUE 11853# ---------------------- 11854# Append the text in VALUE to the end of the definition contained in VAR. Take 11855# advantage of any shell optimizations that allow amortized linear growth over 11856# repeated appends, instead of the typical quadratic growth present in naive 11857# implementations. 11858if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11859then : 11860 eval 'as_fn_append () 11861 { 11862 eval $1+=\$2 11863 }' 11864else $as_nop 11865 as_fn_append () 11866 { 11867 eval $1=\$$1\$2 11868 } 11869fi # as_fn_append 11870 11871# as_fn_arith ARG... 11872# ------------------ 11873# Perform arithmetic evaluation on the ARGs, and store the result in the 11874# global $as_val. Take advantage of shells that can avoid forks. The arguments 11875# must be portable across $(()) and expr. 11876if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11877then : 11878 eval 'as_fn_arith () 11879 { 11880 as_val=$(( $* )) 11881 }' 11882else $as_nop 11883 as_fn_arith () 11884 { 11885 as_val=`expr "$@" || test $? -eq 1` 11886 } 11887fi # as_fn_arith 11888 11889 11890if expr a : '\(a\)' >/dev/null 2>&1 && 11891 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11892 as_expr=expr 11893else 11894 as_expr=false 11895fi 11896 11897if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11898 as_basename=basename 11899else 11900 as_basename=false 11901fi 11902 11903if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11904 as_dirname=dirname 11905else 11906 as_dirname=false 11907fi 11908 11909as_me=`$as_basename -- "$0" || 11910$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11911 X"$0" : 'X\(//\)$' \| \ 11912 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11913printf "%s\n" X/"$0" | 11914 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11915 s//\1/ 11916 q 11917 } 11918 /^X\/\(\/\/\)$/{ 11919 s//\1/ 11920 q 11921 } 11922 /^X\/\(\/\).*/{ 11923 s//\1/ 11924 q 11925 } 11926 s/.*/./; q'` 11927 11928# Avoid depending upon Character Ranges. 11929as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11930as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11931as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11932as_cr_digits='0123456789' 11933as_cr_alnum=$as_cr_Letters$as_cr_digits 11934 11935 11936# Determine whether it's possible to make 'echo' print without a newline. 11937# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11938# for compatibility with existing Makefiles. 11939ECHO_C= ECHO_N= ECHO_T= 11940case `echo -n x` in #((((( 11941-n*) 11942 case `echo 'xy\c'` in 11943 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11944 xy) ECHO_C='\c';; 11945 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11946 ECHO_T=' ';; 11947 esac;; 11948*) 11949 ECHO_N='-n';; 11950esac 11951 11952# For backward compatibility with old third-party macros, we provide 11953# the shell variables $as_echo and $as_echo_n. New code should use 11954# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11955as_echo='printf %s\n' 11956as_echo_n='printf %s' 11957 11958rm -f conf$$ conf$$.exe conf$$.file 11959if test -d conf$$.dir; then 11960 rm -f conf$$.dir/conf$$.file 11961else 11962 rm -f conf$$.dir 11963 mkdir conf$$.dir 2>/dev/null 11964fi 11965if (echo >conf$$.file) 2>/dev/null; then 11966 if ln -s conf$$.file conf$$ 2>/dev/null; then 11967 as_ln_s='ln -s' 11968 # ... but there are two gotchas: 11969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11971 # In both cases, we have to default to `cp -pR'. 11972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11973 as_ln_s='cp -pR' 11974 elif ln conf$$.file conf$$ 2>/dev/null; then 11975 as_ln_s=ln 11976 else 11977 as_ln_s='cp -pR' 11978 fi 11979else 11980 as_ln_s='cp -pR' 11981fi 11982rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11983rmdir conf$$.dir 2>/dev/null 11984 11985 11986# as_fn_mkdir_p 11987# ------------- 11988# Create "$as_dir" as a directory, including parents if necessary. 11989as_fn_mkdir_p () 11990{ 11991 11992 case $as_dir in #( 11993 -*) as_dir=./$as_dir;; 11994 esac 11995 test -d "$as_dir" || eval $as_mkdir_p || { 11996 as_dirs= 11997 while :; do 11998 case $as_dir in #( 11999 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12000 *) as_qdir=$as_dir;; 12001 esac 12002 as_dirs="'$as_qdir' $as_dirs" 12003 as_dir=`$as_dirname -- "$as_dir" || 12004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12005 X"$as_dir" : 'X\(//\)[^/]' \| \ 12006 X"$as_dir" : 'X\(//\)$' \| \ 12007 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12008printf "%s\n" X"$as_dir" | 12009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12010 s//\1/ 12011 q 12012 } 12013 /^X\(\/\/\)[^/].*/{ 12014 s//\1/ 12015 q 12016 } 12017 /^X\(\/\/\)$/{ 12018 s//\1/ 12019 q 12020 } 12021 /^X\(\/\).*/{ 12022 s//\1/ 12023 q 12024 } 12025 s/.*/./; q'` 12026 test -d "$as_dir" && break 12027 done 12028 test -z "$as_dirs" || eval "mkdir $as_dirs" 12029 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12030 12031 12032} # as_fn_mkdir_p 12033if mkdir -p . 2>/dev/null; then 12034 as_mkdir_p='mkdir -p "$as_dir"' 12035else 12036 test -d ./-p && rmdir ./-p 12037 as_mkdir_p=false 12038fi 12039 12040 12041# as_fn_executable_p FILE 12042# ----------------------- 12043# Test if FILE is an executable regular file. 12044as_fn_executable_p () 12045{ 12046 test -f "$1" && test -x "$1" 12047} # as_fn_executable_p 12048as_test_x='test -x' 12049as_executable_p=as_fn_executable_p 12050 12051# Sed expression to map a string onto a valid CPP name. 12052as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12053 12054# Sed expression to map a string onto a valid variable name. 12055as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12056 12057 12058exec 6>&1 12059## ----------------------------------- ## 12060## Main body of $CONFIG_STATUS script. ## 12061## ----------------------------------- ## 12062_ASEOF 12063test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12064 12065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12066# Save the log message, to keep $0 and so on meaningful, and to 12067# report actual input values of CONFIG_FILES etc. instead of their 12068# values after options handling. 12069ac_log=" 12070This file was extended by xrdb $as_me 1.2.2, which was 12071generated by GNU Autoconf 2.71. Invocation command line was 12072 12073 CONFIG_FILES = $CONFIG_FILES 12074 CONFIG_HEADERS = $CONFIG_HEADERS 12075 CONFIG_LINKS = $CONFIG_LINKS 12076 CONFIG_COMMANDS = $CONFIG_COMMANDS 12077 $ $0 $@ 12078 12079on `(hostname || uname -n) 2>/dev/null | sed 1q` 12080" 12081 12082_ACEOF 12083 12084case $ac_config_files in *" 12085"*) set x $ac_config_files; shift; ac_config_files=$*;; 12086esac 12087 12088case $ac_config_headers in *" 12089"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12090esac 12091 12092 12093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12094# Files that config.status was made for. 12095config_files="$ac_config_files" 12096config_headers="$ac_config_headers" 12097config_commands="$ac_config_commands" 12098 12099_ACEOF 12100 12101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12102ac_cs_usage="\ 12103\`$as_me' instantiates files and other configuration actions 12104from templates according to the current configuration. Unless the files 12105and actions are specified as TAGs, all are instantiated by default. 12106 12107Usage: $0 [OPTION]... [TAG]... 12108 12109 -h, --help print this help, then exit 12110 -V, --version print version number and configuration settings, then exit 12111 --config print configuration, then exit 12112 -q, --quiet, --silent 12113 do not print progress messages 12114 -d, --debug don't remove temporary files 12115 --recheck update $as_me by reconfiguring in the same conditions 12116 --file=FILE[:TEMPLATE] 12117 instantiate the configuration file FILE 12118 --header=FILE[:TEMPLATE] 12119 instantiate the configuration header FILE 12120 12121Configuration files: 12122$config_files 12123 12124Configuration headers: 12125$config_headers 12126 12127Configuration commands: 12128$config_commands 12129 12130Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrdb/issues>." 12131 12132_ACEOF 12133ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12134ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12136ac_cs_config='$ac_cs_config_escaped' 12137ac_cs_version="\\ 12138xrdb config.status 1.2.2 12139configured by $0, generated by GNU Autoconf 2.71, 12140 with options \\"\$ac_cs_config\\" 12141 12142Copyright (C) 2021 Free Software Foundation, Inc. 12143This config.status script is free software; the Free Software Foundation 12144gives unlimited permission to copy, distribute and modify it." 12145 12146ac_pwd='$ac_pwd' 12147srcdir='$srcdir' 12148INSTALL='$INSTALL' 12149MKDIR_P='$MKDIR_P' 12150AWK='$AWK' 12151test -n "\$AWK" || AWK=awk 12152_ACEOF 12153 12154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12155# The default lists apply if the user does not specify any file. 12156ac_need_defaults=: 12157while test $# != 0 12158do 12159 case $1 in 12160 --*=?*) 12161 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12163 ac_shift=: 12164 ;; 12165 --*=) 12166 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12167 ac_optarg= 12168 ac_shift=: 12169 ;; 12170 *) 12171 ac_option=$1 12172 ac_optarg=$2 12173 ac_shift=shift 12174 ;; 12175 esac 12176 12177 case $ac_option in 12178 # Handling of the options. 12179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12180 ac_cs_recheck=: ;; 12181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12182 printf "%s\n" "$ac_cs_version"; exit ;; 12183 --config | --confi | --conf | --con | --co | --c ) 12184 printf "%s\n" "$ac_cs_config"; exit ;; 12185 --debug | --debu | --deb | --de | --d | -d ) 12186 debug=: ;; 12187 --file | --fil | --fi | --f ) 12188 $ac_shift 12189 case $ac_optarg in 12190 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12191 '') as_fn_error $? "missing file argument" ;; 12192 esac 12193 as_fn_append CONFIG_FILES " '$ac_optarg'" 12194 ac_need_defaults=false;; 12195 --header | --heade | --head | --hea ) 12196 $ac_shift 12197 case $ac_optarg in 12198 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12199 esac 12200 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12201 ac_need_defaults=false;; 12202 --he | --h) 12203 # Conflict between --help and --header 12204 as_fn_error $? "ambiguous option: \`$1' 12205Try \`$0 --help' for more information.";; 12206 --help | --hel | -h ) 12207 printf "%s\n" "$ac_cs_usage"; exit ;; 12208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12209 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12210 ac_cs_silent=: ;; 12211 12212 # This is an error. 12213 -*) as_fn_error $? "unrecognized option: \`$1' 12214Try \`$0 --help' for more information." ;; 12215 12216 *) as_fn_append ac_config_targets " $1" 12217 ac_need_defaults=false ;; 12218 12219 esac 12220 shift 12221done 12222 12223ac_configure_extra_args= 12224 12225if $ac_cs_silent; then 12226 exec 6>/dev/null 12227 ac_configure_extra_args="$ac_configure_extra_args --silent" 12228fi 12229 12230_ACEOF 12231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12232if \$ac_cs_recheck; then 12233 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12234 shift 12235 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12236 CONFIG_SHELL='$SHELL' 12237 export CONFIG_SHELL 12238 exec "\$@" 12239fi 12240 12241_ACEOF 12242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12243exec 5>>config.log 12244{ 12245 echo 12246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12247## Running $as_me. ## 12248_ASBOX 12249 printf "%s\n" "$ac_log" 12250} >&5 12251 12252_ACEOF 12253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12254# 12255# INIT-COMMANDS 12256# 12257AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12258 12259_ACEOF 12260 12261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12262 12263# Handling of arguments. 12264for ac_config_target in $ac_config_targets 12265do 12266 case $ac_config_target in 12267 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12268 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12269 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12270 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12271 12272 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12273 esac 12274done 12275 12276 12277# If the user did not use the arguments to specify the items to instantiate, 12278# then the envvar interface is used. Set only those that are not. 12279# We use the long form for the default assignment because of an extremely 12280# bizarre bug on SunOS 4.1.3. 12281if $ac_need_defaults; then 12282 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12283 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12284 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12285fi 12286 12287# Have a temporary directory for convenience. Make it in the build tree 12288# simply because there is no reason against having it here, and in addition, 12289# creating and moving files from /tmp can sometimes cause problems. 12290# Hook for its removal unless debugging. 12291# Note that there is a small window in which the directory will not be cleaned: 12292# after its creation but before its name has been assigned to `$tmp'. 12293$debug || 12294{ 12295 tmp= ac_tmp= 12296 trap 'exit_status=$? 12297 : "${ac_tmp:=$tmp}" 12298 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12299' 0 12300 trap 'as_fn_exit 1' 1 2 13 15 12301} 12302# Create a (secure) tmp directory for tmp files. 12303 12304{ 12305 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12306 test -d "$tmp" 12307} || 12308{ 12309 tmp=./conf$$-$RANDOM 12310 (umask 077 && mkdir "$tmp") 12311} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12312ac_tmp=$tmp 12313 12314# Set up the scripts for CONFIG_FILES section. 12315# No need to generate them if there are no CONFIG_FILES. 12316# This happens for instance with `./config.status config.h'. 12317if test -n "$CONFIG_FILES"; then 12318 12319 12320ac_cr=`echo X | tr X '\015'` 12321# On cygwin, bash can eat \r inside `` if the user requested igncr. 12322# But we know of no other shell where ac_cr would be empty at this 12323# point, so we can use a bashism as a fallback. 12324if test "x$ac_cr" = x; then 12325 eval ac_cr=\$\'\\r\' 12326fi 12327ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12328if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12329 ac_cs_awk_cr='\\r' 12330else 12331 ac_cs_awk_cr=$ac_cr 12332fi 12333 12334echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12335_ACEOF 12336 12337 12338{ 12339 echo "cat >conf$$subs.awk <<_ACEOF" && 12340 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12341 echo "_ACEOF" 12342} >conf$$subs.sh || 12343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12344ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12345ac_delim='%!_!# ' 12346for ac_last_try in false false false false false :; do 12347 . ./conf$$subs.sh || 12348 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12349 12350 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12351 if test $ac_delim_n = $ac_delim_num; then 12352 break 12353 elif $ac_last_try; then 12354 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12355 else 12356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12357 fi 12358done 12359rm -f conf$$subs.sh 12360 12361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12362cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12363_ACEOF 12364sed -n ' 12365h 12366s/^/S["/; s/!.*/"]=/ 12367p 12368g 12369s/^[^!]*!// 12370:repl 12371t repl 12372s/'"$ac_delim"'$// 12373t delim 12374:nl 12375h 12376s/\(.\{148\}\)..*/\1/ 12377t more1 12378s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12379p 12380n 12381b repl 12382:more1 12383s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12384p 12385g 12386s/.\{148\}// 12387t nl 12388:delim 12389h 12390s/\(.\{148\}\)..*/\1/ 12391t more2 12392s/["\\]/\\&/g; s/^/"/; s/$/"/ 12393p 12394b 12395:more2 12396s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12397p 12398g 12399s/.\{148\}// 12400t delim 12401' <conf$$subs.awk | sed ' 12402/^[^""]/{ 12403 N 12404 s/\n// 12405} 12406' >>$CONFIG_STATUS || ac_write_fail=1 12407rm -f conf$$subs.awk 12408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12409_ACAWK 12410cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12411 for (key in S) S_is_set[key] = 1 12412 FS = "" 12413 12414} 12415{ 12416 line = $ 0 12417 nfields = split(line, field, "@") 12418 substed = 0 12419 len = length(field[1]) 12420 for (i = 2; i < nfields; i++) { 12421 key = field[i] 12422 keylen = length(key) 12423 if (S_is_set[key]) { 12424 value = S[key] 12425 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12426 len += length(value) + length(field[++i]) 12427 substed = 1 12428 } else 12429 len += 1 + keylen 12430 } 12431 12432 print line 12433} 12434 12435_ACAWK 12436_ACEOF 12437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12438if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12439 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12440else 12441 cat 12442fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12443 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12444_ACEOF 12445 12446# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12447# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12448# trailing colons and then remove the whole line if VPATH becomes empty 12449# (actually we leave an empty line to preserve line numbers). 12450if test "x$srcdir" = x.; then 12451 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12452h 12453s/// 12454s/^/:/ 12455s/[ ]*$/:/ 12456s/:\$(srcdir):/:/g 12457s/:\${srcdir}:/:/g 12458s/:@srcdir@:/:/g 12459s/^:*// 12460s/:*$// 12461x 12462s/\(=[ ]*\).*/\1/ 12463G 12464s/\n// 12465s/^[^=]*=[ ]*$// 12466}' 12467fi 12468 12469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12470fi # test -n "$CONFIG_FILES" 12471 12472# Set up the scripts for CONFIG_HEADERS section. 12473# No need to generate them if there are no CONFIG_HEADERS. 12474# This happens for instance with `./config.status Makefile'. 12475if test -n "$CONFIG_HEADERS"; then 12476cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12477BEGIN { 12478_ACEOF 12479 12480# Transform confdefs.h into an awk script `defines.awk', embedded as 12481# here-document in config.status, that substitutes the proper values into 12482# config.h.in to produce config.h. 12483 12484# Create a delimiter string that does not exist in confdefs.h, to ease 12485# handling of long lines. 12486ac_delim='%!_!# ' 12487for ac_last_try in false false :; do 12488 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12489 if test -z "$ac_tt"; then 12490 break 12491 elif $ac_last_try; then 12492 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12493 else 12494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12495 fi 12496done 12497 12498# For the awk script, D is an array of macro values keyed by name, 12499# likewise P contains macro parameters if any. Preserve backslash 12500# newline sequences. 12501 12502ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12503sed -n ' 12504s/.\{148\}/&'"$ac_delim"'/g 12505t rset 12506:rset 12507s/^[ ]*#[ ]*define[ ][ ]*/ / 12508t def 12509d 12510:def 12511s/\\$// 12512t bsnl 12513s/["\\]/\\&/g 12514s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12515D["\1"]=" \3"/p 12516s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12517d 12518:bsnl 12519s/["\\]/\\&/g 12520s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12521D["\1"]=" \3\\\\\\n"\\/p 12522t cont 12523s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12524t cont 12525d 12526:cont 12527n 12528s/.\{148\}/&'"$ac_delim"'/g 12529t clear 12530:clear 12531s/\\$// 12532t bsnlc 12533s/["\\]/\\&/g; s/^/"/; s/$/"/p 12534d 12535:bsnlc 12536s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12537b cont 12538' <confdefs.h | sed ' 12539s/'"$ac_delim"'/"\\\ 12540"/g' >>$CONFIG_STATUS || ac_write_fail=1 12541 12542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12543 for (key in D) D_is_set[key] = 1 12544 FS = "" 12545} 12546/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12547 line = \$ 0 12548 split(line, arg, " ") 12549 if (arg[1] == "#") { 12550 defundef = arg[2] 12551 mac1 = arg[3] 12552 } else { 12553 defundef = substr(arg[1], 2) 12554 mac1 = arg[2] 12555 } 12556 split(mac1, mac2, "(") #) 12557 macro = mac2[1] 12558 prefix = substr(line, 1, index(line, defundef) - 1) 12559 if (D_is_set[macro]) { 12560 # Preserve the white space surrounding the "#". 12561 print prefix "define", macro P[macro] D[macro] 12562 next 12563 } else { 12564 # Replace #undef with comments. This is necessary, for example, 12565 # in the case of _POSIX_SOURCE, which is predefined and required 12566 # on some systems where configure will not decide to define it. 12567 if (defundef == "undef") { 12568 print "/*", prefix defundef, macro, "*/" 12569 next 12570 } 12571 } 12572} 12573{ print } 12574_ACAWK 12575_ACEOF 12576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12577 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12578fi # test -n "$CONFIG_HEADERS" 12579 12580 12581eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12582shift 12583for ac_tag 12584do 12585 case $ac_tag in 12586 :[FHLC]) ac_mode=$ac_tag; continue;; 12587 esac 12588 case $ac_mode$ac_tag in 12589 :[FHL]*:*);; 12590 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12591 :[FH]-) ac_tag=-:-;; 12592 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12593 esac 12594 ac_save_IFS=$IFS 12595 IFS=: 12596 set x $ac_tag 12597 IFS=$ac_save_IFS 12598 shift 12599 ac_file=$1 12600 shift 12601 12602 case $ac_mode in 12603 :L) ac_source=$1;; 12604 :[FH]) 12605 ac_file_inputs= 12606 for ac_f 12607 do 12608 case $ac_f in 12609 -) ac_f="$ac_tmp/stdin";; 12610 *) # Look for the file first in the build tree, then in the source tree 12611 # (if the path is not absolute). The absolute path cannot be DOS-style, 12612 # because $ac_f cannot contain `:'. 12613 test -f "$ac_f" || 12614 case $ac_f in 12615 [\\/$]*) false;; 12616 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12617 esac || 12618 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12619 esac 12620 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12621 as_fn_append ac_file_inputs " '$ac_f'" 12622 done 12623 12624 # Let's still pretend it is `configure' which instantiates (i.e., don't 12625 # use $as_me), people would be surprised to read: 12626 # /* config.h. Generated by config.status. */ 12627 configure_input='Generated from '` 12628 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12629 `' by configure.' 12630 if test x"$ac_file" != x-; then 12631 configure_input="$ac_file. $configure_input" 12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12633printf "%s\n" "$as_me: creating $ac_file" >&6;} 12634 fi 12635 # Neutralize special characters interpreted by sed in replacement strings. 12636 case $configure_input in #( 12637 *\&* | *\|* | *\\* ) 12638 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12639 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12640 *) ac_sed_conf_input=$configure_input;; 12641 esac 12642 12643 case $ac_tag in 12644 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12646 esac 12647 ;; 12648 esac 12649 12650 ac_dir=`$as_dirname -- "$ac_file" || 12651$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12652 X"$ac_file" : 'X\(//\)[^/]' \| \ 12653 X"$ac_file" : 'X\(//\)$' \| \ 12654 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12655printf "%s\n" X"$ac_file" | 12656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12657 s//\1/ 12658 q 12659 } 12660 /^X\(\/\/\)[^/].*/{ 12661 s//\1/ 12662 q 12663 } 12664 /^X\(\/\/\)$/{ 12665 s//\1/ 12666 q 12667 } 12668 /^X\(\/\).*/{ 12669 s//\1/ 12670 q 12671 } 12672 s/.*/./; q'` 12673 as_dir="$ac_dir"; as_fn_mkdir_p 12674 ac_builddir=. 12675 12676case "$ac_dir" in 12677.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12678*) 12679 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12680 # A ".." for each directory in $ac_dir_suffix. 12681 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12682 case $ac_top_builddir_sub in 12683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12685 esac ;; 12686esac 12687ac_abs_top_builddir=$ac_pwd 12688ac_abs_builddir=$ac_pwd$ac_dir_suffix 12689# for backward compatibility: 12690ac_top_builddir=$ac_top_build_prefix 12691 12692case $srcdir in 12693 .) # We are building in place. 12694 ac_srcdir=. 12695 ac_top_srcdir=$ac_top_builddir_sub 12696 ac_abs_top_srcdir=$ac_pwd ;; 12697 [\\/]* | ?:[\\/]* ) # Absolute name. 12698 ac_srcdir=$srcdir$ac_dir_suffix; 12699 ac_top_srcdir=$srcdir 12700 ac_abs_top_srcdir=$srcdir ;; 12701 *) # Relative name. 12702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12703 ac_top_srcdir=$ac_top_build_prefix$srcdir 12704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12705esac 12706ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12707 12708 12709 case $ac_mode in 12710 :F) 12711 # 12712 # CONFIG_FILE 12713 # 12714 12715 case $INSTALL in 12716 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12717 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12718 esac 12719 ac_MKDIR_P=$MKDIR_P 12720 case $MKDIR_P in 12721 [\\/$]* | ?:[\\/]* ) ;; 12722 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12723 esac 12724_ACEOF 12725 12726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12727# If the template does not know about datarootdir, expand it. 12728# FIXME: This hack should be removed a few years after 2.60. 12729ac_datarootdir_hack=; ac_datarootdir_seen= 12730ac_sed_dataroot=' 12731/datarootdir/ { 12732 p 12733 q 12734} 12735/@datadir@/p 12736/@docdir@/p 12737/@infodir@/p 12738/@localedir@/p 12739/@mandir@/p' 12740case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12741*datarootdir*) ac_datarootdir_seen=yes;; 12742*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12744printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12745_ACEOF 12746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12747 ac_datarootdir_hack=' 12748 s&@datadir@&$datadir&g 12749 s&@docdir@&$docdir&g 12750 s&@infodir@&$infodir&g 12751 s&@localedir@&$localedir&g 12752 s&@mandir@&$mandir&g 12753 s&\\\${datarootdir}&$datarootdir&g' ;; 12754esac 12755_ACEOF 12756 12757# Neutralize VPATH when `$srcdir' = `.'. 12758# Shell code in configure.ac might set extrasub. 12759# FIXME: do we really want to maintain this feature? 12760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12761ac_sed_extra="$ac_vpsub 12762$extrasub 12763_ACEOF 12764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12765:t 12766/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12767s|@configure_input@|$ac_sed_conf_input|;t t 12768s&@top_builddir@&$ac_top_builddir_sub&;t t 12769s&@top_build_prefix@&$ac_top_build_prefix&;t t 12770s&@srcdir@&$ac_srcdir&;t t 12771s&@abs_srcdir@&$ac_abs_srcdir&;t t 12772s&@top_srcdir@&$ac_top_srcdir&;t t 12773s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12774s&@builddir@&$ac_builddir&;t t 12775s&@abs_builddir@&$ac_abs_builddir&;t t 12776s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12777s&@INSTALL@&$ac_INSTALL&;t t 12778s&@MKDIR_P@&$ac_MKDIR_P&;t t 12779$ac_datarootdir_hack 12780" 12781eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12782 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12783 12784test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12785 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12786 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12787 "$ac_tmp/out"`; test -z "$ac_out"; } && 12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12789which seems to be undefined. Please make sure it is defined" >&5 12790printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12791which seems to be undefined. Please make sure it is defined" >&2;} 12792 12793 rm -f "$ac_tmp/stdin" 12794 case $ac_file in 12795 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12796 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12797 esac \ 12798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12799 ;; 12800 :H) 12801 # 12802 # CONFIG_HEADER 12803 # 12804 if test x"$ac_file" != x-; then 12805 { 12806 printf "%s\n" "/* $configure_input */" >&1 \ 12807 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12808 } >"$ac_tmp/config.h" \ 12809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12810 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12812printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12813 else 12814 rm -f "$ac_file" 12815 mv "$ac_tmp/config.h" "$ac_file" \ 12816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12817 fi 12818 else 12819 printf "%s\n" "/* $configure_input */" >&1 \ 12820 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12821 || as_fn_error $? "could not create -" "$LINENO" 5 12822 fi 12823# Compute "$ac_file"'s index in $config_headers. 12824_am_arg="$ac_file" 12825_am_stamp_count=1 12826for _am_header in $config_headers :; do 12827 case $_am_header in 12828 $_am_arg | $_am_arg:* ) 12829 break ;; 12830 * ) 12831 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12832 esac 12833done 12834echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12835$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12836 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12837 X"$_am_arg" : 'X\(//\)$' \| \ 12838 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12839printf "%s\n" X"$_am_arg" | 12840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12841 s//\1/ 12842 q 12843 } 12844 /^X\(\/\/\)[^/].*/{ 12845 s//\1/ 12846 q 12847 } 12848 /^X\(\/\/\)$/{ 12849 s//\1/ 12850 q 12851 } 12852 /^X\(\/\).*/{ 12853 s//\1/ 12854 q 12855 } 12856 s/.*/./; q'`/stamp-h$_am_stamp_count 12857 ;; 12858 12859 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12860printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12861 ;; 12862 esac 12863 12864 12865 case $ac_file$ac_mode in 12866 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12867 # Older Autoconf quotes --file arguments for eval, but not when files 12868 # are listed without --file. Let's play safe and only enable the eval 12869 # if we detect the quoting. 12870 # TODO: see whether this extra hack can be removed once we start 12871 # requiring Autoconf 2.70 or later. 12872 case $CONFIG_FILES in #( 12873 *\'*) : 12874 eval set x "$CONFIG_FILES" ;; #( 12875 *) : 12876 set x $CONFIG_FILES ;; #( 12877 *) : 12878 ;; 12879esac 12880 shift 12881 # Used to flag and report bootstrapping failures. 12882 am_rc=0 12883 for am_mf 12884 do 12885 # Strip MF so we end up with the name of the file. 12886 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12887 # Check whether this is an Automake generated Makefile which includes 12888 # dependency-tracking related rules and includes. 12889 # Grep'ing the whole file directly is not great: AIX grep has a line 12890 # limit of 2048, but all sed's we know have understand at least 4000. 12891 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12892 || continue 12893 am_dirpart=`$as_dirname -- "$am_mf" || 12894$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12895 X"$am_mf" : 'X\(//\)[^/]' \| \ 12896 X"$am_mf" : 'X\(//\)$' \| \ 12897 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12898printf "%s\n" X"$am_mf" | 12899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12900 s//\1/ 12901 q 12902 } 12903 /^X\(\/\/\)[^/].*/{ 12904 s//\1/ 12905 q 12906 } 12907 /^X\(\/\/\)$/{ 12908 s//\1/ 12909 q 12910 } 12911 /^X\(\/\).*/{ 12912 s//\1/ 12913 q 12914 } 12915 s/.*/./; q'` 12916 am_filepart=`$as_basename -- "$am_mf" || 12917$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12918 X"$am_mf" : 'X\(//\)$' \| \ 12919 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12920printf "%s\n" X/"$am_mf" | 12921 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12922 s//\1/ 12923 q 12924 } 12925 /^X\/\(\/\/\)$/{ 12926 s//\1/ 12927 q 12928 } 12929 /^X\/\(\/\).*/{ 12930 s//\1/ 12931 q 12932 } 12933 s/.*/./; q'` 12934 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12935 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12936 | $MAKE -f - am--depfiles" >&5 12937 (cd "$am_dirpart" \ 12938 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12939 | $MAKE -f - am--depfiles) >&5 2>&5 12940 ac_status=$? 12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12942 (exit $ac_status); } || am_rc=$? 12943 done 12944 if test $am_rc -ne 0; then 12945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12946printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12947as_fn_error $? "Something went wrong bootstrapping makefile fragments 12948 for automatic dependency tracking. If GNU make was not used, consider 12949 re-running the configure script with MAKE=\"gmake\" (or whatever is 12950 necessary). You can also try re-running configure with the 12951 '--disable-dependency-tracking' option to at least be able to build 12952 the package (albeit without support for automatic dependency tracking). 12953See \`config.log' for more details" "$LINENO" 5; } 12954 fi 12955 { am_dirpart=; unset am_dirpart;} 12956 { am_filepart=; unset am_filepart;} 12957 { am_mf=; unset am_mf;} 12958 { am_rc=; unset am_rc;} 12959 rm -f conftest-deps.mk 12960} 12961 ;; 12962 12963 esac 12964done # for ac_tag 12965 12966 12967as_fn_exit 0 12968_ACEOF 12969ac_clean_files=$ac_clean_files_save 12970 12971test $ac_write_fail = 0 || 12972 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12973 12974 12975# configure is writing to config.log, and then calls config.status. 12976# config.status does its own redirection, appending to config.log. 12977# Unfortunately, on DOS this fails, as config.log is still kept open 12978# by configure, so config.status won't be able to write to it; its 12979# output is simply discarded. So we exec the FD to /dev/null, 12980# effectively closing config.log, so it can be properly (re)opened and 12981# appended to by config.status. When coming back to configure, we 12982# need to make the FD available again. 12983if test "$no_create" != yes; then 12984 ac_cs_success=: 12985 ac_config_status_args= 12986 test "$silent" = yes && 12987 ac_config_status_args="$ac_config_status_args --quiet" 12988 exec 5>/dev/null 12989 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12990 exec 5>>config.log 12991 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12992 # would make configure fail if this is the last instruction. 12993 $ac_cs_success || as_fn_exit 1 12994fi 12995if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12997printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12998fi 12999 13000 13001