configure revision 63323ee5
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xconsole 1.0.8. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/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/xconsole/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='xconsole' 614PACKAGE_TARNAME='xconsole' 615PACKAGE_VERSION='1.0.8' 616PACKAGE_STRING='xconsole 1.0.8' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xconsole/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 657appdefaultdir 658APPDEFS_LIBS 659APPDEFS_CFLAGS 660XCONSOLE_LIBS 661XCONSOLE_CFLAGS 662MAN_SUBSTS 663XORG_MAN_PAGE 664ADMIN_MAN_DIR 665DRIVER_MAN_DIR 666MISC_MAN_DIR 667FILE_MAN_DIR 668LIB_MAN_DIR 669APP_MAN_DIR 670ADMIN_MAN_SUFFIX 671DRIVER_MAN_SUFFIX 672MISC_MAN_SUFFIX 673FILE_MAN_SUFFIX 674LIB_MAN_SUFFIX 675APP_MAN_SUFFIX 676SED 677host_os 678host_vendor 679host_cpu 680host 681build_os 682build_vendor 683build_cpu 684build 685INSTALL_CMD 686PKG_CONFIG_LIBDIR 687PKG_CONFIG_PATH 688PKG_CONFIG 689CHANGELOG_CMD 690STRICT_CFLAGS 691CWARNFLAGS 692BASE_CFLAGS 693AM_BACKSLASH 694AM_DEFAULT_VERBOSITY 695AM_DEFAULT_V 696AM_V 697CSCOPE 698ETAGS 699CTAGS 700am__fastdepCC_FALSE 701am__fastdepCC_TRUE 702CCDEPMODE 703am__nodep 704AMDEPBACKSLASH 705AMDEP_FALSE 706AMDEP_TRUE 707am__include 708DEPDIR 709am__untar 710am__tar 711AMTAR 712am__leading_dot 713SET_MAKE 714AWK 715mkdir_p 716MKDIR_P 717INSTALL_STRIP_PROGRAM 718STRIP 719install_sh 720MAKEINFO 721AUTOHEADER 722AUTOMAKE 723AUTOCONF 724ACLOCAL 725VERSION 726PACKAGE 727CYGPATH_W 728am__isrc 729INSTALL_DATA 730INSTALL_SCRIPT 731INSTALL_PROGRAM 732OBJEXT 733EXEEXT 734ac_ct_CC 735CPPFLAGS 736LDFLAGS 737CFLAGS 738CC 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758runstatedir 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL 778am__quote' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782enable_dependency_tracking 783enable_silent_rules 784enable_selective_werror 785enable_strict_compilation 786with_appdefaultdir 787' 788 ac_precious_vars='build_alias 789host_alias 790target_alias 791CC 792CFLAGS 793LDFLAGS 794LIBS 795CPPFLAGS 796PKG_CONFIG 797PKG_CONFIG_PATH 798PKG_CONFIG_LIBDIR 799XCONSOLE_CFLAGS 800XCONSOLE_LIBS 801APPDEFS_CFLAGS 802APPDEFS_LIBS' 803 804 805# Initialize some variables set by options. 806ac_init_help= 807ac_init_version=false 808ac_unrecognized_opts= 809ac_unrecognized_sep= 810# The variables have the same names as the options, with 811# dashes changed to underlines. 812cache_file=/dev/null 813exec_prefix=NONE 814no_create= 815no_recursion= 816prefix=NONE 817program_prefix=NONE 818program_suffix=NONE 819program_transform_name=s,x,x, 820silent= 821site= 822srcdir= 823verbose= 824x_includes=NONE 825x_libraries=NONE 826 827# Installation directory options. 828# These are left unexpanded so users can "make install exec_prefix=/foo" 829# and all the variables that are supposed to be based on exec_prefix 830# by default will actually change. 831# Use braces instead of parens because sh, perl, etc. also accept them. 832# (The list follows the same order as the GNU Coding Standards.) 833bindir='${exec_prefix}/bin' 834sbindir='${exec_prefix}/sbin' 835libexecdir='${exec_prefix}/libexec' 836datarootdir='${prefix}/share' 837datadir='${datarootdir}' 838sysconfdir='${prefix}/etc' 839sharedstatedir='${prefix}/com' 840localstatedir='${prefix}/var' 841runstatedir='${localstatedir}/run' 842includedir='${prefix}/include' 843oldincludedir='/usr/include' 844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 845infodir='${datarootdir}/info' 846htmldir='${docdir}' 847dvidir='${docdir}' 848pdfdir='${docdir}' 849psdir='${docdir}' 850libdir='${exec_prefix}/lib' 851localedir='${datarootdir}/locale' 852mandir='${datarootdir}/man' 853 854ac_prev= 855ac_dashdash= 856for ac_option 857do 858 # If the previous option needs an argument, assign it. 859 if test -n "$ac_prev"; then 860 eval $ac_prev=\$ac_option 861 ac_prev= 862 continue 863 fi 864 865 case $ac_option in 866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 867 *=) ac_optarg= ;; 868 *) ac_optarg=yes ;; 869 esac 870 871 case $ac_dashdash$ac_option in 872 --) 873 ac_dashdash=yes ;; 874 875 -bindir | --bindir | --bindi | --bind | --bin | --bi) 876 ac_prev=bindir ;; 877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 878 bindir=$ac_optarg ;; 879 880 -build | --build | --buil | --bui | --bu) 881 ac_prev=build_alias ;; 882 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 883 build_alias=$ac_optarg ;; 884 885 -cache-file | --cache-file | --cache-fil | --cache-fi \ 886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 887 ac_prev=cache_file ;; 888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 890 cache_file=$ac_optarg ;; 891 892 --config-cache | -C) 893 cache_file=config.cache ;; 894 895 -datadir | --datadir | --datadi | --datad) 896 ac_prev=datadir ;; 897 -datadir=* | --datadir=* | --datadi=* | --datad=*) 898 datadir=$ac_optarg ;; 899 900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 901 | --dataroo | --dataro | --datar) 902 ac_prev=datarootdir ;; 903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 905 datarootdir=$ac_optarg ;; 906 907 -disable-* | --disable-*) 908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 909 # Reject names that are not valid shell variable names. 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 911 as_fn_error $? "invalid feature name: \`$ac_useropt'" 912 ac_useropt_orig=$ac_useropt 913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 914 case $ac_user_opts in 915 *" 916"enable_$ac_useropt" 917"*) ;; 918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 919 ac_unrecognized_sep=', ';; 920 esac 921 eval enable_$ac_useropt=no ;; 922 923 -docdir | --docdir | --docdi | --doc | --do) 924 ac_prev=docdir ;; 925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 926 docdir=$ac_optarg ;; 927 928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 929 ac_prev=dvidir ;; 930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 931 dvidir=$ac_optarg ;; 932 933 -enable-* | --enable-*) 934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 935 # Reject names that are not valid shell variable names. 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 937 as_fn_error $? "invalid feature name: \`$ac_useropt'" 938 ac_useropt_orig=$ac_useropt 939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 940 case $ac_user_opts in 941 *" 942"enable_$ac_useropt" 943"*) ;; 944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 945 ac_unrecognized_sep=', ';; 946 esac 947 eval enable_$ac_useropt=\$ac_optarg ;; 948 949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 951 | --exec | --exe | --ex) 952 ac_prev=exec_prefix ;; 953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 955 | --exec=* | --exe=* | --ex=*) 956 exec_prefix=$ac_optarg ;; 957 958 -gas | --gas | --ga | --g) 959 # Obsolete; use --with-gas. 960 with_gas=yes ;; 961 962 -help | --help | --hel | --he | -h) 963 ac_init_help=long ;; 964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 965 ac_init_help=recursive ;; 966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 967 ac_init_help=short ;; 968 969 -host | --host | --hos | --ho) 970 ac_prev=host_alias ;; 971 -host=* | --host=* | --hos=* | --ho=*) 972 host_alias=$ac_optarg ;; 973 974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 975 ac_prev=htmldir ;; 976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 977 | --ht=*) 978 htmldir=$ac_optarg ;; 979 980 -includedir | --includedir | --includedi | --included | --include \ 981 | --includ | --inclu | --incl | --inc) 982 ac_prev=includedir ;; 983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 984 | --includ=* | --inclu=* | --incl=* | --inc=*) 985 includedir=$ac_optarg ;; 986 987 -infodir | --infodir | --infodi | --infod | --info | --inf) 988 ac_prev=infodir ;; 989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 990 infodir=$ac_optarg ;; 991 992 -libdir | --libdir | --libdi | --libd) 993 ac_prev=libdir ;; 994 -libdir=* | --libdir=* | --libdi=* | --libd=*) 995 libdir=$ac_optarg ;; 996 997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 998 | --libexe | --libex | --libe) 999 ac_prev=libexecdir ;; 1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1001 | --libexe=* | --libex=* | --libe=*) 1002 libexecdir=$ac_optarg ;; 1003 1004 -localedir | --localedir | --localedi | --localed | --locale) 1005 ac_prev=localedir ;; 1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1007 localedir=$ac_optarg ;; 1008 1009 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1010 | --localstate | --localstat | --localsta | --localst | --locals) 1011 ac_prev=localstatedir ;; 1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1014 localstatedir=$ac_optarg ;; 1015 1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1017 ac_prev=mandir ;; 1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1019 mandir=$ac_optarg ;; 1020 1021 -nfp | --nfp | --nf) 1022 # Obsolete; use --without-fp. 1023 with_fp=no ;; 1024 1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1026 | --no-cr | --no-c | -n) 1027 no_create=yes ;; 1028 1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1031 no_recursion=yes ;; 1032 1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1035 | --oldin | --oldi | --old | --ol | --o) 1036 ac_prev=oldincludedir ;; 1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1040 oldincludedir=$ac_optarg ;; 1041 1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1043 ac_prev=prefix ;; 1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1045 prefix=$ac_optarg ;; 1046 1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1048 | --program-pre | --program-pr | --program-p) 1049 ac_prev=program_prefix ;; 1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1052 program_prefix=$ac_optarg ;; 1053 1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1055 | --program-suf | --program-su | --program-s) 1056 ac_prev=program_suffix ;; 1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1059 program_suffix=$ac_optarg ;; 1060 1061 -program-transform-name | --program-transform-name \ 1062 | --program-transform-nam | --program-transform-na \ 1063 | --program-transform-n | --program-transform- \ 1064 | --program-transform | --program-transfor \ 1065 | --program-transfo | --program-transf \ 1066 | --program-trans | --program-tran \ 1067 | --progr-tra | --program-tr | --program-t) 1068 ac_prev=program_transform_name ;; 1069 -program-transform-name=* | --program-transform-name=* \ 1070 | --program-transform-nam=* | --program-transform-na=* \ 1071 | --program-transform-n=* | --program-transform-=* \ 1072 | --program-transform=* | --program-transfor=* \ 1073 | --program-transfo=* | --program-transf=* \ 1074 | --program-trans=* | --program-tran=* \ 1075 | --progr-tra=* | --program-tr=* | --program-t=*) 1076 program_transform_name=$ac_optarg ;; 1077 1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1079 ac_prev=pdfdir ;; 1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1081 pdfdir=$ac_optarg ;; 1082 1083 -psdir | --psdir | --psdi | --psd | --ps) 1084 ac_prev=psdir ;; 1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1086 psdir=$ac_optarg ;; 1087 1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1089 | -silent | --silent | --silen | --sile | --sil) 1090 silent=yes ;; 1091 1092 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1093 | --runstate | --runstat | --runsta | --runst | --runs \ 1094 | --run | --ru | --r) 1095 ac_prev=runstatedir ;; 1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1098 | --run=* | --ru=* | --r=*) 1099 runstatedir=$ac_optarg ;; 1100 1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1102 ac_prev=sbindir ;; 1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1104 | --sbi=* | --sb=*) 1105 sbindir=$ac_optarg ;; 1106 1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1109 | --sharedst | --shareds | --shared | --share | --shar \ 1110 | --sha | --sh) 1111 ac_prev=sharedstatedir ;; 1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1115 | --sha=* | --sh=*) 1116 sharedstatedir=$ac_optarg ;; 1117 1118 -site | --site | --sit) 1119 ac_prev=site ;; 1120 -site=* | --site=* | --sit=*) 1121 site=$ac_optarg ;; 1122 1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1124 ac_prev=srcdir ;; 1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1126 srcdir=$ac_optarg ;; 1127 1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1129 | --syscon | --sysco | --sysc | --sys | --sy) 1130 ac_prev=sysconfdir ;; 1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1133 sysconfdir=$ac_optarg ;; 1134 1135 -target | --target | --targe | --targ | --tar | --ta | --t) 1136 ac_prev=target_alias ;; 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1138 target_alias=$ac_optarg ;; 1139 1140 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1141 verbose=yes ;; 1142 1143 -version | --version | --versio | --versi | --vers | -V) 1144 ac_init_version=: ;; 1145 1146 -with-* | --with-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: \`$ac_useropt'" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=\$ac_optarg ;; 1161 1162 -without-* | --without-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error $? "invalid package name: \`$ac_useropt'" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"with_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=no ;; 1177 1178 --x) 1179 # Obsolete; use --with-x. 1180 with_x=yes ;; 1181 1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1183 | --x-incl | --x-inc | --x-in | --x-i) 1184 ac_prev=x_includes ;; 1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1187 x_includes=$ac_optarg ;; 1188 1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1191 ac_prev=x_libraries ;; 1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1194 x_libraries=$ac_optarg ;; 1195 1196 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1197Try \`$0 --help' for more information" 1198 ;; 1199 1200 *=*) 1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1202 # Reject names that are not valid shell variable names. 1203 case $ac_envvar in #( 1204 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1206 esac 1207 eval $ac_envvar=\$ac_optarg 1208 export $ac_envvar ;; 1209 1210 *) 1211 # FIXME: should be removed in autoconf 3.0. 1212 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1214 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1216 ;; 1217 1218 esac 1219done 1220 1221if test -n "$ac_prev"; then 1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1223 as_fn_error $? "missing argument to $ac_option" 1224fi 1225 1226if test -n "$ac_unrecognized_opts"; then 1227 case $enable_option_checking in 1228 no) ;; 1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1230 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1231 esac 1232fi 1233 1234# Check all directory arguments for consistency. 1235for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1236 datadir sysconfdir sharedstatedir localstatedir includedir \ 1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1238 libdir localedir mandir runstatedir 1239do 1240 eval ac_val=\$$ac_var 1241 # Remove trailing slashes. 1242 case $ac_val in 1243 */ ) 1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1245 eval $ac_var=\$ac_val;; 1246 esac 1247 # Be sure to have absolute directory names. 1248 case $ac_val in 1249 [\\/$]* | ?:[\\/]* ) continue;; 1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1251 esac 1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1253done 1254 1255# There might be people who depend on the old broken behavior: `$host' 1256# used to hold the argument of --host etc. 1257# FIXME: To remove some day. 1258build=$build_alias 1259host=$host_alias 1260target=$target_alias 1261 1262# FIXME: To remove some day. 1263if test "x$host_alias" != x; then 1264 if test "x$build_alias" = x; then 1265 cross_compiling=maybe 1266 elif test "x$build_alias" != "x$host_alias"; then 1267 cross_compiling=yes 1268 fi 1269fi 1270 1271ac_tool_prefix= 1272test -n "$host_alias" && ac_tool_prefix=$host_alias- 1273 1274test "$silent" = yes && exec 6>/dev/null 1275 1276 1277ac_pwd=`pwd` && test -n "$ac_pwd" && 1278ac_ls_di=`ls -di .` && 1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1280 as_fn_error $? "working directory cannot be determined" 1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1282 as_fn_error $? "pwd does not report name of working directory" 1283 1284 1285# Find the source files, if location was not specified. 1286if test -z "$srcdir"; then 1287 ac_srcdir_defaulted=yes 1288 # Try the directory containing this script, then the parent directory. 1289 ac_confdir=`$as_dirname -- "$as_myself" || 1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1291 X"$as_myself" : 'X\(//\)[^/]' \| \ 1292 X"$as_myself" : 'X\(//\)$' \| \ 1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1294printf "%s\n" X"$as_myself" | 1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)[^/].*/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\).*/{ 1308 s//\1/ 1309 q 1310 } 1311 s/.*/./; q'` 1312 srcdir=$ac_confdir 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 srcdir=.. 1315 fi 1316else 1317 ac_srcdir_defaulted=no 1318fi 1319if test ! -r "$srcdir/$ac_unique_file"; then 1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1322fi 1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1324ac_abs_confdir=`( 1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1326 pwd)` 1327# When building in place, set srcdir=. 1328if test "$ac_abs_confdir" = "$ac_pwd"; then 1329 srcdir=. 1330fi 1331# Remove unnecessary trailing slashes from srcdir. 1332# Double slashes in file names in object file debugging info 1333# mess up M-x gdb in Emacs. 1334case $srcdir in 1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1336esac 1337for ac_var in $ac_precious_vars; do 1338 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_env_${ac_var}_value=\$${ac_var} 1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1342done 1343 1344# 1345# Report the --help message. 1346# 1347if test "$ac_init_help" = "long"; then 1348 # Omit some internal or obsolete options to make the list less imposing. 1349 # This message is too long to be a string in the A/UX 3.1 sh. 1350 cat <<_ACEOF 1351\`configure' configures xconsole 1.0.8 to adapt to many kinds of systems. 1352 1353Usage: $0 [OPTION]... [VAR=VALUE]... 1354 1355To assign environment variables (e.g., CC, CFLAGS...), specify them as 1356VAR=VALUE. See below for descriptions of some of the useful variables. 1357 1358Defaults for the options are specified in brackets. 1359 1360Configuration: 1361 -h, --help display this help and exit 1362 --help=short display options specific to this package 1363 --help=recursive display the short help of all the included packages 1364 -V, --version display version information and exit 1365 -q, --quiet, --silent do not print \`checking ...' messages 1366 --cache-file=FILE cache test results in FILE [disabled] 1367 -C, --config-cache alias for \`--cache-file=config.cache' 1368 -n, --no-create do not create output files 1369 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1370 1371Installation directories: 1372 --prefix=PREFIX install architecture-independent files in PREFIX 1373 [$ac_default_prefix] 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1375 [PREFIX] 1376 1377By default, \`make install' will install all the files in 1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1379an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1380for instance \`--prefix=\$HOME'. 1381 1382For better control, use the options below. 1383 1384Fine tuning of the installation directories: 1385 --bindir=DIR user executables [EPREFIX/bin] 1386 --sbindir=DIR system admin executables [EPREFIX/sbin] 1387 --libexecdir=DIR program executables [EPREFIX/libexec] 1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1392 --libdir=DIR object code libraries [EPREFIX/lib] 1393 --includedir=DIR C header files [PREFIX/include] 1394 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397 --infodir=DIR info documentation [DATAROOTDIR/info] 1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399 --mandir=DIR man documentation [DATAROOTDIR/man] 1400 --docdir=DIR documentation root [DATAROOTDIR/doc/xconsole] 1401 --htmldir=DIR html documentation [DOCDIR] 1402 --dvidir=DIR dvi documentation [DOCDIR] 1403 --pdfdir=DIR pdf documentation [DOCDIR] 1404 --psdir=DIR ps documentation [DOCDIR] 1405_ACEOF 1406 1407 cat <<\_ACEOF 1408 1409Program names: 1410 --program-prefix=PREFIX prepend PREFIX to installed program names 1411 --program-suffix=SUFFIX append SUFFIX to installed program names 1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1413 1414System types: 1415 --build=BUILD configure for building on BUILD [guessed] 1416 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1417_ACEOF 1418fi 1419 1420if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of xconsole 1.0.8:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --enable-dependency-tracking 1431 do not reject slow dependency extractors 1432 --disable-dependency-tracking 1433 speeds up one-time build 1434 --enable-silent-rules less verbose build output (undo: "make V=1") 1435 --disable-silent-rules verbose build output (undo: "make V=0") 1436 --disable-selective-werror 1437 Turn off selective compiler errors. (default: 1438 enabled) 1439 --enable-strict-compilation 1440 Enable all warnings from compiler and make them 1441 errors (default: disabled) 1442 1443Optional Packages: 1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1446 --with-appdefaultdir=<pathname> 1447 specify directory for app-defaults files (default is 1448 autodetected) 1449 1450Some influential environment variables: 1451 CC C compiler command 1452 CFLAGS C compiler flags 1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1454 nonstandard directory <lib dir> 1455 LIBS libraries to pass to the linker, e.g. -l<library> 1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1457 you have headers in a nonstandard directory <include dir> 1458 PKG_CONFIG path to pkg-config utility 1459 PKG_CONFIG_PATH 1460 directories to add to pkg-config's search path 1461 PKG_CONFIG_LIBDIR 1462 path overriding pkg-config's built-in search path 1463 XCONSOLE_CFLAGS 1464 C compiler flags for XCONSOLE, overriding pkg-config 1465 XCONSOLE_LIBS 1466 linker flags for XCONSOLE, overriding pkg-config 1467 APPDEFS_CFLAGS 1468 C compiler flags for APPDEFS, overriding pkg-config 1469 APPDEFS_LIBS 1470 linker flags for APPDEFS, overriding pkg-config 1471 1472Use these variables to override the choices made by `configure' or to help 1473it to find libraries and programs with nonstandard names/locations. 1474 1475Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/issues>. 1476_ACEOF 1477ac_status=$? 1478fi 1479 1480if test "$ac_init_help" = "recursive"; then 1481 # If there are subdirs, report their specific --help. 1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1483 test -d "$ac_dir" || 1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1485 continue 1486 ac_builddir=. 1487 1488case "$ac_dir" in 1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1490*) 1491 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1492 # A ".." for each directory in $ac_dir_suffix. 1493 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1494 case $ac_top_builddir_sub in 1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1497 esac ;; 1498esac 1499ac_abs_top_builddir=$ac_pwd 1500ac_abs_builddir=$ac_pwd$ac_dir_suffix 1501# for backward compatibility: 1502ac_top_builddir=$ac_top_build_prefix 1503 1504case $srcdir in 1505 .) # We are building in place. 1506 ac_srcdir=. 1507 ac_top_srcdir=$ac_top_builddir_sub 1508 ac_abs_top_srcdir=$ac_pwd ;; 1509 [\\/]* | ?:[\\/]* ) # Absolute name. 1510 ac_srcdir=$srcdir$ac_dir_suffix; 1511 ac_top_srcdir=$srcdir 1512 ac_abs_top_srcdir=$srcdir ;; 1513 *) # Relative name. 1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1515 ac_top_srcdir=$ac_top_build_prefix$srcdir 1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1517esac 1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1519 1520 cd "$ac_dir" || { ac_status=$?; continue; } 1521 # Check for configure.gnu first; this name is used for a wrapper for 1522 # Metaconfig's "Configure" on case-insensitive file systems. 1523 if test -f "$ac_srcdir/configure.gnu"; then 1524 echo && 1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1526 elif test -f "$ac_srcdir/configure"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure" --help=recursive 1529 else 1530 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1531 fi || ac_status=$? 1532 cd "$ac_pwd" || { ac_status=$?; break; } 1533 done 1534fi 1535 1536test -n "$ac_init_help" && exit $ac_status 1537if $ac_init_version; then 1538 cat <<\_ACEOF 1539xconsole configure 1.0.8 1540generated by GNU Autoconf 2.71 1541 1542Copyright (C) 2021 Free Software Foundation, Inc. 1543This configure script is free software; the Free Software Foundation 1544gives unlimited permission to copy, distribute and modify it. 1545_ACEOF 1546 exit 1547fi 1548 1549## ------------------------ ## 1550## Autoconf initialization. ## 1551## ------------------------ ## 1552 1553# ac_fn_c_try_compile LINENO 1554# -------------------------- 1555# Try to compile conftest.$ac_ext, and return whether this succeeded. 1556ac_fn_c_try_compile () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 rm -f conftest.$ac_objext conftest.beam 1560 if { { ac_try="$ac_compile" 1561case "(($ac_try" in 1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1563 *) ac_try_echo=$ac_try;; 1564esac 1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1566printf "%s\n" "$ac_try_echo"; } >&5 1567 (eval "$ac_compile") 2>conftest.err 1568 ac_status=$? 1569 if test -s conftest.err; then 1570 grep -v '^ *+' conftest.err >conftest.er1 1571 cat conftest.er1 >&5 1572 mv -f conftest.er1 conftest.err 1573 fi 1574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1575 test $ac_status = 0; } && { 1576 test -z "$ac_c_werror_flag" || 1577 test ! -s conftest.err 1578 } && test -s conftest.$ac_objext 1579then : 1580 ac_retval=0 1581else $as_nop 1582 printf "%s\n" "$as_me: failed program was:" >&5 1583sed 's/^/| /' conftest.$ac_ext >&5 1584 1585 ac_retval=1 1586fi 1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1588 as_fn_set_status $ac_retval 1589 1590} # ac_fn_c_try_compile 1591 1592# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1593# ------------------------------------------------------- 1594# Tests whether HEADER exists and can be compiled using the include files in 1595# INCLUDES, setting the cache variable VAR accordingly. 1596ac_fn_c_check_header_compile () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1600printf %s "checking for $2... " >&6; } 1601if eval test \${$3+y} 1602then : 1603 printf %s "(cached) " >&6 1604else $as_nop 1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1606/* end confdefs.h. */ 1607$4 1608#include <$2> 1609_ACEOF 1610if ac_fn_c_try_compile "$LINENO" 1611then : 1612 eval "$3=yes" 1613else $as_nop 1614 eval "$3=no" 1615fi 1616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1617fi 1618eval ac_res=\$$3 1619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1620printf "%s\n" "$ac_res" >&6; } 1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1622 1623} # ac_fn_c_check_header_compile 1624 1625# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1626# ------------------------------------------------------------------ 1627# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1628# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1629ac_fn_check_decl () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 as_decl_name=`echo $2|sed 's/ *(.*//'` 1633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1634printf %s "checking whether $as_decl_name is declared... " >&6; } 1635if eval test \${$3+y} 1636then : 1637 printf %s "(cached) " >&6 1638else $as_nop 1639 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1640 eval ac_save_FLAGS=\$$6 1641 as_fn_append $6 " $5" 1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1643/* end confdefs.h. */ 1644$4 1645int 1646main (void) 1647{ 1648#ifndef $as_decl_name 1649#ifdef __cplusplus 1650 (void) $as_decl_use; 1651#else 1652 (void) $as_decl_name; 1653#endif 1654#endif 1655 1656 ; 1657 return 0; 1658} 1659_ACEOF 1660if ac_fn_c_try_compile "$LINENO" 1661then : 1662 eval "$3=yes" 1663else $as_nop 1664 eval "$3=no" 1665fi 1666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1667 eval $6=\$ac_save_FLAGS 1668 1669fi 1670eval ac_res=\$$3 1671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1672printf "%s\n" "$ac_res" >&6; } 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674 1675} # ac_fn_check_decl 1676 1677# ac_fn_c_try_link LINENO 1678# ----------------------- 1679# Try to link conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_link () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1684 if { { ac_try="$ac_link" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690printf "%s\n" "$ac_try_echo"; } >&5 1691 (eval "$ac_link") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } && { 1700 test -z "$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 } && test -s conftest$ac_exeext && { 1703 test "$cross_compiling" = yes || 1704 test -x conftest$ac_exeext 1705 } 1706then : 1707 ac_retval=0 1708else $as_nop 1709 printf "%s\n" "$as_me: failed program was:" >&5 1710sed 's/^/| /' conftest.$ac_ext >&5 1711 1712 ac_retval=1 1713fi 1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1716 # interfere with the next link command; also delete a directory that is 1717 # left behind by Apple's compiler. We do this before executing the actions. 1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 as_fn_set_status $ac_retval 1721 1722} # ac_fn_c_try_link 1723 1724# ac_fn_c_check_func LINENO FUNC VAR 1725# ---------------------------------- 1726# Tests whether FUNC exists, setting the cache variable VAR accordingly 1727ac_fn_c_check_func () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731printf %s "checking for $2... " >&6; } 1732if eval test \${$3+y} 1733then : 1734 printf %s "(cached) " >&6 1735else $as_nop 1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737/* end confdefs.h. */ 1738/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1740#define $2 innocuous_$2 1741 1742/* System header to define __stub macros and hopefully few prototypes, 1743 which can conflict with char $2 (); below. */ 1744 1745#include <limits.h> 1746#undef $2 1747 1748/* Override any GCC internal prototype to avoid an error. 1749 Use char because int might match the return type of a GCC 1750 builtin and then its argument prototype would still apply. */ 1751#ifdef __cplusplus 1752extern "C" 1753#endif 1754char $2 (); 1755/* The GNU C library defines this for functions which it implements 1756 to always fail with ENOSYS. Some functions are actually named 1757 something starting with __ and the normal name is an alias. */ 1758#if defined __stub_$2 || defined __stub___$2 1759choke me 1760#endif 1761 1762int 1763main (void) 1764{ 1765return $2 (); 1766 ; 1767 return 0; 1768} 1769_ACEOF 1770if ac_fn_c_try_link "$LINENO" 1771then : 1772 eval "$3=yes" 1773else $as_nop 1774 eval "$3=no" 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1777 conftest$ac_exeext conftest.$ac_ext 1778fi 1779eval ac_res=\$$3 1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1781printf "%s\n" "$ac_res" >&6; } 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 1784} # ac_fn_c_check_func 1785ac_configure_args_raw= 1786for ac_arg 1787do 1788 case $ac_arg in 1789 *\'*) 1790 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1791 esac 1792 as_fn_append ac_configure_args_raw " '$ac_arg'" 1793done 1794 1795case $ac_configure_args_raw in 1796 *$as_nl*) 1797 ac_safe_unquote= ;; 1798 *) 1799 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1800 ac_unsafe_a="$ac_unsafe_z#~" 1801 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1802 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1803esac 1804 1805cat >config.log <<_ACEOF 1806This file contains any messages produced by compilers while 1807running configure, to aid debugging if configure makes a mistake. 1808 1809It was created by xconsole $as_me 1.0.8, which was 1810generated by GNU Autoconf 2.71. Invocation command line was 1811 1812 $ $0$ac_configure_args_raw 1813 1814_ACEOF 1815exec 5>>config.log 1816{ 1817cat <<_ASUNAME 1818## --------- ## 1819## Platform. ## 1820## --------- ## 1821 1822hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1823uname -m = `(uname -m) 2>/dev/null || echo unknown` 1824uname -r = `(uname -r) 2>/dev/null || echo unknown` 1825uname -s = `(uname -s) 2>/dev/null || echo unknown` 1826uname -v = `(uname -v) 2>/dev/null || echo unknown` 1827 1828/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1829/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1830 1831/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1832/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1833/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1834/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1835/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1836/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1837/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1838 1839_ASUNAME 1840 1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1842for as_dir in $PATH 1843do 1844 IFS=$as_save_IFS 1845 case $as_dir in #((( 1846 '') as_dir=./ ;; 1847 */) ;; 1848 *) as_dir=$as_dir/ ;; 1849 esac 1850 printf "%s\n" "PATH: $as_dir" 1851 done 1852IFS=$as_save_IFS 1853 1854} >&5 1855 1856cat >&5 <<_ACEOF 1857 1858 1859## ----------- ## 1860## Core tests. ## 1861## ----------- ## 1862 1863_ACEOF 1864 1865 1866# Keep a trace of the command line. 1867# Strip out --no-create and --no-recursion so they do not pile up. 1868# Strip out --silent because we don't want to record it for future runs. 1869# Also quote any args containing shell meta-characters. 1870# Make two passes to allow for proper duplicate-argument suppression. 1871ac_configure_args= 1872ac_configure_args0= 1873ac_configure_args1= 1874ac_must_keep_next=false 1875for ac_pass in 1 2 1876do 1877 for ac_arg 1878 do 1879 case $ac_arg in 1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1882 | -silent | --silent | --silen | --sile | --sil) 1883 continue ;; 1884 *\'*) 1885 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1886 esac 1887 case $ac_pass in 1888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1889 2) 1890 as_fn_append ac_configure_args1 " '$ac_arg'" 1891 if test $ac_must_keep_next = true; then 1892 ac_must_keep_next=false # Got value, back to normal. 1893 else 1894 case $ac_arg in 1895 *=* | --config-cache | -C | -disable-* | --disable-* \ 1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1898 | -with-* | --with-* | -without-* | --without-* | --x) 1899 case "$ac_configure_args0 " in 1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1901 esac 1902 ;; 1903 -* ) ac_must_keep_next=true ;; 1904 esac 1905 fi 1906 as_fn_append ac_configure_args " '$ac_arg'" 1907 ;; 1908 esac 1909 done 1910done 1911{ ac_configure_args0=; unset ac_configure_args0;} 1912{ ac_configure_args1=; unset ac_configure_args1;} 1913 1914# When interrupted or exit'd, cleanup temporary files, and complete 1915# config.log. We remove comments because anyway the quotes in there 1916# would cause problems or look ugly. 1917# WARNING: Use '\'' to represent an apostrophe within the trap. 1918# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1919trap 'exit_status=$? 1920 # Sanitize IFS. 1921 IFS=" "" $as_nl" 1922 # Save into config.log some information that might help in debugging. 1923 { 1924 echo 1925 1926 printf "%s\n" "## ---------------- ## 1927## Cache variables. ## 1928## ---------------- ##" 1929 echo 1930 # The following way of writing the cache mishandles newlines in values, 1931( 1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1933 eval ac_val=\$$ac_var 1934 case $ac_val in #( 1935 *${as_nl}*) 1936 case $ac_var in #( 1937 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1938printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1939 esac 1940 case $ac_var in #( 1941 _ | IFS | as_nl) ;; #( 1942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1943 *) { eval $ac_var=; unset $ac_var;} ;; 1944 esac ;; 1945 esac 1946 done 1947 (set) 2>&1 | 1948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1949 *${as_nl}ac_space=\ *) 1950 sed -n \ 1951 "s/'\''/'\''\\\\'\'''\''/g; 1952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1953 ;; #( 1954 *) 1955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1956 ;; 1957 esac | 1958 sort 1959) 1960 echo 1961 1962 printf "%s\n" "## ----------------- ## 1963## Output variables. ## 1964## ----------------- ##" 1965 echo 1966 for ac_var in $ac_subst_vars 1967 do 1968 eval ac_val=\$$ac_var 1969 case $ac_val in 1970 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1971 esac 1972 printf "%s\n" "$ac_var='\''$ac_val'\''" 1973 done | sort 1974 echo 1975 1976 if test -n "$ac_subst_files"; then 1977 printf "%s\n" "## ------------------- ## 1978## File substitutions. ## 1979## ------------------- ##" 1980 echo 1981 for ac_var in $ac_subst_files 1982 do 1983 eval ac_val=\$$ac_var 1984 case $ac_val in 1985 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1986 esac 1987 printf "%s\n" "$ac_var='\''$ac_val'\''" 1988 done | sort 1989 echo 1990 fi 1991 1992 if test -s confdefs.h; then 1993 printf "%s\n" "## ----------- ## 1994## confdefs.h. ## 1995## ----------- ##" 1996 echo 1997 cat confdefs.h 1998 echo 1999 fi 2000 test "$ac_signal" != 0 && 2001 printf "%s\n" "$as_me: caught signal $ac_signal" 2002 printf "%s\n" "$as_me: exit $exit_status" 2003 } >&5 2004 rm -f core *.core core.conftest.* && 2005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2006 exit $exit_status 2007' 0 2008for ac_signal in 1 2 13 15; do 2009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2010done 2011ac_signal=0 2012 2013# confdefs.h avoids OS command line length limits that DEFS can exceed. 2014rm -f -r conftest* confdefs.h 2015 2016printf "%s\n" "/* confdefs.h */" > confdefs.h 2017 2018# Predefined preprocessor variables. 2019 2020printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2021 2022printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2023 2024printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2025 2026printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2027 2028printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2029 2030printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2031 2032 2033# Let the site file select an alternate cache file if it wants to. 2034# Prefer an explicitly selected file to automatically selected ones. 2035if test -n "$CONFIG_SITE"; then 2036 ac_site_files="$CONFIG_SITE" 2037elif test "x$prefix" != xNONE; then 2038 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2039else 2040 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2041fi 2042 2043for ac_site_file in $ac_site_files 2044do 2045 case $ac_site_file in #( 2046 */*) : 2047 ;; #( 2048 *) : 2049 ac_site_file=./$ac_site_file ;; 2050esac 2051 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2053printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2054 sed 's/^/| /' "$ac_site_file" >&5 2055 . "$ac_site_file" \ 2056 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2057printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2058as_fn_error $? "failed to load site script $ac_site_file 2059See \`config.log' for more details" "$LINENO" 5; } 2060 fi 2061done 2062 2063if test -r "$cache_file"; then 2064 # Some versions of bash will fail to source /dev/null (special files 2065 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2066 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2068printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2069 case $cache_file in 2070 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2071 *) . "./$cache_file";; 2072 esac 2073 fi 2074else 2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2076printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2077 >$cache_file 2078fi 2079 2080as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2081# Test code for whether the C compiler supports C89 (global declarations) 2082ac_c_conftest_c89_globals=' 2083/* Does the compiler advertise C89 conformance? 2084 Do not test the value of __STDC__, because some compilers set it to 0 2085 while being otherwise adequately conformant. */ 2086#if !defined __STDC__ 2087# error "Compiler does not advertise C89 conformance" 2088#endif 2089 2090#include <stddef.h> 2091#include <stdarg.h> 2092struct stat; 2093/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2094struct buf { int x; }; 2095struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2096static char *e (p, i) 2097 char **p; 2098 int i; 2099{ 2100 return p[i]; 2101} 2102static char *f (char * (*g) (char **, int), char **p, ...) 2103{ 2104 char *s; 2105 va_list v; 2106 va_start (v,p); 2107 s = g (p, va_arg (v,int)); 2108 va_end (v); 2109 return s; 2110} 2111 2112/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2113 function prototypes and stuff, but not \xHH hex character constants. 2114 These do not provoke an error unfortunately, instead are silently treated 2115 as an "x". The following induces an error, until -std is added to get 2116 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2117 array size at least. It is necessary to write \x00 == 0 to get something 2118 that is true only with -std. */ 2119int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2120 2121/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2122 inside strings and character constants. */ 2123#define FOO(x) '\''x'\'' 2124int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2125 2126int test (int i, double x); 2127struct s1 {int (*f) (int a);}; 2128struct s2 {int (*f) (double a);}; 2129int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2130 int, int);' 2131 2132# Test code for whether the C compiler supports C89 (body of main). 2133ac_c_conftest_c89_main=' 2134ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2135' 2136 2137# Test code for whether the C compiler supports C99 (global declarations) 2138ac_c_conftest_c99_globals=' 2139// Does the compiler advertise C99 conformance? 2140#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2141# error "Compiler does not advertise C99 conformance" 2142#endif 2143 2144#include <stdbool.h> 2145extern int puts (const char *); 2146extern int printf (const char *, ...); 2147extern int dprintf (int, const char *, ...); 2148extern void *malloc (size_t); 2149 2150// Check varargs macros. These examples are taken from C99 6.10.3.5. 2151// dprintf is used instead of fprintf to avoid needing to declare 2152// FILE and stderr. 2153#define debug(...) dprintf (2, __VA_ARGS__) 2154#define showlist(...) puts (#__VA_ARGS__) 2155#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2156static void 2157test_varargs_macros (void) 2158{ 2159 int x = 1234; 2160 int y = 5678; 2161 debug ("Flag"); 2162 debug ("X = %d\n", x); 2163 showlist (The first, second, and third items.); 2164 report (x>y, "x is %d but y is %d", x, y); 2165} 2166 2167// Check long long types. 2168#define BIG64 18446744073709551615ull 2169#define BIG32 4294967295ul 2170#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2171#if !BIG_OK 2172 #error "your preprocessor is broken" 2173#endif 2174#if BIG_OK 2175#else 2176 #error "your preprocessor is broken" 2177#endif 2178static long long int bignum = -9223372036854775807LL; 2179static unsigned long long int ubignum = BIG64; 2180 2181struct incomplete_array 2182{ 2183 int datasize; 2184 double data[]; 2185}; 2186 2187struct named_init { 2188 int number; 2189 const wchar_t *name; 2190 double average; 2191}; 2192 2193typedef const char *ccp; 2194 2195static inline int 2196test_restrict (ccp restrict text) 2197{ 2198 // See if C++-style comments work. 2199 // Iterate through items via the restricted pointer. 2200 // Also check for declarations in for loops. 2201 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2202 continue; 2203 return 0; 2204} 2205 2206// Check varargs and va_copy. 2207static bool 2208test_varargs (const char *format, ...) 2209{ 2210 va_list args; 2211 va_start (args, format); 2212 va_list args_copy; 2213 va_copy (args_copy, args); 2214 2215 const char *str = ""; 2216 int number = 0; 2217 float fnumber = 0; 2218 2219 while (*format) 2220 { 2221 switch (*format++) 2222 { 2223 case '\''s'\'': // string 2224 str = va_arg (args_copy, const char *); 2225 break; 2226 case '\''d'\'': // int 2227 number = va_arg (args_copy, int); 2228 break; 2229 case '\''f'\'': // float 2230 fnumber = va_arg (args_copy, double); 2231 break; 2232 default: 2233 break; 2234 } 2235 } 2236 va_end (args_copy); 2237 va_end (args); 2238 2239 return *str && number && fnumber; 2240} 2241' 2242 2243# Test code for whether the C compiler supports C99 (body of main). 2244ac_c_conftest_c99_main=' 2245 // Check bool. 2246 _Bool success = false; 2247 success |= (argc != 0); 2248 2249 // Check restrict. 2250 if (test_restrict ("String literal") == 0) 2251 success = true; 2252 char *restrict newvar = "Another string"; 2253 2254 // Check varargs. 2255 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2256 test_varargs_macros (); 2257 2258 // Check flexible array members. 2259 struct incomplete_array *ia = 2260 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2261 ia->datasize = 10; 2262 for (int i = 0; i < ia->datasize; ++i) 2263 ia->data[i] = i * 1.234; 2264 2265 // Check named initializers. 2266 struct named_init ni = { 2267 .number = 34, 2268 .name = L"Test wide string", 2269 .average = 543.34343, 2270 }; 2271 2272 ni.number = 58; 2273 2274 int dynamic_array[ni.number]; 2275 dynamic_array[0] = argv[0][0]; 2276 dynamic_array[ni.number - 1] = 543; 2277 2278 // work around unused variable warnings 2279 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2280 || dynamic_array[ni.number - 1] != 543); 2281' 2282 2283# Test code for whether the C compiler supports C11 (global declarations) 2284ac_c_conftest_c11_globals=' 2285// Does the compiler advertise C11 conformance? 2286#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2287# error "Compiler does not advertise C11 conformance" 2288#endif 2289 2290// Check _Alignas. 2291char _Alignas (double) aligned_as_double; 2292char _Alignas (0) no_special_alignment; 2293extern char aligned_as_int; 2294char _Alignas (0) _Alignas (int) aligned_as_int; 2295 2296// Check _Alignof. 2297enum 2298{ 2299 int_alignment = _Alignof (int), 2300 int_array_alignment = _Alignof (int[100]), 2301 char_alignment = _Alignof (char) 2302}; 2303_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2304 2305// Check _Noreturn. 2306int _Noreturn does_not_return (void) { for (;;) continue; } 2307 2308// Check _Static_assert. 2309struct test_static_assert 2310{ 2311 int x; 2312 _Static_assert (sizeof (int) <= sizeof (long int), 2313 "_Static_assert does not work in struct"); 2314 long int y; 2315}; 2316 2317// Check UTF-8 literals. 2318#define u8 syntax error! 2319char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2320 2321// Check duplicate typedefs. 2322typedef long *long_ptr; 2323typedef long int *long_ptr; 2324typedef long_ptr long_ptr; 2325 2326// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2327struct anonymous 2328{ 2329 union { 2330 struct { int i; int j; }; 2331 struct { int k; long int l; } w; 2332 }; 2333 int m; 2334} v1; 2335' 2336 2337# Test code for whether the C compiler supports C11 (body of main). 2338ac_c_conftest_c11_main=' 2339 _Static_assert ((offsetof (struct anonymous, i) 2340 == offsetof (struct anonymous, w.k)), 2341 "Anonymous union alignment botch"); 2342 v1.i = 2; 2343 v1.w.k = 5; 2344 ok |= v1.i != 5; 2345' 2346 2347# Test code for whether the C compiler supports C11 (complete). 2348ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2349${ac_c_conftest_c99_globals} 2350${ac_c_conftest_c11_globals} 2351 2352int 2353main (int argc, char **argv) 2354{ 2355 int ok = 0; 2356 ${ac_c_conftest_c89_main} 2357 ${ac_c_conftest_c99_main} 2358 ${ac_c_conftest_c11_main} 2359 return ok; 2360} 2361" 2362 2363# Test code for whether the C compiler supports C99 (complete). 2364ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2365${ac_c_conftest_c99_globals} 2366 2367int 2368main (int argc, char **argv) 2369{ 2370 int ok = 0; 2371 ${ac_c_conftest_c89_main} 2372 ${ac_c_conftest_c99_main} 2373 return ok; 2374} 2375" 2376 2377# Test code for whether the C compiler supports C89 (complete). 2378ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2379 2380int 2381main (int argc, char **argv) 2382{ 2383 int ok = 0; 2384 ${ac_c_conftest_c89_main} 2385 return ok; 2386} 2387" 2388 2389as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2390as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2391as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2392as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2393as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2394as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2395as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2396as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2397as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2398as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2399 2400# Auxiliary files required by this configure script. 2401ac_aux_files="config.guess config.sub missing install-sh compile" 2402 2403# Locations in which to look for auxiliary files. 2404ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2405 2406# Search for a directory containing all of the required auxiliary files, 2407# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2408# If we don't find one directory that contains all the files we need, 2409# we report the set of missing files from the *first* directory in 2410# $ac_aux_dir_candidates and give up. 2411ac_missing_aux_files="" 2412ac_first_candidate=: 2413printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2415as_found=false 2416for as_dir in $ac_aux_dir_candidates 2417do 2418 IFS=$as_save_IFS 2419 case $as_dir in #((( 2420 '') as_dir=./ ;; 2421 */) ;; 2422 *) as_dir=$as_dir/ ;; 2423 esac 2424 as_found=: 2425 2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2427 ac_aux_dir_found=yes 2428 ac_install_sh= 2429 for ac_aux in $ac_aux_files 2430 do 2431 # As a special case, if "install-sh" is required, that requirement 2432 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2433 # and $ac_install_sh is set appropriately for whichever one is found. 2434 if test x"$ac_aux" = x"install-sh" 2435 then 2436 if test -f "${as_dir}install-sh"; then 2437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2438 ac_install_sh="${as_dir}install-sh -c" 2439 elif test -f "${as_dir}install.sh"; then 2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2441 ac_install_sh="${as_dir}install.sh -c" 2442 elif test -f "${as_dir}shtool"; then 2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2444 ac_install_sh="${as_dir}shtool install -c" 2445 else 2446 ac_aux_dir_found=no 2447 if $ac_first_candidate; then 2448 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2449 else 2450 break 2451 fi 2452 fi 2453 else 2454 if test -f "${as_dir}${ac_aux}"; then 2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2456 else 2457 ac_aux_dir_found=no 2458 if $ac_first_candidate; then 2459 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2460 else 2461 break 2462 fi 2463 fi 2464 fi 2465 done 2466 if test "$ac_aux_dir_found" = yes; then 2467 ac_aux_dir="$as_dir" 2468 break 2469 fi 2470 ac_first_candidate=false 2471 2472 as_found=false 2473done 2474IFS=$as_save_IFS 2475if $as_found 2476then : 2477 2478else $as_nop 2479 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2480fi 2481 2482 2483# These three variables are undocumented and unsupported, 2484# and are intended to be withdrawn in a future Autoconf release. 2485# They can cause serious problems if a builder's source tree is in a directory 2486# whose full name contains unusual characters. 2487if test -f "${ac_aux_dir}config.guess"; then 2488 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2489fi 2490if test -f "${ac_aux_dir}config.sub"; then 2491 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2492fi 2493if test -f "$ac_aux_dir/configure"; then 2494 ac_configure="$SHELL ${ac_aux_dir}configure" 2495fi 2496 2497# Check that the precious variables saved in the cache have kept the same 2498# value. 2499ac_cache_corrupted=false 2500for ac_var in $ac_precious_vars; do 2501 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2502 eval ac_new_set=\$ac_env_${ac_var}_set 2503 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2504 eval ac_new_val=\$ac_env_${ac_var}_value 2505 case $ac_old_set,$ac_new_set in 2506 set,) 2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2508printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2509 ac_cache_corrupted=: ;; 2510 ,set) 2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2512printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2513 ac_cache_corrupted=: ;; 2514 ,);; 2515 *) 2516 if test "x$ac_old_val" != "x$ac_new_val"; then 2517 # differences in whitespace do not lead to failure. 2518 ac_old_val_w=`echo x $ac_old_val` 2519 ac_new_val_w=`echo x $ac_new_val` 2520 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2522printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2523 ac_cache_corrupted=: 2524 else 2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2526printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2527 eval $ac_var=\$ac_old_val 2528 fi 2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2530printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2532printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2533 fi;; 2534 esac 2535 # Pass precious variables to config.status. 2536 if test "$ac_new_set" = set; then 2537 case $ac_new_val in 2538 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2539 *) ac_arg=$ac_var=$ac_new_val ;; 2540 esac 2541 case " $ac_configure_args " in 2542 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2543 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2544 esac 2545 fi 2546done 2547if $ac_cache_corrupted; then 2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2549printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2551printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2552 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2553 and start over" "$LINENO" 5 2554fi 2555## -------------------- ## 2556## Main body of script. ## 2557## -------------------- ## 2558 2559ac_ext=c 2560ac_cpp='$CPP $CPPFLAGS' 2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2563ac_compiler_gnu=$ac_cv_c_compiler_gnu 2564 2565 2566 2567ac_config_headers="$ac_config_headers config.h" 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580# Expand $ac_aux_dir to an absolute path. 2581am_aux_dir=`cd "$ac_aux_dir" && pwd` 2582 2583ac_ext=c 2584ac_cpp='$CPP $CPPFLAGS' 2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2587ac_compiler_gnu=$ac_cv_c_compiler_gnu 2588if test -n "$ac_tool_prefix"; then 2589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2590set dummy ${ac_tool_prefix}gcc; ac_word=$2 2591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2592printf %s "checking for $ac_word... " >&6; } 2593if test ${ac_cv_prog_CC+y} 2594then : 2595 printf %s "(cached) " >&6 2596else $as_nop 2597 if test -n "$CC"; then 2598 ac_cv_prog_CC="$CC" # Let the user override the test. 2599else 2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2601for as_dir in $PATH 2602do 2603 IFS=$as_save_IFS 2604 case $as_dir in #((( 2605 '') as_dir=./ ;; 2606 */) ;; 2607 *) as_dir=$as_dir/ ;; 2608 esac 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2611 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2613 break 2 2614 fi 2615done 2616 done 2617IFS=$as_save_IFS 2618 2619fi 2620fi 2621CC=$ac_cv_prog_CC 2622if test -n "$CC"; then 2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2624printf "%s\n" "$CC" >&6; } 2625else 2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2627printf "%s\n" "no" >&6; } 2628fi 2629 2630 2631fi 2632if test -z "$ac_cv_prog_CC"; then 2633 ac_ct_CC=$CC 2634 # Extract the first word of "gcc", so it can be a program name with args. 2635set dummy gcc; ac_word=$2 2636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2637printf %s "checking for $ac_word... " >&6; } 2638if test ${ac_cv_prog_ac_ct_CC+y} 2639then : 2640 printf %s "(cached) " >&6 2641else $as_nop 2642 if test -n "$ac_ct_CC"; then 2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2644else 2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2646for as_dir in $PATH 2647do 2648 IFS=$as_save_IFS 2649 case $as_dir in #((( 2650 '') as_dir=./ ;; 2651 */) ;; 2652 *) as_dir=$as_dir/ ;; 2653 esac 2654 for ac_exec_ext in '' $ac_executable_extensions; do 2655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2656 ac_cv_prog_ac_ct_CC="gcc" 2657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2658 break 2 2659 fi 2660done 2661 done 2662IFS=$as_save_IFS 2663 2664fi 2665fi 2666ac_ct_CC=$ac_cv_prog_ac_ct_CC 2667if test -n "$ac_ct_CC"; then 2668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2669printf "%s\n" "$ac_ct_CC" >&6; } 2670else 2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2672printf "%s\n" "no" >&6; } 2673fi 2674 2675 if test "x$ac_ct_CC" = x; then 2676 CC="" 2677 else 2678 case $cross_compiling:$ac_tool_warned in 2679yes:) 2680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2681printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2682ac_tool_warned=yes ;; 2683esac 2684 CC=$ac_ct_CC 2685 fi 2686else 2687 CC="$ac_cv_prog_CC" 2688fi 2689 2690if test -z "$CC"; then 2691 if test -n "$ac_tool_prefix"; then 2692 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2693set dummy ${ac_tool_prefix}cc; ac_word=$2 2694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2695printf %s "checking for $ac_word... " >&6; } 2696if test ${ac_cv_prog_CC+y} 2697then : 2698 printf %s "(cached) " >&6 2699else $as_nop 2700 if test -n "$CC"; then 2701 ac_cv_prog_CC="$CC" # Let the user override the test. 2702else 2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2704for as_dir in $PATH 2705do 2706 IFS=$as_save_IFS 2707 case $as_dir in #((( 2708 '') as_dir=./ ;; 2709 */) ;; 2710 *) as_dir=$as_dir/ ;; 2711 esac 2712 for ac_exec_ext in '' $ac_executable_extensions; do 2713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2714 ac_cv_prog_CC="${ac_tool_prefix}cc" 2715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2716 break 2 2717 fi 2718done 2719 done 2720IFS=$as_save_IFS 2721 2722fi 2723fi 2724CC=$ac_cv_prog_CC 2725if test -n "$CC"; then 2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2727printf "%s\n" "$CC" >&6; } 2728else 2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2730printf "%s\n" "no" >&6; } 2731fi 2732 2733 2734 fi 2735fi 2736if test -z "$CC"; then 2737 # Extract the first word of "cc", so it can be a program name with args. 2738set dummy cc; ac_word=$2 2739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2740printf %s "checking for $ac_word... " >&6; } 2741if test ${ac_cv_prog_CC+y} 2742then : 2743 printf %s "(cached) " >&6 2744else $as_nop 2745 if test -n "$CC"; then 2746 ac_cv_prog_CC="$CC" # Let the user override the test. 2747else 2748 ac_prog_rejected=no 2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2750for as_dir in $PATH 2751do 2752 IFS=$as_save_IFS 2753 case $as_dir in #((( 2754 '') as_dir=./ ;; 2755 */) ;; 2756 *) as_dir=$as_dir/ ;; 2757 esac 2758 for ac_exec_ext in '' $ac_executable_extensions; do 2759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2760 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2761 ac_prog_rejected=yes 2762 continue 2763 fi 2764 ac_cv_prog_CC="cc" 2765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2766 break 2 2767 fi 2768done 2769 done 2770IFS=$as_save_IFS 2771 2772if test $ac_prog_rejected = yes; then 2773 # We found a bogon in the path, so make sure we never use it. 2774 set dummy $ac_cv_prog_CC 2775 shift 2776 if test $# != 0; then 2777 # We chose a different compiler from the bogus one. 2778 # However, it has the same basename, so the bogon will be chosen 2779 # first if we set CC to just the basename; use the full file name. 2780 shift 2781 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2782 fi 2783fi 2784fi 2785fi 2786CC=$ac_cv_prog_CC 2787if test -n "$CC"; then 2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2789printf "%s\n" "$CC" >&6; } 2790else 2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2792printf "%s\n" "no" >&6; } 2793fi 2794 2795 2796fi 2797if test -z "$CC"; then 2798 if test -n "$ac_tool_prefix"; then 2799 for ac_prog in cl.exe 2800 do 2801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2802set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2804printf %s "checking for $ac_word... " >&6; } 2805if test ${ac_cv_prog_CC+y} 2806then : 2807 printf %s "(cached) " >&6 2808else $as_nop 2809 if test -n "$CC"; then 2810 ac_cv_prog_CC="$CC" # Let the user override the test. 2811else 2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813for as_dir in $PATH 2814do 2815 IFS=$as_save_IFS 2816 case $as_dir in #((( 2817 '') as_dir=./ ;; 2818 */) ;; 2819 *) as_dir=$as_dir/ ;; 2820 esac 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2825 break 2 2826 fi 2827done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832fi 2833CC=$ac_cv_prog_CC 2834if test -n "$CC"; then 2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2836printf "%s\n" "$CC" >&6; } 2837else 2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2839printf "%s\n" "no" >&6; } 2840fi 2841 2842 2843 test -n "$CC" && break 2844 done 2845fi 2846if test -z "$CC"; then 2847 ac_ct_CC=$CC 2848 for ac_prog in cl.exe 2849do 2850 # Extract the first word of "$ac_prog", so it can be a program name with args. 2851set dummy $ac_prog; ac_word=$2 2852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2853printf %s "checking for $ac_word... " >&6; } 2854if test ${ac_cv_prog_ac_ct_CC+y} 2855then : 2856 printf %s "(cached) " >&6 2857else $as_nop 2858 if test -n "$ac_ct_CC"; then 2859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2860else 2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH 2863do 2864 IFS=$as_save_IFS 2865 case $as_dir in #((( 2866 '') as_dir=./ ;; 2867 */) ;; 2868 *) as_dir=$as_dir/ ;; 2869 esac 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2872 ac_cv_prog_ac_ct_CC="$ac_prog" 2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2874 break 2 2875 fi 2876done 2877 done 2878IFS=$as_save_IFS 2879 2880fi 2881fi 2882ac_ct_CC=$ac_cv_prog_ac_ct_CC 2883if test -n "$ac_ct_CC"; then 2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2885printf "%s\n" "$ac_ct_CC" >&6; } 2886else 2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888printf "%s\n" "no" >&6; } 2889fi 2890 2891 2892 test -n "$ac_ct_CC" && break 2893done 2894 2895 if test "x$ac_ct_CC" = x; then 2896 CC="" 2897 else 2898 case $cross_compiling:$ac_tool_warned in 2899yes:) 2900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2901printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2902ac_tool_warned=yes ;; 2903esac 2904 CC=$ac_ct_CC 2905 fi 2906fi 2907 2908fi 2909if test -z "$CC"; then 2910 if test -n "$ac_tool_prefix"; then 2911 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2912set dummy ${ac_tool_prefix}clang; ac_word=$2 2913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914printf %s "checking for $ac_word... " >&6; } 2915if test ${ac_cv_prog_CC+y} 2916then : 2917 printf %s "(cached) " >&6 2918else $as_nop 2919 if test -n "$CC"; then 2920 ac_cv_prog_CC="$CC" # Let the user override the test. 2921else 2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923for as_dir in $PATH 2924do 2925 IFS=$as_save_IFS 2926 case $as_dir in #((( 2927 '') as_dir=./ ;; 2928 */) ;; 2929 *) as_dir=$as_dir/ ;; 2930 esac 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2933 ac_cv_prog_CC="${ac_tool_prefix}clang" 2934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938 done 2939IFS=$as_save_IFS 2940 2941fi 2942fi 2943CC=$ac_cv_prog_CC 2944if test -n "$CC"; then 2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2946printf "%s\n" "$CC" >&6; } 2947else 2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949printf "%s\n" "no" >&6; } 2950fi 2951 2952 2953fi 2954if test -z "$ac_cv_prog_CC"; then 2955 ac_ct_CC=$CC 2956 # Extract the first word of "clang", so it can be a program name with args. 2957set dummy clang; ac_word=$2 2958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2959printf %s "checking for $ac_word... " >&6; } 2960if test ${ac_cv_prog_ac_ct_CC+y} 2961then : 2962 printf %s "(cached) " >&6 2963else $as_nop 2964 if test -n "$ac_ct_CC"; then 2965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2966else 2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2968for as_dir in $PATH 2969do 2970 IFS=$as_save_IFS 2971 case $as_dir in #((( 2972 '') as_dir=./ ;; 2973 */) ;; 2974 *) as_dir=$as_dir/ ;; 2975 esac 2976 for ac_exec_ext in '' $ac_executable_extensions; do 2977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2978 ac_cv_prog_ac_ct_CC="clang" 2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2980 break 2 2981 fi 2982done 2983 done 2984IFS=$as_save_IFS 2985 2986fi 2987fi 2988ac_ct_CC=$ac_cv_prog_ac_ct_CC 2989if test -n "$ac_ct_CC"; then 2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2991printf "%s\n" "$ac_ct_CC" >&6; } 2992else 2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2994printf "%s\n" "no" >&6; } 2995fi 2996 2997 if test "x$ac_ct_CC" = x; then 2998 CC="" 2999 else 3000 case $cross_compiling:$ac_tool_warned in 3001yes:) 3002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3003printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3004ac_tool_warned=yes ;; 3005esac 3006 CC=$ac_ct_CC 3007 fi 3008else 3009 CC="$ac_cv_prog_CC" 3010fi 3011 3012fi 3013 3014 3015test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3016printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3017as_fn_error $? "no acceptable C compiler found in \$PATH 3018See \`config.log' for more details" "$LINENO" 5; } 3019 3020# Provide some information about the compiler. 3021printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3022set X $ac_compile 3023ac_compiler=$2 3024for ac_option in --version -v -V -qversion -version; do 3025 { { ac_try="$ac_compiler $ac_option >&5" 3026case "(($ac_try" in 3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3028 *) ac_try_echo=$ac_try;; 3029esac 3030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3031printf "%s\n" "$ac_try_echo"; } >&5 3032 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3033 ac_status=$? 3034 if test -s conftest.err; then 3035 sed '10a\ 3036... rest of stderr output deleted ... 3037 10q' conftest.err >conftest.er1 3038 cat conftest.er1 >&5 3039 fi 3040 rm -f conftest.er1 conftest.err 3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3042 test $ac_status = 0; } 3043done 3044 3045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3046/* end confdefs.h. */ 3047 3048int 3049main (void) 3050{ 3051 3052 ; 3053 return 0; 3054} 3055_ACEOF 3056ac_clean_files_save=$ac_clean_files 3057ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3058# Try to create an executable without -o first, disregard a.out. 3059# It will help us diagnose broken compilers, and finding out an intuition 3060# of exeext. 3061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3062printf %s "checking whether the C compiler works... " >&6; } 3063ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3064 3065# The possible output files: 3066ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3067 3068ac_rmfiles= 3069for ac_file in $ac_files 3070do 3071 case $ac_file in 3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3073 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3074 esac 3075done 3076rm -f $ac_rmfiles 3077 3078if { { ac_try="$ac_link_default" 3079case "(($ac_try" in 3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3081 *) ac_try_echo=$ac_try;; 3082esac 3083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3084printf "%s\n" "$ac_try_echo"; } >&5 3085 (eval "$ac_link_default") 2>&5 3086 ac_status=$? 3087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3088 test $ac_status = 0; } 3089then : 3090 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3091# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3092# in a Makefile. We should not override ac_cv_exeext if it was cached, 3093# so that the user can short-circuit this test for compilers unknown to 3094# Autoconf. 3095for ac_file in $ac_files '' 3096do 3097 test -f "$ac_file" || continue 3098 case $ac_file in 3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3100 ;; 3101 [ab].out ) 3102 # We found the default executable, but exeext='' is most 3103 # certainly right. 3104 break;; 3105 *.* ) 3106 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3107 then :; else 3108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3109 fi 3110 # We set ac_cv_exeext here because the later test for it is not 3111 # safe: cross compilers may not add the suffix if given an `-o' 3112 # argument, so we may need to know it at that point already. 3113 # Even if this section looks crufty: it has the advantage of 3114 # actually working. 3115 break;; 3116 * ) 3117 break;; 3118 esac 3119done 3120test "$ac_cv_exeext" = no && ac_cv_exeext= 3121 3122else $as_nop 3123 ac_file='' 3124fi 3125if test -z "$ac_file" 3126then : 3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128printf "%s\n" "no" >&6; } 3129printf "%s\n" "$as_me: failed program was:" >&5 3130sed 's/^/| /' conftest.$ac_ext >&5 3131 3132{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3133printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3134as_fn_error 77 "C compiler cannot create executables 3135See \`config.log' for more details" "$LINENO" 5; } 3136else $as_nop 3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3138printf "%s\n" "yes" >&6; } 3139fi 3140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3141printf %s "checking for C compiler default output file name... " >&6; } 3142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3143printf "%s\n" "$ac_file" >&6; } 3144ac_exeext=$ac_cv_exeext 3145 3146rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3147ac_clean_files=$ac_clean_files_save 3148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3149printf %s "checking for suffix of executables... " >&6; } 3150if { { ac_try="$ac_link" 3151case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3156printf "%s\n" "$ac_try_echo"; } >&5 3157 (eval "$ac_link") 2>&5 3158 ac_status=$? 3159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3160 test $ac_status = 0; } 3161then : 3162 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3163# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3164# work properly (i.e., refer to `conftest.exe'), while it won't with 3165# `rm'. 3166for ac_file in conftest.exe conftest conftest.*; do 3167 test -f "$ac_file" || continue 3168 case $ac_file in 3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3171 break;; 3172 * ) break;; 3173 esac 3174done 3175else $as_nop 3176 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3177printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3178as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3179See \`config.log' for more details" "$LINENO" 5; } 3180fi 3181rm -f conftest conftest$ac_cv_exeext 3182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3183printf "%s\n" "$ac_cv_exeext" >&6; } 3184 3185rm -f conftest.$ac_ext 3186EXEEXT=$ac_cv_exeext 3187ac_exeext=$EXEEXT 3188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3189/* end confdefs.h. */ 3190#include <stdio.h> 3191int 3192main (void) 3193{ 3194FILE *f = fopen ("conftest.out", "w"); 3195 return ferror (f) || fclose (f) != 0; 3196 3197 ; 3198 return 0; 3199} 3200_ACEOF 3201ac_clean_files="$ac_clean_files conftest.out" 3202# Check that the compiler produces executables we can run. If not, either 3203# the compiler is broken, or we cross compile. 3204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3205printf %s "checking whether we are cross compiling... " >&6; } 3206if test "$cross_compiling" != yes; then 3207 { { ac_try="$ac_link" 3208case "(($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_link") 2>&5 3215 ac_status=$? 3216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3217 test $ac_status = 0; } 3218 if { ac_try='./conftest$ac_cv_exeext' 3219 { { case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3224printf "%s\n" "$ac_try_echo"; } >&5 3225 (eval "$ac_try") 2>&5 3226 ac_status=$? 3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3228 test $ac_status = 0; }; }; then 3229 cross_compiling=no 3230 else 3231 if test "$cross_compiling" = maybe; then 3232 cross_compiling=yes 3233 else 3234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3235printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3236as_fn_error 77 "cannot run C compiled programs. 3237If you meant to cross compile, use \`--host'. 3238See \`config.log' for more details" "$LINENO" 5; } 3239 fi 3240 fi 3241fi 3242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3243printf "%s\n" "$cross_compiling" >&6; } 3244 3245rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3246ac_clean_files=$ac_clean_files_save 3247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3248printf %s "checking for suffix of object files... " >&6; } 3249if test ${ac_cv_objext+y} 3250then : 3251 printf %s "(cached) " >&6 3252else $as_nop 3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3254/* end confdefs.h. */ 3255 3256int 3257main (void) 3258{ 3259 3260 ; 3261 return 0; 3262} 3263_ACEOF 3264rm -f conftest.o conftest.obj 3265if { { ac_try="$ac_compile" 3266case "(($ac_try" in 3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3268 *) ac_try_echo=$ac_try;; 3269esac 3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3271printf "%s\n" "$ac_try_echo"; } >&5 3272 (eval "$ac_compile") 2>&5 3273 ac_status=$? 3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3275 test $ac_status = 0; } 3276then : 3277 for ac_file in conftest.o conftest.obj conftest.*; do 3278 test -f "$ac_file" || continue; 3279 case $ac_file in 3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3282 break;; 3283 esac 3284done 3285else $as_nop 3286 printf "%s\n" "$as_me: failed program was:" >&5 3287sed 's/^/| /' conftest.$ac_ext >&5 3288 3289{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3290printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3291as_fn_error $? "cannot compute suffix of object files: cannot compile 3292See \`config.log' for more details" "$LINENO" 5; } 3293fi 3294rm -f conftest.$ac_cv_objext conftest.$ac_ext 3295fi 3296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3297printf "%s\n" "$ac_cv_objext" >&6; } 3298OBJEXT=$ac_cv_objext 3299ac_objext=$OBJEXT 3300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3301printf %s "checking whether the compiler supports GNU C... " >&6; } 3302if test ${ac_cv_c_compiler_gnu+y} 3303then : 3304 printf %s "(cached) " >&6 3305else $as_nop 3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3307/* end confdefs.h. */ 3308 3309int 3310main (void) 3311{ 3312#ifndef __GNUC__ 3313 choke me 3314#endif 3315 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320if ac_fn_c_try_compile "$LINENO" 3321then : 3322 ac_compiler_gnu=yes 3323else $as_nop 3324 ac_compiler_gnu=no 3325fi 3326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3327ac_cv_c_compiler_gnu=$ac_compiler_gnu 3328 3329fi 3330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3331printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3332ac_compiler_gnu=$ac_cv_c_compiler_gnu 3333 3334if test $ac_compiler_gnu = yes; then 3335 GCC=yes 3336else 3337 GCC= 3338fi 3339ac_test_CFLAGS=${CFLAGS+y} 3340ac_save_CFLAGS=$CFLAGS 3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3342printf %s "checking whether $CC accepts -g... " >&6; } 3343if test ${ac_cv_prog_cc_g+y} 3344then : 3345 printf %s "(cached) " >&6 3346else $as_nop 3347 ac_save_c_werror_flag=$ac_c_werror_flag 3348 ac_c_werror_flag=yes 3349 ac_cv_prog_cc_g=no 3350 CFLAGS="-g" 3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3352/* end confdefs.h. */ 3353 3354int 3355main (void) 3356{ 3357 3358 ; 3359 return 0; 3360} 3361_ACEOF 3362if ac_fn_c_try_compile "$LINENO" 3363then : 3364 ac_cv_prog_cc_g=yes 3365else $as_nop 3366 CFLAGS="" 3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368/* end confdefs.h. */ 3369 3370int 3371main (void) 3372{ 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378if ac_fn_c_try_compile "$LINENO" 3379then : 3380 3381else $as_nop 3382 ac_c_werror_flag=$ac_save_c_werror_flag 3383 CFLAGS="-g" 3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3385/* end confdefs.h. */ 3386 3387int 3388main (void) 3389{ 3390 3391 ; 3392 return 0; 3393} 3394_ACEOF 3395if ac_fn_c_try_compile "$LINENO" 3396then : 3397 ac_cv_prog_cc_g=yes 3398fi 3399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3400fi 3401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3402fi 3403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3404 ac_c_werror_flag=$ac_save_c_werror_flag 3405fi 3406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3407printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3408if test $ac_test_CFLAGS; then 3409 CFLAGS=$ac_save_CFLAGS 3410elif test $ac_cv_prog_cc_g = yes; then 3411 if test "$GCC" = yes; then 3412 CFLAGS="-g -O2" 3413 else 3414 CFLAGS="-g" 3415 fi 3416else 3417 if test "$GCC" = yes; then 3418 CFLAGS="-O2" 3419 else 3420 CFLAGS= 3421 fi 3422fi 3423ac_prog_cc_stdc=no 3424if test x$ac_prog_cc_stdc = xno 3425then : 3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3427printf %s "checking for $CC option to enable C11 features... " >&6; } 3428if test ${ac_cv_prog_cc_c11+y} 3429then : 3430 printf %s "(cached) " >&6 3431else $as_nop 3432 ac_cv_prog_cc_c11=no 3433ac_save_CC=$CC 3434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3435/* end confdefs.h. */ 3436$ac_c_conftest_c11_program 3437_ACEOF 3438for ac_arg in '' -std=gnu11 3439do 3440 CC="$ac_save_CC $ac_arg" 3441 if ac_fn_c_try_compile "$LINENO" 3442then : 3443 ac_cv_prog_cc_c11=$ac_arg 3444fi 3445rm -f core conftest.err conftest.$ac_objext conftest.beam 3446 test "x$ac_cv_prog_cc_c11" != "xno" && break 3447done 3448rm -f conftest.$ac_ext 3449CC=$ac_save_CC 3450fi 3451 3452if test "x$ac_cv_prog_cc_c11" = xno 3453then : 3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3455printf "%s\n" "unsupported" >&6; } 3456else $as_nop 3457 if test "x$ac_cv_prog_cc_c11" = x 3458then : 3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3460printf "%s\n" "none needed" >&6; } 3461else $as_nop 3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3463printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3464 CC="$CC $ac_cv_prog_cc_c11" 3465fi 3466 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3467 ac_prog_cc_stdc=c11 3468fi 3469fi 3470if test x$ac_prog_cc_stdc = xno 3471then : 3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3473printf %s "checking for $CC option to enable C99 features... " >&6; } 3474if test ${ac_cv_prog_cc_c99+y} 3475then : 3476 printf %s "(cached) " >&6 3477else $as_nop 3478 ac_cv_prog_cc_c99=no 3479ac_save_CC=$CC 3480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482$ac_c_conftest_c99_program 3483_ACEOF 3484for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3485do 3486 CC="$ac_save_CC $ac_arg" 3487 if ac_fn_c_try_compile "$LINENO" 3488then : 3489 ac_cv_prog_cc_c99=$ac_arg 3490fi 3491rm -f core conftest.err conftest.$ac_objext conftest.beam 3492 test "x$ac_cv_prog_cc_c99" != "xno" && break 3493done 3494rm -f conftest.$ac_ext 3495CC=$ac_save_CC 3496fi 3497 3498if test "x$ac_cv_prog_cc_c99" = xno 3499then : 3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3501printf "%s\n" "unsupported" >&6; } 3502else $as_nop 3503 if test "x$ac_cv_prog_cc_c99" = x 3504then : 3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3506printf "%s\n" "none needed" >&6; } 3507else $as_nop 3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3509printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3510 CC="$CC $ac_cv_prog_cc_c99" 3511fi 3512 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3513 ac_prog_cc_stdc=c99 3514fi 3515fi 3516if test x$ac_prog_cc_stdc = xno 3517then : 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3519printf %s "checking for $CC option to enable C89 features... " >&6; } 3520if test ${ac_cv_prog_cc_c89+y} 3521then : 3522 printf %s "(cached) " >&6 3523else $as_nop 3524 ac_cv_prog_cc_c89=no 3525ac_save_CC=$CC 3526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528$ac_c_conftest_c89_program 3529_ACEOF 3530for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3531do 3532 CC="$ac_save_CC $ac_arg" 3533 if ac_fn_c_try_compile "$LINENO" 3534then : 3535 ac_cv_prog_cc_c89=$ac_arg 3536fi 3537rm -f core conftest.err conftest.$ac_objext conftest.beam 3538 test "x$ac_cv_prog_cc_c89" != "xno" && break 3539done 3540rm -f conftest.$ac_ext 3541CC=$ac_save_CC 3542fi 3543 3544if test "x$ac_cv_prog_cc_c89" = xno 3545then : 3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3547printf "%s\n" "unsupported" >&6; } 3548else $as_nop 3549 if test "x$ac_cv_prog_cc_c89" = x 3550then : 3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3552printf "%s\n" "none needed" >&6; } 3553else $as_nop 3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3555printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3556 CC="$CC $ac_cv_prog_cc_c89" 3557fi 3558 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3559 ac_prog_cc_stdc=c89 3560fi 3561fi 3562 3563ac_ext=c 3564ac_cpp='$CPP $CPPFLAGS' 3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3567ac_compiler_gnu=$ac_cv_c_compiler_gnu 3568 3569 3570 ac_ext=c 3571ac_cpp='$CPP $CPPFLAGS' 3572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3574ac_compiler_gnu=$ac_cv_c_compiler_gnu 3575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3576printf %s "checking whether $CC understands -c and -o together... " >&6; } 3577if test ${am_cv_prog_cc_c_o+y} 3578then : 3579 printf %s "(cached) " >&6 3580else $as_nop 3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582/* end confdefs.h. */ 3583 3584int 3585main (void) 3586{ 3587 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592 # Make sure it works both with $CC and with simple cc. 3593 # Following AC_PROG_CC_C_O, we do the test twice because some 3594 # compilers refuse to overwrite an existing .o file with -o, 3595 # though they will create one. 3596 am_cv_prog_cc_c_o=yes 3597 for am_i in 1 2; do 3598 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3599 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3600 ac_status=$? 3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3602 (exit $ac_status); } \ 3603 && test -f conftest2.$ac_objext; then 3604 : OK 3605 else 3606 am_cv_prog_cc_c_o=no 3607 break 3608 fi 3609 done 3610 rm -f core conftest* 3611 unset am_i 3612fi 3613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3614printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3615if test "$am_cv_prog_cc_c_o" != yes; then 3616 # Losing compiler, so override with the script. 3617 # FIXME: It is wrong to rewrite CC. 3618 # But if we don't then we get into trouble of one sort or another. 3619 # A longer-term fix would be to have automake use am__CC in this case, 3620 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3621 CC="$am_aux_dir/compile $CC" 3622fi 3623ac_ext=c 3624ac_cpp='$CPP $CPPFLAGS' 3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3627ac_compiler_gnu=$ac_cv_c_compiler_gnu 3628 3629 3630 3631ac_header= ac_cache= 3632for ac_item in $ac_header_c_list 3633do 3634 if test $ac_cache; then 3635 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3636 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3637 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3638 fi 3639 ac_header= ac_cache= 3640 elif test $ac_header; then 3641 ac_cache=$ac_item 3642 else 3643 ac_header=$ac_item 3644 fi 3645done 3646 3647 3648 3649 3650 3651 3652 3653 3654if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3655then : 3656 3657printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3658 3659fi 3660 3661 3662 3663 3664 3665 3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3667printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3668if test ${ac_cv_safe_to_define___extensions__+y} 3669then : 3670 printf %s "(cached) " >&6 3671else $as_nop 3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674 3675# define __EXTENSIONS__ 1 3676 $ac_includes_default 3677int 3678main (void) 3679{ 3680 3681 ; 3682 return 0; 3683} 3684_ACEOF 3685if ac_fn_c_try_compile "$LINENO" 3686then : 3687 ac_cv_safe_to_define___extensions__=yes 3688else $as_nop 3689 ac_cv_safe_to_define___extensions__=no 3690fi 3691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3692fi 3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3694printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3695 3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3697printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3698if test ${ac_cv_should_define__xopen_source+y} 3699then : 3700 printf %s "(cached) " >&6 3701else $as_nop 3702 ac_cv_should_define__xopen_source=no 3703 if test $ac_cv_header_wchar_h = yes 3704then : 3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3706/* end confdefs.h. */ 3707 3708 #include <wchar.h> 3709 mbstate_t x; 3710int 3711main (void) 3712{ 3713 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718if ac_fn_c_try_compile "$LINENO" 3719then : 3720 3721else $as_nop 3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3723/* end confdefs.h. */ 3724 3725 #define _XOPEN_SOURCE 500 3726 #include <wchar.h> 3727 mbstate_t x; 3728int 3729main (void) 3730{ 3731 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736if ac_fn_c_try_compile "$LINENO" 3737then : 3738 ac_cv_should_define__xopen_source=yes 3739fi 3740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3741fi 3742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3743fi 3744fi 3745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3746printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3747 3748 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3749 3750 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3751 3752 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3753 3754 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3755 3756 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3757 3758 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3759 3760 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3761 3762 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3763 3764 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3765 3766 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3767 3768 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3769 3770 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3771 3772 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3773 3774 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3775 3776 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3777 3778 if test $ac_cv_header_minix_config_h = yes 3779then : 3780 MINIX=yes 3781 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3782 3783 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3784 3785 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3786 3787else $as_nop 3788 MINIX= 3789fi 3790 if test $ac_cv_safe_to_define___extensions__ = yes 3791then : 3792 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3793 3794fi 3795 if test $ac_cv_should_define__xopen_source = yes 3796then : 3797 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3798 3799fi 3800 3801 3802# Initialize Automake 3803am__api_version='1.16' 3804 3805 3806 # Find a good install program. We prefer a C program (faster), 3807# so one script is as good as another. But avoid the broken or 3808# incompatible versions: 3809# SysV /etc/install, /usr/sbin/install 3810# SunOS /usr/etc/install 3811# IRIX /sbin/install 3812# AIX /bin/install 3813# AmigaOS /C/install, which installs bootblocks on floppy discs 3814# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3815# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3816# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3817# OS/2's system install, which has a completely different semantic 3818# ./install, which can be erroneously created by make from ./install.sh. 3819# Reject install programs that cannot install multiple files. 3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3821printf %s "checking for a BSD-compatible install... " >&6; } 3822if test -z "$INSTALL"; then 3823if test ${ac_cv_path_install+y} 3824then : 3825 printf %s "(cached) " >&6 3826else $as_nop 3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3828for as_dir in $PATH 3829do 3830 IFS=$as_save_IFS 3831 case $as_dir in #((( 3832 '') as_dir=./ ;; 3833 */) ;; 3834 *) as_dir=$as_dir/ ;; 3835 esac 3836 # Account for fact that we put trailing slashes in our PATH walk. 3837case $as_dir in #(( 3838 ./ | /[cC]/* | \ 3839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3840 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3841 /usr/ucb/* ) ;; 3842 *) 3843 # OSF1 and SCO ODT 3.0 have their own names for install. 3844 # Don't use installbsd from OSF since it installs stuff as root 3845 # by default. 3846 for ac_prog in ginstall scoinst install; do 3847 for ac_exec_ext in '' $ac_executable_extensions; do 3848 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3849 if test $ac_prog = install && 3850 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3851 # AIX install. It has an incompatible calling convention. 3852 : 3853 elif test $ac_prog = install && 3854 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3855 # program-specific install script used by HP pwplus--don't use. 3856 : 3857 else 3858 rm -rf conftest.one conftest.two conftest.dir 3859 echo one > conftest.one 3860 echo two > conftest.two 3861 mkdir conftest.dir 3862 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3863 test -s conftest.one && test -s conftest.two && 3864 test -s conftest.dir/conftest.one && 3865 test -s conftest.dir/conftest.two 3866 then 3867 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3868 break 3 3869 fi 3870 fi 3871 fi 3872 done 3873 done 3874 ;; 3875esac 3876 3877 done 3878IFS=$as_save_IFS 3879 3880rm -rf conftest.one conftest.two conftest.dir 3881 3882fi 3883 if test ${ac_cv_path_install+y}; then 3884 INSTALL=$ac_cv_path_install 3885 else 3886 # As a last resort, use the slow shell script. Don't cache a 3887 # value for INSTALL within a source directory, because that will 3888 # break other packages using the cache if that directory is 3889 # removed, or if the value is a relative name. 3890 INSTALL=$ac_install_sh 3891 fi 3892fi 3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3894printf "%s\n" "$INSTALL" >&6; } 3895 3896# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3897# It thinks the first close brace ends the variable substitution. 3898test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3899 3900test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3901 3902test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3903 3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3905printf %s "checking whether build environment is sane... " >&6; } 3906# Reject unsafe characters in $srcdir or the absolute working directory 3907# name. Accept space and tab only in the latter. 3908am_lf=' 3909' 3910case `pwd` in 3911 *[\\\"\#\$\&\'\`$am_lf]*) 3912 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3913esac 3914case $srcdir in 3915 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3916 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3917esac 3918 3919# Do 'set' in a subshell so we don't clobber the current shell's 3920# arguments. Must try -L first in case configure is actually a 3921# symlink; some systems play weird games with the mod time of symlinks 3922# (eg FreeBSD returns the mod time of the symlink's containing 3923# directory). 3924if ( 3925 am_has_slept=no 3926 for am_try in 1 2; do 3927 echo "timestamp, slept: $am_has_slept" > conftest.file 3928 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3929 if test "$*" = "X"; then 3930 # -L didn't work. 3931 set X `ls -t "$srcdir/configure" conftest.file` 3932 fi 3933 if test "$*" != "X $srcdir/configure conftest.file" \ 3934 && test "$*" != "X conftest.file $srcdir/configure"; then 3935 3936 # If neither matched, then we have a broken ls. This can happen 3937 # if, for instance, CONFIG_SHELL is bash and it inherits a 3938 # broken ls alias from the environment. This has actually 3939 # happened. Such a system could not be considered "sane". 3940 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3941 alias in your environment" "$LINENO" 5 3942 fi 3943 if test "$2" = conftest.file || test $am_try -eq 2; then 3944 break 3945 fi 3946 # Just in case. 3947 sleep 1 3948 am_has_slept=yes 3949 done 3950 test "$2" = conftest.file 3951 ) 3952then 3953 # Ok. 3954 : 3955else 3956 as_fn_error $? "newly created file is older than distributed files! 3957Check your system clock" "$LINENO" 5 3958fi 3959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3960printf "%s\n" "yes" >&6; } 3961# If we didn't sleep, we still need to ensure time stamps of config.status and 3962# generated files are strictly newer. 3963am_sleep_pid= 3964if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3965 ( sleep 1 ) & 3966 am_sleep_pid=$! 3967fi 3968 3969rm -f conftest.file 3970 3971test "$program_prefix" != NONE && 3972 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3973# Use a double $ so make ignores it. 3974test "$program_suffix" != NONE && 3975 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3976# Double any \ or $. 3977# By default was `s,x,x', remove it if useless. 3978ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3979program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3980 3981 3982 if test x"${MISSING+set}" != xset; then 3983 MISSING="\${SHELL} '$am_aux_dir/missing'" 3984fi 3985# Use eval to expand $SHELL 3986if eval "$MISSING --is-lightweight"; then 3987 am_missing_run="$MISSING " 3988else 3989 am_missing_run= 3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3991printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3992fi 3993 3994if test x"${install_sh+set}" != xset; then 3995 case $am_aux_dir in 3996 *\ * | *\ *) 3997 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3998 *) 3999 install_sh="\${SHELL} $am_aux_dir/install-sh" 4000 esac 4001fi 4002 4003# Installed binaries are usually stripped using 'strip' when the user 4004# run "make install-strip". However 'strip' might not be the right 4005# tool to use in cross-compilation environments, therefore Automake 4006# will honor the 'STRIP' environment variable to overrule this program. 4007if test "$cross_compiling" != no; then 4008 if test -n "$ac_tool_prefix"; then 4009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4010set dummy ${ac_tool_prefix}strip; ac_word=$2 4011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4012printf %s "checking for $ac_word... " >&6; } 4013if test ${ac_cv_prog_STRIP+y} 4014then : 4015 printf %s "(cached) " >&6 4016else $as_nop 4017 if test -n "$STRIP"; then 4018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4019else 4020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4021for as_dir in $PATH 4022do 4023 IFS=$as_save_IFS 4024 case $as_dir in #((( 4025 '') as_dir=./ ;; 4026 */) ;; 4027 *) as_dir=$as_dir/ ;; 4028 esac 4029 for ac_exec_ext in '' $ac_executable_extensions; do 4030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4031 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4033 break 2 4034 fi 4035done 4036 done 4037IFS=$as_save_IFS 4038 4039fi 4040fi 4041STRIP=$ac_cv_prog_STRIP 4042if test -n "$STRIP"; then 4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4044printf "%s\n" "$STRIP" >&6; } 4045else 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4047printf "%s\n" "no" >&6; } 4048fi 4049 4050 4051fi 4052if test -z "$ac_cv_prog_STRIP"; then 4053 ac_ct_STRIP=$STRIP 4054 # Extract the first word of "strip", so it can be a program name with args. 4055set dummy strip; ac_word=$2 4056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4057printf %s "checking for $ac_word... " >&6; } 4058if test ${ac_cv_prog_ac_ct_STRIP+y} 4059then : 4060 printf %s "(cached) " >&6 4061else $as_nop 4062 if test -n "$ac_ct_STRIP"; then 4063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4064else 4065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4066for as_dir in $PATH 4067do 4068 IFS=$as_save_IFS 4069 case $as_dir in #((( 4070 '') as_dir=./ ;; 4071 */) ;; 4072 *) as_dir=$as_dir/ ;; 4073 esac 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4076 ac_cv_prog_ac_ct_STRIP="strip" 4077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4078 break 2 4079 fi 4080done 4081 done 4082IFS=$as_save_IFS 4083 4084fi 4085fi 4086ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4087if test -n "$ac_ct_STRIP"; then 4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4089printf "%s\n" "$ac_ct_STRIP" >&6; } 4090else 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4092printf "%s\n" "no" >&6; } 4093fi 4094 4095 if test "x$ac_ct_STRIP" = x; then 4096 STRIP=":" 4097 else 4098 case $cross_compiling:$ac_tool_warned in 4099yes:) 4100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4101printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4102ac_tool_warned=yes ;; 4103esac 4104 STRIP=$ac_ct_STRIP 4105 fi 4106else 4107 STRIP="$ac_cv_prog_STRIP" 4108fi 4109 4110fi 4111INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4112 4113 4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4115printf %s "checking for a race-free mkdir -p... " >&6; } 4116if test -z "$MKDIR_P"; then 4117 if test ${ac_cv_path_mkdir+y} 4118then : 4119 printf %s "(cached) " >&6 4120else $as_nop 4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4122for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4123do 4124 IFS=$as_save_IFS 4125 case $as_dir in #((( 4126 '') as_dir=./ ;; 4127 */) ;; 4128 *) as_dir=$as_dir/ ;; 4129 esac 4130 for ac_prog in mkdir gmkdir; do 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4133 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4134 'mkdir ('*'coreutils) '* | \ 4135 'BusyBox '* | \ 4136 'mkdir (fileutils) '4.1*) 4137 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4138 break 3;; 4139 esac 4140 done 4141 done 4142 done 4143IFS=$as_save_IFS 4144 4145fi 4146 4147 test -d ./--version && rmdir ./--version 4148 if test ${ac_cv_path_mkdir+y}; then 4149 MKDIR_P="$ac_cv_path_mkdir -p" 4150 else 4151 # As a last resort, use the slow shell script. Don't cache a 4152 # value for MKDIR_P within a source directory, because that will 4153 # break other packages using the cache if that directory is 4154 # removed, or if the value is a relative name. 4155 MKDIR_P="$ac_install_sh -d" 4156 fi 4157fi 4158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4159printf "%s\n" "$MKDIR_P" >&6; } 4160 4161for ac_prog in gawk mawk nawk awk 4162do 4163 # Extract the first word of "$ac_prog", so it can be a program name with args. 4164set dummy $ac_prog; ac_word=$2 4165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4166printf %s "checking for $ac_word... " >&6; } 4167if test ${ac_cv_prog_AWK+y} 4168then : 4169 printf %s "(cached) " >&6 4170else $as_nop 4171 if test -n "$AWK"; then 4172 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4173else 4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4175for as_dir in $PATH 4176do 4177 IFS=$as_save_IFS 4178 case $as_dir in #((( 4179 '') as_dir=./ ;; 4180 */) ;; 4181 *) as_dir=$as_dir/ ;; 4182 esac 4183 for ac_exec_ext in '' $ac_executable_extensions; do 4184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4185 ac_cv_prog_AWK="$ac_prog" 4186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4187 break 2 4188 fi 4189done 4190 done 4191IFS=$as_save_IFS 4192 4193fi 4194fi 4195AWK=$ac_cv_prog_AWK 4196if test -n "$AWK"; then 4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4198printf "%s\n" "$AWK" >&6; } 4199else 4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4201printf "%s\n" "no" >&6; } 4202fi 4203 4204 4205 test -n "$AWK" && break 4206done 4207 4208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4209printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4210set x ${MAKE-make} 4211ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4212if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4213then : 4214 printf %s "(cached) " >&6 4215else $as_nop 4216 cat >conftest.make <<\_ACEOF 4217SHELL = /bin/sh 4218all: 4219 @echo '@@@%%%=$(MAKE)=@@@%%%' 4220_ACEOF 4221# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4222case `${MAKE-make} -f conftest.make 2>/dev/null` in 4223 *@@@%%%=?*=@@@%%%*) 4224 eval ac_cv_prog_make_${ac_make}_set=yes;; 4225 *) 4226 eval ac_cv_prog_make_${ac_make}_set=no;; 4227esac 4228rm -f conftest.make 4229fi 4230if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4232printf "%s\n" "yes" >&6; } 4233 SET_MAKE= 4234else 4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4236printf "%s\n" "no" >&6; } 4237 SET_MAKE="MAKE=${MAKE-make}" 4238fi 4239 4240rm -rf .tst 2>/dev/null 4241mkdir .tst 2>/dev/null 4242if test -d .tst; then 4243 am__leading_dot=. 4244else 4245 am__leading_dot=_ 4246fi 4247rmdir .tst 2>/dev/null 4248 4249DEPDIR="${am__leading_dot}deps" 4250 4251ac_config_commands="$ac_config_commands depfiles" 4252 4253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4254printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4255cat > confinc.mk << 'END' 4256am__doit: 4257 @echo this is the am__doit target >confinc.out 4258.PHONY: am__doit 4259END 4260am__include="#" 4261am__quote= 4262# BSD make does it like this. 4263echo '.include "confinc.mk" # ignored' > confmf.BSD 4264# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4265echo 'include confinc.mk # ignored' > confmf.GNU 4266_am_result=no 4267for s in GNU BSD; do 4268 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4269 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4270 ac_status=$? 4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4272 (exit $ac_status); } 4273 case $?:`cat confinc.out 2>/dev/null` in #( 4274 '0:this is the am__doit target') : 4275 case $s in #( 4276 BSD) : 4277 am__include='.include' am__quote='"' ;; #( 4278 *) : 4279 am__include='include' am__quote='' ;; 4280esac ;; #( 4281 *) : 4282 ;; 4283esac 4284 if test "$am__include" != "#"; then 4285 _am_result="yes ($s style)" 4286 break 4287 fi 4288done 4289rm -f confinc.* confmf.* 4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4291printf "%s\n" "${_am_result}" >&6; } 4292 4293# Check whether --enable-dependency-tracking was given. 4294if test ${enable_dependency_tracking+y} 4295then : 4296 enableval=$enable_dependency_tracking; 4297fi 4298 4299if test "x$enable_dependency_tracking" != xno; then 4300 am_depcomp="$ac_aux_dir/depcomp" 4301 AMDEPBACKSLASH='\' 4302 am__nodep='_no' 4303fi 4304 if test "x$enable_dependency_tracking" != xno; then 4305 AMDEP_TRUE= 4306 AMDEP_FALSE='#' 4307else 4308 AMDEP_TRUE='#' 4309 AMDEP_FALSE= 4310fi 4311 4312 4313# Check whether --enable-silent-rules was given. 4314if test ${enable_silent_rules+y} 4315then : 4316 enableval=$enable_silent_rules; 4317fi 4318 4319case $enable_silent_rules in # ((( 4320 yes) AM_DEFAULT_VERBOSITY=0;; 4321 no) AM_DEFAULT_VERBOSITY=1;; 4322 *) AM_DEFAULT_VERBOSITY=1;; 4323esac 4324am_make=${MAKE-make} 4325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4326printf %s "checking whether $am_make supports nested variables... " >&6; } 4327if test ${am_cv_make_support_nested_variables+y} 4328then : 4329 printf %s "(cached) " >&6 4330else $as_nop 4331 if printf "%s\n" 'TRUE=$(BAR$(V)) 4332BAR0=false 4333BAR1=true 4334V=1 4335am__doit: 4336 @$(TRUE) 4337.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4338 am_cv_make_support_nested_variables=yes 4339else 4340 am_cv_make_support_nested_variables=no 4341fi 4342fi 4343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4344printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4345if test $am_cv_make_support_nested_variables = yes; then 4346 AM_V='$(V)' 4347 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4348else 4349 AM_V=$AM_DEFAULT_VERBOSITY 4350 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4351fi 4352AM_BACKSLASH='\' 4353 4354if test "`cd $srcdir && pwd`" != "`pwd`"; then 4355 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4356 # is not polluted with repeated "-I." 4357 am__isrc=' -I$(srcdir)' 4358 # test to see if srcdir already configured 4359 if test -f $srcdir/config.status; then 4360 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4361 fi 4362fi 4363 4364# test whether we have cygpath 4365if test -z "$CYGPATH_W"; then 4366 if (cygpath --version) >/dev/null 2>/dev/null; then 4367 CYGPATH_W='cygpath -w' 4368 else 4369 CYGPATH_W=echo 4370 fi 4371fi 4372 4373 4374# Define the identity of the package. 4375 PACKAGE='xconsole' 4376 VERSION='1.0.8' 4377 4378 4379printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4380 4381 4382printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4383 4384# Some tools Automake needs. 4385 4386ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4387 4388 4389AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4390 4391 4392AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4393 4394 4395AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4396 4397 4398MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4399 4400# For better backward compatibility. To be removed once Automake 1.9.x 4401# dies out for good. For more background, see: 4402# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4403# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4404mkdir_p='$(MKDIR_P)' 4405 4406# We need awk for the "check" target (and possibly the TAP driver). The 4407# system "awk" is bad on some platforms. 4408# Always define AMTAR for backward compatibility. Yes, it's still used 4409# in the wild :-( We should find a proper way to deprecate it ... 4410AMTAR='$${TAR-tar}' 4411 4412 4413# We'll loop over all known methods to create a tar archive until one works. 4414_am_tools='gnutar pax cpio none' 4415 4416am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4417 4418 4419 4420 4421 4422depcc="$CC" am_compiler_list= 4423 4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4425printf %s "checking dependency style of $depcc... " >&6; } 4426if test ${am_cv_CC_dependencies_compiler_type+y} 4427then : 4428 printf %s "(cached) " >&6 4429else $as_nop 4430 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4431 # We make a subdir and do the tests there. Otherwise we can end up 4432 # making bogus files that we don't know about and never remove. For 4433 # instance it was reported that on HP-UX the gcc test will end up 4434 # making a dummy file named 'D' -- because '-MD' means "put the output 4435 # in D". 4436 rm -rf conftest.dir 4437 mkdir conftest.dir 4438 # Copy depcomp to subdir because otherwise we won't find it if we're 4439 # using a relative directory. 4440 cp "$am_depcomp" conftest.dir 4441 cd conftest.dir 4442 # We will build objects and dependencies in a subdirectory because 4443 # it helps to detect inapplicable dependency modes. For instance 4444 # both Tru64's cc and ICC support -MD to output dependencies as a 4445 # side effect of compilation, but ICC will put the dependencies in 4446 # the current directory while Tru64 will put them in the object 4447 # directory. 4448 mkdir sub 4449 4450 am_cv_CC_dependencies_compiler_type=none 4451 if test "$am_compiler_list" = ""; then 4452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4453 fi 4454 am__universal=false 4455 case " $depcc " in #( 4456 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4457 esac 4458 4459 for depmode in $am_compiler_list; do 4460 # Setup a source with many dependencies, because some compilers 4461 # like to wrap large dependency lists on column 80 (with \), and 4462 # we should not choose a depcomp mode which is confused by this. 4463 # 4464 # We need to recreate these files for each test, as the compiler may 4465 # overwrite some of them when testing with obscure command lines. 4466 # This happens at least with the AIX C compiler. 4467 : > sub/conftest.c 4468 for i in 1 2 3 4 5 6; do 4469 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4470 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4471 # Solaris 10 /bin/sh. 4472 echo '/* dummy */' > sub/conftst$i.h 4473 done 4474 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4475 4476 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4477 # mode. It turns out that the SunPro C++ compiler does not properly 4478 # handle '-M -o', and we need to detect this. Also, some Intel 4479 # versions had trouble with output in subdirs. 4480 am__obj=sub/conftest.${OBJEXT-o} 4481 am__minus_obj="-o $am__obj" 4482 case $depmode in 4483 gcc) 4484 # This depmode causes a compiler race in universal mode. 4485 test "$am__universal" = false || continue 4486 ;; 4487 nosideeffect) 4488 # After this tag, mechanisms are not by side-effect, so they'll 4489 # only be used when explicitly requested. 4490 if test "x$enable_dependency_tracking" = xyes; then 4491 continue 4492 else 4493 break 4494 fi 4495 ;; 4496 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4497 # This compiler won't grok '-c -o', but also, the minuso test has 4498 # not run yet. These depmodes are late enough in the game, and 4499 # so weak that their functioning should not be impacted. 4500 am__obj=conftest.${OBJEXT-o} 4501 am__minus_obj= 4502 ;; 4503 none) break ;; 4504 esac 4505 if depmode=$depmode \ 4506 source=sub/conftest.c object=$am__obj \ 4507 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4508 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4509 >/dev/null 2>conftest.err && 4510 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4512 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4514 # icc doesn't choke on unknown options, it will just issue warnings 4515 # or remarks (even with -Werror). So we grep stderr for any message 4516 # that says an option was ignored or not supported. 4517 # When given -MP, icc 7.0 and 7.1 complain thusly: 4518 # icc: Command line warning: ignoring option '-M'; no argument required 4519 # The diagnosis changed in icc 8.0: 4520 # icc: Command line remark: option '-MP' not supported 4521 if (grep 'ignoring option' conftest.err || 4522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4523 am_cv_CC_dependencies_compiler_type=$depmode 4524 break 4525 fi 4526 fi 4527 done 4528 4529 cd .. 4530 rm -rf conftest.dir 4531else 4532 am_cv_CC_dependencies_compiler_type=none 4533fi 4534 4535fi 4536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4537printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4538CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4539 4540 if 4541 test "x$enable_dependency_tracking" != xno \ 4542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4543 am__fastdepCC_TRUE= 4544 am__fastdepCC_FALSE='#' 4545else 4546 am__fastdepCC_TRUE='#' 4547 am__fastdepCC_FALSE= 4548fi 4549 4550 4551# Variables for tags utilities; see am/tags.am 4552if test -z "$CTAGS"; then 4553 CTAGS=ctags 4554fi 4555 4556if test -z "$ETAGS"; then 4557 ETAGS=etags 4558fi 4559 4560if test -z "$CSCOPE"; then 4561 CSCOPE=cscope 4562fi 4563 4564 4565 4566# POSIX will say in a future version that running "rm -f" with no argument 4567# is OK; and we want to be able to make that assumption in our Makefile 4568# recipes. So use an aggressive probe to check that the usage we want is 4569# actually supported "in the wild" to an acceptable degree. 4570# See automake bug#10828. 4571# To make any issue more visible, cause the running configure to be aborted 4572# by default if the 'rm' program in use doesn't match our expectations; the 4573# user can still override this though. 4574if rm -f && rm -fr && rm -rf; then : OK; else 4575 cat >&2 <<'END' 4576Oops! 4577 4578Your 'rm' program seems unable to run without file operands specified 4579on the command line, even when the '-f' option is present. This is contrary 4580to the behaviour of most rm programs out there, and not conforming with 4581the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4582 4583Please tell bug-automake@gnu.org about your system, including the value 4584of your $PATH and any error possibly output before this message. This 4585can help us improve future automake versions. 4586 4587END 4588 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4589 echo 'Configuration will proceed anyway, since you have set the' >&2 4590 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4591 echo >&2 4592 else 4593 cat >&2 <<'END' 4594Aborting the configuration process, to ensure you take notice of the issue. 4595 4596You can download and install GNU coreutils to get an 'rm' implementation 4597that behaves properly: <https://www.gnu.org/software/coreutils/>. 4598 4599If you want to complete the configuration process using your problematic 4600'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4601to "yes", and re-run configure. 4602 4603END 4604 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4605 fi 4606fi 4607 4608 4609# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4623printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4624if test ${ac_cv_c_undeclared_builtin_options+y} 4625then : 4626 printf %s "(cached) " >&6 4627else $as_nop 4628 ac_save_CFLAGS=$CFLAGS 4629 ac_cv_c_undeclared_builtin_options='cannot detect' 4630 for ac_arg in '' -fno-builtin; do 4631 CFLAGS="$ac_save_CFLAGS $ac_arg" 4632 # This test program should *not* compile successfully. 4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4634/* end confdefs.h. */ 4635 4636int 4637main (void) 4638{ 4639(void) strchr; 4640 ; 4641 return 0; 4642} 4643_ACEOF 4644if ac_fn_c_try_compile "$LINENO" 4645then : 4646 4647else $as_nop 4648 # This test program should compile successfully. 4649 # No library function is consistently available on 4650 # freestanding implementations, so test against a dummy 4651 # declaration. Include always-available headers on the 4652 # off chance that they somehow elicit warnings. 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4654/* end confdefs.h. */ 4655#include <float.h> 4656#include <limits.h> 4657#include <stdarg.h> 4658#include <stddef.h> 4659extern void ac_decl (int, char *); 4660 4661int 4662main (void) 4663{ 4664(void) ac_decl (0, (char *) 0); 4665 (void) ac_decl; 4666 4667 ; 4668 return 0; 4669} 4670_ACEOF 4671if ac_fn_c_try_compile "$LINENO" 4672then : 4673 if test x"$ac_arg" = x 4674then : 4675 ac_cv_c_undeclared_builtin_options='none needed' 4676else $as_nop 4677 ac_cv_c_undeclared_builtin_options=$ac_arg 4678fi 4679 break 4680fi 4681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4682fi 4683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4684 done 4685 CFLAGS=$ac_save_CFLAGS 4686 4687fi 4688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4689printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4690 case $ac_cv_c_undeclared_builtin_options in #( 4691 'cannot detect') : 4692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4693printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4694as_fn_error $? "cannot make $CC report undeclared builtins 4695See \`config.log' for more details" "$LINENO" 5; } ;; #( 4696 'none needed') : 4697 ac_c_undeclared_builtin_options='' ;; #( 4698 *) : 4699 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4700esac 4701 4702 4703 4704 4705 4706ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4707if test "x$ac_cv_have_decl___clang__" = xyes 4708then : 4709 CLANGCC="yes" 4710else $as_nop 4711 CLANGCC="no" 4712fi 4713ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4714if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4715then : 4716 INTELCC="yes" 4717else $as_nop 4718 INTELCC="no" 4719fi 4720ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4721if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4722then : 4723 SUNCC="yes" 4724else $as_nop 4725 SUNCC="no" 4726fi 4727 4728 4729 4730 4731 4732 4733 4734 4735if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4736 if test -n "$ac_tool_prefix"; then 4737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4738set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4740printf %s "checking for $ac_word... " >&6; } 4741if test ${ac_cv_path_PKG_CONFIG+y} 4742then : 4743 printf %s "(cached) " >&6 4744else $as_nop 4745 case $PKG_CONFIG in 4746 [\\/]* | ?:[\\/]*) 4747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4748 ;; 4749 *) 4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4751for as_dir in $PATH 4752do 4753 IFS=$as_save_IFS 4754 case $as_dir in #((( 4755 '') as_dir=./ ;; 4756 */) ;; 4757 *) as_dir=$as_dir/ ;; 4758 esac 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4761 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4763 break 2 4764 fi 4765done 4766 done 4767IFS=$as_save_IFS 4768 4769 ;; 4770esac 4771fi 4772PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4773if test -n "$PKG_CONFIG"; then 4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4775printf "%s\n" "$PKG_CONFIG" >&6; } 4776else 4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4778printf "%s\n" "no" >&6; } 4779fi 4780 4781 4782fi 4783if test -z "$ac_cv_path_PKG_CONFIG"; then 4784 ac_pt_PKG_CONFIG=$PKG_CONFIG 4785 # Extract the first word of "pkg-config", so it can be a program name with args. 4786set dummy pkg-config; ac_word=$2 4787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4788printf %s "checking for $ac_word... " >&6; } 4789if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4790then : 4791 printf %s "(cached) " >&6 4792else $as_nop 4793 case $ac_pt_PKG_CONFIG in 4794 [\\/]* | ?:[\\/]*) 4795 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4796 ;; 4797 *) 4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4799for as_dir in $PATH 4800do 4801 IFS=$as_save_IFS 4802 case $as_dir in #((( 4803 '') as_dir=./ ;; 4804 */) ;; 4805 *) as_dir=$as_dir/ ;; 4806 esac 4807 for ac_exec_ext in '' $ac_executable_extensions; do 4808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4809 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4811 break 2 4812 fi 4813done 4814 done 4815IFS=$as_save_IFS 4816 4817 ;; 4818esac 4819fi 4820ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4821if test -n "$ac_pt_PKG_CONFIG"; then 4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4823printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4824else 4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4826printf "%s\n" "no" >&6; } 4827fi 4828 4829 if test "x$ac_pt_PKG_CONFIG" = x; then 4830 PKG_CONFIG="" 4831 else 4832 case $cross_compiling:$ac_tool_warned in 4833yes:) 4834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4835printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4836ac_tool_warned=yes ;; 4837esac 4838 PKG_CONFIG=$ac_pt_PKG_CONFIG 4839 fi 4840else 4841 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4842fi 4843 4844fi 4845if test -n "$PKG_CONFIG"; then 4846 _pkg_min_version=0.9.0 4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4848printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4849 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4851printf "%s\n" "yes" >&6; } 4852 else 4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854printf "%s\n" "no" >&6; } 4855 PKG_CONFIG="" 4856 fi 4857fi 4858 4859 4860 # Make sure we can run config.sub. 4861$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4862 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4863 4864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4865printf %s "checking build system type... " >&6; } 4866if test ${ac_cv_build+y} 4867then : 4868 printf %s "(cached) " >&6 4869else $as_nop 4870 ac_build_alias=$build_alias 4871test "x$ac_build_alias" = x && 4872 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4873test "x$ac_build_alias" = x && 4874 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4875ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4876 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4877 4878fi 4879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4880printf "%s\n" "$ac_cv_build" >&6; } 4881case $ac_cv_build in 4882*-*-*) ;; 4883*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4884esac 4885build=$ac_cv_build 4886ac_save_IFS=$IFS; IFS='-' 4887set x $ac_cv_build 4888shift 4889build_cpu=$1 4890build_vendor=$2 4891shift; shift 4892# Remember, the first character of IFS is used to create $*, 4893# except with old shells: 4894build_os=$* 4895IFS=$ac_save_IFS 4896case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4897 4898 4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4900printf %s "checking host system type... " >&6; } 4901if test ${ac_cv_host+y} 4902then : 4903 printf %s "(cached) " >&6 4904else $as_nop 4905 if test "x$host_alias" = x; then 4906 ac_cv_host=$ac_cv_build 4907else 4908 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4909 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4910fi 4911 4912fi 4913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4914printf "%s\n" "$ac_cv_host" >&6; } 4915case $ac_cv_host in 4916*-*-*) ;; 4917*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4918esac 4919host=$ac_cv_host 4920ac_save_IFS=$IFS; IFS='-' 4921set x $ac_cv_host 4922shift 4923host_cpu=$1 4924host_vendor=$2 4925shift; shift 4926# Remember, the first character of IFS is used to create $*, 4927# except with old shells: 4928host_os=$* 4929IFS=$ac_save_IFS 4930case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4931 4932 4933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4934printf %s "checking for a sed that does not truncate output... " >&6; } 4935if test ${ac_cv_path_SED+y} 4936then : 4937 printf %s "(cached) " >&6 4938else $as_nop 4939 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4940 for ac_i in 1 2 3 4 5 6 7; do 4941 ac_script="$ac_script$as_nl$ac_script" 4942 done 4943 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4944 { ac_script=; unset ac_script;} 4945 if test -z "$SED"; then 4946 ac_path_SED_found=false 4947 # Loop through the user's path and test for each of PROGNAME-LIST 4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4949for as_dir in $PATH 4950do 4951 IFS=$as_save_IFS 4952 case $as_dir in #((( 4953 '') as_dir=./ ;; 4954 */) ;; 4955 *) as_dir=$as_dir/ ;; 4956 esac 4957 for ac_prog in sed gsed 4958 do 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4961 as_fn_executable_p "$ac_path_SED" || continue 4962# Check for GNU ac_path_SED and select it if it is found. 4963 # Check for GNU $ac_path_SED 4964case `"$ac_path_SED" --version 2>&1` in 4965*GNU*) 4966 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4967*) 4968 ac_count=0 4969 printf %s 0123456789 >"conftest.in" 4970 while : 4971 do 4972 cat "conftest.in" "conftest.in" >"conftest.tmp" 4973 mv "conftest.tmp" "conftest.in" 4974 cp "conftest.in" "conftest.nl" 4975 printf "%s\n" '' >> "conftest.nl" 4976 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4978 as_fn_arith $ac_count + 1 && ac_count=$as_val 4979 if test $ac_count -gt ${ac_path_SED_max-0}; then 4980 # Best one so far, save it but keep looking for a better one 4981 ac_cv_path_SED="$ac_path_SED" 4982 ac_path_SED_max=$ac_count 4983 fi 4984 # 10*(2^10) chars as input seems more than enough 4985 test $ac_count -gt 10 && break 4986 done 4987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4988esac 4989 4990 $ac_path_SED_found && break 3 4991 done 4992 done 4993 done 4994IFS=$as_save_IFS 4995 if test -z "$ac_cv_path_SED"; then 4996 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4997 fi 4998else 4999 ac_cv_path_SED=$SED 5000fi 5001 5002fi 5003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5004printf "%s\n" "$ac_cv_path_SED" >&6; } 5005 SED="$ac_cv_path_SED" 5006 rm -f conftest.sed 5007 5008 5009 5010 5011 5012 5013# Check whether --enable-selective-werror was given. 5014if test ${enable_selective_werror+y} 5015then : 5016 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5017else $as_nop 5018 SELECTIVE_WERROR=yes 5019fi 5020 5021 5022 5023 5024 5025# -v is too short to test reliably with XORG_TESTSET_CFLAG 5026if test "x$SUNCC" = "xyes"; then 5027 BASE_CFLAGS="-v" 5028else 5029 BASE_CFLAGS="" 5030fi 5031 5032# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046xorg_testset_save_CFLAGS="$CFLAGS" 5047 5048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5052if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5053then : 5054 printf %s "(cached) " >&6 5055else $as_nop 5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5057/* end confdefs.h. */ 5058int i; 5059_ACEOF 5060if ac_fn_c_try_compile "$LINENO" 5061then : 5062 xorg_cv_cc_flag_unknown_warning_option=yes 5063else $as_nop 5064 xorg_cv_cc_flag_unknown_warning_option=no 5065fi 5066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5067fi 5068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5069printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5071 CFLAGS="$xorg_testset_save_CFLAGS" 5072fi 5073 5074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5077 fi 5078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5080printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5081if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5082then : 5083 printf %s "(cached) " >&6 5084else $as_nop 5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5086/* end confdefs.h. */ 5087int i; 5088_ACEOF 5089if ac_fn_c_try_compile "$LINENO" 5090then : 5091 xorg_cv_cc_flag_unused_command_line_argument=yes 5092else $as_nop 5093 xorg_cv_cc_flag_unused_command_line_argument=no 5094fi 5095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5096fi 5097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5098printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5100 CFLAGS="$xorg_testset_save_CFLAGS" 5101fi 5102 5103found="no" 5104 5105 if test $found = "no" ; then 5106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5108 fi 5109 5110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5112 fi 5113 5114 CFLAGS="$CFLAGS -Wall" 5115 5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5117printf %s "checking if $CC supports -Wall... " >&6; } 5118 cacheid=xorg_cv_cc_flag__Wall 5119 if eval test \${$cacheid+y} 5120then : 5121 printf %s "(cached) " >&6 5122else $as_nop 5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5124/* end confdefs.h. */ 5125int i; 5126int 5127main (void) 5128{ 5129 5130 ; 5131 return 0; 5132} 5133_ACEOF 5134if ac_fn_c_try_link "$LINENO" 5135then : 5136 eval $cacheid=yes 5137else $as_nop 5138 eval $cacheid=no 5139fi 5140rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5141 conftest$ac_exeext conftest.$ac_ext 5142fi 5143 5144 5145 CFLAGS="$xorg_testset_save_CFLAGS" 5146 5147 eval supported=\$$cacheid 5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5149printf "%s\n" "$supported" >&6; } 5150 if test "$supported" = "yes" ; then 5151 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5152 found="yes" 5153 fi 5154 fi 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170xorg_testset_save_CFLAGS="$CFLAGS" 5171 5172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5176if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5177then : 5178 printf %s "(cached) " >&6 5179else $as_nop 5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5181/* end confdefs.h. */ 5182int i; 5183_ACEOF 5184if ac_fn_c_try_compile "$LINENO" 5185then : 5186 xorg_cv_cc_flag_unknown_warning_option=yes 5187else $as_nop 5188 xorg_cv_cc_flag_unknown_warning_option=no 5189fi 5190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5191fi 5192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5195 CFLAGS="$xorg_testset_save_CFLAGS" 5196fi 5197 5198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5201 fi 5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5205if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5206then : 5207 printf %s "(cached) " >&6 5208else $as_nop 5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210/* end confdefs.h. */ 5211int i; 5212_ACEOF 5213if ac_fn_c_try_compile "$LINENO" 5214then : 5215 xorg_cv_cc_flag_unused_command_line_argument=yes 5216else $as_nop 5217 xorg_cv_cc_flag_unused_command_line_argument=no 5218fi 5219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5220fi 5221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5224 CFLAGS="$xorg_testset_save_CFLAGS" 5225fi 5226 5227found="no" 5228 5229 if test $found = "no" ; then 5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5232 fi 5233 5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5236 fi 5237 5238 CFLAGS="$CFLAGS -Wpointer-arith" 5239 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5241printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5242 cacheid=xorg_cv_cc_flag__Wpointer_arith 5243 if eval test \${$cacheid+y} 5244then : 5245 printf %s "(cached) " >&6 5246else $as_nop 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248/* end confdefs.h. */ 5249int i; 5250int 5251main (void) 5252{ 5253 5254 ; 5255 return 0; 5256} 5257_ACEOF 5258if ac_fn_c_try_link "$LINENO" 5259then : 5260 eval $cacheid=yes 5261else $as_nop 5262 eval $cacheid=no 5263fi 5264rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5265 conftest$ac_exeext conftest.$ac_ext 5266fi 5267 5268 5269 CFLAGS="$xorg_testset_save_CFLAGS" 5270 5271 eval supported=\$$cacheid 5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5273printf "%s\n" "$supported" >&6; } 5274 if test "$supported" = "yes" ; then 5275 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5276 found="yes" 5277 fi 5278 fi 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294xorg_testset_save_CFLAGS="$CFLAGS" 5295 5296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5300if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5301then : 5302 printf %s "(cached) " >&6 5303else $as_nop 5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306int i; 5307_ACEOF 5308if ac_fn_c_try_compile "$LINENO" 5309then : 5310 xorg_cv_cc_flag_unknown_warning_option=yes 5311else $as_nop 5312 xorg_cv_cc_flag_unknown_warning_option=no 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5315fi 5316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5319 CFLAGS="$xorg_testset_save_CFLAGS" 5320fi 5321 5322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5325 fi 5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5329if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5330then : 5331 printf %s "(cached) " >&6 5332else $as_nop 5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5334/* end confdefs.h. */ 5335int i; 5336_ACEOF 5337if ac_fn_c_try_compile "$LINENO" 5338then : 5339 xorg_cv_cc_flag_unused_command_line_argument=yes 5340else $as_nop 5341 xorg_cv_cc_flag_unused_command_line_argument=no 5342fi 5343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5344fi 5345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5348 CFLAGS="$xorg_testset_save_CFLAGS" 5349fi 5350 5351found="no" 5352 5353 if test $found = "no" ; then 5354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5356 fi 5357 5358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5360 fi 5361 5362 CFLAGS="$CFLAGS -Wmissing-declarations" 5363 5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5365printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5366 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5367 if eval test \${$cacheid+y} 5368then : 5369 printf %s "(cached) " >&6 5370else $as_nop 5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373int i; 5374int 5375main (void) 5376{ 5377 5378 ; 5379 return 0; 5380} 5381_ACEOF 5382if ac_fn_c_try_link "$LINENO" 5383then : 5384 eval $cacheid=yes 5385else $as_nop 5386 eval $cacheid=no 5387fi 5388rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5389 conftest$ac_exeext conftest.$ac_ext 5390fi 5391 5392 5393 CFLAGS="$xorg_testset_save_CFLAGS" 5394 5395 eval supported=\$$cacheid 5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5397printf "%s\n" "$supported" >&6; } 5398 if test "$supported" = "yes" ; then 5399 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5400 found="yes" 5401 fi 5402 fi 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418xorg_testset_save_CFLAGS="$CFLAGS" 5419 5420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5424if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5425then : 5426 printf %s "(cached) " >&6 5427else $as_nop 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429/* end confdefs.h. */ 5430int i; 5431_ACEOF 5432if ac_fn_c_try_compile "$LINENO" 5433then : 5434 xorg_cv_cc_flag_unknown_warning_option=yes 5435else $as_nop 5436 xorg_cv_cc_flag_unknown_warning_option=no 5437fi 5438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5439fi 5440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5443 CFLAGS="$xorg_testset_save_CFLAGS" 5444fi 5445 5446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5449 fi 5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5453if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5454then : 5455 printf %s "(cached) " >&6 5456else $as_nop 5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5458/* end confdefs.h. */ 5459int i; 5460_ACEOF 5461if ac_fn_c_try_compile "$LINENO" 5462then : 5463 xorg_cv_cc_flag_unused_command_line_argument=yes 5464else $as_nop 5465 xorg_cv_cc_flag_unused_command_line_argument=no 5466fi 5467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5468fi 5469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5470printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5472 CFLAGS="$xorg_testset_save_CFLAGS" 5473fi 5474 5475found="no" 5476 5477 if test $found = "no" ; then 5478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5480 fi 5481 5482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5484 fi 5485 5486 CFLAGS="$CFLAGS -Wformat=2" 5487 5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5489printf %s "checking if $CC supports -Wformat=2... " >&6; } 5490 cacheid=xorg_cv_cc_flag__Wformat_2 5491 if eval test \${$cacheid+y} 5492then : 5493 printf %s "(cached) " >&6 5494else $as_nop 5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5496/* end confdefs.h. */ 5497int i; 5498int 5499main (void) 5500{ 5501 5502 ; 5503 return 0; 5504} 5505_ACEOF 5506if ac_fn_c_try_link "$LINENO" 5507then : 5508 eval $cacheid=yes 5509else $as_nop 5510 eval $cacheid=no 5511fi 5512rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5513 conftest$ac_exeext conftest.$ac_ext 5514fi 5515 5516 5517 CFLAGS="$xorg_testset_save_CFLAGS" 5518 5519 eval supported=\$$cacheid 5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5521printf "%s\n" "$supported" >&6; } 5522 if test "$supported" = "yes" ; then 5523 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5524 found="yes" 5525 fi 5526 fi 5527 5528 if test $found = "no" ; then 5529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5531 fi 5532 5533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5535 fi 5536 5537 CFLAGS="$CFLAGS -Wformat" 5538 5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5540printf %s "checking if $CC supports -Wformat... " >&6; } 5541 cacheid=xorg_cv_cc_flag__Wformat 5542 if eval test \${$cacheid+y} 5543then : 5544 printf %s "(cached) " >&6 5545else $as_nop 5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5547/* end confdefs.h. */ 5548int i; 5549int 5550main (void) 5551{ 5552 5553 ; 5554 return 0; 5555} 5556_ACEOF 5557if ac_fn_c_try_link "$LINENO" 5558then : 5559 eval $cacheid=yes 5560else $as_nop 5561 eval $cacheid=no 5562fi 5563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5564 conftest$ac_exeext conftest.$ac_ext 5565fi 5566 5567 5568 CFLAGS="$xorg_testset_save_CFLAGS" 5569 5570 eval supported=\$$cacheid 5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5572printf "%s\n" "$supported" >&6; } 5573 if test "$supported" = "yes" ; then 5574 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5575 found="yes" 5576 fi 5577 fi 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595xorg_testset_save_CFLAGS="$CFLAGS" 5596 5597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5601if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5602then : 5603 printf %s "(cached) " >&6 5604else $as_nop 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607int i; 5608_ACEOF 5609if ac_fn_c_try_compile "$LINENO" 5610then : 5611 xorg_cv_cc_flag_unknown_warning_option=yes 5612else $as_nop 5613 xorg_cv_cc_flag_unknown_warning_option=no 5614fi 5615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5616fi 5617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5618printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5620 CFLAGS="$xorg_testset_save_CFLAGS" 5621fi 5622 5623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5626 fi 5627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5629printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5630if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5631then : 5632 printf %s "(cached) " >&6 5633else $as_nop 5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635/* end confdefs.h. */ 5636int i; 5637_ACEOF 5638if ac_fn_c_try_compile "$LINENO" 5639then : 5640 xorg_cv_cc_flag_unused_command_line_argument=yes 5641else $as_nop 5642 xorg_cv_cc_flag_unused_command_line_argument=no 5643fi 5644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5645fi 5646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5647printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5649 CFLAGS="$xorg_testset_save_CFLAGS" 5650fi 5651 5652found="no" 5653 5654 if test $found = "no" ; then 5655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5657 fi 5658 5659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5661 fi 5662 5663 CFLAGS="$CFLAGS -Wstrict-prototypes" 5664 5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5666printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5667 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5668 if eval test \${$cacheid+y} 5669then : 5670 printf %s "(cached) " >&6 5671else $as_nop 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673/* end confdefs.h. */ 5674int i; 5675int 5676main (void) 5677{ 5678 5679 ; 5680 return 0; 5681} 5682_ACEOF 5683if ac_fn_c_try_link "$LINENO" 5684then : 5685 eval $cacheid=yes 5686else $as_nop 5687 eval $cacheid=no 5688fi 5689rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5690 conftest$ac_exeext conftest.$ac_ext 5691fi 5692 5693 5694 CFLAGS="$xorg_testset_save_CFLAGS" 5695 5696 eval supported=\$$cacheid 5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5698printf "%s\n" "$supported" >&6; } 5699 if test "$supported" = "yes" ; then 5700 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5701 found="yes" 5702 fi 5703 fi 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719xorg_testset_save_CFLAGS="$CFLAGS" 5720 5721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5724printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5725if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5726then : 5727 printf %s "(cached) " >&6 5728else $as_nop 5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5730/* end confdefs.h. */ 5731int i; 5732_ACEOF 5733if ac_fn_c_try_compile "$LINENO" 5734then : 5735 xorg_cv_cc_flag_unknown_warning_option=yes 5736else $as_nop 5737 xorg_cv_cc_flag_unknown_warning_option=no 5738fi 5739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5740fi 5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5742printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5744 CFLAGS="$xorg_testset_save_CFLAGS" 5745fi 5746 5747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5750 fi 5751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5753printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5754if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5755then : 5756 printf %s "(cached) " >&6 5757else $as_nop 5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5759/* end confdefs.h. */ 5760int i; 5761_ACEOF 5762if ac_fn_c_try_compile "$LINENO" 5763then : 5764 xorg_cv_cc_flag_unused_command_line_argument=yes 5765else $as_nop 5766 xorg_cv_cc_flag_unused_command_line_argument=no 5767fi 5768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5769fi 5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5771printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5773 CFLAGS="$xorg_testset_save_CFLAGS" 5774fi 5775 5776found="no" 5777 5778 if test $found = "no" ; then 5779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5781 fi 5782 5783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5785 fi 5786 5787 CFLAGS="$CFLAGS -Wmissing-prototypes" 5788 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5790printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5791 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5792 if eval test \${$cacheid+y} 5793then : 5794 printf %s "(cached) " >&6 5795else $as_nop 5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798int i; 5799int 5800main (void) 5801{ 5802 5803 ; 5804 return 0; 5805} 5806_ACEOF 5807if ac_fn_c_try_link "$LINENO" 5808then : 5809 eval $cacheid=yes 5810else $as_nop 5811 eval $cacheid=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5814 conftest$ac_exeext conftest.$ac_ext 5815fi 5816 5817 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819 5820 eval supported=\$$cacheid 5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5822printf "%s\n" "$supported" >&6; } 5823 if test "$supported" = "yes" ; then 5824 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5825 found="yes" 5826 fi 5827 fi 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843xorg_testset_save_CFLAGS="$CFLAGS" 5844 5845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5849if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5850then : 5851 printf %s "(cached) " >&6 5852else $as_nop 5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5854/* end confdefs.h. */ 5855int i; 5856_ACEOF 5857if ac_fn_c_try_compile "$LINENO" 5858then : 5859 xorg_cv_cc_flag_unknown_warning_option=yes 5860else $as_nop 5861 xorg_cv_cc_flag_unknown_warning_option=no 5862fi 5863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5864fi 5865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5866printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5868 CFLAGS="$xorg_testset_save_CFLAGS" 5869fi 5870 5871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5874 fi 5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5877printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5878if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5879then : 5880 printf %s "(cached) " >&6 5881else $as_nop 5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5883/* end confdefs.h. */ 5884int i; 5885_ACEOF 5886if ac_fn_c_try_compile "$LINENO" 5887then : 5888 xorg_cv_cc_flag_unused_command_line_argument=yes 5889else $as_nop 5890 xorg_cv_cc_flag_unused_command_line_argument=no 5891fi 5892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5893fi 5894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5895printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5897 CFLAGS="$xorg_testset_save_CFLAGS" 5898fi 5899 5900found="no" 5901 5902 if test $found = "no" ; then 5903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5905 fi 5906 5907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5909 fi 5910 5911 CFLAGS="$CFLAGS -Wnested-externs" 5912 5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5914printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5915 cacheid=xorg_cv_cc_flag__Wnested_externs 5916 if eval test \${$cacheid+y} 5917then : 5918 printf %s "(cached) " >&6 5919else $as_nop 5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5921/* end confdefs.h. */ 5922int i; 5923int 5924main (void) 5925{ 5926 5927 ; 5928 return 0; 5929} 5930_ACEOF 5931if ac_fn_c_try_link "$LINENO" 5932then : 5933 eval $cacheid=yes 5934else $as_nop 5935 eval $cacheid=no 5936fi 5937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5938 conftest$ac_exeext conftest.$ac_ext 5939fi 5940 5941 5942 CFLAGS="$xorg_testset_save_CFLAGS" 5943 5944 eval supported=\$$cacheid 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5946printf "%s\n" "$supported" >&6; } 5947 if test "$supported" = "yes" ; then 5948 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5949 found="yes" 5950 fi 5951 fi 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967xorg_testset_save_CFLAGS="$CFLAGS" 5968 5969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5973if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5974then : 5975 printf %s "(cached) " >&6 5976else $as_nop 5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979int i; 5980_ACEOF 5981if ac_fn_c_try_compile "$LINENO" 5982then : 5983 xorg_cv_cc_flag_unknown_warning_option=yes 5984else $as_nop 5985 xorg_cv_cc_flag_unknown_warning_option=no 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5988fi 5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5990printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5992 CFLAGS="$xorg_testset_save_CFLAGS" 5993fi 5994 5995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5998 fi 5999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6001printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6002if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6003then : 6004 printf %s "(cached) " >&6 6005else $as_nop 6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6007/* end confdefs.h. */ 6008int i; 6009_ACEOF 6010if ac_fn_c_try_compile "$LINENO" 6011then : 6012 xorg_cv_cc_flag_unused_command_line_argument=yes 6013else $as_nop 6014 xorg_cv_cc_flag_unused_command_line_argument=no 6015fi 6016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6017fi 6018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6019printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6021 CFLAGS="$xorg_testset_save_CFLAGS" 6022fi 6023 6024found="no" 6025 6026 if test $found = "no" ; then 6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6029 fi 6030 6031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6033 fi 6034 6035 CFLAGS="$CFLAGS -Wbad-function-cast" 6036 6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6038printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6039 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6040 if eval test \${$cacheid+y} 6041then : 6042 printf %s "(cached) " >&6 6043else $as_nop 6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6045/* end confdefs.h. */ 6046int i; 6047int 6048main (void) 6049{ 6050 6051 ; 6052 return 0; 6053} 6054_ACEOF 6055if ac_fn_c_try_link "$LINENO" 6056then : 6057 eval $cacheid=yes 6058else $as_nop 6059 eval $cacheid=no 6060fi 6061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6062 conftest$ac_exeext conftest.$ac_ext 6063fi 6064 6065 6066 CFLAGS="$xorg_testset_save_CFLAGS" 6067 6068 eval supported=\$$cacheid 6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6070printf "%s\n" "$supported" >&6; } 6071 if test "$supported" = "yes" ; then 6072 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6073 found="yes" 6074 fi 6075 fi 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091xorg_testset_save_CFLAGS="$CFLAGS" 6092 6093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6097if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6098then : 6099 printf %s "(cached) " >&6 6100else $as_nop 6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6102/* end confdefs.h. */ 6103int i; 6104_ACEOF 6105if ac_fn_c_try_compile "$LINENO" 6106then : 6107 xorg_cv_cc_flag_unknown_warning_option=yes 6108else $as_nop 6109 xorg_cv_cc_flag_unknown_warning_option=no 6110fi 6111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6112fi 6113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6116 CFLAGS="$xorg_testset_save_CFLAGS" 6117fi 6118 6119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6122 fi 6123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6126if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6127then : 6128 printf %s "(cached) " >&6 6129else $as_nop 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131/* end confdefs.h. */ 6132int i; 6133_ACEOF 6134if ac_fn_c_try_compile "$LINENO" 6135then : 6136 xorg_cv_cc_flag_unused_command_line_argument=yes 6137else $as_nop 6138 xorg_cv_cc_flag_unused_command_line_argument=no 6139fi 6140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6141fi 6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6145 CFLAGS="$xorg_testset_save_CFLAGS" 6146fi 6147 6148found="no" 6149 6150 if test $found = "no" ; then 6151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6153 fi 6154 6155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6157 fi 6158 6159 CFLAGS="$CFLAGS -Wold-style-definition" 6160 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6162printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6163 cacheid=xorg_cv_cc_flag__Wold_style_definition 6164 if eval test \${$cacheid+y} 6165then : 6166 printf %s "(cached) " >&6 6167else $as_nop 6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6169/* end confdefs.h. */ 6170int i; 6171int 6172main (void) 6173{ 6174 6175 ; 6176 return 0; 6177} 6178_ACEOF 6179if ac_fn_c_try_link "$LINENO" 6180then : 6181 eval $cacheid=yes 6182else $as_nop 6183 eval $cacheid=no 6184fi 6185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6186 conftest$ac_exeext conftest.$ac_ext 6187fi 6188 6189 6190 CFLAGS="$xorg_testset_save_CFLAGS" 6191 6192 eval supported=\$$cacheid 6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6194printf "%s\n" "$supported" >&6; } 6195 if test "$supported" = "yes" ; then 6196 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6197 found="yes" 6198 fi 6199 fi 6200 6201 if test $found = "no" ; then 6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6204 fi 6205 6206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6208 fi 6209 6210 CFLAGS="$CFLAGS -fd" 6211 6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6213printf %s "checking if $CC supports -fd... " >&6; } 6214 cacheid=xorg_cv_cc_flag__fd 6215 if eval test \${$cacheid+y} 6216then : 6217 printf %s "(cached) " >&6 6218else $as_nop 6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6220/* end confdefs.h. */ 6221int i; 6222int 6223main (void) 6224{ 6225 6226 ; 6227 return 0; 6228} 6229_ACEOF 6230if ac_fn_c_try_link "$LINENO" 6231then : 6232 eval $cacheid=yes 6233else $as_nop 6234 eval $cacheid=no 6235fi 6236rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6237 conftest$ac_exeext conftest.$ac_ext 6238fi 6239 6240 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242 6243 eval supported=\$$cacheid 6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6245printf "%s\n" "$supported" >&6; } 6246 if test "$supported" = "yes" ; then 6247 BASE_CFLAGS="$BASE_CFLAGS -fd" 6248 found="yes" 6249 fi 6250 fi 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266xorg_testset_save_CFLAGS="$CFLAGS" 6267 6268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6272if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6273then : 6274 printf %s "(cached) " >&6 6275else $as_nop 6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6277/* end confdefs.h. */ 6278int i; 6279_ACEOF 6280if ac_fn_c_try_compile "$LINENO" 6281then : 6282 xorg_cv_cc_flag_unknown_warning_option=yes 6283else $as_nop 6284 xorg_cv_cc_flag_unknown_warning_option=no 6285fi 6286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6287fi 6288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6289printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6291 CFLAGS="$xorg_testset_save_CFLAGS" 6292fi 6293 6294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6297 fi 6298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6300printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6301if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6302then : 6303 printf %s "(cached) " >&6 6304else $as_nop 6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6306/* end confdefs.h. */ 6307int i; 6308_ACEOF 6309if ac_fn_c_try_compile "$LINENO" 6310then : 6311 xorg_cv_cc_flag_unused_command_line_argument=yes 6312else $as_nop 6313 xorg_cv_cc_flag_unused_command_line_argument=no 6314fi 6315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6316fi 6317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6320 CFLAGS="$xorg_testset_save_CFLAGS" 6321fi 6322 6323found="no" 6324 6325 if test $found = "no" ; then 6326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6328 fi 6329 6330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6332 fi 6333 6334 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6335 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6337printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6338 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6339 if eval test \${$cacheid+y} 6340then : 6341 printf %s "(cached) " >&6 6342else $as_nop 6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6344/* end confdefs.h. */ 6345int i; 6346int 6347main (void) 6348{ 6349 6350 ; 6351 return 0; 6352} 6353_ACEOF 6354if ac_fn_c_try_link "$LINENO" 6355then : 6356 eval $cacheid=yes 6357else $as_nop 6358 eval $cacheid=no 6359fi 6360rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6361 conftest$ac_exeext conftest.$ac_ext 6362fi 6363 6364 6365 CFLAGS="$xorg_testset_save_CFLAGS" 6366 6367 eval supported=\$$cacheid 6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6369printf "%s\n" "$supported" >&6; } 6370 if test "$supported" = "yes" ; then 6371 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6372 found="yes" 6373 fi 6374 fi 6375 6376 6377 6378 6379 6380# This chunk adds additional warnings that could catch undesired effects. 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394xorg_testset_save_CFLAGS="$CFLAGS" 6395 6396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6400if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6401then : 6402 printf %s "(cached) " >&6 6403else $as_nop 6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405/* end confdefs.h. */ 6406int i; 6407_ACEOF 6408if ac_fn_c_try_compile "$LINENO" 6409then : 6410 xorg_cv_cc_flag_unknown_warning_option=yes 6411else $as_nop 6412 xorg_cv_cc_flag_unknown_warning_option=no 6413fi 6414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6415fi 6416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6419 CFLAGS="$xorg_testset_save_CFLAGS" 6420fi 6421 6422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6425 fi 6426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6429if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6430then : 6431 printf %s "(cached) " >&6 6432else $as_nop 6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6434/* end confdefs.h. */ 6435int i; 6436_ACEOF 6437if ac_fn_c_try_compile "$LINENO" 6438then : 6439 xorg_cv_cc_flag_unused_command_line_argument=yes 6440else $as_nop 6441 xorg_cv_cc_flag_unused_command_line_argument=no 6442fi 6443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6444fi 6445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6448 CFLAGS="$xorg_testset_save_CFLAGS" 6449fi 6450 6451found="no" 6452 6453 if test $found = "no" ; then 6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6456 fi 6457 6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6460 fi 6461 6462 CFLAGS="$CFLAGS -Wunused" 6463 6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6465printf %s "checking if $CC supports -Wunused... " >&6; } 6466 cacheid=xorg_cv_cc_flag__Wunused 6467 if eval test \${$cacheid+y} 6468then : 6469 printf %s "(cached) " >&6 6470else $as_nop 6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472/* end confdefs.h. */ 6473int i; 6474int 6475main (void) 6476{ 6477 6478 ; 6479 return 0; 6480} 6481_ACEOF 6482if ac_fn_c_try_link "$LINENO" 6483then : 6484 eval $cacheid=yes 6485else $as_nop 6486 eval $cacheid=no 6487fi 6488rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6489 conftest$ac_exeext conftest.$ac_ext 6490fi 6491 6492 6493 CFLAGS="$xorg_testset_save_CFLAGS" 6494 6495 eval supported=\$$cacheid 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6497printf "%s\n" "$supported" >&6; } 6498 if test "$supported" = "yes" ; then 6499 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6500 found="yes" 6501 fi 6502 fi 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518xorg_testset_save_CFLAGS="$CFLAGS" 6519 6520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6524if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6525then : 6526 printf %s "(cached) " >&6 6527else $as_nop 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529/* end confdefs.h. */ 6530int i; 6531_ACEOF 6532if ac_fn_c_try_compile "$LINENO" 6533then : 6534 xorg_cv_cc_flag_unknown_warning_option=yes 6535else $as_nop 6536 xorg_cv_cc_flag_unknown_warning_option=no 6537fi 6538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6539fi 6540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6543 CFLAGS="$xorg_testset_save_CFLAGS" 6544fi 6545 6546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6549 fi 6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6553if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6554then : 6555 printf %s "(cached) " >&6 6556else $as_nop 6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6558/* end confdefs.h. */ 6559int i; 6560_ACEOF 6561if ac_fn_c_try_compile "$LINENO" 6562then : 6563 xorg_cv_cc_flag_unused_command_line_argument=yes 6564else $as_nop 6565 xorg_cv_cc_flag_unused_command_line_argument=no 6566fi 6567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6568fi 6569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6572 CFLAGS="$xorg_testset_save_CFLAGS" 6573fi 6574 6575found="no" 6576 6577 if test $found = "no" ; then 6578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6580 fi 6581 6582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6584 fi 6585 6586 CFLAGS="$CFLAGS -Wuninitialized" 6587 6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6589printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6590 cacheid=xorg_cv_cc_flag__Wuninitialized 6591 if eval test \${$cacheid+y} 6592then : 6593 printf %s "(cached) " >&6 6594else $as_nop 6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6596/* end confdefs.h. */ 6597int i; 6598int 6599main (void) 6600{ 6601 6602 ; 6603 return 0; 6604} 6605_ACEOF 6606if ac_fn_c_try_link "$LINENO" 6607then : 6608 eval $cacheid=yes 6609else $as_nop 6610 eval $cacheid=no 6611fi 6612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6613 conftest$ac_exeext conftest.$ac_ext 6614fi 6615 6616 6617 CFLAGS="$xorg_testset_save_CFLAGS" 6618 6619 eval supported=\$$cacheid 6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6621printf "%s\n" "$supported" >&6; } 6622 if test "$supported" = "yes" ; then 6623 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6624 found="yes" 6625 fi 6626 fi 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642xorg_testset_save_CFLAGS="$CFLAGS" 6643 6644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6648if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6649then : 6650 printf %s "(cached) " >&6 6651else $as_nop 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653/* end confdefs.h. */ 6654int i; 6655_ACEOF 6656if ac_fn_c_try_compile "$LINENO" 6657then : 6658 xorg_cv_cc_flag_unknown_warning_option=yes 6659else $as_nop 6660 xorg_cv_cc_flag_unknown_warning_option=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6663fi 6664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668fi 6669 6670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6673 fi 6674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6677if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6678then : 6679 printf %s "(cached) " >&6 6680else $as_nop 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683int i; 6684_ACEOF 6685if ac_fn_c_try_compile "$LINENO" 6686then : 6687 xorg_cv_cc_flag_unused_command_line_argument=yes 6688else $as_nop 6689 xorg_cv_cc_flag_unused_command_line_argument=no 6690fi 6691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6692fi 6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6696 CFLAGS="$xorg_testset_save_CFLAGS" 6697fi 6698 6699found="no" 6700 6701 if test $found = "no" ; then 6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6704 fi 6705 6706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6708 fi 6709 6710 CFLAGS="$CFLAGS -Wshadow" 6711 6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6713printf %s "checking if $CC supports -Wshadow... " >&6; } 6714 cacheid=xorg_cv_cc_flag__Wshadow 6715 if eval test \${$cacheid+y} 6716then : 6717 printf %s "(cached) " >&6 6718else $as_nop 6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6720/* end confdefs.h. */ 6721int i; 6722int 6723main (void) 6724{ 6725 6726 ; 6727 return 0; 6728} 6729_ACEOF 6730if ac_fn_c_try_link "$LINENO" 6731then : 6732 eval $cacheid=yes 6733else $as_nop 6734 eval $cacheid=no 6735fi 6736rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6737 conftest$ac_exeext conftest.$ac_ext 6738fi 6739 6740 6741 CFLAGS="$xorg_testset_save_CFLAGS" 6742 6743 eval supported=\$$cacheid 6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6745printf "%s\n" "$supported" >&6; } 6746 if test "$supported" = "yes" ; then 6747 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6748 found="yes" 6749 fi 6750 fi 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766xorg_testset_save_CFLAGS="$CFLAGS" 6767 6768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6772if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6773then : 6774 printf %s "(cached) " >&6 6775else $as_nop 6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6777/* end confdefs.h. */ 6778int i; 6779_ACEOF 6780if ac_fn_c_try_compile "$LINENO" 6781then : 6782 xorg_cv_cc_flag_unknown_warning_option=yes 6783else $as_nop 6784 xorg_cv_cc_flag_unknown_warning_option=no 6785fi 6786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6787fi 6788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6791 CFLAGS="$xorg_testset_save_CFLAGS" 6792fi 6793 6794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 fi 6798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6801if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6802then : 6803 printf %s "(cached) " >&6 6804else $as_nop 6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6806/* end confdefs.h. */ 6807int i; 6808_ACEOF 6809if ac_fn_c_try_compile "$LINENO" 6810then : 6811 xorg_cv_cc_flag_unused_command_line_argument=yes 6812else $as_nop 6813 xorg_cv_cc_flag_unused_command_line_argument=no 6814fi 6815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6816fi 6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6820 CFLAGS="$xorg_testset_save_CFLAGS" 6821fi 6822 6823found="no" 6824 6825 if test $found = "no" ; then 6826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6828 fi 6829 6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6832 fi 6833 6834 CFLAGS="$CFLAGS -Wmissing-noreturn" 6835 6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6837printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6838 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6839 if eval test \${$cacheid+y} 6840then : 6841 printf %s "(cached) " >&6 6842else $as_nop 6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6844/* end confdefs.h. */ 6845int i; 6846int 6847main (void) 6848{ 6849 6850 ; 6851 return 0; 6852} 6853_ACEOF 6854if ac_fn_c_try_link "$LINENO" 6855then : 6856 eval $cacheid=yes 6857else $as_nop 6858 eval $cacheid=no 6859fi 6860rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6861 conftest$ac_exeext conftest.$ac_ext 6862fi 6863 6864 6865 CFLAGS="$xorg_testset_save_CFLAGS" 6866 6867 eval supported=\$$cacheid 6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6869printf "%s\n" "$supported" >&6; } 6870 if test "$supported" = "yes" ; then 6871 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6872 found="yes" 6873 fi 6874 fi 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890xorg_testset_save_CFLAGS="$CFLAGS" 6891 6892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6896if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6897then : 6898 printf %s "(cached) " >&6 6899else $as_nop 6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6901/* end confdefs.h. */ 6902int i; 6903_ACEOF 6904if ac_fn_c_try_compile "$LINENO" 6905then : 6906 xorg_cv_cc_flag_unknown_warning_option=yes 6907else $as_nop 6908 xorg_cv_cc_flag_unknown_warning_option=no 6909fi 6910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6911fi 6912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6915 CFLAGS="$xorg_testset_save_CFLAGS" 6916fi 6917 6918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6921 fi 6922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6925if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6926then : 6927 printf %s "(cached) " >&6 6928else $as_nop 6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930/* end confdefs.h. */ 6931int i; 6932_ACEOF 6933if ac_fn_c_try_compile "$LINENO" 6934then : 6935 xorg_cv_cc_flag_unused_command_line_argument=yes 6936else $as_nop 6937 xorg_cv_cc_flag_unused_command_line_argument=no 6938fi 6939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6940fi 6941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6944 CFLAGS="$xorg_testset_save_CFLAGS" 6945fi 6946 6947found="no" 6948 6949 if test $found = "no" ; then 6950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6952 fi 6953 6954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6956 fi 6957 6958 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6959 6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6961printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6962 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6963 if eval test \${$cacheid+y} 6964then : 6965 printf %s "(cached) " >&6 6966else $as_nop 6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6968/* end confdefs.h. */ 6969int i; 6970int 6971main (void) 6972{ 6973 6974 ; 6975 return 0; 6976} 6977_ACEOF 6978if ac_fn_c_try_link "$LINENO" 6979then : 6980 eval $cacheid=yes 6981else $as_nop 6982 eval $cacheid=no 6983fi 6984rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6985 conftest$ac_exeext conftest.$ac_ext 6986fi 6987 6988 6989 CFLAGS="$xorg_testset_save_CFLAGS" 6990 6991 eval supported=\$$cacheid 6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6993printf "%s\n" "$supported" >&6; } 6994 if test "$supported" = "yes" ; then 6995 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6996 found="yes" 6997 fi 6998 fi 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014xorg_testset_save_CFLAGS="$CFLAGS" 7015 7016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7019printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7020if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7021then : 7022 printf %s "(cached) " >&6 7023else $as_nop 7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025/* end confdefs.h. */ 7026int i; 7027_ACEOF 7028if ac_fn_c_try_compile "$LINENO" 7029then : 7030 xorg_cv_cc_flag_unknown_warning_option=yes 7031else $as_nop 7032 xorg_cv_cc_flag_unknown_warning_option=no 7033fi 7034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7035fi 7036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7039 CFLAGS="$xorg_testset_save_CFLAGS" 7040fi 7041 7042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7045 fi 7046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7049if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7050then : 7051 printf %s "(cached) " >&6 7052else $as_nop 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054/* end confdefs.h. */ 7055int i; 7056_ACEOF 7057if ac_fn_c_try_compile "$LINENO" 7058then : 7059 xorg_cv_cc_flag_unused_command_line_argument=yes 7060else $as_nop 7061 xorg_cv_cc_flag_unused_command_line_argument=no 7062fi 7063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7064fi 7065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7068 CFLAGS="$xorg_testset_save_CFLAGS" 7069fi 7070 7071found="no" 7072 7073 if test $found = "no" ; then 7074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7076 fi 7077 7078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7080 fi 7081 7082 CFLAGS="$CFLAGS -Wredundant-decls" 7083 7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7085printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7086 cacheid=xorg_cv_cc_flag__Wredundant_decls 7087 if eval test \${$cacheid+y} 7088then : 7089 printf %s "(cached) " >&6 7090else $as_nop 7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092/* end confdefs.h. */ 7093int i; 7094int 7095main (void) 7096{ 7097 7098 ; 7099 return 0; 7100} 7101_ACEOF 7102if ac_fn_c_try_link "$LINENO" 7103then : 7104 eval $cacheid=yes 7105else $as_nop 7106 eval $cacheid=no 7107fi 7108rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7109 conftest$ac_exeext conftest.$ac_ext 7110fi 7111 7112 7113 CFLAGS="$xorg_testset_save_CFLAGS" 7114 7115 eval supported=\$$cacheid 7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7117printf "%s\n" "$supported" >&6; } 7118 if test "$supported" = "yes" ; then 7119 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7120 found="yes" 7121 fi 7122 fi 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138xorg_testset_save_CFLAGS="$CFLAGS" 7139 7140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7144if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7145then : 7146 printf %s "(cached) " >&6 7147else $as_nop 7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149/* end confdefs.h. */ 7150int i; 7151_ACEOF 7152if ac_fn_c_try_compile "$LINENO" 7153then : 7154 xorg_cv_cc_flag_unknown_warning_option=yes 7155else $as_nop 7156 xorg_cv_cc_flag_unknown_warning_option=no 7157fi 7158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7159fi 7160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7163 CFLAGS="$xorg_testset_save_CFLAGS" 7164fi 7165 7166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7169 fi 7170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7173if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7174then : 7175 printf %s "(cached) " >&6 7176else $as_nop 7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7178/* end confdefs.h. */ 7179int i; 7180_ACEOF 7181if ac_fn_c_try_compile "$LINENO" 7182then : 7183 xorg_cv_cc_flag_unused_command_line_argument=yes 7184else $as_nop 7185 xorg_cv_cc_flag_unused_command_line_argument=no 7186fi 7187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7188fi 7189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7192 CFLAGS="$xorg_testset_save_CFLAGS" 7193fi 7194 7195found="no" 7196 7197 if test $found = "no" ; then 7198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7200 fi 7201 7202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7204 fi 7205 7206 CFLAGS="$CFLAGS -Wlogical-op" 7207 7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7209printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7210 cacheid=xorg_cv_cc_flag__Wlogical_op 7211 if eval test \${$cacheid+y} 7212then : 7213 printf %s "(cached) " >&6 7214else $as_nop 7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7216/* end confdefs.h. */ 7217int i; 7218int 7219main (void) 7220{ 7221 7222 ; 7223 return 0; 7224} 7225_ACEOF 7226if ac_fn_c_try_link "$LINENO" 7227then : 7228 eval $cacheid=yes 7229else $as_nop 7230 eval $cacheid=no 7231fi 7232rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7233 conftest$ac_exeext conftest.$ac_ext 7234fi 7235 7236 7237 CFLAGS="$xorg_testset_save_CFLAGS" 7238 7239 eval supported=\$$cacheid 7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7241printf "%s\n" "$supported" >&6; } 7242 if test "$supported" = "yes" ; then 7243 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7244 found="yes" 7245 fi 7246 fi 7247 7248 7249 7250# These are currently disabled because they are noisy. They will be enabled 7251# in the future once the codebase is sufficiently modernized to silence 7252# them. For now, I don't want them to drown out the other warnings. 7253# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7254# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7255# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7256 7257# Turn some warnings into errors, so we don't accidently get successful builds 7258# when there are problems that should be fixed. 7259 7260if test "x$SELECTIVE_WERROR" = "xyes" ; then 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274xorg_testset_save_CFLAGS="$CFLAGS" 7275 7276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7280if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7281then : 7282 printf %s "(cached) " >&6 7283else $as_nop 7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7285/* end confdefs.h. */ 7286int i; 7287_ACEOF 7288if ac_fn_c_try_compile "$LINENO" 7289then : 7290 xorg_cv_cc_flag_unknown_warning_option=yes 7291else $as_nop 7292 xorg_cv_cc_flag_unknown_warning_option=no 7293fi 7294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7295fi 7296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7299 CFLAGS="$xorg_testset_save_CFLAGS" 7300fi 7301 7302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7305 fi 7306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7309if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7310then : 7311 printf %s "(cached) " >&6 7312else $as_nop 7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314/* end confdefs.h. */ 7315int i; 7316_ACEOF 7317if ac_fn_c_try_compile "$LINENO" 7318then : 7319 xorg_cv_cc_flag_unused_command_line_argument=yes 7320else $as_nop 7321 xorg_cv_cc_flag_unused_command_line_argument=no 7322fi 7323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7324fi 7325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7328 CFLAGS="$xorg_testset_save_CFLAGS" 7329fi 7330 7331found="no" 7332 7333 if test $found = "no" ; then 7334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7336 fi 7337 7338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7340 fi 7341 7342 CFLAGS="$CFLAGS -Werror=implicit" 7343 7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7345printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7346 cacheid=xorg_cv_cc_flag__Werror_implicit 7347 if eval test \${$cacheid+y} 7348then : 7349 printf %s "(cached) " >&6 7350else $as_nop 7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352/* end confdefs.h. */ 7353int i; 7354int 7355main (void) 7356{ 7357 7358 ; 7359 return 0; 7360} 7361_ACEOF 7362if ac_fn_c_try_link "$LINENO" 7363then : 7364 eval $cacheid=yes 7365else $as_nop 7366 eval $cacheid=no 7367fi 7368rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7369 conftest$ac_exeext conftest.$ac_ext 7370fi 7371 7372 7373 CFLAGS="$xorg_testset_save_CFLAGS" 7374 7375 eval supported=\$$cacheid 7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7377printf "%s\n" "$supported" >&6; } 7378 if test "$supported" = "yes" ; then 7379 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7380 found="yes" 7381 fi 7382 fi 7383 7384 if test $found = "no" ; then 7385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7387 fi 7388 7389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7391 fi 7392 7393 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7394 7395 { 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 7396printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7397 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7398 if eval test \${$cacheid+y} 7399then : 7400 printf %s "(cached) " >&6 7401else $as_nop 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404int i; 7405int 7406main (void) 7407{ 7408 7409 ; 7410 return 0; 7411} 7412_ACEOF 7413if ac_fn_c_try_link "$LINENO" 7414then : 7415 eval $cacheid=yes 7416else $as_nop 7417 eval $cacheid=no 7418fi 7419rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7420 conftest$ac_exeext conftest.$ac_ext 7421fi 7422 7423 7424 CFLAGS="$xorg_testset_save_CFLAGS" 7425 7426 eval supported=\$$cacheid 7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7428printf "%s\n" "$supported" >&6; } 7429 if test "$supported" = "yes" ; then 7430 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7431 found="yes" 7432 fi 7433 fi 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449xorg_testset_save_CFLAGS="$CFLAGS" 7450 7451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7455if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7456then : 7457 printf %s "(cached) " >&6 7458else $as_nop 7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7460/* end confdefs.h. */ 7461int i; 7462_ACEOF 7463if ac_fn_c_try_compile "$LINENO" 7464then : 7465 xorg_cv_cc_flag_unknown_warning_option=yes 7466else $as_nop 7467 xorg_cv_cc_flag_unknown_warning_option=no 7468fi 7469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7470fi 7471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7472printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7474 CFLAGS="$xorg_testset_save_CFLAGS" 7475fi 7476 7477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7480 fi 7481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7483printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7484if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7485then : 7486 printf %s "(cached) " >&6 7487else $as_nop 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489/* end confdefs.h. */ 7490int i; 7491_ACEOF 7492if ac_fn_c_try_compile "$LINENO" 7493then : 7494 xorg_cv_cc_flag_unused_command_line_argument=yes 7495else $as_nop 7496 xorg_cv_cc_flag_unused_command_line_argument=no 7497fi 7498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7499fi 7500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7501printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7503 CFLAGS="$xorg_testset_save_CFLAGS" 7504fi 7505 7506found="no" 7507 7508 if test $found = "no" ; then 7509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7511 fi 7512 7513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7515 fi 7516 7517 CFLAGS="$CFLAGS -Werror=nonnull" 7518 7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7520printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7521 cacheid=xorg_cv_cc_flag__Werror_nonnull 7522 if eval test \${$cacheid+y} 7523then : 7524 printf %s "(cached) " >&6 7525else $as_nop 7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7527/* end confdefs.h. */ 7528int i; 7529int 7530main (void) 7531{ 7532 7533 ; 7534 return 0; 7535} 7536_ACEOF 7537if ac_fn_c_try_link "$LINENO" 7538then : 7539 eval $cacheid=yes 7540else $as_nop 7541 eval $cacheid=no 7542fi 7543rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7544 conftest$ac_exeext conftest.$ac_ext 7545fi 7546 7547 7548 CFLAGS="$xorg_testset_save_CFLAGS" 7549 7550 eval supported=\$$cacheid 7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7552printf "%s\n" "$supported" >&6; } 7553 if test "$supported" = "yes" ; then 7554 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7555 found="yes" 7556 fi 7557 fi 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573xorg_testset_save_CFLAGS="$CFLAGS" 7574 7575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7578printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7579if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7580then : 7581 printf %s "(cached) " >&6 7582else $as_nop 7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7584/* end confdefs.h. */ 7585int i; 7586_ACEOF 7587if ac_fn_c_try_compile "$LINENO" 7588then : 7589 xorg_cv_cc_flag_unknown_warning_option=yes 7590else $as_nop 7591 xorg_cv_cc_flag_unknown_warning_option=no 7592fi 7593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7594fi 7595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7596printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7598 CFLAGS="$xorg_testset_save_CFLAGS" 7599fi 7600 7601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7604 fi 7605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7607printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7608if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7609then : 7610 printf %s "(cached) " >&6 7611else $as_nop 7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7613/* end confdefs.h. */ 7614int i; 7615_ACEOF 7616if ac_fn_c_try_compile "$LINENO" 7617then : 7618 xorg_cv_cc_flag_unused_command_line_argument=yes 7619else $as_nop 7620 xorg_cv_cc_flag_unused_command_line_argument=no 7621fi 7622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7623fi 7624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7627 CFLAGS="$xorg_testset_save_CFLAGS" 7628fi 7629 7630found="no" 7631 7632 if test $found = "no" ; then 7633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7635 fi 7636 7637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7639 fi 7640 7641 CFLAGS="$CFLAGS -Werror=init-self" 7642 7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7644printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7645 cacheid=xorg_cv_cc_flag__Werror_init_self 7646 if eval test \${$cacheid+y} 7647then : 7648 printf %s "(cached) " >&6 7649else $as_nop 7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7651/* end confdefs.h. */ 7652int i; 7653int 7654main (void) 7655{ 7656 7657 ; 7658 return 0; 7659} 7660_ACEOF 7661if ac_fn_c_try_link "$LINENO" 7662then : 7663 eval $cacheid=yes 7664else $as_nop 7665 eval $cacheid=no 7666fi 7667rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7668 conftest$ac_exeext conftest.$ac_ext 7669fi 7670 7671 7672 CFLAGS="$xorg_testset_save_CFLAGS" 7673 7674 eval supported=\$$cacheid 7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7676printf "%s\n" "$supported" >&6; } 7677 if test "$supported" = "yes" ; then 7678 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7679 found="yes" 7680 fi 7681 fi 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697xorg_testset_save_CFLAGS="$CFLAGS" 7698 7699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7703if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7704then : 7705 printf %s "(cached) " >&6 7706else $as_nop 7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708/* end confdefs.h. */ 7709int i; 7710_ACEOF 7711if ac_fn_c_try_compile "$LINENO" 7712then : 7713 xorg_cv_cc_flag_unknown_warning_option=yes 7714else $as_nop 7715 xorg_cv_cc_flag_unknown_warning_option=no 7716fi 7717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7718fi 7719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7722 CFLAGS="$xorg_testset_save_CFLAGS" 7723fi 7724 7725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7728 fi 7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7732if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7733then : 7734 printf %s "(cached) " >&6 7735else $as_nop 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737/* end confdefs.h. */ 7738int i; 7739_ACEOF 7740if ac_fn_c_try_compile "$LINENO" 7741then : 7742 xorg_cv_cc_flag_unused_command_line_argument=yes 7743else $as_nop 7744 xorg_cv_cc_flag_unused_command_line_argument=no 7745fi 7746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7747fi 7748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7751 CFLAGS="$xorg_testset_save_CFLAGS" 7752fi 7753 7754found="no" 7755 7756 if test $found = "no" ; then 7757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7759 fi 7760 7761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7763 fi 7764 7765 CFLAGS="$CFLAGS -Werror=main" 7766 7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7768printf %s "checking if $CC supports -Werror=main... " >&6; } 7769 cacheid=xorg_cv_cc_flag__Werror_main 7770 if eval test \${$cacheid+y} 7771then : 7772 printf %s "(cached) " >&6 7773else $as_nop 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776int i; 7777int 7778main (void) 7779{ 7780 7781 ; 7782 return 0; 7783} 7784_ACEOF 7785if ac_fn_c_try_link "$LINENO" 7786then : 7787 eval $cacheid=yes 7788else $as_nop 7789 eval $cacheid=no 7790fi 7791rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7792 conftest$ac_exeext conftest.$ac_ext 7793fi 7794 7795 7796 CFLAGS="$xorg_testset_save_CFLAGS" 7797 7798 eval supported=\$$cacheid 7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7800printf "%s\n" "$supported" >&6; } 7801 if test "$supported" = "yes" ; then 7802 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7803 found="yes" 7804 fi 7805 fi 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821xorg_testset_save_CFLAGS="$CFLAGS" 7822 7823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7827if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7828then : 7829 printf %s "(cached) " >&6 7830else $as_nop 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832/* end confdefs.h. */ 7833int i; 7834_ACEOF 7835if ac_fn_c_try_compile "$LINENO" 7836then : 7837 xorg_cv_cc_flag_unknown_warning_option=yes 7838else $as_nop 7839 xorg_cv_cc_flag_unknown_warning_option=no 7840fi 7841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7842fi 7843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7846 CFLAGS="$xorg_testset_save_CFLAGS" 7847fi 7848 7849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7852 fi 7853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7856if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7857then : 7858 printf %s "(cached) " >&6 7859else $as_nop 7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7861/* end confdefs.h. */ 7862int i; 7863_ACEOF 7864if ac_fn_c_try_compile "$LINENO" 7865then : 7866 xorg_cv_cc_flag_unused_command_line_argument=yes 7867else $as_nop 7868 xorg_cv_cc_flag_unused_command_line_argument=no 7869fi 7870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7871fi 7872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7875 CFLAGS="$xorg_testset_save_CFLAGS" 7876fi 7877 7878found="no" 7879 7880 if test $found = "no" ; then 7881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7883 fi 7884 7885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7887 fi 7888 7889 CFLAGS="$CFLAGS -Werror=missing-braces" 7890 7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7892printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7893 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7894 if eval test \${$cacheid+y} 7895then : 7896 printf %s "(cached) " >&6 7897else $as_nop 7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7899/* end confdefs.h. */ 7900int i; 7901int 7902main (void) 7903{ 7904 7905 ; 7906 return 0; 7907} 7908_ACEOF 7909if ac_fn_c_try_link "$LINENO" 7910then : 7911 eval $cacheid=yes 7912else $as_nop 7913 eval $cacheid=no 7914fi 7915rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7916 conftest$ac_exeext conftest.$ac_ext 7917fi 7918 7919 7920 CFLAGS="$xorg_testset_save_CFLAGS" 7921 7922 eval supported=\$$cacheid 7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7924printf "%s\n" "$supported" >&6; } 7925 if test "$supported" = "yes" ; then 7926 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7927 found="yes" 7928 fi 7929 fi 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945xorg_testset_save_CFLAGS="$CFLAGS" 7946 7947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7951if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7952then : 7953 printf %s "(cached) " >&6 7954else $as_nop 7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956/* end confdefs.h. */ 7957int i; 7958_ACEOF 7959if ac_fn_c_try_compile "$LINENO" 7960then : 7961 xorg_cv_cc_flag_unknown_warning_option=yes 7962else $as_nop 7963 xorg_cv_cc_flag_unknown_warning_option=no 7964fi 7965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7966fi 7967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7970 CFLAGS="$xorg_testset_save_CFLAGS" 7971fi 7972 7973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7976 fi 7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7980if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7981then : 7982 printf %s "(cached) " >&6 7983else $as_nop 7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7985/* end confdefs.h. */ 7986int i; 7987_ACEOF 7988if ac_fn_c_try_compile "$LINENO" 7989then : 7990 xorg_cv_cc_flag_unused_command_line_argument=yes 7991else $as_nop 7992 xorg_cv_cc_flag_unused_command_line_argument=no 7993fi 7994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7995fi 7996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7999 CFLAGS="$xorg_testset_save_CFLAGS" 8000fi 8001 8002found="no" 8003 8004 if test $found = "no" ; then 8005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8007 fi 8008 8009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8011 fi 8012 8013 CFLAGS="$CFLAGS -Werror=sequence-point" 8014 8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8016printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8017 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8018 if eval test \${$cacheid+y} 8019then : 8020 printf %s "(cached) " >&6 8021else $as_nop 8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8023/* end confdefs.h. */ 8024int i; 8025int 8026main (void) 8027{ 8028 8029 ; 8030 return 0; 8031} 8032_ACEOF 8033if ac_fn_c_try_link "$LINENO" 8034then : 8035 eval $cacheid=yes 8036else $as_nop 8037 eval $cacheid=no 8038fi 8039rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8040 conftest$ac_exeext conftest.$ac_ext 8041fi 8042 8043 8044 CFLAGS="$xorg_testset_save_CFLAGS" 8045 8046 eval supported=\$$cacheid 8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8048printf "%s\n" "$supported" >&6; } 8049 if test "$supported" = "yes" ; then 8050 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8051 found="yes" 8052 fi 8053 fi 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069xorg_testset_save_CFLAGS="$CFLAGS" 8070 8071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8075if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8076then : 8077 printf %s "(cached) " >&6 8078else $as_nop 8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8080/* end confdefs.h. */ 8081int i; 8082_ACEOF 8083if ac_fn_c_try_compile "$LINENO" 8084then : 8085 xorg_cv_cc_flag_unknown_warning_option=yes 8086else $as_nop 8087 xorg_cv_cc_flag_unknown_warning_option=no 8088fi 8089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8090fi 8091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8094 CFLAGS="$xorg_testset_save_CFLAGS" 8095fi 8096 8097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8100 fi 8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8104if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8105then : 8106 printf %s "(cached) " >&6 8107else $as_nop 8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109/* end confdefs.h. */ 8110int i; 8111_ACEOF 8112if ac_fn_c_try_compile "$LINENO" 8113then : 8114 xorg_cv_cc_flag_unused_command_line_argument=yes 8115else $as_nop 8116 xorg_cv_cc_flag_unused_command_line_argument=no 8117fi 8118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8119fi 8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8123 CFLAGS="$xorg_testset_save_CFLAGS" 8124fi 8125 8126found="no" 8127 8128 if test $found = "no" ; then 8129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8131 fi 8132 8133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8135 fi 8136 8137 CFLAGS="$CFLAGS -Werror=return-type" 8138 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8140printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8141 cacheid=xorg_cv_cc_flag__Werror_return_type 8142 if eval test \${$cacheid+y} 8143then : 8144 printf %s "(cached) " >&6 8145else $as_nop 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148int i; 8149int 8150main (void) 8151{ 8152 8153 ; 8154 return 0; 8155} 8156_ACEOF 8157if ac_fn_c_try_link "$LINENO" 8158then : 8159 eval $cacheid=yes 8160else $as_nop 8161 eval $cacheid=no 8162fi 8163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8164 conftest$ac_exeext conftest.$ac_ext 8165fi 8166 8167 8168 CFLAGS="$xorg_testset_save_CFLAGS" 8169 8170 eval supported=\$$cacheid 8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8172printf "%s\n" "$supported" >&6; } 8173 if test "$supported" = "yes" ; then 8174 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8175 found="yes" 8176 fi 8177 fi 8178 8179 if test $found = "no" ; then 8180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8182 fi 8183 8184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8186 fi 8187 8188 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8189 8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8191printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8192 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8193 if eval test \${$cacheid+y} 8194then : 8195 printf %s "(cached) " >&6 8196else $as_nop 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199int i; 8200int 8201main (void) 8202{ 8203 8204 ; 8205 return 0; 8206} 8207_ACEOF 8208if ac_fn_c_try_link "$LINENO" 8209then : 8210 eval $cacheid=yes 8211else $as_nop 8212 eval $cacheid=no 8213fi 8214rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8215 conftest$ac_exeext conftest.$ac_ext 8216fi 8217 8218 8219 CFLAGS="$xorg_testset_save_CFLAGS" 8220 8221 eval supported=\$$cacheid 8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8223printf "%s\n" "$supported" >&6; } 8224 if test "$supported" = "yes" ; then 8225 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8226 found="yes" 8227 fi 8228 fi 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244xorg_testset_save_CFLAGS="$CFLAGS" 8245 8246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8250if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8251then : 8252 printf %s "(cached) " >&6 8253else $as_nop 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256int i; 8257_ACEOF 8258if ac_fn_c_try_compile "$LINENO" 8259then : 8260 xorg_cv_cc_flag_unknown_warning_option=yes 8261else $as_nop 8262 xorg_cv_cc_flag_unknown_warning_option=no 8263fi 8264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8265fi 8266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8269 CFLAGS="$xorg_testset_save_CFLAGS" 8270fi 8271 8272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8275 fi 8276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8279if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8280then : 8281 printf %s "(cached) " >&6 8282else $as_nop 8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8284/* end confdefs.h. */ 8285int i; 8286_ACEOF 8287if ac_fn_c_try_compile "$LINENO" 8288then : 8289 xorg_cv_cc_flag_unused_command_line_argument=yes 8290else $as_nop 8291 xorg_cv_cc_flag_unused_command_line_argument=no 8292fi 8293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8294fi 8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8296printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8298 CFLAGS="$xorg_testset_save_CFLAGS" 8299fi 8300 8301found="no" 8302 8303 if test $found = "no" ; then 8304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8306 fi 8307 8308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8310 fi 8311 8312 CFLAGS="$CFLAGS -Werror=trigraphs" 8313 8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8315printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8316 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8317 if eval test \${$cacheid+y} 8318then : 8319 printf %s "(cached) " >&6 8320else $as_nop 8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8322/* end confdefs.h. */ 8323int i; 8324int 8325main (void) 8326{ 8327 8328 ; 8329 return 0; 8330} 8331_ACEOF 8332if ac_fn_c_try_link "$LINENO" 8333then : 8334 eval $cacheid=yes 8335else $as_nop 8336 eval $cacheid=no 8337fi 8338rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8339 conftest$ac_exeext conftest.$ac_ext 8340fi 8341 8342 8343 CFLAGS="$xorg_testset_save_CFLAGS" 8344 8345 eval supported=\$$cacheid 8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8347printf "%s\n" "$supported" >&6; } 8348 if test "$supported" = "yes" ; then 8349 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8350 found="yes" 8351 fi 8352 fi 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368xorg_testset_save_CFLAGS="$CFLAGS" 8369 8370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8374if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8375then : 8376 printf %s "(cached) " >&6 8377else $as_nop 8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8379/* end confdefs.h. */ 8380int i; 8381_ACEOF 8382if ac_fn_c_try_compile "$LINENO" 8383then : 8384 xorg_cv_cc_flag_unknown_warning_option=yes 8385else $as_nop 8386 xorg_cv_cc_flag_unknown_warning_option=no 8387fi 8388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8389fi 8390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8393 CFLAGS="$xorg_testset_save_CFLAGS" 8394fi 8395 8396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8399 fi 8400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8403if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8404then : 8405 printf %s "(cached) " >&6 8406else $as_nop 8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8408/* end confdefs.h. */ 8409int i; 8410_ACEOF 8411if ac_fn_c_try_compile "$LINENO" 8412then : 8413 xorg_cv_cc_flag_unused_command_line_argument=yes 8414else $as_nop 8415 xorg_cv_cc_flag_unused_command_line_argument=no 8416fi 8417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8418fi 8419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8422 CFLAGS="$xorg_testset_save_CFLAGS" 8423fi 8424 8425found="no" 8426 8427 if test $found = "no" ; then 8428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8430 fi 8431 8432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8434 fi 8435 8436 CFLAGS="$CFLAGS -Werror=array-bounds" 8437 8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8439printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8440 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8441 if eval test \${$cacheid+y} 8442then : 8443 printf %s "(cached) " >&6 8444else $as_nop 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446/* end confdefs.h. */ 8447int i; 8448int 8449main (void) 8450{ 8451 8452 ; 8453 return 0; 8454} 8455_ACEOF 8456if ac_fn_c_try_link "$LINENO" 8457then : 8458 eval $cacheid=yes 8459else $as_nop 8460 eval $cacheid=no 8461fi 8462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8463 conftest$ac_exeext conftest.$ac_ext 8464fi 8465 8466 8467 CFLAGS="$xorg_testset_save_CFLAGS" 8468 8469 eval supported=\$$cacheid 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8471printf "%s\n" "$supported" >&6; } 8472 if test "$supported" = "yes" ; then 8473 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8474 found="yes" 8475 fi 8476 fi 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492xorg_testset_save_CFLAGS="$CFLAGS" 8493 8494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8498if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8499then : 8500 printf %s "(cached) " >&6 8501else $as_nop 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503/* end confdefs.h. */ 8504int i; 8505_ACEOF 8506if ac_fn_c_try_compile "$LINENO" 8507then : 8508 xorg_cv_cc_flag_unknown_warning_option=yes 8509else $as_nop 8510 xorg_cv_cc_flag_unknown_warning_option=no 8511fi 8512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8513fi 8514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8517 CFLAGS="$xorg_testset_save_CFLAGS" 8518fi 8519 8520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8523 fi 8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8527if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8528then : 8529 printf %s "(cached) " >&6 8530else $as_nop 8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8532/* end confdefs.h. */ 8533int i; 8534_ACEOF 8535if ac_fn_c_try_compile "$LINENO" 8536then : 8537 xorg_cv_cc_flag_unused_command_line_argument=yes 8538else $as_nop 8539 xorg_cv_cc_flag_unused_command_line_argument=no 8540fi 8541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8542fi 8543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8546 CFLAGS="$xorg_testset_save_CFLAGS" 8547fi 8548 8549found="no" 8550 8551 if test $found = "no" ; then 8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8554 fi 8555 8556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8558 fi 8559 8560 CFLAGS="$CFLAGS -Werror=write-strings" 8561 8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8563printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8564 cacheid=xorg_cv_cc_flag__Werror_write_strings 8565 if eval test \${$cacheid+y} 8566then : 8567 printf %s "(cached) " >&6 8568else $as_nop 8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8570/* end confdefs.h. */ 8571int i; 8572int 8573main (void) 8574{ 8575 8576 ; 8577 return 0; 8578} 8579_ACEOF 8580if ac_fn_c_try_link "$LINENO" 8581then : 8582 eval $cacheid=yes 8583else $as_nop 8584 eval $cacheid=no 8585fi 8586rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8587 conftest$ac_exeext conftest.$ac_ext 8588fi 8589 8590 8591 CFLAGS="$xorg_testset_save_CFLAGS" 8592 8593 eval supported=\$$cacheid 8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8595printf "%s\n" "$supported" >&6; } 8596 if test "$supported" = "yes" ; then 8597 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8598 found="yes" 8599 fi 8600 fi 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616xorg_testset_save_CFLAGS="$CFLAGS" 8617 8618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8622if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8623then : 8624 printf %s "(cached) " >&6 8625else $as_nop 8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8627/* end confdefs.h. */ 8628int i; 8629_ACEOF 8630if ac_fn_c_try_compile "$LINENO" 8631then : 8632 xorg_cv_cc_flag_unknown_warning_option=yes 8633else $as_nop 8634 xorg_cv_cc_flag_unknown_warning_option=no 8635fi 8636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8637fi 8638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8641 CFLAGS="$xorg_testset_save_CFLAGS" 8642fi 8643 8644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8647 fi 8648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8651if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8652then : 8653 printf %s "(cached) " >&6 8654else $as_nop 8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8656/* end confdefs.h. */ 8657int i; 8658_ACEOF 8659if ac_fn_c_try_compile "$LINENO" 8660then : 8661 xorg_cv_cc_flag_unused_command_line_argument=yes 8662else $as_nop 8663 xorg_cv_cc_flag_unused_command_line_argument=no 8664fi 8665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8666fi 8667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8670 CFLAGS="$xorg_testset_save_CFLAGS" 8671fi 8672 8673found="no" 8674 8675 if test $found = "no" ; then 8676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8678 fi 8679 8680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8682 fi 8683 8684 CFLAGS="$CFLAGS -Werror=address" 8685 8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8687printf %s "checking if $CC supports -Werror=address... " >&6; } 8688 cacheid=xorg_cv_cc_flag__Werror_address 8689 if eval test \${$cacheid+y} 8690then : 8691 printf %s "(cached) " >&6 8692else $as_nop 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695int i; 8696int 8697main (void) 8698{ 8699 8700 ; 8701 return 0; 8702} 8703_ACEOF 8704if ac_fn_c_try_link "$LINENO" 8705then : 8706 eval $cacheid=yes 8707else $as_nop 8708 eval $cacheid=no 8709fi 8710rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8711 conftest$ac_exeext conftest.$ac_ext 8712fi 8713 8714 8715 CFLAGS="$xorg_testset_save_CFLAGS" 8716 8717 eval supported=\$$cacheid 8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8719printf "%s\n" "$supported" >&6; } 8720 if test "$supported" = "yes" ; then 8721 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8722 found="yes" 8723 fi 8724 fi 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740xorg_testset_save_CFLAGS="$CFLAGS" 8741 8742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8746if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8747then : 8748 printf %s "(cached) " >&6 8749else $as_nop 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752int i; 8753_ACEOF 8754if ac_fn_c_try_compile "$LINENO" 8755then : 8756 xorg_cv_cc_flag_unknown_warning_option=yes 8757else $as_nop 8758 xorg_cv_cc_flag_unknown_warning_option=no 8759fi 8760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8761fi 8762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8765 CFLAGS="$xorg_testset_save_CFLAGS" 8766fi 8767 8768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8771 fi 8772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8775if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8776then : 8777 printf %s "(cached) " >&6 8778else $as_nop 8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8780/* end confdefs.h. */ 8781int i; 8782_ACEOF 8783if ac_fn_c_try_compile "$LINENO" 8784then : 8785 xorg_cv_cc_flag_unused_command_line_argument=yes 8786else $as_nop 8787 xorg_cv_cc_flag_unused_command_line_argument=no 8788fi 8789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8790fi 8791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8794 CFLAGS="$xorg_testset_save_CFLAGS" 8795fi 8796 8797found="no" 8798 8799 if test $found = "no" ; then 8800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8802 fi 8803 8804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8806 fi 8807 8808 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8809 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8811printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8812 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8813 if eval test \${$cacheid+y} 8814then : 8815 printf %s "(cached) " >&6 8816else $as_nop 8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8818/* end confdefs.h. */ 8819int i; 8820int 8821main (void) 8822{ 8823 8824 ; 8825 return 0; 8826} 8827_ACEOF 8828if ac_fn_c_try_link "$LINENO" 8829then : 8830 eval $cacheid=yes 8831else $as_nop 8832 eval $cacheid=no 8833fi 8834rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8835 conftest$ac_exeext conftest.$ac_ext 8836fi 8837 8838 8839 CFLAGS="$xorg_testset_save_CFLAGS" 8840 8841 eval supported=\$$cacheid 8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8843printf "%s\n" "$supported" >&6; } 8844 if test "$supported" = "yes" ; then 8845 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8846 found="yes" 8847 fi 8848 fi 8849 8850 if test $found = "no" ; then 8851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8853 fi 8854 8855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8857 fi 8858 8859 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8860 8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8862printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8863 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8864 if eval test \${$cacheid+y} 8865then : 8866 printf %s "(cached) " >&6 8867else $as_nop 8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8869/* end confdefs.h. */ 8870int i; 8871int 8872main (void) 8873{ 8874 8875 ; 8876 return 0; 8877} 8878_ACEOF 8879if ac_fn_c_try_link "$LINENO" 8880then : 8881 eval $cacheid=yes 8882else $as_nop 8883 eval $cacheid=no 8884fi 8885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8886 conftest$ac_exeext conftest.$ac_ext 8887fi 8888 8889 8890 CFLAGS="$xorg_testset_save_CFLAGS" 8891 8892 eval supported=\$$cacheid 8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8894printf "%s\n" "$supported" >&6; } 8895 if test "$supported" = "yes" ; then 8896 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8897 found="yes" 8898 fi 8899 fi 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915xorg_testset_save_CFLAGS="$CFLAGS" 8916 8917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8921if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8922then : 8923 printf %s "(cached) " >&6 8924else $as_nop 8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8926/* end confdefs.h. */ 8927int i; 8928_ACEOF 8929if ac_fn_c_try_compile "$LINENO" 8930then : 8931 xorg_cv_cc_flag_unknown_warning_option=yes 8932else $as_nop 8933 xorg_cv_cc_flag_unknown_warning_option=no 8934fi 8935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8936fi 8937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8940 CFLAGS="$xorg_testset_save_CFLAGS" 8941fi 8942 8943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8946 fi 8947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8950if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8951then : 8952 printf %s "(cached) " >&6 8953else $as_nop 8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8955/* end confdefs.h. */ 8956int i; 8957_ACEOF 8958if ac_fn_c_try_compile "$LINENO" 8959then : 8960 xorg_cv_cc_flag_unused_command_line_argument=yes 8961else $as_nop 8962 xorg_cv_cc_flag_unused_command_line_argument=no 8963fi 8964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8965fi 8966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8967printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8969 CFLAGS="$xorg_testset_save_CFLAGS" 8970fi 8971 8972found="no" 8973 8974 if test $found = "no" ; then 8975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8977 fi 8978 8979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8981 fi 8982 8983 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8984 8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8986printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8987 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8988 if eval test \${$cacheid+y} 8989then : 8990 printf %s "(cached) " >&6 8991else $as_nop 8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8993/* end confdefs.h. */ 8994int i; 8995int 8996main (void) 8997{ 8998 8999 ; 9000 return 0; 9001} 9002_ACEOF 9003if ac_fn_c_try_link "$LINENO" 9004then : 9005 eval $cacheid=yes 9006else $as_nop 9007 eval $cacheid=no 9008fi 9009rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9010 conftest$ac_exeext conftest.$ac_ext 9011fi 9012 9013 9014 CFLAGS="$xorg_testset_save_CFLAGS" 9015 9016 eval supported=\$$cacheid 9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9018printf "%s\n" "$supported" >&6; } 9019 if test "$supported" = "yes" ; then 9020 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9021 found="yes" 9022 fi 9023 fi 9024 9025 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9026else 9027{ 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 9028printf "%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;} 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042xorg_testset_save_CFLAGS="$CFLAGS" 9043 9044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9048if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9049then : 9050 printf %s "(cached) " >&6 9051else $as_nop 9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054int i; 9055_ACEOF 9056if ac_fn_c_try_compile "$LINENO" 9057then : 9058 xorg_cv_cc_flag_unknown_warning_option=yes 9059else $as_nop 9060 xorg_cv_cc_flag_unknown_warning_option=no 9061fi 9062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9063fi 9064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9067 CFLAGS="$xorg_testset_save_CFLAGS" 9068fi 9069 9070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9073 fi 9074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9077if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9078then : 9079 printf %s "(cached) " >&6 9080else $as_nop 9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9082/* end confdefs.h. */ 9083int i; 9084_ACEOF 9085if ac_fn_c_try_compile "$LINENO" 9086then : 9087 xorg_cv_cc_flag_unused_command_line_argument=yes 9088else $as_nop 9089 xorg_cv_cc_flag_unused_command_line_argument=no 9090fi 9091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9092fi 9093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9096 CFLAGS="$xorg_testset_save_CFLAGS" 9097fi 9098 9099found="no" 9100 9101 if test $found = "no" ; then 9102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9104 fi 9105 9106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9108 fi 9109 9110 CFLAGS="$CFLAGS -Wimplicit" 9111 9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9113printf %s "checking if $CC supports -Wimplicit... " >&6; } 9114 cacheid=xorg_cv_cc_flag__Wimplicit 9115 if eval test \${$cacheid+y} 9116then : 9117 printf %s "(cached) " >&6 9118else $as_nop 9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9120/* end confdefs.h. */ 9121int i; 9122int 9123main (void) 9124{ 9125 9126 ; 9127 return 0; 9128} 9129_ACEOF 9130if ac_fn_c_try_link "$LINENO" 9131then : 9132 eval $cacheid=yes 9133else $as_nop 9134 eval $cacheid=no 9135fi 9136rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9137 conftest$ac_exeext conftest.$ac_ext 9138fi 9139 9140 9141 CFLAGS="$xorg_testset_save_CFLAGS" 9142 9143 eval supported=\$$cacheid 9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9145printf "%s\n" "$supported" >&6; } 9146 if test "$supported" = "yes" ; then 9147 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9148 found="yes" 9149 fi 9150 fi 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166xorg_testset_save_CFLAGS="$CFLAGS" 9167 9168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9172if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9173then : 9174 printf %s "(cached) " >&6 9175else $as_nop 9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9177/* end confdefs.h. */ 9178int i; 9179_ACEOF 9180if ac_fn_c_try_compile "$LINENO" 9181then : 9182 xorg_cv_cc_flag_unknown_warning_option=yes 9183else $as_nop 9184 xorg_cv_cc_flag_unknown_warning_option=no 9185fi 9186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9187fi 9188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9191 CFLAGS="$xorg_testset_save_CFLAGS" 9192fi 9193 9194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9197 fi 9198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9201if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9202then : 9203 printf %s "(cached) " >&6 9204else $as_nop 9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9206/* end confdefs.h. */ 9207int i; 9208_ACEOF 9209if ac_fn_c_try_compile "$LINENO" 9210then : 9211 xorg_cv_cc_flag_unused_command_line_argument=yes 9212else $as_nop 9213 xorg_cv_cc_flag_unused_command_line_argument=no 9214fi 9215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9216fi 9217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9220 CFLAGS="$xorg_testset_save_CFLAGS" 9221fi 9222 9223found="no" 9224 9225 if test $found = "no" ; then 9226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9228 fi 9229 9230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9232 fi 9233 9234 CFLAGS="$CFLAGS -Wnonnull" 9235 9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9237printf %s "checking if $CC supports -Wnonnull... " >&6; } 9238 cacheid=xorg_cv_cc_flag__Wnonnull 9239 if eval test \${$cacheid+y} 9240then : 9241 printf %s "(cached) " >&6 9242else $as_nop 9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9244/* end confdefs.h. */ 9245int i; 9246int 9247main (void) 9248{ 9249 9250 ; 9251 return 0; 9252} 9253_ACEOF 9254if ac_fn_c_try_link "$LINENO" 9255then : 9256 eval $cacheid=yes 9257else $as_nop 9258 eval $cacheid=no 9259fi 9260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9261 conftest$ac_exeext conftest.$ac_ext 9262fi 9263 9264 9265 CFLAGS="$xorg_testset_save_CFLAGS" 9266 9267 eval supported=\$$cacheid 9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9269printf "%s\n" "$supported" >&6; } 9270 if test "$supported" = "yes" ; then 9271 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9272 found="yes" 9273 fi 9274 fi 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290xorg_testset_save_CFLAGS="$CFLAGS" 9291 9292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9296if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9297then : 9298 printf %s "(cached) " >&6 9299else $as_nop 9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9301/* end confdefs.h. */ 9302int i; 9303_ACEOF 9304if ac_fn_c_try_compile "$LINENO" 9305then : 9306 xorg_cv_cc_flag_unknown_warning_option=yes 9307else $as_nop 9308 xorg_cv_cc_flag_unknown_warning_option=no 9309fi 9310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9311fi 9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9315 CFLAGS="$xorg_testset_save_CFLAGS" 9316fi 9317 9318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9321 fi 9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9325if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9326then : 9327 printf %s "(cached) " >&6 9328else $as_nop 9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9330/* end confdefs.h. */ 9331int i; 9332_ACEOF 9333if ac_fn_c_try_compile "$LINENO" 9334then : 9335 xorg_cv_cc_flag_unused_command_line_argument=yes 9336else $as_nop 9337 xorg_cv_cc_flag_unused_command_line_argument=no 9338fi 9339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9340fi 9341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9344 CFLAGS="$xorg_testset_save_CFLAGS" 9345fi 9346 9347found="no" 9348 9349 if test $found = "no" ; then 9350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9352 fi 9353 9354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9356 fi 9357 9358 CFLAGS="$CFLAGS -Winit-self" 9359 9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9361printf %s "checking if $CC supports -Winit-self... " >&6; } 9362 cacheid=xorg_cv_cc_flag__Winit_self 9363 if eval test \${$cacheid+y} 9364then : 9365 printf %s "(cached) " >&6 9366else $as_nop 9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9368/* end confdefs.h. */ 9369int i; 9370int 9371main (void) 9372{ 9373 9374 ; 9375 return 0; 9376} 9377_ACEOF 9378if ac_fn_c_try_link "$LINENO" 9379then : 9380 eval $cacheid=yes 9381else $as_nop 9382 eval $cacheid=no 9383fi 9384rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9385 conftest$ac_exeext conftest.$ac_ext 9386fi 9387 9388 9389 CFLAGS="$xorg_testset_save_CFLAGS" 9390 9391 eval supported=\$$cacheid 9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9393printf "%s\n" "$supported" >&6; } 9394 if test "$supported" = "yes" ; then 9395 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9396 found="yes" 9397 fi 9398 fi 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414xorg_testset_save_CFLAGS="$CFLAGS" 9415 9416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9420if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9421then : 9422 printf %s "(cached) " >&6 9423else $as_nop 9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9425/* end confdefs.h. */ 9426int i; 9427_ACEOF 9428if ac_fn_c_try_compile "$LINENO" 9429then : 9430 xorg_cv_cc_flag_unknown_warning_option=yes 9431else $as_nop 9432 xorg_cv_cc_flag_unknown_warning_option=no 9433fi 9434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9435fi 9436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9439 CFLAGS="$xorg_testset_save_CFLAGS" 9440fi 9441 9442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9445 fi 9446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9449if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9450then : 9451 printf %s "(cached) " >&6 9452else $as_nop 9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9454/* end confdefs.h. */ 9455int i; 9456_ACEOF 9457if ac_fn_c_try_compile "$LINENO" 9458then : 9459 xorg_cv_cc_flag_unused_command_line_argument=yes 9460else $as_nop 9461 xorg_cv_cc_flag_unused_command_line_argument=no 9462fi 9463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9464fi 9465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9468 CFLAGS="$xorg_testset_save_CFLAGS" 9469fi 9470 9471found="no" 9472 9473 if test $found = "no" ; then 9474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9476 fi 9477 9478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9480 fi 9481 9482 CFLAGS="$CFLAGS -Wmain" 9483 9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9485printf %s "checking if $CC supports -Wmain... " >&6; } 9486 cacheid=xorg_cv_cc_flag__Wmain 9487 if eval test \${$cacheid+y} 9488then : 9489 printf %s "(cached) " >&6 9490else $as_nop 9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9492/* end confdefs.h. */ 9493int i; 9494int 9495main (void) 9496{ 9497 9498 ; 9499 return 0; 9500} 9501_ACEOF 9502if ac_fn_c_try_link "$LINENO" 9503then : 9504 eval $cacheid=yes 9505else $as_nop 9506 eval $cacheid=no 9507fi 9508rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9509 conftest$ac_exeext conftest.$ac_ext 9510fi 9511 9512 9513 CFLAGS="$xorg_testset_save_CFLAGS" 9514 9515 eval supported=\$$cacheid 9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9517printf "%s\n" "$supported" >&6; } 9518 if test "$supported" = "yes" ; then 9519 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9520 found="yes" 9521 fi 9522 fi 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538xorg_testset_save_CFLAGS="$CFLAGS" 9539 9540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9544if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9545then : 9546 printf %s "(cached) " >&6 9547else $as_nop 9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549/* end confdefs.h. */ 9550int i; 9551_ACEOF 9552if ac_fn_c_try_compile "$LINENO" 9553then : 9554 xorg_cv_cc_flag_unknown_warning_option=yes 9555else $as_nop 9556 xorg_cv_cc_flag_unknown_warning_option=no 9557fi 9558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9559fi 9560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9563 CFLAGS="$xorg_testset_save_CFLAGS" 9564fi 9565 9566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9569 fi 9570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9573if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9574then : 9575 printf %s "(cached) " >&6 9576else $as_nop 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578/* end confdefs.h. */ 9579int i; 9580_ACEOF 9581if ac_fn_c_try_compile "$LINENO" 9582then : 9583 xorg_cv_cc_flag_unused_command_line_argument=yes 9584else $as_nop 9585 xorg_cv_cc_flag_unused_command_line_argument=no 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9588fi 9589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9592 CFLAGS="$xorg_testset_save_CFLAGS" 9593fi 9594 9595found="no" 9596 9597 if test $found = "no" ; then 9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9600 fi 9601 9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9604 fi 9605 9606 CFLAGS="$CFLAGS -Wmissing-braces" 9607 9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9609printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9610 cacheid=xorg_cv_cc_flag__Wmissing_braces 9611 if eval test \${$cacheid+y} 9612then : 9613 printf %s "(cached) " >&6 9614else $as_nop 9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9616/* end confdefs.h. */ 9617int i; 9618int 9619main (void) 9620{ 9621 9622 ; 9623 return 0; 9624} 9625_ACEOF 9626if ac_fn_c_try_link "$LINENO" 9627then : 9628 eval $cacheid=yes 9629else $as_nop 9630 eval $cacheid=no 9631fi 9632rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9633 conftest$ac_exeext conftest.$ac_ext 9634fi 9635 9636 9637 CFLAGS="$xorg_testset_save_CFLAGS" 9638 9639 eval supported=\$$cacheid 9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9641printf "%s\n" "$supported" >&6; } 9642 if test "$supported" = "yes" ; then 9643 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9644 found="yes" 9645 fi 9646 fi 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662xorg_testset_save_CFLAGS="$CFLAGS" 9663 9664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9668if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9669then : 9670 printf %s "(cached) " >&6 9671else $as_nop 9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9673/* end confdefs.h. */ 9674int i; 9675_ACEOF 9676if ac_fn_c_try_compile "$LINENO" 9677then : 9678 xorg_cv_cc_flag_unknown_warning_option=yes 9679else $as_nop 9680 xorg_cv_cc_flag_unknown_warning_option=no 9681fi 9682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9683fi 9684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9687 CFLAGS="$xorg_testset_save_CFLAGS" 9688fi 9689 9690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9693 fi 9694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9697if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9698then : 9699 printf %s "(cached) " >&6 9700else $as_nop 9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702/* end confdefs.h. */ 9703int i; 9704_ACEOF 9705if ac_fn_c_try_compile "$LINENO" 9706then : 9707 xorg_cv_cc_flag_unused_command_line_argument=yes 9708else $as_nop 9709 xorg_cv_cc_flag_unused_command_line_argument=no 9710fi 9711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9712fi 9713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9716 CFLAGS="$xorg_testset_save_CFLAGS" 9717fi 9718 9719found="no" 9720 9721 if test $found = "no" ; then 9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9724 fi 9725 9726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9728 fi 9729 9730 CFLAGS="$CFLAGS -Wsequence-point" 9731 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9733printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9734 cacheid=xorg_cv_cc_flag__Wsequence_point 9735 if eval test \${$cacheid+y} 9736then : 9737 printf %s "(cached) " >&6 9738else $as_nop 9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9740/* end confdefs.h. */ 9741int i; 9742int 9743main (void) 9744{ 9745 9746 ; 9747 return 0; 9748} 9749_ACEOF 9750if ac_fn_c_try_link "$LINENO" 9751then : 9752 eval $cacheid=yes 9753else $as_nop 9754 eval $cacheid=no 9755fi 9756rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9757 conftest$ac_exeext conftest.$ac_ext 9758fi 9759 9760 9761 CFLAGS="$xorg_testset_save_CFLAGS" 9762 9763 eval supported=\$$cacheid 9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9765printf "%s\n" "$supported" >&6; } 9766 if test "$supported" = "yes" ; then 9767 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9768 found="yes" 9769 fi 9770 fi 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786xorg_testset_save_CFLAGS="$CFLAGS" 9787 9788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9792if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9793then : 9794 printf %s "(cached) " >&6 9795else $as_nop 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798int i; 9799_ACEOF 9800if ac_fn_c_try_compile "$LINENO" 9801then : 9802 xorg_cv_cc_flag_unknown_warning_option=yes 9803else $as_nop 9804 xorg_cv_cc_flag_unknown_warning_option=no 9805fi 9806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9807fi 9808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9811 CFLAGS="$xorg_testset_save_CFLAGS" 9812fi 9813 9814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9817 fi 9818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9821if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9822then : 9823 printf %s "(cached) " >&6 9824else $as_nop 9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826/* end confdefs.h. */ 9827int i; 9828_ACEOF 9829if ac_fn_c_try_compile "$LINENO" 9830then : 9831 xorg_cv_cc_flag_unused_command_line_argument=yes 9832else $as_nop 9833 xorg_cv_cc_flag_unused_command_line_argument=no 9834fi 9835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9836fi 9837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9840 CFLAGS="$xorg_testset_save_CFLAGS" 9841fi 9842 9843found="no" 9844 9845 if test $found = "no" ; then 9846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9848 fi 9849 9850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9852 fi 9853 9854 CFLAGS="$CFLAGS -Wreturn-type" 9855 9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9857printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9858 cacheid=xorg_cv_cc_flag__Wreturn_type 9859 if eval test \${$cacheid+y} 9860then : 9861 printf %s "(cached) " >&6 9862else $as_nop 9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9864/* end confdefs.h. */ 9865int i; 9866int 9867main (void) 9868{ 9869 9870 ; 9871 return 0; 9872} 9873_ACEOF 9874if ac_fn_c_try_link "$LINENO" 9875then : 9876 eval $cacheid=yes 9877else $as_nop 9878 eval $cacheid=no 9879fi 9880rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9881 conftest$ac_exeext conftest.$ac_ext 9882fi 9883 9884 9885 CFLAGS="$xorg_testset_save_CFLAGS" 9886 9887 eval supported=\$$cacheid 9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9889printf "%s\n" "$supported" >&6; } 9890 if test "$supported" = "yes" ; then 9891 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9892 found="yes" 9893 fi 9894 fi 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910xorg_testset_save_CFLAGS="$CFLAGS" 9911 9912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9916if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9917then : 9918 printf %s "(cached) " >&6 9919else $as_nop 9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9921/* end confdefs.h. */ 9922int i; 9923_ACEOF 9924if ac_fn_c_try_compile "$LINENO" 9925then : 9926 xorg_cv_cc_flag_unknown_warning_option=yes 9927else $as_nop 9928 xorg_cv_cc_flag_unknown_warning_option=no 9929fi 9930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9931fi 9932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9935 CFLAGS="$xorg_testset_save_CFLAGS" 9936fi 9937 9938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9941 fi 9942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9945if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9946then : 9947 printf %s "(cached) " >&6 9948else $as_nop 9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9950/* end confdefs.h. */ 9951int i; 9952_ACEOF 9953if ac_fn_c_try_compile "$LINENO" 9954then : 9955 xorg_cv_cc_flag_unused_command_line_argument=yes 9956else $as_nop 9957 xorg_cv_cc_flag_unused_command_line_argument=no 9958fi 9959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9960fi 9961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9964 CFLAGS="$xorg_testset_save_CFLAGS" 9965fi 9966 9967found="no" 9968 9969 if test $found = "no" ; then 9970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9972 fi 9973 9974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9976 fi 9977 9978 CFLAGS="$CFLAGS -Wtrigraphs" 9979 9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9981printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9982 cacheid=xorg_cv_cc_flag__Wtrigraphs 9983 if eval test \${$cacheid+y} 9984then : 9985 printf %s "(cached) " >&6 9986else $as_nop 9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9988/* end confdefs.h. */ 9989int i; 9990int 9991main (void) 9992{ 9993 9994 ; 9995 return 0; 9996} 9997_ACEOF 9998if ac_fn_c_try_link "$LINENO" 9999then : 10000 eval $cacheid=yes 10001else $as_nop 10002 eval $cacheid=no 10003fi 10004rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10005 conftest$ac_exeext conftest.$ac_ext 10006fi 10007 10008 10009 CFLAGS="$xorg_testset_save_CFLAGS" 10010 10011 eval supported=\$$cacheid 10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10013printf "%s\n" "$supported" >&6; } 10014 if test "$supported" = "yes" ; then 10015 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10016 found="yes" 10017 fi 10018 fi 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034xorg_testset_save_CFLAGS="$CFLAGS" 10035 10036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10039printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10040if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10041then : 10042 printf %s "(cached) " >&6 10043else $as_nop 10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10045/* end confdefs.h. */ 10046int i; 10047_ACEOF 10048if ac_fn_c_try_compile "$LINENO" 10049then : 10050 xorg_cv_cc_flag_unknown_warning_option=yes 10051else $as_nop 10052 xorg_cv_cc_flag_unknown_warning_option=no 10053fi 10054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10055fi 10056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10059 CFLAGS="$xorg_testset_save_CFLAGS" 10060fi 10061 10062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10065 fi 10066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10069if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10070then : 10071 printf %s "(cached) " >&6 10072else $as_nop 10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10074/* end confdefs.h. */ 10075int i; 10076_ACEOF 10077if ac_fn_c_try_compile "$LINENO" 10078then : 10079 xorg_cv_cc_flag_unused_command_line_argument=yes 10080else $as_nop 10081 xorg_cv_cc_flag_unused_command_line_argument=no 10082fi 10083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10084fi 10085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10088 CFLAGS="$xorg_testset_save_CFLAGS" 10089fi 10090 10091found="no" 10092 10093 if test $found = "no" ; then 10094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10096 fi 10097 10098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10100 fi 10101 10102 CFLAGS="$CFLAGS -Warray-bounds" 10103 10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10105printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10106 cacheid=xorg_cv_cc_flag__Warray_bounds 10107 if eval test \${$cacheid+y} 10108then : 10109 printf %s "(cached) " >&6 10110else $as_nop 10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10112/* end confdefs.h. */ 10113int i; 10114int 10115main (void) 10116{ 10117 10118 ; 10119 return 0; 10120} 10121_ACEOF 10122if ac_fn_c_try_link "$LINENO" 10123then : 10124 eval $cacheid=yes 10125else $as_nop 10126 eval $cacheid=no 10127fi 10128rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10129 conftest$ac_exeext conftest.$ac_ext 10130fi 10131 10132 10133 CFLAGS="$xorg_testset_save_CFLAGS" 10134 10135 eval supported=\$$cacheid 10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10137printf "%s\n" "$supported" >&6; } 10138 if test "$supported" = "yes" ; then 10139 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10140 found="yes" 10141 fi 10142 fi 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158xorg_testset_save_CFLAGS="$CFLAGS" 10159 10160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10163printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10164if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10165then : 10166 printf %s "(cached) " >&6 10167else $as_nop 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169/* end confdefs.h. */ 10170int i; 10171_ACEOF 10172if ac_fn_c_try_compile "$LINENO" 10173then : 10174 xorg_cv_cc_flag_unknown_warning_option=yes 10175else $as_nop 10176 xorg_cv_cc_flag_unknown_warning_option=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10179fi 10180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184fi 10185 10186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10189 fi 10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10193if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10194then : 10195 printf %s "(cached) " >&6 10196else $as_nop 10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10198/* end confdefs.h. */ 10199int i; 10200_ACEOF 10201if ac_fn_c_try_compile "$LINENO" 10202then : 10203 xorg_cv_cc_flag_unused_command_line_argument=yes 10204else $as_nop 10205 xorg_cv_cc_flag_unused_command_line_argument=no 10206fi 10207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10208fi 10209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10210printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10212 CFLAGS="$xorg_testset_save_CFLAGS" 10213fi 10214 10215found="no" 10216 10217 if test $found = "no" ; then 10218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10220 fi 10221 10222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10224 fi 10225 10226 CFLAGS="$CFLAGS -Wwrite-strings" 10227 10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10229printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10230 cacheid=xorg_cv_cc_flag__Wwrite_strings 10231 if eval test \${$cacheid+y} 10232then : 10233 printf %s "(cached) " >&6 10234else $as_nop 10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10236/* end confdefs.h. */ 10237int i; 10238int 10239main (void) 10240{ 10241 10242 ; 10243 return 0; 10244} 10245_ACEOF 10246if ac_fn_c_try_link "$LINENO" 10247then : 10248 eval $cacheid=yes 10249else $as_nop 10250 eval $cacheid=no 10251fi 10252rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10253 conftest$ac_exeext conftest.$ac_ext 10254fi 10255 10256 10257 CFLAGS="$xorg_testset_save_CFLAGS" 10258 10259 eval supported=\$$cacheid 10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10261printf "%s\n" "$supported" >&6; } 10262 if test "$supported" = "yes" ; then 10263 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10264 found="yes" 10265 fi 10266 fi 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282xorg_testset_save_CFLAGS="$CFLAGS" 10283 10284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10287printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10288if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10289then : 10290 printf %s "(cached) " >&6 10291else $as_nop 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294int i; 10295_ACEOF 10296if ac_fn_c_try_compile "$LINENO" 10297then : 10298 xorg_cv_cc_flag_unknown_warning_option=yes 10299else $as_nop 10300 xorg_cv_cc_flag_unknown_warning_option=no 10301fi 10302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10303fi 10304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308fi 10309 10310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10313 fi 10314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10317if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10318then : 10319 printf %s "(cached) " >&6 10320else $as_nop 10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10322/* end confdefs.h. */ 10323int i; 10324_ACEOF 10325if ac_fn_c_try_compile "$LINENO" 10326then : 10327 xorg_cv_cc_flag_unused_command_line_argument=yes 10328else $as_nop 10329 xorg_cv_cc_flag_unused_command_line_argument=no 10330fi 10331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10332fi 10333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10334printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10336 CFLAGS="$xorg_testset_save_CFLAGS" 10337fi 10338 10339found="no" 10340 10341 if test $found = "no" ; then 10342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10344 fi 10345 10346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10348 fi 10349 10350 CFLAGS="$CFLAGS -Waddress" 10351 10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10353printf %s "checking if $CC supports -Waddress... " >&6; } 10354 cacheid=xorg_cv_cc_flag__Waddress 10355 if eval test \${$cacheid+y} 10356then : 10357 printf %s "(cached) " >&6 10358else $as_nop 10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10360/* end confdefs.h. */ 10361int i; 10362int 10363main (void) 10364{ 10365 10366 ; 10367 return 0; 10368} 10369_ACEOF 10370if ac_fn_c_try_link "$LINENO" 10371then : 10372 eval $cacheid=yes 10373else $as_nop 10374 eval $cacheid=no 10375fi 10376rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10377 conftest$ac_exeext conftest.$ac_ext 10378fi 10379 10380 10381 CFLAGS="$xorg_testset_save_CFLAGS" 10382 10383 eval supported=\$$cacheid 10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10385printf "%s\n" "$supported" >&6; } 10386 if test "$supported" = "yes" ; then 10387 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10388 found="yes" 10389 fi 10390 fi 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406xorg_testset_save_CFLAGS="$CFLAGS" 10407 10408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10412if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10413then : 10414 printf %s "(cached) " >&6 10415else $as_nop 10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418int i; 10419_ACEOF 10420if ac_fn_c_try_compile "$LINENO" 10421then : 10422 xorg_cv_cc_flag_unknown_warning_option=yes 10423else $as_nop 10424 xorg_cv_cc_flag_unknown_warning_option=no 10425fi 10426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10427fi 10428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10429printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10431 CFLAGS="$xorg_testset_save_CFLAGS" 10432fi 10433 10434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10437 fi 10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10440printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10441if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10442then : 10443 printf %s "(cached) " >&6 10444else $as_nop 10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10446/* end confdefs.h. */ 10447int i; 10448_ACEOF 10449if ac_fn_c_try_compile "$LINENO" 10450then : 10451 xorg_cv_cc_flag_unused_command_line_argument=yes 10452else $as_nop 10453 xorg_cv_cc_flag_unused_command_line_argument=no 10454fi 10455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10456fi 10457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10458printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10460 CFLAGS="$xorg_testset_save_CFLAGS" 10461fi 10462 10463found="no" 10464 10465 if test $found = "no" ; then 10466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10468 fi 10469 10470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10472 fi 10473 10474 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10475 10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10477printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10478 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10479 if eval test \${$cacheid+y} 10480then : 10481 printf %s "(cached) " >&6 10482else $as_nop 10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10484/* end confdefs.h. */ 10485int i; 10486int 10487main (void) 10488{ 10489 10490 ; 10491 return 0; 10492} 10493_ACEOF 10494if ac_fn_c_try_link "$LINENO" 10495then : 10496 eval $cacheid=yes 10497else $as_nop 10498 eval $cacheid=no 10499fi 10500rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10501 conftest$ac_exeext conftest.$ac_ext 10502fi 10503 10504 10505 CFLAGS="$xorg_testset_save_CFLAGS" 10506 10507 eval supported=\$$cacheid 10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10509printf "%s\n" "$supported" >&6; } 10510 if test "$supported" = "yes" ; then 10511 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10512 found="yes" 10513 fi 10514 fi 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530xorg_testset_save_CFLAGS="$CFLAGS" 10531 10532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10535printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10536if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10537then : 10538 printf %s "(cached) " >&6 10539else $as_nop 10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10541/* end confdefs.h. */ 10542int i; 10543_ACEOF 10544if ac_fn_c_try_compile "$LINENO" 10545then : 10546 xorg_cv_cc_flag_unknown_warning_option=yes 10547else $as_nop 10548 xorg_cv_cc_flag_unknown_warning_option=no 10549fi 10550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10551fi 10552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10553printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10555 CFLAGS="$xorg_testset_save_CFLAGS" 10556fi 10557 10558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10561 fi 10562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10564printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10565if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10566then : 10567 printf %s "(cached) " >&6 10568else $as_nop 10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570/* end confdefs.h. */ 10571int i; 10572_ACEOF 10573if ac_fn_c_try_compile "$LINENO" 10574then : 10575 xorg_cv_cc_flag_unused_command_line_argument=yes 10576else $as_nop 10577 xorg_cv_cc_flag_unused_command_line_argument=no 10578fi 10579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10580fi 10581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10584 CFLAGS="$xorg_testset_save_CFLAGS" 10585fi 10586 10587found="no" 10588 10589 if test $found = "no" ; then 10590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10592 fi 10593 10594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10596 fi 10597 10598 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10599 10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10601printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10602 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10603 if eval test \${$cacheid+y} 10604then : 10605 printf %s "(cached) " >&6 10606else $as_nop 10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10608/* end confdefs.h. */ 10609int i; 10610int 10611main (void) 10612{ 10613 10614 ; 10615 return 0; 10616} 10617_ACEOF 10618if ac_fn_c_try_link "$LINENO" 10619then : 10620 eval $cacheid=yes 10621else $as_nop 10622 eval $cacheid=no 10623fi 10624rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10625 conftest$ac_exeext conftest.$ac_ext 10626fi 10627 10628 10629 CFLAGS="$xorg_testset_save_CFLAGS" 10630 10631 eval supported=\$$cacheid 10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10633printf "%s\n" "$supported" >&6; } 10634 if test "$supported" = "yes" ; then 10635 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10636 found="yes" 10637 fi 10638 fi 10639 10640 10641fi 10642 10643 10644 10645 10646 10647 10648 10649 CWARNFLAGS="$BASE_CFLAGS" 10650 if test "x$GCC" = xyes ; then 10651 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10652 fi 10653 10654 10655 10656 10657 10658 10659 10660 10661# Check whether --enable-strict-compilation was given. 10662if test ${enable_strict_compilation+y} 10663then : 10664 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10665else $as_nop 10666 STRICT_COMPILE=no 10667fi 10668 10669 10670 10671 10672 10673 10674STRICT_CFLAGS="" 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688xorg_testset_save_CFLAGS="$CFLAGS" 10689 10690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10694if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10695then : 10696 printf %s "(cached) " >&6 10697else $as_nop 10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10699/* end confdefs.h. */ 10700int i; 10701_ACEOF 10702if ac_fn_c_try_compile "$LINENO" 10703then : 10704 xorg_cv_cc_flag_unknown_warning_option=yes 10705else $as_nop 10706 xorg_cv_cc_flag_unknown_warning_option=no 10707fi 10708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10709fi 10710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10713 CFLAGS="$xorg_testset_save_CFLAGS" 10714fi 10715 10716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10719 fi 10720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10723if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10724then : 10725 printf %s "(cached) " >&6 10726else $as_nop 10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10728/* end confdefs.h. */ 10729int i; 10730_ACEOF 10731if ac_fn_c_try_compile "$LINENO" 10732then : 10733 xorg_cv_cc_flag_unused_command_line_argument=yes 10734else $as_nop 10735 xorg_cv_cc_flag_unused_command_line_argument=no 10736fi 10737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10738fi 10739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10742 CFLAGS="$xorg_testset_save_CFLAGS" 10743fi 10744 10745found="no" 10746 10747 if test $found = "no" ; then 10748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10750 fi 10751 10752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10754 fi 10755 10756 CFLAGS="$CFLAGS -pedantic" 10757 10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10759printf %s "checking if $CC supports -pedantic... " >&6; } 10760 cacheid=xorg_cv_cc_flag__pedantic 10761 if eval test \${$cacheid+y} 10762then : 10763 printf %s "(cached) " >&6 10764else $as_nop 10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10766/* end confdefs.h. */ 10767int i; 10768int 10769main (void) 10770{ 10771 10772 ; 10773 return 0; 10774} 10775_ACEOF 10776if ac_fn_c_try_link "$LINENO" 10777then : 10778 eval $cacheid=yes 10779else $as_nop 10780 eval $cacheid=no 10781fi 10782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10783 conftest$ac_exeext conftest.$ac_ext 10784fi 10785 10786 10787 CFLAGS="$xorg_testset_save_CFLAGS" 10788 10789 eval supported=\$$cacheid 10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10791printf "%s\n" "$supported" >&6; } 10792 if test "$supported" = "yes" ; then 10793 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10794 found="yes" 10795 fi 10796 fi 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812xorg_testset_save_CFLAGS="$CFLAGS" 10813 10814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10818if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10819then : 10820 printf %s "(cached) " >&6 10821else $as_nop 10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10823/* end confdefs.h. */ 10824int i; 10825_ACEOF 10826if ac_fn_c_try_compile "$LINENO" 10827then : 10828 xorg_cv_cc_flag_unknown_warning_option=yes 10829else $as_nop 10830 xorg_cv_cc_flag_unknown_warning_option=no 10831fi 10832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10833fi 10834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10837 CFLAGS="$xorg_testset_save_CFLAGS" 10838fi 10839 10840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10843 fi 10844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10847if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10848then : 10849 printf %s "(cached) " >&6 10850else $as_nop 10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852/* end confdefs.h. */ 10853int i; 10854_ACEOF 10855if ac_fn_c_try_compile "$LINENO" 10856then : 10857 xorg_cv_cc_flag_unused_command_line_argument=yes 10858else $as_nop 10859 xorg_cv_cc_flag_unused_command_line_argument=no 10860fi 10861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10862fi 10863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10866 CFLAGS="$xorg_testset_save_CFLAGS" 10867fi 10868 10869found="no" 10870 10871 if test $found = "no" ; then 10872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10874 fi 10875 10876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10878 fi 10879 10880 CFLAGS="$CFLAGS -Werror" 10881 10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10883printf %s "checking if $CC supports -Werror... " >&6; } 10884 cacheid=xorg_cv_cc_flag__Werror 10885 if eval test \${$cacheid+y} 10886then : 10887 printf %s "(cached) " >&6 10888else $as_nop 10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10890/* end confdefs.h. */ 10891int i; 10892int 10893main (void) 10894{ 10895 10896 ; 10897 return 0; 10898} 10899_ACEOF 10900if ac_fn_c_try_link "$LINENO" 10901then : 10902 eval $cacheid=yes 10903else $as_nop 10904 eval $cacheid=no 10905fi 10906rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10907 conftest$ac_exeext conftest.$ac_ext 10908fi 10909 10910 10911 CFLAGS="$xorg_testset_save_CFLAGS" 10912 10913 eval supported=\$$cacheid 10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10915printf "%s\n" "$supported" >&6; } 10916 if test "$supported" = "yes" ; then 10917 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10918 found="yes" 10919 fi 10920 fi 10921 10922 if test $found = "no" ; then 10923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10925 fi 10926 10927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10929 fi 10930 10931 CFLAGS="$CFLAGS -errwarn" 10932 10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10934printf %s "checking if $CC supports -errwarn... " >&6; } 10935 cacheid=xorg_cv_cc_flag__errwarn 10936 if eval test \${$cacheid+y} 10937then : 10938 printf %s "(cached) " >&6 10939else $as_nop 10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10941/* end confdefs.h. */ 10942int i; 10943int 10944main (void) 10945{ 10946 10947 ; 10948 return 0; 10949} 10950_ACEOF 10951if ac_fn_c_try_link "$LINENO" 10952then : 10953 eval $cacheid=yes 10954else $as_nop 10955 eval $cacheid=no 10956fi 10957rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10958 conftest$ac_exeext conftest.$ac_ext 10959fi 10960 10961 10962 CFLAGS="$xorg_testset_save_CFLAGS" 10963 10964 eval supported=\$$cacheid 10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10966printf "%s\n" "$supported" >&6; } 10967 if test "$supported" = "yes" ; then 10968 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10969 found="yes" 10970 fi 10971 fi 10972 10973 10974 10975# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10976# activate it with -Werror, so we add it here explicitly. 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990xorg_testset_save_CFLAGS="$CFLAGS" 10991 10992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10996if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10997then : 10998 printf %s "(cached) " >&6 10999else $as_nop 11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002int i; 11003_ACEOF 11004if ac_fn_c_try_compile "$LINENO" 11005then : 11006 xorg_cv_cc_flag_unknown_warning_option=yes 11007else $as_nop 11008 xorg_cv_cc_flag_unknown_warning_option=no 11009fi 11010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11011fi 11012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11015 CFLAGS="$xorg_testset_save_CFLAGS" 11016fi 11017 11018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11021 fi 11022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11025if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11026then : 11027 printf %s "(cached) " >&6 11028else $as_nop 11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11030/* end confdefs.h. */ 11031int i; 11032_ACEOF 11033if ac_fn_c_try_compile "$LINENO" 11034then : 11035 xorg_cv_cc_flag_unused_command_line_argument=yes 11036else $as_nop 11037 xorg_cv_cc_flag_unused_command_line_argument=no 11038fi 11039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11040fi 11041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11044 CFLAGS="$xorg_testset_save_CFLAGS" 11045fi 11046 11047found="no" 11048 11049 if test $found = "no" ; then 11050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11052 fi 11053 11054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11056 fi 11057 11058 CFLAGS="$CFLAGS -Werror=attributes" 11059 11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11061printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11062 cacheid=xorg_cv_cc_flag__Werror_attributes 11063 if eval test \${$cacheid+y} 11064then : 11065 printf %s "(cached) " >&6 11066else $as_nop 11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11068/* end confdefs.h. */ 11069int i; 11070int 11071main (void) 11072{ 11073 11074 ; 11075 return 0; 11076} 11077_ACEOF 11078if ac_fn_c_try_link "$LINENO" 11079then : 11080 eval $cacheid=yes 11081else $as_nop 11082 eval $cacheid=no 11083fi 11084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11085 conftest$ac_exeext conftest.$ac_ext 11086fi 11087 11088 11089 CFLAGS="$xorg_testset_save_CFLAGS" 11090 11091 eval supported=\$$cacheid 11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11093printf "%s\n" "$supported" >&6; } 11094 if test "$supported" = "yes" ; then 11095 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11096 found="yes" 11097 fi 11098 fi 11099 11100 11101 11102if test "x$STRICT_COMPILE" = "xyes"; then 11103 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11104 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11105fi 11106 11107 11108 11109 11110 11111 11112cat >>confdefs.h <<_ACEOF 11113#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11114_ACEOF 11115 11116 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11117 if test "x$PVM" = "x"; then 11118 PVM="0" 11119 fi 11120 11121printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11122 11123 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11124 if test "x$PVP" = "x"; then 11125 PVP="0" 11126 fi 11127 11128printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11129 11130 11131 11132CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11133mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11134|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11135touch \$(top_srcdir)/ChangeLog; \ 11136echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11137 11138 11139 11140 11141macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11142INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11143mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11144|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11145touch \$(top_srcdir)/INSTALL; \ 11146echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11147 11148 11149 11150 11151 11152 11153case $host_os in 11154 solaris*) 11155 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11156 # check for a man page file found in later versions that use 11157 # traditional section numbers instead 11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11159printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11160if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11161then : 11162 printf %s "(cached) " >&6 11163else $as_nop 11164 test "$cross_compiling" = yes && 11165 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11166if test -r "/usr/share/man/man7/attributes.7"; then 11167 ac_cv_file__usr_share_man_man7_attributes_7=yes 11168else 11169 ac_cv_file__usr_share_man_man7_attributes_7=no 11170fi 11171fi 11172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11173printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11174if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11175then : 11176 SYSV_MAN_SECTIONS=false 11177else $as_nop 11178 SYSV_MAN_SECTIONS=true 11179fi 11180 11181 ;; 11182 *) SYSV_MAN_SECTIONS=false ;; 11183esac 11184 11185if test x$APP_MAN_SUFFIX = x ; then 11186 APP_MAN_SUFFIX=1 11187fi 11188if test x$APP_MAN_DIR = x ; then 11189 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11190fi 11191 11192if test x$LIB_MAN_SUFFIX = x ; then 11193 LIB_MAN_SUFFIX=3 11194fi 11195if test x$LIB_MAN_DIR = x ; then 11196 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11197fi 11198 11199if test x$FILE_MAN_SUFFIX = x ; then 11200 case $SYSV_MAN_SECTIONS in 11201 true) FILE_MAN_SUFFIX=4 ;; 11202 *) FILE_MAN_SUFFIX=5 ;; 11203 esac 11204fi 11205if test x$FILE_MAN_DIR = x ; then 11206 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11207fi 11208 11209if test x$MISC_MAN_SUFFIX = x ; then 11210 case $SYSV_MAN_SECTIONS in 11211 true) MISC_MAN_SUFFIX=5 ;; 11212 *) MISC_MAN_SUFFIX=7 ;; 11213 esac 11214fi 11215if test x$MISC_MAN_DIR = x ; then 11216 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11217fi 11218 11219if test x$DRIVER_MAN_SUFFIX = x ; then 11220 case $SYSV_MAN_SECTIONS in 11221 true) DRIVER_MAN_SUFFIX=7 ;; 11222 *) DRIVER_MAN_SUFFIX=4 ;; 11223 esac 11224fi 11225if test x$DRIVER_MAN_DIR = x ; then 11226 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11227fi 11228 11229if test x$ADMIN_MAN_SUFFIX = x ; then 11230 case $SYSV_MAN_SECTIONS in 11231 true) ADMIN_MAN_SUFFIX=1m ;; 11232 *) ADMIN_MAN_SUFFIX=8 ;; 11233 esac 11234fi 11235if test x$ADMIN_MAN_DIR = x ; then 11236 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11237fi 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253XORG_MAN_PAGE="X Version 11" 11254 11255MAN_SUBSTS="\ 11256 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11257 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11258 -e 's|__xservername__|Xorg|g' \ 11259 -e 's|__xconfigfile__|xorg.conf|g' \ 11260 -e 's|__projectroot__|\$(prefix)|g' \ 11261 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11262 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11263 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11264 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11265 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11266 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11267 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11268 11269 11270 11271# Check whether --enable-silent-rules was given. 11272if test ${enable_silent_rules+y} 11273then : 11274 enableval=$enable_silent_rules; 11275fi 11276 11277case $enable_silent_rules in # ((( 11278 yes) AM_DEFAULT_VERBOSITY=0;; 11279 no) AM_DEFAULT_VERBOSITY=1;; 11280 *) AM_DEFAULT_VERBOSITY=0;; 11281esac 11282am_make=${MAKE-make} 11283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11284printf %s "checking whether $am_make supports nested variables... " >&6; } 11285if test ${am_cv_make_support_nested_variables+y} 11286then : 11287 printf %s "(cached) " >&6 11288else $as_nop 11289 if printf "%s\n" 'TRUE=$(BAR$(V)) 11290BAR0=false 11291BAR1=true 11292V=1 11293am__doit: 11294 @$(TRUE) 11295.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11296 am_cv_make_support_nested_variables=yes 11297else 11298 am_cv_make_support_nested_variables=no 11299fi 11300fi 11301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11302printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11303if test $am_cv_make_support_nested_variables = yes; then 11304 AM_V='$(V)' 11305 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11306else 11307 AM_V=$AM_DEFAULT_VERBOSITY 11308 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11309fi 11310AM_BACKSLASH='\' 11311 11312 11313 11314# Checks for pkg-config packages 11315 11316pkg_failed=no 11317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCONSOLE" >&5 11318printf %s "checking for XCONSOLE... " >&6; } 11319 11320if test -n "$XCONSOLE_CFLAGS"; then 11321 pkg_cv_XCONSOLE_CFLAGS="$XCONSOLE_CFLAGS" 11322 elif test -n "$PKG_CONFIG"; then 11323 if test -n "$PKG_CONFIG" && \ 11324 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5 11325 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5 11326 ac_status=$? 11327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11328 test $ac_status = 0; }; then 11329 pkg_cv_XCONSOLE_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null` 11330 test "x$?" != "x0" && pkg_failed=yes 11331else 11332 pkg_failed=yes 11333fi 11334 else 11335 pkg_failed=untried 11336fi 11337if test -n "$XCONSOLE_LIBS"; then 11338 pkg_cv_XCONSOLE_LIBS="$XCONSOLE_LIBS" 11339 elif test -n "$PKG_CONFIG"; then 11340 if test -n "$PKG_CONFIG" && \ 11341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5 11342 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5 11343 ac_status=$? 11344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11345 test $ac_status = 0; }; then 11346 pkg_cv_XCONSOLE_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null` 11347 test "x$?" != "x0" && pkg_failed=yes 11348else 11349 pkg_failed=yes 11350fi 11351 else 11352 pkg_failed=untried 11353fi 11354 11355 11356 11357if test $pkg_failed = yes; then 11358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11359printf "%s\n" "no" >&6; } 11360 11361if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11362 _pkg_short_errors_supported=yes 11363else 11364 _pkg_short_errors_supported=no 11365fi 11366 if test $_pkg_short_errors_supported = yes; then 11367 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1` 11368 else 11369 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1` 11370 fi 11371 # Put the nasty error message in config.log where it belongs 11372 echo "$XCONSOLE_PKG_ERRORS" >&5 11373 11374 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17) were not met: 11375 11376$XCONSOLE_PKG_ERRORS 11377 11378Consider adjusting the PKG_CONFIG_PATH environment variable if you 11379installed software in a non-standard prefix. 11380 11381Alternatively, you may set the environment variables XCONSOLE_CFLAGS 11382and XCONSOLE_LIBS to avoid the need to call pkg-config. 11383See the pkg-config man page for more details." "$LINENO" 5 11384elif test $pkg_failed = untried; then 11385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11386printf "%s\n" "no" >&6; } 11387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11388printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11389as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11390is in your PATH or set the PKG_CONFIG environment variable to the full 11391path to pkg-config. 11392 11393Alternatively, you may set the environment variables XCONSOLE_CFLAGS 11394and XCONSOLE_LIBS to avoid the need to call pkg-config. 11395See the pkg-config man page for more details. 11396 11397To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11398See \`config.log' for more details" "$LINENO" 5; } 11399else 11400 XCONSOLE_CFLAGS=$pkg_cv_XCONSOLE_CFLAGS 11401 XCONSOLE_LIBS=$pkg_cv_XCONSOLE_LIBS 11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11403printf "%s\n" "yes" >&6; } 11404 11405fi 11406 11407 11408pkg_failed=no 11409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11410printf %s "checking for APPDEFS... " >&6; } 11411 11412if test -n "$APPDEFS_CFLAGS"; then 11413 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11414 elif test -n "$PKG_CONFIG"; then 11415 if test -n "$PKG_CONFIG" && \ 11416 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11417 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11418 ac_status=$? 11419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11420 test $ac_status = 0; }; then 11421 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11422 test "x$?" != "x0" && pkg_failed=yes 11423else 11424 pkg_failed=yes 11425fi 11426 else 11427 pkg_failed=untried 11428fi 11429if test -n "$APPDEFS_LIBS"; then 11430 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11431 elif test -n "$PKG_CONFIG"; then 11432 if test -n "$PKG_CONFIG" && \ 11433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11434 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11435 ac_status=$? 11436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11437 test $ac_status = 0; }; then 11438 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11439 test "x$?" != "x0" && pkg_failed=yes 11440else 11441 pkg_failed=yes 11442fi 11443 else 11444 pkg_failed=untried 11445fi 11446 11447 11448 11449if test $pkg_failed = yes; then 11450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11451printf "%s\n" "no" >&6; } 11452 11453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11454 _pkg_short_errors_supported=yes 11455else 11456 _pkg_short_errors_supported=no 11457fi 11458 if test $_pkg_short_errors_supported = yes; then 11459 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11460 else 11461 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11462 fi 11463 # Put the nasty error message in config.log where it belongs 11464 echo "$APPDEFS_PKG_ERRORS" >&5 11465 11466 as_fn_error $? "Package requirements (xt) were not met: 11467 11468$APPDEFS_PKG_ERRORS 11469 11470Consider adjusting the PKG_CONFIG_PATH environment variable if you 11471installed software in a non-standard prefix. 11472 11473Alternatively, you may set the environment variables APPDEFS_CFLAGS 11474and APPDEFS_LIBS to avoid the need to call pkg-config. 11475See the pkg-config man page for more details." "$LINENO" 5 11476elif test $pkg_failed = untried; then 11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11478printf "%s\n" "no" >&6; } 11479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11480printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11481as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11482is in your PATH or set the PKG_CONFIG environment variable to the full 11483path to pkg-config. 11484 11485Alternatively, you may set the environment variables APPDEFS_CFLAGS 11486and APPDEFS_LIBS to avoid the need to call pkg-config. 11487See the pkg-config man page for more details. 11488 11489To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11490See \`config.log' for more details" "$LINENO" 5; } 11491else 11492 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11493 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11495printf "%s\n" "yes" >&6; } 11496 11497fi 11498xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11499 11500# Check whether --with-appdefaultdir was given. 11501if test ${with_appdefaultdir+y} 11502then : 11503 withval=$with_appdefaultdir; appdefaultdir="$withval" 11504else $as_nop 11505 appdefaultdir="${xt_appdefaultdir}" 11506fi 11507 11508 11509 11510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 11511printf %s "checking for library containing openpty... " >&6; } 11512if test ${ac_cv_search_openpty+y} 11513then : 11514 printf %s "(cached) " >&6 11515else $as_nop 11516 ac_func_search_save_LIBS=$LIBS 11517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11518/* end confdefs.h. */ 11519 11520/* Override any GCC internal prototype to avoid an error. 11521 Use char because int might match the return type of a GCC 11522 builtin and then its argument prototype would still apply. */ 11523char openpty (); 11524int 11525main (void) 11526{ 11527return openpty (); 11528 ; 11529 return 0; 11530} 11531_ACEOF 11532for ac_lib in '' util 11533do 11534 if test -z "$ac_lib"; then 11535 ac_res="none required" 11536 else 11537 ac_res=-l$ac_lib 11538 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11539 fi 11540 if ac_fn_c_try_link "$LINENO" 11541then : 11542 ac_cv_search_openpty=$ac_res 11543fi 11544rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11545 conftest$ac_exeext 11546 if test ${ac_cv_search_openpty+y} 11547then : 11548 break 11549fi 11550done 11551if test ${ac_cv_search_openpty+y} 11552then : 11553 11554else $as_nop 11555 ac_cv_search_openpty=no 11556fi 11557rm conftest.$ac_ext 11558LIBS=$ac_func_search_save_LIBS 11559fi 11560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 11561printf "%s\n" "$ac_cv_search_openpty" >&6; } 11562ac_res=$ac_cv_search_openpty 11563if test "$ac_res" != no 11564then : 11565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11566 11567fi 11568 11569ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 11570if test "x$ac_cv_func_openpty" = xyes 11571then : 11572 HAS_OPENPTY="yes" 11573fi 11574 11575if test "x$HAS_OPENPTY" = "xyes" ; then 11576 11577printf "%s\n" "#define HAS_OPENPTY 1" >>confdefs.h 11578 11579 for ac_header in util.h libutil.h pty.h 11580do : 11581 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 11582ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11583if eval test \"x\$"$as_ac_Header"\" = x"yes" 11584then : 11585 cat >>confdefs.h <<_ACEOF 11586#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 11587_ACEOF 11588 break 11589fi 11590 11591done 11592fi 11593 11594 11595ac_config_files="$ac_config_files Makefile man/Makefile" 11596 11597cat >confcache <<\_ACEOF 11598# This file is a shell script that caches the results of configure 11599# tests run on this system so they can be shared between configure 11600# scripts and configure runs, see configure's option --config-cache. 11601# It is not useful on other systems. If it contains results you don't 11602# want to keep, you may remove or edit it. 11603# 11604# config.status only pays attention to the cache file if you give it 11605# the --recheck option to rerun configure. 11606# 11607# `ac_cv_env_foo' variables (set or unset) will be overridden when 11608# loading this file, other *unset* `ac_cv_foo' will be assigned the 11609# following values. 11610 11611_ACEOF 11612 11613# The following way of writing the cache mishandles newlines in values, 11614# but we know of no workaround that is simple, portable, and efficient. 11615# So, we kill variables containing newlines. 11616# Ultrix sh set writes to stderr and can't be redirected directly, 11617# and sets the high bit in the cache file unless we assign to the vars. 11618( 11619 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11620 eval ac_val=\$$ac_var 11621 case $ac_val in #( 11622 *${as_nl}*) 11623 case $ac_var in #( 11624 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11625printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11626 esac 11627 case $ac_var in #( 11628 _ | IFS | as_nl) ;; #( 11629 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11630 *) { eval $ac_var=; unset $ac_var;} ;; 11631 esac ;; 11632 esac 11633 done 11634 11635 (set) 2>&1 | 11636 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11637 *${as_nl}ac_space=\ *) 11638 # `set' does not quote correctly, so add quotes: double-quote 11639 # substitution turns \\\\ into \\, and sed turns \\ into \. 11640 sed -n \ 11641 "s/'/'\\\\''/g; 11642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11643 ;; #( 11644 *) 11645 # `set' quotes correctly as required by POSIX, so do not add quotes. 11646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11647 ;; 11648 esac | 11649 sort 11650) | 11651 sed ' 11652 /^ac_cv_env_/b end 11653 t clear 11654 :clear 11655 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11656 t end 11657 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11658 :end' >>confcache 11659if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11660 if test -w "$cache_file"; then 11661 if test "x$cache_file" != "x/dev/null"; then 11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11663printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11664 if test ! -f "$cache_file" || test -h "$cache_file"; then 11665 cat confcache >"$cache_file" 11666 else 11667 case $cache_file in #( 11668 */* | ?:*) 11669 mv -f confcache "$cache_file"$$ && 11670 mv -f "$cache_file"$$ "$cache_file" ;; #( 11671 *) 11672 mv -f confcache "$cache_file" ;; 11673 esac 11674 fi 11675 fi 11676 else 11677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11678printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11679 fi 11680fi 11681rm -f confcache 11682 11683test "x$prefix" = xNONE && prefix=$ac_default_prefix 11684# Let make expand exec_prefix. 11685test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11686 11687DEFS=-DHAVE_CONFIG_H 11688 11689ac_libobjs= 11690ac_ltlibobjs= 11691U= 11692for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11693 # 1. Remove the extension, and $U if already installed. 11694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11695 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11697 # will be set to the directory where LIBOBJS objects are built. 11698 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11699 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11700done 11701LIBOBJS=$ac_libobjs 11702 11703LTLIBOBJS=$ac_ltlibobjs 11704 11705 11706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11707printf %s "checking that generated files are newer than configure... " >&6; } 11708 if test -n "$am_sleep_pid"; then 11709 # Hide warnings about reused PIDs. 11710 wait $am_sleep_pid 2>/dev/null 11711 fi 11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11713printf "%s\n" "done" >&6; } 11714if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11715 as_fn_error $? "conditional \"AMDEP\" was never defined. 11716Usually this means the macro was only invoked conditionally." "$LINENO" 5 11717fi 11718if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11719 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11720Usually this means the macro was only invoked conditionally." "$LINENO" 5 11721fi 11722 if test -n "$EXEEXT"; then 11723 am__EXEEXT_TRUE= 11724 am__EXEEXT_FALSE='#' 11725else 11726 am__EXEEXT_TRUE='#' 11727 am__EXEEXT_FALSE= 11728fi 11729 11730 11731: "${CONFIG_STATUS=./config.status}" 11732ac_write_fail=0 11733ac_clean_files_save=$ac_clean_files 11734ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11736printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11737as_write_fail=0 11738cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11739#! $SHELL 11740# Generated by $as_me. 11741# Run this file to recreate the current configuration. 11742# Compiler output produced by configure, useful for debugging 11743# configure, is in config.log if it exists. 11744 11745debug=false 11746ac_cs_recheck=false 11747ac_cs_silent=false 11748 11749SHELL=\${CONFIG_SHELL-$SHELL} 11750export SHELL 11751_ASEOF 11752cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11753## -------------------- ## 11754## M4sh Initialization. ## 11755## -------------------- ## 11756 11757# Be more Bourne compatible 11758DUALCASE=1; export DUALCASE # for MKS sh 11759as_nop=: 11760if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11761then : 11762 emulate sh 11763 NULLCMD=: 11764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11765 # is contrary to our usage. Disable this feature. 11766 alias -g '${1+"$@"}'='"$@"' 11767 setopt NO_GLOB_SUBST 11768else $as_nop 11769 case `(set -o) 2>/dev/null` in #( 11770 *posix*) : 11771 set -o posix ;; #( 11772 *) : 11773 ;; 11774esac 11775fi 11776 11777 11778 11779# Reset variables that may have inherited troublesome values from 11780# the environment. 11781 11782# IFS needs to be set, to space, tab, and newline, in precisely that order. 11783# (If _AS_PATH_WALK were called with IFS unset, it would have the 11784# side effect of setting IFS to empty, thus disabling word splitting.) 11785# Quoting is to prevent editors from complaining about space-tab. 11786as_nl=' 11787' 11788export as_nl 11789IFS=" "" $as_nl" 11790 11791PS1='$ ' 11792PS2='> ' 11793PS4='+ ' 11794 11795# Ensure predictable behavior from utilities with locale-dependent output. 11796LC_ALL=C 11797export LC_ALL 11798LANGUAGE=C 11799export LANGUAGE 11800 11801# We cannot yet rely on "unset" to work, but we need these variables 11802# to be unset--not just set to an empty or harmless value--now, to 11803# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11804# also avoids known problems related to "unset" and subshell syntax 11805# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11806for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11807do eval test \${$as_var+y} \ 11808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11809done 11810 11811# Ensure that fds 0, 1, and 2 are open. 11812if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11813if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11814if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11815 11816# The user is always right. 11817if ${PATH_SEPARATOR+false} :; then 11818 PATH_SEPARATOR=: 11819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11821 PATH_SEPARATOR=';' 11822 } 11823fi 11824 11825 11826# Find who we are. Look in the path if we contain no directory separator. 11827as_myself= 11828case $0 in #(( 11829 *[\\/]* ) as_myself=$0 ;; 11830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11831for as_dir in $PATH 11832do 11833 IFS=$as_save_IFS 11834 case $as_dir in #((( 11835 '') as_dir=./ ;; 11836 */) ;; 11837 *) as_dir=$as_dir/ ;; 11838 esac 11839 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11840 done 11841IFS=$as_save_IFS 11842 11843 ;; 11844esac 11845# We did not find ourselves, most probably we were run as `sh COMMAND' 11846# in which case we are not to be found in the path. 11847if test "x$as_myself" = x; then 11848 as_myself=$0 11849fi 11850if test ! -f "$as_myself"; then 11851 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11852 exit 1 11853fi 11854 11855 11856 11857# as_fn_error STATUS ERROR [LINENO LOG_FD] 11858# ---------------------------------------- 11859# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11860# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11861# script with STATUS, using 1 if that was 0. 11862as_fn_error () 11863{ 11864 as_status=$1; test $as_status -eq 0 && as_status=1 11865 if test "$4"; then 11866 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11868 fi 11869 printf "%s\n" "$as_me: error: $2" >&2 11870 as_fn_exit $as_status 11871} # as_fn_error 11872 11873 11874 11875# as_fn_set_status STATUS 11876# ----------------------- 11877# Set $? to STATUS, without forking. 11878as_fn_set_status () 11879{ 11880 return $1 11881} # as_fn_set_status 11882 11883# as_fn_exit STATUS 11884# ----------------- 11885# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11886as_fn_exit () 11887{ 11888 set +e 11889 as_fn_set_status $1 11890 exit $1 11891} # as_fn_exit 11892 11893# as_fn_unset VAR 11894# --------------- 11895# Portably unset VAR. 11896as_fn_unset () 11897{ 11898 { eval $1=; unset $1;} 11899} 11900as_unset=as_fn_unset 11901 11902# as_fn_append VAR VALUE 11903# ---------------------- 11904# Append the text in VALUE to the end of the definition contained in VAR. Take 11905# advantage of any shell optimizations that allow amortized linear growth over 11906# repeated appends, instead of the typical quadratic growth present in naive 11907# implementations. 11908if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11909then : 11910 eval 'as_fn_append () 11911 { 11912 eval $1+=\$2 11913 }' 11914else $as_nop 11915 as_fn_append () 11916 { 11917 eval $1=\$$1\$2 11918 } 11919fi # as_fn_append 11920 11921# as_fn_arith ARG... 11922# ------------------ 11923# Perform arithmetic evaluation on the ARGs, and store the result in the 11924# global $as_val. Take advantage of shells that can avoid forks. The arguments 11925# must be portable across $(()) and expr. 11926if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11927then : 11928 eval 'as_fn_arith () 11929 { 11930 as_val=$(( $* )) 11931 }' 11932else $as_nop 11933 as_fn_arith () 11934 { 11935 as_val=`expr "$@" || test $? -eq 1` 11936 } 11937fi # as_fn_arith 11938 11939 11940if expr a : '\(a\)' >/dev/null 2>&1 && 11941 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11942 as_expr=expr 11943else 11944 as_expr=false 11945fi 11946 11947if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11948 as_basename=basename 11949else 11950 as_basename=false 11951fi 11952 11953if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11954 as_dirname=dirname 11955else 11956 as_dirname=false 11957fi 11958 11959as_me=`$as_basename -- "$0" || 11960$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11961 X"$0" : 'X\(//\)$' \| \ 11962 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11963printf "%s\n" X/"$0" | 11964 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11965 s//\1/ 11966 q 11967 } 11968 /^X\/\(\/\/\)$/{ 11969 s//\1/ 11970 q 11971 } 11972 /^X\/\(\/\).*/{ 11973 s//\1/ 11974 q 11975 } 11976 s/.*/./; q'` 11977 11978# Avoid depending upon Character Ranges. 11979as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11980as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11981as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11982as_cr_digits='0123456789' 11983as_cr_alnum=$as_cr_Letters$as_cr_digits 11984 11985 11986# Determine whether it's possible to make 'echo' print without a newline. 11987# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11988# for compatibility with existing Makefiles. 11989ECHO_C= ECHO_N= ECHO_T= 11990case `echo -n x` in #((((( 11991-n*) 11992 case `echo 'xy\c'` in 11993 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11994 xy) ECHO_C='\c';; 11995 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11996 ECHO_T=' ';; 11997 esac;; 11998*) 11999 ECHO_N='-n';; 12000esac 12001 12002# For backward compatibility with old third-party macros, we provide 12003# the shell variables $as_echo and $as_echo_n. New code should use 12004# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12005as_echo='printf %s\n' 12006as_echo_n='printf %s' 12007 12008rm -f conf$$ conf$$.exe conf$$.file 12009if test -d conf$$.dir; then 12010 rm -f conf$$.dir/conf$$.file 12011else 12012 rm -f conf$$.dir 12013 mkdir conf$$.dir 2>/dev/null 12014fi 12015if (echo >conf$$.file) 2>/dev/null; then 12016 if ln -s conf$$.file conf$$ 2>/dev/null; then 12017 as_ln_s='ln -s' 12018 # ... but there are two gotchas: 12019 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12020 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12021 # In both cases, we have to default to `cp -pR'. 12022 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12023 as_ln_s='cp -pR' 12024 elif ln conf$$.file conf$$ 2>/dev/null; then 12025 as_ln_s=ln 12026 else 12027 as_ln_s='cp -pR' 12028 fi 12029else 12030 as_ln_s='cp -pR' 12031fi 12032rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12033rmdir conf$$.dir 2>/dev/null 12034 12035 12036# as_fn_mkdir_p 12037# ------------- 12038# Create "$as_dir" as a directory, including parents if necessary. 12039as_fn_mkdir_p () 12040{ 12041 12042 case $as_dir in #( 12043 -*) as_dir=./$as_dir;; 12044 esac 12045 test -d "$as_dir" || eval $as_mkdir_p || { 12046 as_dirs= 12047 while :; do 12048 case $as_dir in #( 12049 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12050 *) as_qdir=$as_dir;; 12051 esac 12052 as_dirs="'$as_qdir' $as_dirs" 12053 as_dir=`$as_dirname -- "$as_dir" || 12054$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12055 X"$as_dir" : 'X\(//\)[^/]' \| \ 12056 X"$as_dir" : 'X\(//\)$' \| \ 12057 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12058printf "%s\n" X"$as_dir" | 12059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12060 s//\1/ 12061 q 12062 } 12063 /^X\(\/\/\)[^/].*/{ 12064 s//\1/ 12065 q 12066 } 12067 /^X\(\/\/\)$/{ 12068 s//\1/ 12069 q 12070 } 12071 /^X\(\/\).*/{ 12072 s//\1/ 12073 q 12074 } 12075 s/.*/./; q'` 12076 test -d "$as_dir" && break 12077 done 12078 test -z "$as_dirs" || eval "mkdir $as_dirs" 12079 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12080 12081 12082} # as_fn_mkdir_p 12083if mkdir -p . 2>/dev/null; then 12084 as_mkdir_p='mkdir -p "$as_dir"' 12085else 12086 test -d ./-p && rmdir ./-p 12087 as_mkdir_p=false 12088fi 12089 12090 12091# as_fn_executable_p FILE 12092# ----------------------- 12093# Test if FILE is an executable regular file. 12094as_fn_executable_p () 12095{ 12096 test -f "$1" && test -x "$1" 12097} # as_fn_executable_p 12098as_test_x='test -x' 12099as_executable_p=as_fn_executable_p 12100 12101# Sed expression to map a string onto a valid CPP name. 12102as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12103 12104# Sed expression to map a string onto a valid variable name. 12105as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12106 12107 12108exec 6>&1 12109## ----------------------------------- ## 12110## Main body of $CONFIG_STATUS script. ## 12111## ----------------------------------- ## 12112_ASEOF 12113test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12114 12115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12116# Save the log message, to keep $0 and so on meaningful, and to 12117# report actual input values of CONFIG_FILES etc. instead of their 12118# values after options handling. 12119ac_log=" 12120This file was extended by xconsole $as_me 1.0.8, which was 12121generated by GNU Autoconf 2.71. Invocation command line was 12122 12123 CONFIG_FILES = $CONFIG_FILES 12124 CONFIG_HEADERS = $CONFIG_HEADERS 12125 CONFIG_LINKS = $CONFIG_LINKS 12126 CONFIG_COMMANDS = $CONFIG_COMMANDS 12127 $ $0 $@ 12128 12129on `(hostname || uname -n) 2>/dev/null | sed 1q` 12130" 12131 12132_ACEOF 12133 12134case $ac_config_files in *" 12135"*) set x $ac_config_files; shift; ac_config_files=$*;; 12136esac 12137 12138case $ac_config_headers in *" 12139"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12140esac 12141 12142 12143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12144# Files that config.status was made for. 12145config_files="$ac_config_files" 12146config_headers="$ac_config_headers" 12147config_commands="$ac_config_commands" 12148 12149_ACEOF 12150 12151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12152ac_cs_usage="\ 12153\`$as_me' instantiates files and other configuration actions 12154from templates according to the current configuration. Unless the files 12155and actions are specified as TAGs, all are instantiated by default. 12156 12157Usage: $0 [OPTION]... [TAG]... 12158 12159 -h, --help print this help, then exit 12160 -V, --version print version number and configuration settings, then exit 12161 --config print configuration, then exit 12162 -q, --quiet, --silent 12163 do not print progress messages 12164 -d, --debug don't remove temporary files 12165 --recheck update $as_me by reconfiguring in the same conditions 12166 --file=FILE[:TEMPLATE] 12167 instantiate the configuration file FILE 12168 --header=FILE[:TEMPLATE] 12169 instantiate the configuration header FILE 12170 12171Configuration files: 12172$config_files 12173 12174Configuration headers: 12175$config_headers 12176 12177Configuration commands: 12178$config_commands 12179 12180Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/issues>." 12181 12182_ACEOF 12183ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12184ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12186ac_cs_config='$ac_cs_config_escaped' 12187ac_cs_version="\\ 12188xconsole config.status 1.0.8 12189configured by $0, generated by GNU Autoconf 2.71, 12190 with options \\"\$ac_cs_config\\" 12191 12192Copyright (C) 2021 Free Software Foundation, Inc. 12193This config.status script is free software; the Free Software Foundation 12194gives unlimited permission to copy, distribute and modify it." 12195 12196ac_pwd='$ac_pwd' 12197srcdir='$srcdir' 12198INSTALL='$INSTALL' 12199MKDIR_P='$MKDIR_P' 12200AWK='$AWK' 12201test -n "\$AWK" || AWK=awk 12202_ACEOF 12203 12204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12205# The default lists apply if the user does not specify any file. 12206ac_need_defaults=: 12207while test $# != 0 12208do 12209 case $1 in 12210 --*=?*) 12211 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12213 ac_shift=: 12214 ;; 12215 --*=) 12216 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12217 ac_optarg= 12218 ac_shift=: 12219 ;; 12220 *) 12221 ac_option=$1 12222 ac_optarg=$2 12223 ac_shift=shift 12224 ;; 12225 esac 12226 12227 case $ac_option in 12228 # Handling of the options. 12229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12230 ac_cs_recheck=: ;; 12231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12232 printf "%s\n" "$ac_cs_version"; exit ;; 12233 --config | --confi | --conf | --con | --co | --c ) 12234 printf "%s\n" "$ac_cs_config"; exit ;; 12235 --debug | --debu | --deb | --de | --d | -d ) 12236 debug=: ;; 12237 --file | --fil | --fi | --f ) 12238 $ac_shift 12239 case $ac_optarg in 12240 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12241 '') as_fn_error $? "missing file argument" ;; 12242 esac 12243 as_fn_append CONFIG_FILES " '$ac_optarg'" 12244 ac_need_defaults=false;; 12245 --header | --heade | --head | --hea ) 12246 $ac_shift 12247 case $ac_optarg in 12248 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12249 esac 12250 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12251 ac_need_defaults=false;; 12252 --he | --h) 12253 # Conflict between --help and --header 12254 as_fn_error $? "ambiguous option: \`$1' 12255Try \`$0 --help' for more information.";; 12256 --help | --hel | -h ) 12257 printf "%s\n" "$ac_cs_usage"; exit ;; 12258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12259 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12260 ac_cs_silent=: ;; 12261 12262 # This is an error. 12263 -*) as_fn_error $? "unrecognized option: \`$1' 12264Try \`$0 --help' for more information." ;; 12265 12266 *) as_fn_append ac_config_targets " $1" 12267 ac_need_defaults=false ;; 12268 12269 esac 12270 shift 12271done 12272 12273ac_configure_extra_args= 12274 12275if $ac_cs_silent; then 12276 exec 6>/dev/null 12277 ac_configure_extra_args="$ac_configure_extra_args --silent" 12278fi 12279 12280_ACEOF 12281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12282if \$ac_cs_recheck; then 12283 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12284 shift 12285 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12286 CONFIG_SHELL='$SHELL' 12287 export CONFIG_SHELL 12288 exec "\$@" 12289fi 12290 12291_ACEOF 12292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12293exec 5>>config.log 12294{ 12295 echo 12296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12297## Running $as_me. ## 12298_ASBOX 12299 printf "%s\n" "$ac_log" 12300} >&5 12301 12302_ACEOF 12303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12304# 12305# INIT-COMMANDS 12306# 12307AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12308 12309_ACEOF 12310 12311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12312 12313# Handling of arguments. 12314for ac_config_target in $ac_config_targets 12315do 12316 case $ac_config_target in 12317 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12318 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12319 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12320 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12321 12322 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12323 esac 12324done 12325 12326 12327# If the user did not use the arguments to specify the items to instantiate, 12328# then the envvar interface is used. Set only those that are not. 12329# We use the long form for the default assignment because of an extremely 12330# bizarre bug on SunOS 4.1.3. 12331if $ac_need_defaults; then 12332 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12333 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12334 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12335fi 12336 12337# Have a temporary directory for convenience. Make it in the build tree 12338# simply because there is no reason against having it here, and in addition, 12339# creating and moving files from /tmp can sometimes cause problems. 12340# Hook for its removal unless debugging. 12341# Note that there is a small window in which the directory will not be cleaned: 12342# after its creation but before its name has been assigned to `$tmp'. 12343$debug || 12344{ 12345 tmp= ac_tmp= 12346 trap 'exit_status=$? 12347 : "${ac_tmp:=$tmp}" 12348 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12349' 0 12350 trap 'as_fn_exit 1' 1 2 13 15 12351} 12352# Create a (secure) tmp directory for tmp files. 12353 12354{ 12355 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12356 test -d "$tmp" 12357} || 12358{ 12359 tmp=./conf$$-$RANDOM 12360 (umask 077 && mkdir "$tmp") 12361} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12362ac_tmp=$tmp 12363 12364# Set up the scripts for CONFIG_FILES section. 12365# No need to generate them if there are no CONFIG_FILES. 12366# This happens for instance with `./config.status config.h'. 12367if test -n "$CONFIG_FILES"; then 12368 12369 12370ac_cr=`echo X | tr X '\015'` 12371# On cygwin, bash can eat \r inside `` if the user requested igncr. 12372# But we know of no other shell where ac_cr would be empty at this 12373# point, so we can use a bashism as a fallback. 12374if test "x$ac_cr" = x; then 12375 eval ac_cr=\$\'\\r\' 12376fi 12377ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12378if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12379 ac_cs_awk_cr='\\r' 12380else 12381 ac_cs_awk_cr=$ac_cr 12382fi 12383 12384echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12385_ACEOF 12386 12387 12388{ 12389 echo "cat >conf$$subs.awk <<_ACEOF" && 12390 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12391 echo "_ACEOF" 12392} >conf$$subs.sh || 12393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12394ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12395ac_delim='%!_!# ' 12396for ac_last_try in false false false false false :; do 12397 . ./conf$$subs.sh || 12398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12399 12400 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12401 if test $ac_delim_n = $ac_delim_num; then 12402 break 12403 elif $ac_last_try; then 12404 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12405 else 12406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12407 fi 12408done 12409rm -f conf$$subs.sh 12410 12411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12412cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12413_ACEOF 12414sed -n ' 12415h 12416s/^/S["/; s/!.*/"]=/ 12417p 12418g 12419s/^[^!]*!// 12420:repl 12421t repl 12422s/'"$ac_delim"'$// 12423t delim 12424:nl 12425h 12426s/\(.\{148\}\)..*/\1/ 12427t more1 12428s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12429p 12430n 12431b repl 12432:more1 12433s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12434p 12435g 12436s/.\{148\}// 12437t nl 12438:delim 12439h 12440s/\(.\{148\}\)..*/\1/ 12441t more2 12442s/["\\]/\\&/g; s/^/"/; s/$/"/ 12443p 12444b 12445:more2 12446s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12447p 12448g 12449s/.\{148\}// 12450t delim 12451' <conf$$subs.awk | sed ' 12452/^[^""]/{ 12453 N 12454 s/\n// 12455} 12456' >>$CONFIG_STATUS || ac_write_fail=1 12457rm -f conf$$subs.awk 12458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12459_ACAWK 12460cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12461 for (key in S) S_is_set[key] = 1 12462 FS = "" 12463 12464} 12465{ 12466 line = $ 0 12467 nfields = split(line, field, "@") 12468 substed = 0 12469 len = length(field[1]) 12470 for (i = 2; i < nfields; i++) { 12471 key = field[i] 12472 keylen = length(key) 12473 if (S_is_set[key]) { 12474 value = S[key] 12475 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12476 len += length(value) + length(field[++i]) 12477 substed = 1 12478 } else 12479 len += 1 + keylen 12480 } 12481 12482 print line 12483} 12484 12485_ACAWK 12486_ACEOF 12487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12488if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12489 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12490else 12491 cat 12492fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12493 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12494_ACEOF 12495 12496# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12497# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12498# trailing colons and then remove the whole line if VPATH becomes empty 12499# (actually we leave an empty line to preserve line numbers). 12500if test "x$srcdir" = x.; then 12501 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12502h 12503s/// 12504s/^/:/ 12505s/[ ]*$/:/ 12506s/:\$(srcdir):/:/g 12507s/:\${srcdir}:/:/g 12508s/:@srcdir@:/:/g 12509s/^:*// 12510s/:*$// 12511x 12512s/\(=[ ]*\).*/\1/ 12513G 12514s/\n// 12515s/^[^=]*=[ ]*$// 12516}' 12517fi 12518 12519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12520fi # test -n "$CONFIG_FILES" 12521 12522# Set up the scripts for CONFIG_HEADERS section. 12523# No need to generate them if there are no CONFIG_HEADERS. 12524# This happens for instance with `./config.status Makefile'. 12525if test -n "$CONFIG_HEADERS"; then 12526cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12527BEGIN { 12528_ACEOF 12529 12530# Transform confdefs.h into an awk script `defines.awk', embedded as 12531# here-document in config.status, that substitutes the proper values into 12532# config.h.in to produce config.h. 12533 12534# Create a delimiter string that does not exist in confdefs.h, to ease 12535# handling of long lines. 12536ac_delim='%!_!# ' 12537for ac_last_try in false false :; do 12538 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12539 if test -z "$ac_tt"; then 12540 break 12541 elif $ac_last_try; then 12542 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12543 else 12544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12545 fi 12546done 12547 12548# For the awk script, D is an array of macro values keyed by name, 12549# likewise P contains macro parameters if any. Preserve backslash 12550# newline sequences. 12551 12552ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12553sed -n ' 12554s/.\{148\}/&'"$ac_delim"'/g 12555t rset 12556:rset 12557s/^[ ]*#[ ]*define[ ][ ]*/ / 12558t def 12559d 12560:def 12561s/\\$// 12562t bsnl 12563s/["\\]/\\&/g 12564s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12565D["\1"]=" \3"/p 12566s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12567d 12568:bsnl 12569s/["\\]/\\&/g 12570s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12571D["\1"]=" \3\\\\\\n"\\/p 12572t cont 12573s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12574t cont 12575d 12576:cont 12577n 12578s/.\{148\}/&'"$ac_delim"'/g 12579t clear 12580:clear 12581s/\\$// 12582t bsnlc 12583s/["\\]/\\&/g; s/^/"/; s/$/"/p 12584d 12585:bsnlc 12586s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12587b cont 12588' <confdefs.h | sed ' 12589s/'"$ac_delim"'/"\\\ 12590"/g' >>$CONFIG_STATUS || ac_write_fail=1 12591 12592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12593 for (key in D) D_is_set[key] = 1 12594 FS = "" 12595} 12596/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12597 line = \$ 0 12598 split(line, arg, " ") 12599 if (arg[1] == "#") { 12600 defundef = arg[2] 12601 mac1 = arg[3] 12602 } else { 12603 defundef = substr(arg[1], 2) 12604 mac1 = arg[2] 12605 } 12606 split(mac1, mac2, "(") #) 12607 macro = mac2[1] 12608 prefix = substr(line, 1, index(line, defundef) - 1) 12609 if (D_is_set[macro]) { 12610 # Preserve the white space surrounding the "#". 12611 print prefix "define", macro P[macro] D[macro] 12612 next 12613 } else { 12614 # Replace #undef with comments. This is necessary, for example, 12615 # in the case of _POSIX_SOURCE, which is predefined and required 12616 # on some systems where configure will not decide to define it. 12617 if (defundef == "undef") { 12618 print "/*", prefix defundef, macro, "*/" 12619 next 12620 } 12621 } 12622} 12623{ print } 12624_ACAWK 12625_ACEOF 12626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12627 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12628fi # test -n "$CONFIG_HEADERS" 12629 12630 12631eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12632shift 12633for ac_tag 12634do 12635 case $ac_tag in 12636 :[FHLC]) ac_mode=$ac_tag; continue;; 12637 esac 12638 case $ac_mode$ac_tag in 12639 :[FHL]*:*);; 12640 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12641 :[FH]-) ac_tag=-:-;; 12642 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12643 esac 12644 ac_save_IFS=$IFS 12645 IFS=: 12646 set x $ac_tag 12647 IFS=$ac_save_IFS 12648 shift 12649 ac_file=$1 12650 shift 12651 12652 case $ac_mode in 12653 :L) ac_source=$1;; 12654 :[FH]) 12655 ac_file_inputs= 12656 for ac_f 12657 do 12658 case $ac_f in 12659 -) ac_f="$ac_tmp/stdin";; 12660 *) # Look for the file first in the build tree, then in the source tree 12661 # (if the path is not absolute). The absolute path cannot be DOS-style, 12662 # because $ac_f cannot contain `:'. 12663 test -f "$ac_f" || 12664 case $ac_f in 12665 [\\/$]*) false;; 12666 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12667 esac || 12668 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12669 esac 12670 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12671 as_fn_append ac_file_inputs " '$ac_f'" 12672 done 12673 12674 # Let's still pretend it is `configure' which instantiates (i.e., don't 12675 # use $as_me), people would be surprised to read: 12676 # /* config.h. Generated by config.status. */ 12677 configure_input='Generated from '` 12678 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12679 `' by configure.' 12680 if test x"$ac_file" != x-; then 12681 configure_input="$ac_file. $configure_input" 12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12683printf "%s\n" "$as_me: creating $ac_file" >&6;} 12684 fi 12685 # Neutralize special characters interpreted by sed in replacement strings. 12686 case $configure_input in #( 12687 *\&* | *\|* | *\\* ) 12688 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12689 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12690 *) ac_sed_conf_input=$configure_input;; 12691 esac 12692 12693 case $ac_tag in 12694 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12696 esac 12697 ;; 12698 esac 12699 12700 ac_dir=`$as_dirname -- "$ac_file" || 12701$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12702 X"$ac_file" : 'X\(//\)[^/]' \| \ 12703 X"$ac_file" : 'X\(//\)$' \| \ 12704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12705printf "%s\n" X"$ac_file" | 12706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12707 s//\1/ 12708 q 12709 } 12710 /^X\(\/\/\)[^/].*/{ 12711 s//\1/ 12712 q 12713 } 12714 /^X\(\/\/\)$/{ 12715 s//\1/ 12716 q 12717 } 12718 /^X\(\/\).*/{ 12719 s//\1/ 12720 q 12721 } 12722 s/.*/./; q'` 12723 as_dir="$ac_dir"; as_fn_mkdir_p 12724 ac_builddir=. 12725 12726case "$ac_dir" in 12727.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12728*) 12729 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12730 # A ".." for each directory in $ac_dir_suffix. 12731 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12732 case $ac_top_builddir_sub in 12733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12735 esac ;; 12736esac 12737ac_abs_top_builddir=$ac_pwd 12738ac_abs_builddir=$ac_pwd$ac_dir_suffix 12739# for backward compatibility: 12740ac_top_builddir=$ac_top_build_prefix 12741 12742case $srcdir in 12743 .) # We are building in place. 12744 ac_srcdir=. 12745 ac_top_srcdir=$ac_top_builddir_sub 12746 ac_abs_top_srcdir=$ac_pwd ;; 12747 [\\/]* | ?:[\\/]* ) # Absolute name. 12748 ac_srcdir=$srcdir$ac_dir_suffix; 12749 ac_top_srcdir=$srcdir 12750 ac_abs_top_srcdir=$srcdir ;; 12751 *) # Relative name. 12752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12753 ac_top_srcdir=$ac_top_build_prefix$srcdir 12754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12755esac 12756ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12757 12758 12759 case $ac_mode in 12760 :F) 12761 # 12762 # CONFIG_FILE 12763 # 12764 12765 case $INSTALL in 12766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12768 esac 12769 ac_MKDIR_P=$MKDIR_P 12770 case $MKDIR_P in 12771 [\\/$]* | ?:[\\/]* ) ;; 12772 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12773 esac 12774_ACEOF 12775 12776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12777# If the template does not know about datarootdir, expand it. 12778# FIXME: This hack should be removed a few years after 2.60. 12779ac_datarootdir_hack=; ac_datarootdir_seen= 12780ac_sed_dataroot=' 12781/datarootdir/ { 12782 p 12783 q 12784} 12785/@datadir@/p 12786/@docdir@/p 12787/@infodir@/p 12788/@localedir@/p 12789/@mandir@/p' 12790case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12791*datarootdir*) ac_datarootdir_seen=yes;; 12792*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12794printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12795_ACEOF 12796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12797 ac_datarootdir_hack=' 12798 s&@datadir@&$datadir&g 12799 s&@docdir@&$docdir&g 12800 s&@infodir@&$infodir&g 12801 s&@localedir@&$localedir&g 12802 s&@mandir@&$mandir&g 12803 s&\\\${datarootdir}&$datarootdir&g' ;; 12804esac 12805_ACEOF 12806 12807# Neutralize VPATH when `$srcdir' = `.'. 12808# Shell code in configure.ac might set extrasub. 12809# FIXME: do we really want to maintain this feature? 12810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12811ac_sed_extra="$ac_vpsub 12812$extrasub 12813_ACEOF 12814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12815:t 12816/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12817s|@configure_input@|$ac_sed_conf_input|;t t 12818s&@top_builddir@&$ac_top_builddir_sub&;t t 12819s&@top_build_prefix@&$ac_top_build_prefix&;t t 12820s&@srcdir@&$ac_srcdir&;t t 12821s&@abs_srcdir@&$ac_abs_srcdir&;t t 12822s&@top_srcdir@&$ac_top_srcdir&;t t 12823s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12824s&@builddir@&$ac_builddir&;t t 12825s&@abs_builddir@&$ac_abs_builddir&;t t 12826s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12827s&@INSTALL@&$ac_INSTALL&;t t 12828s&@MKDIR_P@&$ac_MKDIR_P&;t t 12829$ac_datarootdir_hack 12830" 12831eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12832 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12833 12834test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12835 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12837 "$ac_tmp/out"`; test -z "$ac_out"; } && 12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12839which seems to be undefined. Please make sure it is defined" >&5 12840printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12841which seems to be undefined. Please make sure it is defined" >&2;} 12842 12843 rm -f "$ac_tmp/stdin" 12844 case $ac_file in 12845 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12846 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12847 esac \ 12848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12849 ;; 12850 :H) 12851 # 12852 # CONFIG_HEADER 12853 # 12854 if test x"$ac_file" != x-; then 12855 { 12856 printf "%s\n" "/* $configure_input */" >&1 \ 12857 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12858 } >"$ac_tmp/config.h" \ 12859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12860 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12862printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12863 else 12864 rm -f "$ac_file" 12865 mv "$ac_tmp/config.h" "$ac_file" \ 12866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12867 fi 12868 else 12869 printf "%s\n" "/* $configure_input */" >&1 \ 12870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12871 || as_fn_error $? "could not create -" "$LINENO" 5 12872 fi 12873# Compute "$ac_file"'s index in $config_headers. 12874_am_arg="$ac_file" 12875_am_stamp_count=1 12876for _am_header in $config_headers :; do 12877 case $_am_header in 12878 $_am_arg | $_am_arg:* ) 12879 break ;; 12880 * ) 12881 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12882 esac 12883done 12884echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12885$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12886 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12887 X"$_am_arg" : 'X\(//\)$' \| \ 12888 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12889printf "%s\n" X"$_am_arg" | 12890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12891 s//\1/ 12892 q 12893 } 12894 /^X\(\/\/\)[^/].*/{ 12895 s//\1/ 12896 q 12897 } 12898 /^X\(\/\/\)$/{ 12899 s//\1/ 12900 q 12901 } 12902 /^X\(\/\).*/{ 12903 s//\1/ 12904 q 12905 } 12906 s/.*/./; q'`/stamp-h$_am_stamp_count 12907 ;; 12908 12909 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12910printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12911 ;; 12912 esac 12913 12914 12915 case $ac_file$ac_mode in 12916 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12917 # Older Autoconf quotes --file arguments for eval, but not when files 12918 # are listed without --file. Let's play safe and only enable the eval 12919 # if we detect the quoting. 12920 # TODO: see whether this extra hack can be removed once we start 12921 # requiring Autoconf 2.70 or later. 12922 case $CONFIG_FILES in #( 12923 *\'*) : 12924 eval set x "$CONFIG_FILES" ;; #( 12925 *) : 12926 set x $CONFIG_FILES ;; #( 12927 *) : 12928 ;; 12929esac 12930 shift 12931 # Used to flag and report bootstrapping failures. 12932 am_rc=0 12933 for am_mf 12934 do 12935 # Strip MF so we end up with the name of the file. 12936 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12937 # Check whether this is an Automake generated Makefile which includes 12938 # dependency-tracking related rules and includes. 12939 # Grep'ing the whole file directly is not great: AIX grep has a line 12940 # limit of 2048, but all sed's we know have understand at least 4000. 12941 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12942 || continue 12943 am_dirpart=`$as_dirname -- "$am_mf" || 12944$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12945 X"$am_mf" : 'X\(//\)[^/]' \| \ 12946 X"$am_mf" : 'X\(//\)$' \| \ 12947 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12948printf "%s\n" X"$am_mf" | 12949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12950 s//\1/ 12951 q 12952 } 12953 /^X\(\/\/\)[^/].*/{ 12954 s//\1/ 12955 q 12956 } 12957 /^X\(\/\/\)$/{ 12958 s//\1/ 12959 q 12960 } 12961 /^X\(\/\).*/{ 12962 s//\1/ 12963 q 12964 } 12965 s/.*/./; q'` 12966 am_filepart=`$as_basename -- "$am_mf" || 12967$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12968 X"$am_mf" : 'X\(//\)$' \| \ 12969 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12970printf "%s\n" X/"$am_mf" | 12971 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12972 s//\1/ 12973 q 12974 } 12975 /^X\/\(\/\/\)$/{ 12976 s//\1/ 12977 q 12978 } 12979 /^X\/\(\/\).*/{ 12980 s//\1/ 12981 q 12982 } 12983 s/.*/./; q'` 12984 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12985 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12986 | $MAKE -f - am--depfiles" >&5 12987 (cd "$am_dirpart" \ 12988 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12989 | $MAKE -f - am--depfiles) >&5 2>&5 12990 ac_status=$? 12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12992 (exit $ac_status); } || am_rc=$? 12993 done 12994 if test $am_rc -ne 0; then 12995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12996printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12997as_fn_error $? "Something went wrong bootstrapping makefile fragments 12998 for automatic dependency tracking. If GNU make was not used, consider 12999 re-running the configure script with MAKE=\"gmake\" (or whatever is 13000 necessary). You can also try re-running configure with the 13001 '--disable-dependency-tracking' option to at least be able to build 13002 the package (albeit without support for automatic dependency tracking). 13003See \`config.log' for more details" "$LINENO" 5; } 13004 fi 13005 { am_dirpart=; unset am_dirpart;} 13006 { am_filepart=; unset am_filepart;} 13007 { am_mf=; unset am_mf;} 13008 { am_rc=; unset am_rc;} 13009 rm -f conftest-deps.mk 13010} 13011 ;; 13012 13013 esac 13014done # for ac_tag 13015 13016 13017as_fn_exit 0 13018_ACEOF 13019ac_clean_files=$ac_clean_files_save 13020 13021test $ac_write_fail = 0 || 13022 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13023 13024 13025# configure is writing to config.log, and then calls config.status. 13026# config.status does its own redirection, appending to config.log. 13027# Unfortunately, on DOS this fails, as config.log is still kept open 13028# by configure, so config.status won't be able to write to it; its 13029# output is simply discarded. So we exec the FD to /dev/null, 13030# effectively closing config.log, so it can be properly (re)opened and 13031# appended to by config.status. When coming back to configure, we 13032# need to make the FD available again. 13033if test "$no_create" != yes; then 13034 ac_cs_success=: 13035 ac_config_status_args= 13036 test "$silent" = yes && 13037 ac_config_status_args="$ac_config_status_args --quiet" 13038 exec 5>/dev/null 13039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13040 exec 5>>config.log 13041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13042 # would make configure fail if this is the last instruction. 13043 $ac_cs_success || as_fn_exit 1 13044fi 13045if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13047printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13048fi 13049 13050 13051