1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for appres 1.0.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/appres/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/appres/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='appres' 607PACKAGE_TARNAME='appres' 608PACKAGE_VERSION='1.0.7' 609PACKAGE_STRING='appres 1.0.7' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/appres/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646ac_subst_vars='am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650APPRES_LIBS 651APPRES_CFLAGS 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666SED 667host_os 668host_vendor 669host_cpu 670host 671build_os 672build_vendor 673build_cpu 674build 675INSTALL_CMD 676PKG_CONFIG_LIBDIR 677PKG_CONFIG_PATH 678PKG_CONFIG 679CHANGELOG_CMD 680STRICT_CFLAGS 681CWARNFLAGS 682BASE_CFLAGS 683am__fastdepCC_FALSE 684am__fastdepCC_TRUE 685CCDEPMODE 686am__nodep 687AMDEPBACKSLASH 688AMDEP_FALSE 689AMDEP_TRUE 690am__include 691DEPDIR 692OBJEXT 693EXEEXT 694ac_ct_CC 695CPPFLAGS 696LDFLAGS 697CFLAGS 698CC 699AM_BACKSLASH 700AM_DEFAULT_VERBOSITY 701AM_DEFAULT_V 702AM_V 703CSCOPE 704ETAGS 705CTAGS 706am__untar 707am__tar 708AMTAR 709am__leading_dot 710SET_MAKE 711AWK 712mkdir_p 713MKDIR_P 714INSTALL_STRIP_PROGRAM 715STRIP 716install_sh 717MAKEINFO 718AUTOHEADER 719AUTOMAKE 720AUTOCONF 721ACLOCAL 722VERSION 723PACKAGE 724CYGPATH_W 725am__isrc 726INSTALL_DATA 727INSTALL_SCRIPT 728INSTALL_PROGRAM 729target_alias 730host_alias 731build_alias 732LIBS 733ECHO_T 734ECHO_N 735ECHO_C 736DEFS 737mandir 738localedir 739libdir 740psdir 741pdfdir 742dvidir 743htmldir 744infodir 745docdir 746oldincludedir 747includedir 748runstatedir 749localstatedir 750sharedstatedir 751sysconfdir 752datadir 753datarootdir 754libexecdir 755sbindir 756bindir 757program_transform_name 758prefix 759exec_prefix 760PACKAGE_URL 761PACKAGE_BUGREPORT 762PACKAGE_STRING 763PACKAGE_VERSION 764PACKAGE_TARNAME 765PACKAGE_NAME 766PATH_SEPARATOR 767SHELL 768am__quote' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_silent_rules 773enable_dependency_tracking 774enable_selective_werror 775enable_strict_compilation 776' 777 ac_precious_vars='build_alias 778host_alias 779target_alias 780CC 781CFLAGS 782LDFLAGS 783LIBS 784CPPFLAGS 785PKG_CONFIG 786PKG_CONFIG_PATH 787PKG_CONFIG_LIBDIR 788APPRES_CFLAGS 789APPRES_LIBS' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828runstatedir='${localstatedir}/run' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 case $ac_dashdash$ac_option in 859 --) 860 ac_dashdash=yes ;; 861 862 -bindir | --bindir | --bindi | --bind | --bin | --bi) 863 ac_prev=bindir ;; 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865 bindir=$ac_optarg ;; 866 867 -build | --build | --buil | --bui | --bu) 868 ac_prev=build_alias ;; 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870 build_alias=$ac_optarg ;; 871 872 -cache-file | --cache-file | --cache-fil | --cache-fi \ 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874 ac_prev=cache_file ;; 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877 cache_file=$ac_optarg ;; 878 879 --config-cache | -C) 880 cache_file=config.cache ;; 881 882 -datadir | --datadir | --datadi | --datad) 883 ac_prev=datadir ;; 884 -datadir=* | --datadir=* | --datadi=* | --datad=*) 885 datadir=$ac_optarg ;; 886 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888 | --dataroo | --dataro | --datar) 889 ac_prev=datarootdir ;; 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892 datarootdir=$ac_optarg ;; 893 894 -disable-* | --disable-*) 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896 # Reject names that are not valid shell variable names. 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 898 as_fn_error $? "invalid feature name: '$ac_useropt'" 899 ac_useropt_orig=$ac_useropt 900 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 901 case $ac_user_opts in 902 *" 903"enable_$ac_useropt" 904"*) ;; 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906 ac_unrecognized_sep=', ';; 907 esac 908 eval enable_$ac_useropt=no ;; 909 910 -docdir | --docdir | --docdi | --doc | --do) 911 ac_prev=docdir ;; 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913 docdir=$ac_optarg ;; 914 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916 ac_prev=dvidir ;; 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918 dvidir=$ac_optarg ;; 919 920 -enable-* | --enable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: '$ac_useropt'" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=\$ac_optarg ;; 935 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938 | --exec | --exe | --ex) 939 ac_prev=exec_prefix ;; 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942 | --exec=* | --exe=* | --ex=*) 943 exec_prefix=$ac_optarg ;; 944 945 -gas | --gas | --ga | --g) 946 # Obsolete; use --with-gas. 947 with_gas=yes ;; 948 949 -help | --help | --hel | --he | -h) 950 ac_init_help=long ;; 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952 ac_init_help=recursive ;; 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954 ac_init_help=short ;; 955 956 -host | --host | --hos | --ho) 957 ac_prev=host_alias ;; 958 -host=* | --host=* | --hos=* | --ho=*) 959 host_alias=$ac_optarg ;; 960 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962 ac_prev=htmldir ;; 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964 | --ht=*) 965 htmldir=$ac_optarg ;; 966 967 -includedir | --includedir | --includedi | --included | --include \ 968 | --includ | --inclu | --incl | --inc) 969 ac_prev=includedir ;; 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971 | --includ=* | --inclu=* | --incl=* | --inc=*) 972 includedir=$ac_optarg ;; 973 974 -infodir | --infodir | --infodi | --infod | --info | --inf) 975 ac_prev=infodir ;; 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977 infodir=$ac_optarg ;; 978 979 -libdir | --libdir | --libdi | --libd) 980 ac_prev=libdir ;; 981 -libdir=* | --libdir=* | --libdi=* | --libd=*) 982 libdir=$ac_optarg ;; 983 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985 | --libexe | --libex | --libe) 986 ac_prev=libexecdir ;; 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988 | --libexe=* | --libex=* | --libe=*) 989 libexecdir=$ac_optarg ;; 990 991 -localedir | --localedir | --localedi | --localed | --locale) 992 ac_prev=localedir ;; 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994 localedir=$ac_optarg ;; 995 996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 997 | --localstate | --localstat | --localsta | --localst | --locals) 998 ac_prev=localstatedir ;; 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001 localstatedir=$ac_optarg ;; 1002 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004 ac_prev=mandir ;; 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006 mandir=$ac_optarg ;; 1007 1008 -nfp | --nfp | --nf) 1009 # Obsolete; use --without-fp. 1010 with_fp=no ;; 1011 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013 | --no-cr | --no-c | -n) 1014 no_create=yes ;; 1015 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018 no_recursion=yes ;; 1019 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022 | --oldin | --oldi | --old | --ol | --o) 1023 ac_prev=oldincludedir ;; 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027 oldincludedir=$ac_optarg ;; 1028 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030 ac_prev=prefix ;; 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032 prefix=$ac_optarg ;; 1033 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035 | --program-pre | --program-pr | --program-p) 1036 ac_prev=program_prefix ;; 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039 program_prefix=$ac_optarg ;; 1040 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042 | --program-suf | --program-su | --program-s) 1043 ac_prev=program_suffix ;; 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046 program_suffix=$ac_optarg ;; 1047 1048 -program-transform-name | --program-transform-name \ 1049 | --program-transform-nam | --program-transform-na \ 1050 | --program-transform-n | --program-transform- \ 1051 | --program-transform | --program-transfor \ 1052 | --program-transfo | --program-transf \ 1053 | --program-trans | --program-tran \ 1054 | --progr-tra | --program-tr | --program-t) 1055 ac_prev=program_transform_name ;; 1056 -program-transform-name=* | --program-transform-name=* \ 1057 | --program-transform-nam=* | --program-transform-na=* \ 1058 | --program-transform-n=* | --program-transform-=* \ 1059 | --program-transform=* | --program-transfor=* \ 1060 | --program-transfo=* | --program-transf=* \ 1061 | --program-trans=* | --program-tran=* \ 1062 | --progr-tra=* | --program-tr=* | --program-t=*) 1063 program_transform_name=$ac_optarg ;; 1064 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066 ac_prev=pdfdir ;; 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068 pdfdir=$ac_optarg ;; 1069 1070 -psdir | --psdir | --psdi | --psd | --ps) 1071 ac_prev=psdir ;; 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073 psdir=$ac_optarg ;; 1074 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076 | -silent | --silent | --silen | --sile | --sil) 1077 silent=yes ;; 1078 1079 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1080 | --runstate | --runstat | --runsta | --runst | --runs \ 1081 | --run | --ru | --r) 1082 ac_prev=runstatedir ;; 1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1085 | --run=* | --ru=* | --r=*) 1086 runstatedir=$ac_optarg ;; 1087 1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1089 ac_prev=sbindir ;; 1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1091 | --sbi=* | --sb=*) 1092 sbindir=$ac_optarg ;; 1093 1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1096 | --sharedst | --shareds | --shared | --share | --shar \ 1097 | --sha | --sh) 1098 ac_prev=sharedstatedir ;; 1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1102 | --sha=* | --sh=*) 1103 sharedstatedir=$ac_optarg ;; 1104 1105 -site | --site | --sit) 1106 ac_prev=site ;; 1107 -site=* | --site=* | --sit=*) 1108 site=$ac_optarg ;; 1109 1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1111 ac_prev=srcdir ;; 1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1113 srcdir=$ac_optarg ;; 1114 1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1116 | --syscon | --sysco | --sysc | --sys | --sy) 1117 ac_prev=sysconfdir ;; 1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1120 sysconfdir=$ac_optarg ;; 1121 1122 -target | --target | --targe | --targ | --tar | --ta | --t) 1123 ac_prev=target_alias ;; 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1125 target_alias=$ac_optarg ;; 1126 1127 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1128 verbose=yes ;; 1129 1130 -version | --version | --versio | --versi | --vers | -V) 1131 ac_init_version=: ;; 1132 1133 -with-* | --with-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: '$ac_useropt'" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=\$ac_optarg ;; 1148 1149 -without-* | --without-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: '$ac_useropt'" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=no ;; 1164 1165 --x) 1166 # Obsolete; use --with-x. 1167 with_x=yes ;; 1168 1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1170 | --x-incl | --x-inc | --x-in | --x-i) 1171 ac_prev=x_includes ;; 1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1174 x_includes=$ac_optarg ;; 1175 1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1178 ac_prev=x_libraries ;; 1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1181 x_libraries=$ac_optarg ;; 1182 1183 -*) as_fn_error $? "unrecognized option: '$ac_option' 1184Try '$0 --help' for more information" 1185 ;; 1186 1187 *=*) 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189 # Reject names that are not valid shell variable names. 1190 case $ac_envvar in #( 1191 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1192 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1193 esac 1194 eval $ac_envvar=\$ac_optarg 1195 export $ac_envvar ;; 1196 1197 *) 1198 # FIXME: should be removed in autoconf 3.0. 1199 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1201 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1203 ;; 1204 1205 esac 1206done 1207 1208if test -n "$ac_prev"; then 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1210 as_fn_error $? "missing argument to $ac_option" 1211fi 1212 1213if test -n "$ac_unrecognized_opts"; then 1214 case $enable_option_checking in 1215 no) ;; 1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1217 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1218 esac 1219fi 1220 1221# Check all directory arguments for consistency. 1222for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1223 datadir sysconfdir sharedstatedir localstatedir includedir \ 1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1225 libdir localedir mandir runstatedir 1226do 1227 eval ac_val=\$$ac_var 1228 # Remove trailing slashes. 1229 case $ac_val in 1230 */ ) 1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1232 eval $ac_var=\$ac_val;; 1233 esac 1234 # Be sure to have absolute directory names. 1235 case $ac_val in 1236 [\\/$]* | ?:[\\/]* ) continue;; 1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1238 esac 1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1240done 1241 1242# There might be people who depend on the old broken behavior: '$host' 1243# used to hold the argument of --host etc. 1244# FIXME: To remove some day. 1245build=$build_alias 1246host=$host_alias 1247target=$target_alias 1248 1249# FIXME: To remove some day. 1250if test "x$host_alias" != x; then 1251 if test "x$build_alias" = x; then 1252 cross_compiling=maybe 1253 elif test "x$build_alias" != "x$host_alias"; then 1254 cross_compiling=yes 1255 fi 1256fi 1257 1258ac_tool_prefix= 1259test -n "$host_alias" && ac_tool_prefix=$host_alias- 1260 1261test "$silent" = yes && exec 6>/dev/null 1262 1263 1264ac_pwd=`pwd` && test -n "$ac_pwd" && 1265ac_ls_di=`ls -di .` && 1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1267 as_fn_error $? "working directory cannot be determined" 1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1269 as_fn_error $? "pwd does not report name of working directory" 1270 1271 1272# Find the source files, if location was not specified. 1273if test -z "$srcdir"; then 1274 ac_srcdir_defaulted=yes 1275 # Try the directory containing this script, then the parent directory. 1276 ac_confdir=`$as_dirname -- "$as_myself" || 1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1278 X"$as_myself" : 'X\(//\)[^/]' \| \ 1279 X"$as_myself" : 'X\(//\)$' \| \ 1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1281printf "%s\n" X"$as_myself" | 1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)[^/].*/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\).*/{ 1295 s//\1/ 1296 q 1297 } 1298 s/.*/./; q'` 1299 srcdir=$ac_confdir 1300 if test ! -r "$srcdir/$ac_unique_file"; then 1301 srcdir=.. 1302 fi 1303else 1304 ac_srcdir_defaulted=no 1305fi 1306if test ! -r "$srcdir/$ac_unique_file"; then 1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1309fi 1310ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1311ac_abs_confdir=`( 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1313 pwd)` 1314# When building in place, set srcdir=. 1315if test "$ac_abs_confdir" = "$ac_pwd"; then 1316 srcdir=. 1317fi 1318# Remove unnecessary trailing slashes from srcdir. 1319# Double slashes in file names in object file debugging info 1320# mess up M-x gdb in Emacs. 1321case $srcdir in 1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323esac 1324for ac_var in $ac_precious_vars; do 1325 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_env_${ac_var}_value=\$${ac_var} 1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329done 1330 1331# 1332# Report the --help message. 1333# 1334if test "$ac_init_help" = "long"; then 1335 # Omit some internal or obsolete options to make the list less imposing. 1336 # This message is too long to be a string in the A/UX 3.1 sh. 1337 cat <<_ACEOF 1338'configure' configures appres 1.0.7 to adapt to many kinds of systems. 1339 1340Usage: $0 [OPTION]... [VAR=VALUE]... 1341 1342To assign environment variables (e.g., CC, CFLAGS...), specify them as 1343VAR=VALUE. See below for descriptions of some of the useful variables. 1344 1345Defaults for the options are specified in brackets. 1346 1347Configuration: 1348 -h, --help display this help and exit 1349 --help=short display options specific to this package 1350 --help=recursive display the short help of all the included packages 1351 -V, --version display version information and exit 1352 -q, --quiet, --silent do not print 'checking ...' messages 1353 --cache-file=FILE cache test results in FILE [disabled] 1354 -C, --config-cache alias for '--cache-file=config.cache' 1355 -n, --no-create do not create output files 1356 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1357 1358Installation directories: 1359 --prefix=PREFIX install architecture-independent files in PREFIX 1360 [$ac_default_prefix] 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362 [PREFIX] 1363 1364By default, 'make install' will install all the files in 1365'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1366an installation prefix other than '$ac_default_prefix' using '--prefix', 1367for instance '--prefix=\$HOME'. 1368 1369For better control, use the options below. 1370 1371Fine tuning of the installation directories: 1372 --bindir=DIR user executables [EPREFIX/bin] 1373 --sbindir=DIR system admin executables [EPREFIX/sbin] 1374 --libexecdir=DIR program executables [EPREFIX/libexec] 1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root [DATAROOTDIR/doc/appres] 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392_ACEOF 1393 1394 cat <<\_ACEOF 1395 1396Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401System types: 1402 --build=BUILD configure for building on BUILD [guessed] 1403 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1404_ACEOF 1405fi 1406 1407if test -n "$ac_init_help"; then 1408 case $ac_init_help in 1409 short | recursive ) echo "Configuration of appres 1.0.7:";; 1410 esac 1411 cat <<\_ACEOF 1412 1413Optional Features: 1414 --disable-option-checking ignore unrecognized --enable/--with options 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1417 --enable-silent-rules less verbose build output (undo: "make V=1") 1418 --disable-silent-rules verbose build output (undo: "make V=0") 1419 --enable-dependency-tracking 1420 do not reject slow dependency extractors 1421 --disable-dependency-tracking 1422 speeds up one-time build 1423 --disable-selective-werror 1424 Turn off selective compiler errors. (default: 1425 enabled) 1426 --enable-strict-compilation 1427 Enable all warnings from compiler and make them 1428 errors (default: disabled) 1429 1430Some influential environment variables: 1431 CC C compiler command 1432 CFLAGS C compiler flags 1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1434 nonstandard directory <lib dir> 1435 LIBS libraries to pass to the linker, e.g. -l<library> 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1437 you have headers in a nonstandard directory <include dir> 1438 PKG_CONFIG path to pkg-config utility 1439 PKG_CONFIG_PATH 1440 directories to add to pkg-config's search path 1441 PKG_CONFIG_LIBDIR 1442 path overriding pkg-config's built-in search path 1443 APPRES_CFLAGS 1444 C compiler flags for APPRES, overriding pkg-config 1445 APPRES_LIBS linker flags for APPRES, overriding pkg-config 1446 1447Use these variables to override the choices made by 'configure' or to help 1448it to find libraries and programs with nonstandard names/locations. 1449 1450Report bugs to <https://gitlab.freedesktop.org/xorg/app/appres/issues>. 1451_ACEOF 1452ac_status=$? 1453fi 1454 1455if test "$ac_init_help" = "recursive"; then 1456 # If there are subdirs, report their specific --help. 1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1458 test -d "$ac_dir" || 1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1460 continue 1461 ac_builddir=. 1462 1463case "$ac_dir" in 1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465*) 1466 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1467 # A ".." for each directory in $ac_dir_suffix. 1468 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1469 case $ac_top_builddir_sub in 1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1472 esac ;; 1473esac 1474ac_abs_top_builddir=$ac_pwd 1475ac_abs_builddir=$ac_pwd$ac_dir_suffix 1476# for backward compatibility: 1477ac_top_builddir=$ac_top_build_prefix 1478 1479case $srcdir in 1480 .) # We are building in place. 1481 ac_srcdir=. 1482 ac_top_srcdir=$ac_top_builddir_sub 1483 ac_abs_top_srcdir=$ac_pwd ;; 1484 [\\/]* | ?:[\\/]* ) # Absolute name. 1485 ac_srcdir=$srcdir$ac_dir_suffix; 1486 ac_top_srcdir=$srcdir 1487 ac_abs_top_srcdir=$srcdir ;; 1488 *) # Relative name. 1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1490 ac_top_srcdir=$ac_top_build_prefix$srcdir 1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1492esac 1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1494 1495 cd "$ac_dir" || { ac_status=$?; continue; } 1496 # Check for configure.gnu first; this name is used for a wrapper for 1497 # Metaconfig's "Configure" on case-insensitive file systems. 1498 if test -f "$ac_srcdir/configure.gnu"; then 1499 echo && 1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1501 elif test -f "$ac_srcdir/configure"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure" --help=recursive 1504 else 1505 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1506 fi || ac_status=$? 1507 cd "$ac_pwd" || { ac_status=$?; break; } 1508 done 1509fi 1510 1511test -n "$ac_init_help" && exit $ac_status 1512if $ac_init_version; then 1513 cat <<\_ACEOF 1514appres configure 1.0.7 1515generated by GNU Autoconf 2.72 1516 1517Copyright (C) 2023 Free Software Foundation, Inc. 1518This configure script is free software; the Free Software Foundation 1519gives unlimited permission to copy, distribute and modify it. 1520_ACEOF 1521 exit 1522fi 1523 1524## ------------------------ ## 1525## Autoconf initialization. ## 1526## ------------------------ ## 1527 1528# ac_fn_c_try_compile LINENO 1529# -------------------------- 1530# Try to compile conftest.$ac_ext, and return whether this succeeded. 1531ac_fn_c_try_compile () 1532{ 1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1534 rm -f conftest.$ac_objext conftest.beam 1535 if { { ac_try="$ac_compile" 1536case "(($ac_try" in 1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1538 *) ac_try_echo=$ac_try;; 1539esac 1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1541printf "%s\n" "$ac_try_echo"; } >&5 1542 (eval "$ac_compile") 2>conftest.err 1543 ac_status=$? 1544 if test -s conftest.err; then 1545 grep -v '^ *+' conftest.err >conftest.er1 1546 cat conftest.er1 >&5 1547 mv -f conftest.er1 conftest.err 1548 fi 1549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1550 test $ac_status = 0; } && { 1551 test -z "$ac_c_werror_flag" || 1552 test ! -s conftest.err 1553 } && test -s conftest.$ac_objext 1554then : 1555 ac_retval=0 1556else case e in #( 1557 e) printf "%s\n" "$as_me: failed program was:" >&5 1558sed 's/^/| /' conftest.$ac_ext >&5 1559 1560 ac_retval=1 ;; 1561esac 1562fi 1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1564 as_fn_set_status $ac_retval 1565 1566} # ac_fn_c_try_compile 1567 1568# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1569# ------------------------------------------------------------------ 1570# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1571# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1572ac_fn_check_decl () 1573{ 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 as_decl_name=`echo $2|sed 's/ *(.*//'` 1576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1577printf %s "checking whether $as_decl_name is declared... " >&6; } 1578if eval test \${$3+y} 1579then : 1580 printf %s "(cached) " >&6 1581else case e in #( 1582 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1583 eval ac_save_FLAGS=\$$6 1584 as_fn_append $6 " $5" 1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1586/* end confdefs.h. */ 1587$4 1588int 1589main (void) 1590{ 1591#ifndef $as_decl_name 1592#ifdef __cplusplus 1593 (void) $as_decl_use; 1594#else 1595 (void) $as_decl_name; 1596#endif 1597#endif 1598 1599 ; 1600 return 0; 1601} 1602_ACEOF 1603if ac_fn_c_try_compile "$LINENO" 1604then : 1605 eval "$3=yes" 1606else case e in #( 1607 e) eval "$3=no" ;; 1608esac 1609fi 1610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1611 eval $6=\$ac_save_FLAGS 1612 ;; 1613esac 1614fi 1615eval ac_res=\$$3 1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1617printf "%s\n" "$ac_res" >&6; } 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 1620} # ac_fn_check_decl 1621 1622# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1623# ------------------------------------------------------- 1624# Tests whether HEADER exists and can be compiled using the include files in 1625# INCLUDES, setting the cache variable VAR accordingly. 1626ac_fn_c_check_header_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630printf %s "checking for $2... " >&6; } 1631if eval test \${$3+y} 1632then : 1633 printf %s "(cached) " >&6 1634else case e in #( 1635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1636/* end confdefs.h. */ 1637$4 1638#include <$2> 1639_ACEOF 1640if ac_fn_c_try_compile "$LINENO" 1641then : 1642 eval "$3=yes" 1643else case e in #( 1644 e) eval "$3=no" ;; 1645esac 1646fi 1647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1648esac 1649fi 1650eval ac_res=\$$3 1651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1652printf "%s\n" "$ac_res" >&6; } 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 1655} # ac_fn_c_check_header_compile 1656 1657# ac_fn_c_try_link LINENO 1658# ----------------------- 1659# Try to link conftest.$ac_ext, and return whether this succeeded. 1660ac_fn_c_try_link () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1664 if { { ac_try="$ac_link" 1665case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670printf "%s\n" "$ac_try_echo"; } >&5 1671 (eval "$ac_link") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } && { 1680 test -z "$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 } && test -s conftest$ac_exeext && { 1683 test "$cross_compiling" = yes || 1684 test -x conftest$ac_exeext 1685 } 1686then : 1687 ac_retval=0 1688else case e in #( 1689 e) printf "%s\n" "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 ;; 1693esac 1694fi 1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1697 # interfere with the next link command; also delete a directory that is 1698 # left behind by Apple's compiler. We do this before executing the actions. 1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703} # ac_fn_c_try_link 1704ac_configure_args_raw= 1705for ac_arg 1706do 1707 case $ac_arg in 1708 *\'*) 1709 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1710 esac 1711 as_fn_append ac_configure_args_raw " '$ac_arg'" 1712done 1713 1714case $ac_configure_args_raw in 1715 *$as_nl*) 1716 ac_safe_unquote= ;; 1717 *) 1718 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1719 ac_unsafe_a="$ac_unsafe_z#~" 1720 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1721 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1722esac 1723 1724cat >config.log <<_ACEOF 1725This file contains any messages produced by compilers while 1726running configure, to aid debugging if configure makes a mistake. 1727 1728It was created by appres $as_me 1.0.7, which was 1729generated by GNU Autoconf 2.72. Invocation command line was 1730 1731 $ $0$ac_configure_args_raw 1732 1733_ACEOF 1734exec 5>>config.log 1735{ 1736cat <<_ASUNAME 1737## --------- ## 1738## Platform. ## 1739## --------- ## 1740 1741hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1742uname -m = `(uname -m) 2>/dev/null || echo unknown` 1743uname -r = `(uname -r) 2>/dev/null || echo unknown` 1744uname -s = `(uname -s) 2>/dev/null || echo unknown` 1745uname -v = `(uname -v) 2>/dev/null || echo unknown` 1746 1747/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1748/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1749 1750/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1751/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1752/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1753/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1754/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1755/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1756/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1757 1758_ASUNAME 1759 1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1761for as_dir in $PATH 1762do 1763 IFS=$as_save_IFS 1764 case $as_dir in #((( 1765 '') as_dir=./ ;; 1766 */) ;; 1767 *) as_dir=$as_dir/ ;; 1768 esac 1769 printf "%s\n" "PATH: $as_dir" 1770 done 1771IFS=$as_save_IFS 1772 1773} >&5 1774 1775cat >&5 <<_ACEOF 1776 1777 1778## ----------- ## 1779## Core tests. ## 1780## ----------- ## 1781 1782_ACEOF 1783 1784 1785# Keep a trace of the command line. 1786# Strip out --no-create and --no-recursion so they do not pile up. 1787# Strip out --silent because we don't want to record it for future runs. 1788# Also quote any args containing shell meta-characters. 1789# Make two passes to allow for proper duplicate-argument suppression. 1790ac_configure_args= 1791ac_configure_args0= 1792ac_configure_args1= 1793ac_must_keep_next=false 1794for ac_pass in 1 2 1795do 1796 for ac_arg 1797 do 1798 case $ac_arg in 1799 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1801 | -silent | --silent | --silen | --sile | --sil) 1802 continue ;; 1803 *\'*) 1804 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1805 esac 1806 case $ac_pass in 1807 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1808 2) 1809 as_fn_append ac_configure_args1 " '$ac_arg'" 1810 if test $ac_must_keep_next = true; then 1811 ac_must_keep_next=false # Got value, back to normal. 1812 else 1813 case $ac_arg in 1814 *=* | --config-cache | -C | -disable-* | --disable-* \ 1815 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1816 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1817 | -with-* | --with-* | -without-* | --without-* | --x) 1818 case "$ac_configure_args0 " in 1819 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1820 esac 1821 ;; 1822 -* ) ac_must_keep_next=true ;; 1823 esac 1824 fi 1825 as_fn_append ac_configure_args " '$ac_arg'" 1826 ;; 1827 esac 1828 done 1829done 1830{ ac_configure_args0=; unset ac_configure_args0;} 1831{ ac_configure_args1=; unset ac_configure_args1;} 1832 1833# When interrupted or exit'd, cleanup temporary files, and complete 1834# config.log. We remove comments because anyway the quotes in there 1835# would cause problems or look ugly. 1836# WARNING: Use '\'' to represent an apostrophe within the trap. 1837# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1838trap 'exit_status=$? 1839 # Sanitize IFS. 1840 IFS=" "" $as_nl" 1841 # Save into config.log some information that might help in debugging. 1842 { 1843 echo 1844 1845 printf "%s\n" "## ---------------- ## 1846## Cache variables. ## 1847## ---------------- ##" 1848 echo 1849 # The following way of writing the cache mishandles newlines in values, 1850( 1851 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1852 eval ac_val=\$$ac_var 1853 case $ac_val in #( 1854 *${as_nl}*) 1855 case $ac_var in #( 1856 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1857printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1858 esac 1859 case $ac_var in #( 1860 _ | IFS | as_nl) ;; #( 1861 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1862 *) { eval $ac_var=; unset $ac_var;} ;; 1863 esac ;; 1864 esac 1865 done 1866 (set) 2>&1 | 1867 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1868 *${as_nl}ac_space=\ *) 1869 sed -n \ 1870 "s/'\''/'\''\\\\'\'''\''/g; 1871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1872 ;; #( 1873 *) 1874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1875 ;; 1876 esac | 1877 sort 1878) 1879 echo 1880 1881 printf "%s\n" "## ----------------- ## 1882## Output variables. ## 1883## ----------------- ##" 1884 echo 1885 for ac_var in $ac_subst_vars 1886 do 1887 eval ac_val=\$$ac_var 1888 case $ac_val in 1889 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1890 esac 1891 printf "%s\n" "$ac_var='\''$ac_val'\''" 1892 done | sort 1893 echo 1894 1895 if test -n "$ac_subst_files"; then 1896 printf "%s\n" "## ------------------- ## 1897## File substitutions. ## 1898## ------------------- ##" 1899 echo 1900 for ac_var in $ac_subst_files 1901 do 1902 eval ac_val=\$$ac_var 1903 case $ac_val in 1904 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1905 esac 1906 printf "%s\n" "$ac_var='\''$ac_val'\''" 1907 done | sort 1908 echo 1909 fi 1910 1911 if test -s confdefs.h; then 1912 printf "%s\n" "## ----------- ## 1913## confdefs.h. ## 1914## ----------- ##" 1915 echo 1916 cat confdefs.h 1917 echo 1918 fi 1919 test "$ac_signal" != 0 && 1920 printf "%s\n" "$as_me: caught signal $ac_signal" 1921 printf "%s\n" "$as_me: exit $exit_status" 1922 } >&5 1923 rm -f core *.core core.conftest.* && 1924 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1925 exit $exit_status 1926' 0 1927for ac_signal in 1 2 13 15; do 1928 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1929done 1930ac_signal=0 1931 1932# confdefs.h avoids OS command line length limits that DEFS can exceed. 1933rm -f -r conftest* confdefs.h 1934 1935printf "%s\n" "/* confdefs.h */" > confdefs.h 1936 1937# Predefined preprocessor variables. 1938 1939printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1940 1941printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1942 1943printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1944 1945printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1946 1947printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1948 1949printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1950 1951 1952# Let the site file select an alternate cache file if it wants to. 1953# Prefer an explicitly selected file to automatically selected ones. 1954if test -n "$CONFIG_SITE"; then 1955 ac_site_files="$CONFIG_SITE" 1956elif test "x$prefix" != xNONE; then 1957 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1958else 1959 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1960fi 1961 1962for ac_site_file in $ac_site_files 1963do 1964 case $ac_site_file in #( 1965 */*) : 1966 ;; #( 1967 *) : 1968 ac_site_file=./$ac_site_file ;; 1969esac 1970 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1972printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1973 sed 's/^/| /' "$ac_site_file" >&5 1974 . "$ac_site_file" \ 1975 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1976printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1977as_fn_error $? "failed to load site script $ac_site_file 1978See 'config.log' for more details" "$LINENO" 5; } 1979 fi 1980done 1981 1982if test -r "$cache_file"; then 1983 # Some versions of bash will fail to source /dev/null (special files 1984 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1985 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1987printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1988 case $cache_file in 1989 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1990 *) . "./$cache_file";; 1991 esac 1992 fi 1993else 1994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1995printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 1996 >$cache_file 1997fi 1998 1999# Test code for whether the C compiler supports C89 (global declarations) 2000ac_c_conftest_c89_globals=' 2001/* Does the compiler advertise C89 conformance? 2002 Do not test the value of __STDC__, because some compilers set it to 0 2003 while being otherwise adequately conformant. */ 2004#if !defined __STDC__ 2005# error "Compiler does not advertise C89 conformance" 2006#endif 2007 2008#include <stddef.h> 2009#include <stdarg.h> 2010struct stat; 2011/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2012struct buf { int x; }; 2013struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2014static char *e (char **p, int i) 2015{ 2016 return p[i]; 2017} 2018static char *f (char * (*g) (char **, int), char **p, ...) 2019{ 2020 char *s; 2021 va_list v; 2022 va_start (v,p); 2023 s = g (p, va_arg (v,int)); 2024 va_end (v); 2025 return s; 2026} 2027 2028/* C89 style stringification. */ 2029#define noexpand_stringify(a) #a 2030const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2031 2032/* C89 style token pasting. Exercises some of the corner cases that 2033 e.g. old MSVC gets wrong, but not very hard. */ 2034#define noexpand_concat(a,b) a##b 2035#define expand_concat(a,b) noexpand_concat(a,b) 2036extern int vA; 2037extern int vbee; 2038#define aye A 2039#define bee B 2040int *pvA = &expand_concat(v,aye); 2041int *pvbee = &noexpand_concat(v,bee); 2042 2043/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2044 function prototypes and stuff, but not \xHH hex character constants. 2045 These do not provoke an error unfortunately, instead are silently treated 2046 as an "x". The following induces an error, until -std is added to get 2047 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2048 array size at least. It is necessary to write \x00 == 0 to get something 2049 that is true only with -std. */ 2050int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2051 2052/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2053 inside strings and character constants. */ 2054#define FOO(x) '\''x'\'' 2055int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2056 2057int test (int i, double x); 2058struct s1 {int (*f) (int a);}; 2059struct s2 {int (*f) (double a);}; 2060int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2061 int, int);' 2062 2063# Test code for whether the C compiler supports C89 (body of main). 2064ac_c_conftest_c89_main=' 2065ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2066' 2067 2068# Test code for whether the C compiler supports C99 (global declarations) 2069ac_c_conftest_c99_globals=' 2070/* Does the compiler advertise C99 conformance? */ 2071#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2072# error "Compiler does not advertise C99 conformance" 2073#endif 2074 2075// See if C++-style comments work. 2076 2077#include <stdbool.h> 2078extern int puts (const char *); 2079extern int printf (const char *, ...); 2080extern int dprintf (int, const char *, ...); 2081extern void *malloc (size_t); 2082extern void free (void *); 2083 2084// Check varargs macros. These examples are taken from C99 6.10.3.5. 2085// dprintf is used instead of fprintf to avoid needing to declare 2086// FILE and stderr. 2087#define debug(...) dprintf (2, __VA_ARGS__) 2088#define showlist(...) puts (#__VA_ARGS__) 2089#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2090static void 2091test_varargs_macros (void) 2092{ 2093 int x = 1234; 2094 int y = 5678; 2095 debug ("Flag"); 2096 debug ("X = %d\n", x); 2097 showlist (The first, second, and third items.); 2098 report (x>y, "x is %d but y is %d", x, y); 2099} 2100 2101// Check long long types. 2102#define BIG64 18446744073709551615ull 2103#define BIG32 4294967295ul 2104#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2105#if !BIG_OK 2106 #error "your preprocessor is broken" 2107#endif 2108#if BIG_OK 2109#else 2110 #error "your preprocessor is broken" 2111#endif 2112static long long int bignum = -9223372036854775807LL; 2113static unsigned long long int ubignum = BIG64; 2114 2115struct incomplete_array 2116{ 2117 int datasize; 2118 double data[]; 2119}; 2120 2121struct named_init { 2122 int number; 2123 const wchar_t *name; 2124 double average; 2125}; 2126 2127typedef const char *ccp; 2128 2129static inline int 2130test_restrict (ccp restrict text) 2131{ 2132 // Iterate through items via the restricted pointer. 2133 // Also check for declarations in for loops. 2134 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2135 continue; 2136 return 0; 2137} 2138 2139// Check varargs and va_copy. 2140static bool 2141test_varargs (const char *format, ...) 2142{ 2143 va_list args; 2144 va_start (args, format); 2145 va_list args_copy; 2146 va_copy (args_copy, args); 2147 2148 const char *str = ""; 2149 int number = 0; 2150 float fnumber = 0; 2151 2152 while (*format) 2153 { 2154 switch (*format++) 2155 { 2156 case '\''s'\'': // string 2157 str = va_arg (args_copy, const char *); 2158 break; 2159 case '\''d'\'': // int 2160 number = va_arg (args_copy, int); 2161 break; 2162 case '\''f'\'': // float 2163 fnumber = va_arg (args_copy, double); 2164 break; 2165 default: 2166 break; 2167 } 2168 } 2169 va_end (args_copy); 2170 va_end (args); 2171 2172 return *str && number && fnumber; 2173} 2174' 2175 2176# Test code for whether the C compiler supports C99 (body of main). 2177ac_c_conftest_c99_main=' 2178 // Check bool. 2179 _Bool success = false; 2180 success |= (argc != 0); 2181 2182 // Check restrict. 2183 if (test_restrict ("String literal") == 0) 2184 success = true; 2185 char *restrict newvar = "Another string"; 2186 2187 // Check varargs. 2188 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2189 test_varargs_macros (); 2190 2191 // Check flexible array members. 2192 struct incomplete_array *ia = 2193 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2194 ia->datasize = 10; 2195 for (int i = 0; i < ia->datasize; ++i) 2196 ia->data[i] = i * 1.234; 2197 // Work around memory leak warnings. 2198 free (ia); 2199 2200 // Check named initializers. 2201 struct named_init ni = { 2202 .number = 34, 2203 .name = L"Test wide string", 2204 .average = 543.34343, 2205 }; 2206 2207 ni.number = 58; 2208 2209 int dynamic_array[ni.number]; 2210 dynamic_array[0] = argv[0][0]; 2211 dynamic_array[ni.number - 1] = 543; 2212 2213 // work around unused variable warnings 2214 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2215 || dynamic_array[ni.number - 1] != 543); 2216' 2217 2218# Test code for whether the C compiler supports C11 (global declarations) 2219ac_c_conftest_c11_globals=' 2220/* Does the compiler advertise C11 conformance? */ 2221#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2222# error "Compiler does not advertise C11 conformance" 2223#endif 2224 2225// Check _Alignas. 2226char _Alignas (double) aligned_as_double; 2227char _Alignas (0) no_special_alignment; 2228extern char aligned_as_int; 2229char _Alignas (0) _Alignas (int) aligned_as_int; 2230 2231// Check _Alignof. 2232enum 2233{ 2234 int_alignment = _Alignof (int), 2235 int_array_alignment = _Alignof (int[100]), 2236 char_alignment = _Alignof (char) 2237}; 2238_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2239 2240// Check _Noreturn. 2241int _Noreturn does_not_return (void) { for (;;) continue; } 2242 2243// Check _Static_assert. 2244struct test_static_assert 2245{ 2246 int x; 2247 _Static_assert (sizeof (int) <= sizeof (long int), 2248 "_Static_assert does not work in struct"); 2249 long int y; 2250}; 2251 2252// Check UTF-8 literals. 2253#define u8 syntax error! 2254char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2255 2256// Check duplicate typedefs. 2257typedef long *long_ptr; 2258typedef long int *long_ptr; 2259typedef long_ptr long_ptr; 2260 2261// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2262struct anonymous 2263{ 2264 union { 2265 struct { int i; int j; }; 2266 struct { int k; long int l; } w; 2267 }; 2268 int m; 2269} v1; 2270' 2271 2272# Test code for whether the C compiler supports C11 (body of main). 2273ac_c_conftest_c11_main=' 2274 _Static_assert ((offsetof (struct anonymous, i) 2275 == offsetof (struct anonymous, w.k)), 2276 "Anonymous union alignment botch"); 2277 v1.i = 2; 2278 v1.w.k = 5; 2279 ok |= v1.i != 5; 2280' 2281 2282# Test code for whether the C compiler supports C11 (complete). 2283ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2284${ac_c_conftest_c99_globals} 2285${ac_c_conftest_c11_globals} 2286 2287int 2288main (int argc, char **argv) 2289{ 2290 int ok = 0; 2291 ${ac_c_conftest_c89_main} 2292 ${ac_c_conftest_c99_main} 2293 ${ac_c_conftest_c11_main} 2294 return ok; 2295} 2296" 2297 2298# Test code for whether the C compiler supports C99 (complete). 2299ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2300${ac_c_conftest_c99_globals} 2301 2302int 2303main (int argc, char **argv) 2304{ 2305 int ok = 0; 2306 ${ac_c_conftest_c89_main} 2307 ${ac_c_conftest_c99_main} 2308 return ok; 2309} 2310" 2311 2312# Test code for whether the C compiler supports C89 (complete). 2313ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2314 2315int 2316main (int argc, char **argv) 2317{ 2318 int ok = 0; 2319 ${ac_c_conftest_c89_main} 2320 return ok; 2321} 2322" 2323 2324as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2325as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2326as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2327as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2328as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2329as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2330as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2331as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2332as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2333 2334# Auxiliary files required by this configure script. 2335ac_aux_files="config.guess config.sub compile missing install-sh" 2336 2337# Locations in which to look for auxiliary files. 2338ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2339 2340# Search for a directory containing all of the required auxiliary files, 2341# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2342# If we don't find one directory that contains all the files we need, 2343# we report the set of missing files from the *first* directory in 2344# $ac_aux_dir_candidates and give up. 2345ac_missing_aux_files="" 2346ac_first_candidate=: 2347printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349as_found=false 2350for as_dir in $ac_aux_dir_candidates 2351do 2352 IFS=$as_save_IFS 2353 case $as_dir in #((( 2354 '') as_dir=./ ;; 2355 */) ;; 2356 *) as_dir=$as_dir/ ;; 2357 esac 2358 as_found=: 2359 2360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2361 ac_aux_dir_found=yes 2362 ac_install_sh= 2363 for ac_aux in $ac_aux_files 2364 do 2365 # As a special case, if "install-sh" is required, that requirement 2366 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2367 # and $ac_install_sh is set appropriately for whichever one is found. 2368 if test x"$ac_aux" = x"install-sh" 2369 then 2370 if test -f "${as_dir}install-sh"; then 2371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2372 ac_install_sh="${as_dir}install-sh -c" 2373 elif test -f "${as_dir}install.sh"; then 2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2375 ac_install_sh="${as_dir}install.sh -c" 2376 elif test -f "${as_dir}shtool"; then 2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2378 ac_install_sh="${as_dir}shtool install -c" 2379 else 2380 ac_aux_dir_found=no 2381 if $ac_first_candidate; then 2382 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2383 else 2384 break 2385 fi 2386 fi 2387 else 2388 if test -f "${as_dir}${ac_aux}"; then 2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2390 else 2391 ac_aux_dir_found=no 2392 if $ac_first_candidate; then 2393 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2394 else 2395 break 2396 fi 2397 fi 2398 fi 2399 done 2400 if test "$ac_aux_dir_found" = yes; then 2401 ac_aux_dir="$as_dir" 2402 break 2403 fi 2404 ac_first_candidate=false 2405 2406 as_found=false 2407done 2408IFS=$as_save_IFS 2409if $as_found 2410then : 2411 2412else case e in #( 2413 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2414esac 2415fi 2416 2417 2418# These three variables are undocumented and unsupported, 2419# and are intended to be withdrawn in a future Autoconf release. 2420# They can cause serious problems if a builder's source tree is in a directory 2421# whose full name contains unusual characters. 2422if test -f "${ac_aux_dir}config.guess"; then 2423 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2424fi 2425if test -f "${ac_aux_dir}config.sub"; then 2426 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2427fi 2428if test -f "$ac_aux_dir/configure"; then 2429 ac_configure="$SHELL ${ac_aux_dir}configure" 2430fi 2431 2432# Check that the precious variables saved in the cache have kept the same 2433# value. 2434ac_cache_corrupted=false 2435for ac_var in $ac_precious_vars; do 2436 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2437 eval ac_new_set=\$ac_env_${ac_var}_set 2438 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2439 eval ac_new_val=\$ac_env_${ac_var}_value 2440 case $ac_old_set,$ac_new_set in 2441 set,) 2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2443printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2444 ac_cache_corrupted=: ;; 2445 ,set) 2446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2447printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2448 ac_cache_corrupted=: ;; 2449 ,);; 2450 *) 2451 if test "x$ac_old_val" != "x$ac_new_val"; then 2452 # differences in whitespace do not lead to failure. 2453 ac_old_val_w=`echo x $ac_old_val` 2454 ac_new_val_w=`echo x $ac_new_val` 2455 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2457printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2458 ac_cache_corrupted=: 2459 else 2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2461printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2462 eval $ac_var=\$ac_old_val 2463 fi 2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2465printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2467printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2468 fi;; 2469 esac 2470 # Pass precious variables to config.status. 2471 if test "$ac_new_set" = set; then 2472 case $ac_new_val in 2473 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2474 *) ac_arg=$ac_var=$ac_new_val ;; 2475 esac 2476 case " $ac_configure_args " in 2477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2478 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2479 esac 2480 fi 2481done 2482if $ac_cache_corrupted; then 2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2484printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2486printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2487 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2488 and start over" "$LINENO" 5 2489fi 2490## -------------------- ## 2491## Main body of script. ## 2492## -------------------- ## 2493 2494ac_ext=c 2495ac_cpp='$CPP $CPPFLAGS' 2496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2498ac_compiler_gnu=$ac_cv_c_compiler_gnu 2499 2500 2501 2502ac_config_headers="$ac_config_headers config.h" 2503 2504 2505# Initialize Automake 2506am__api_version='1.16' 2507 2508 2509 2510 # Find a good install program. We prefer a C program (faster), 2511# so one script is as good as another. But avoid the broken or 2512# incompatible versions: 2513# SysV /etc/install, /usr/sbin/install 2514# SunOS /usr/etc/install 2515# IRIX /sbin/install 2516# AIX /bin/install 2517# AmigaOS /C/install, which installs bootblocks on floppy discs 2518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2519# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2521# OS/2's system install, which has a completely different semantic 2522# ./install, which can be erroneously created by make from ./install.sh. 2523# Reject install programs that cannot install multiple files. 2524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2525printf %s "checking for a BSD-compatible install... " >&6; } 2526if test -z "$INSTALL"; then 2527if test ${ac_cv_path_install+y} 2528then : 2529 printf %s "(cached) " >&6 2530else case e in #( 2531 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2532for as_dir in $PATH 2533do 2534 IFS=$as_save_IFS 2535 case $as_dir in #((( 2536 '') as_dir=./ ;; 2537 */) ;; 2538 *) as_dir=$as_dir/ ;; 2539 esac 2540 # Account for fact that we put trailing slashes in our PATH walk. 2541case $as_dir in #(( 2542 ./ | /[cC]/* | \ 2543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2545 /usr/ucb/* ) ;; 2546 *) 2547 # OSF1 and SCO ODT 3.0 have their own names for install. 2548 # Don't use installbsd from OSF since it installs stuff as root 2549 # by default. 2550 for ac_prog in ginstall scoinst install; do 2551 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2553 if test $ac_prog = install && 2554 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2555 # AIX install. It has an incompatible calling convention. 2556 : 2557 elif test $ac_prog = install && 2558 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2559 # program-specific install script used by HP pwplus--don't use. 2560 : 2561 else 2562 rm -rf conftest.one conftest.two conftest.dir 2563 echo one > conftest.one 2564 echo two > conftest.two 2565 mkdir conftest.dir 2566 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2567 test -s conftest.one && test -s conftest.two && 2568 test -s conftest.dir/conftest.one && 2569 test -s conftest.dir/conftest.two 2570 then 2571 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2572 break 3 2573 fi 2574 fi 2575 fi 2576 done 2577 done 2578 ;; 2579esac 2580 2581 done 2582IFS=$as_save_IFS 2583 2584rm -rf conftest.one conftest.two conftest.dir 2585 ;; 2586esac 2587fi 2588 if test ${ac_cv_path_install+y}; then 2589 INSTALL=$ac_cv_path_install 2590 else 2591 # As a last resort, use the slow shell script. Don't cache a 2592 # value for INSTALL within a source directory, because that will 2593 # break other packages using the cache if that directory is 2594 # removed, or if the value is a relative name. 2595 INSTALL=$ac_install_sh 2596 fi 2597fi 2598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2599printf "%s\n" "$INSTALL" >&6; } 2600 2601# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2602# It thinks the first close brace ends the variable substitution. 2603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2604 2605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2606 2607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2608 2609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2610printf %s "checking whether build environment is sane... " >&6; } 2611# Reject unsafe characters in $srcdir or the absolute working directory 2612# name. Accept space and tab only in the latter. 2613am_lf=' 2614' 2615case `pwd` in 2616 *[\\\"\#\$\&\'\`$am_lf]*) 2617 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2618esac 2619case $srcdir in 2620 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2621 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2622esac 2623 2624# Do 'set' in a subshell so we don't clobber the current shell's 2625# arguments. Must try -L first in case configure is actually a 2626# symlink; some systems play weird games with the mod time of symlinks 2627# (eg FreeBSD returns the mod time of the symlink's containing 2628# directory). 2629if ( 2630 am_has_slept=no 2631 for am_try in 1 2; do 2632 echo "timestamp, slept: $am_has_slept" > conftest.file 2633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2634 if test "$*" = "X"; then 2635 # -L didn't work. 2636 set X `ls -t "$srcdir/configure" conftest.file` 2637 fi 2638 if test "$*" != "X $srcdir/configure conftest.file" \ 2639 && test "$*" != "X conftest.file $srcdir/configure"; then 2640 2641 # If neither matched, then we have a broken ls. This can happen 2642 # if, for instance, CONFIG_SHELL is bash and it inherits a 2643 # broken ls alias from the environment. This has actually 2644 # happened. Such a system could not be considered "sane". 2645 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2646 alias in your environment" "$LINENO" 5 2647 fi 2648 if test "$2" = conftest.file || test $am_try -eq 2; then 2649 break 2650 fi 2651 # Just in case. 2652 sleep 1 2653 am_has_slept=yes 2654 done 2655 test "$2" = conftest.file 2656 ) 2657then 2658 # Ok. 2659 : 2660else 2661 as_fn_error $? "newly created file is older than distributed files! 2662Check your system clock" "$LINENO" 5 2663fi 2664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2665printf "%s\n" "yes" >&6; } 2666# If we didn't sleep, we still need to ensure time stamps of config.status and 2667# generated files are strictly newer. 2668am_sleep_pid= 2669if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2670 ( sleep 1 ) & 2671 am_sleep_pid=$! 2672fi 2673 2674rm -f conftest.file 2675 2676test "$program_prefix" != NONE && 2677 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2678# Use a double $ so make ignores it. 2679test "$program_suffix" != NONE && 2680 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2681# Double any \ or $. 2682# By default was 's,x,x', remove it if useless. 2683ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2684program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2685 2686 2687# Expand $ac_aux_dir to an absolute path. 2688am_aux_dir=`cd "$ac_aux_dir" && pwd` 2689 2690 2691 if test x"${MISSING+set}" != xset; then 2692 MISSING="\${SHELL} '$am_aux_dir/missing'" 2693fi 2694# Use eval to expand $SHELL 2695if eval "$MISSING --is-lightweight"; then 2696 am_missing_run="$MISSING " 2697else 2698 am_missing_run= 2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2700printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2701fi 2702 2703if test x"${install_sh+set}" != xset; then 2704 case $am_aux_dir in 2705 *\ * | *\ *) 2706 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2707 *) 2708 install_sh="\${SHELL} $am_aux_dir/install-sh" 2709 esac 2710fi 2711 2712# Installed binaries are usually stripped using 'strip' when the user 2713# run "make install-strip". However 'strip' might not be the right 2714# tool to use in cross-compilation environments, therefore Automake 2715# will honor the 'STRIP' environment variable to overrule this program. 2716if test "$cross_compiling" != no; then 2717 if test -n "$ac_tool_prefix"; then 2718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2719set dummy ${ac_tool_prefix}strip; ac_word=$2 2720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2721printf %s "checking for $ac_word... " >&6; } 2722if test ${ac_cv_prog_STRIP+y} 2723then : 2724 printf %s "(cached) " >&6 2725else case e in #( 2726 e) if test -n "$STRIP"; then 2727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2728else 2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2730for as_dir in $PATH 2731do 2732 IFS=$as_save_IFS 2733 case $as_dir in #((( 2734 '') as_dir=./ ;; 2735 */) ;; 2736 *) as_dir=$as_dir/ ;; 2737 esac 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2740 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744done 2745 done 2746IFS=$as_save_IFS 2747 2748fi ;; 2749esac 2750fi 2751STRIP=$ac_cv_prog_STRIP 2752if test -n "$STRIP"; then 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2754printf "%s\n" "$STRIP" >&6; } 2755else 2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2757printf "%s\n" "no" >&6; } 2758fi 2759 2760 2761fi 2762if test -z "$ac_cv_prog_STRIP"; then 2763 ac_ct_STRIP=$STRIP 2764 # Extract the first word of "strip", so it can be a program name with args. 2765set dummy strip; ac_word=$2 2766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2767printf %s "checking for $ac_word... " >&6; } 2768if test ${ac_cv_prog_ac_ct_STRIP+y} 2769then : 2770 printf %s "(cached) " >&6 2771else case e in #( 2772 e) if test -n "$ac_ct_STRIP"; then 2773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2774else 2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776for as_dir in $PATH 2777do 2778 IFS=$as_save_IFS 2779 case $as_dir in #((( 2780 '') as_dir=./ ;; 2781 */) ;; 2782 *) as_dir=$as_dir/ ;; 2783 esac 2784 for ac_exec_ext in '' $ac_executable_extensions; do 2785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2786 ac_cv_prog_ac_ct_STRIP="strip" 2787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2788 break 2 2789 fi 2790done 2791 done 2792IFS=$as_save_IFS 2793 2794fi ;; 2795esac 2796fi 2797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2798if test -n "$ac_ct_STRIP"; then 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2800printf "%s\n" "$ac_ct_STRIP" >&6; } 2801else 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803printf "%s\n" "no" >&6; } 2804fi 2805 2806 if test "x$ac_ct_STRIP" = x; then 2807 STRIP=":" 2808 else 2809 case $cross_compiling:$ac_tool_warned in 2810yes:) 2811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2813ac_tool_warned=yes ;; 2814esac 2815 STRIP=$ac_ct_STRIP 2816 fi 2817else 2818 STRIP="$ac_cv_prog_STRIP" 2819fi 2820 2821fi 2822INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2823 2824 2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2826printf %s "checking for a race-free mkdir -p... " >&6; } 2827if test -z "$MKDIR_P"; then 2828 if test ${ac_cv_path_mkdir+y} 2829then : 2830 printf %s "(cached) " >&6 2831else case e in #( 2832 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2834do 2835 IFS=$as_save_IFS 2836 case $as_dir in #((( 2837 '') as_dir=./ ;; 2838 */) ;; 2839 *) as_dir=$as_dir/ ;; 2840 esac 2841 for ac_prog in mkdir gmkdir; do 2842 for ac_exec_ext in '' $ac_executable_extensions; do 2843 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2844 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2845 'mkdir ('*'coreutils) '* | \ 2846 *'BusyBox '* | \ 2847 'mkdir (fileutils) '4.1*) 2848 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2849 break 3;; 2850 esac 2851 done 2852 done 2853 done 2854IFS=$as_save_IFS 2855 ;; 2856esac 2857fi 2858 2859 test -d ./--version && rmdir ./--version 2860 if test ${ac_cv_path_mkdir+y}; then 2861 MKDIR_P="$ac_cv_path_mkdir -p" 2862 else 2863 # As a last resort, use plain mkdir -p, 2864 # in the hope it doesn't have the bugs of ancient mkdir. 2865 MKDIR_P='mkdir -p' 2866 fi 2867fi 2868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2869printf "%s\n" "$MKDIR_P" >&6; } 2870 2871for ac_prog in gawk mawk nawk awk 2872do 2873 # Extract the first word of "$ac_prog", so it can be a program name with args. 2874set dummy $ac_prog; ac_word=$2 2875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876printf %s "checking for $ac_word... " >&6; } 2877if test ${ac_cv_prog_AWK+y} 2878then : 2879 printf %s "(cached) " >&6 2880else case e in #( 2881 e) if test -n "$AWK"; then 2882 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2883else 2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885for as_dir in $PATH 2886do 2887 IFS=$as_save_IFS 2888 case $as_dir in #((( 2889 '') as_dir=./ ;; 2890 */) ;; 2891 *) as_dir=$as_dir/ ;; 2892 esac 2893 for ac_exec_ext in '' $ac_executable_extensions; do 2894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2895 ac_cv_prog_AWK="$ac_prog" 2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2897 break 2 2898 fi 2899done 2900 done 2901IFS=$as_save_IFS 2902 2903fi ;; 2904esac 2905fi 2906AWK=$ac_cv_prog_AWK 2907if test -n "$AWK"; then 2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2909printf "%s\n" "$AWK" >&6; } 2910else 2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2912printf "%s\n" "no" >&6; } 2913fi 2914 2915 2916 test -n "$AWK" && break 2917done 2918 2919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2920printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2921set x ${MAKE-make} 2922ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2923if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2924then : 2925 printf %s "(cached) " >&6 2926else case e in #( 2927 e) cat >conftest.make <<\_ACEOF 2928SHELL = /bin/sh 2929all: 2930 @echo '@@@%%%=$(MAKE)=@@@%%%' 2931_ACEOF 2932# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2933case `${MAKE-make} -f conftest.make 2>/dev/null` in 2934 *@@@%%%=?*=@@@%%%*) 2935 eval ac_cv_prog_make_${ac_make}_set=yes;; 2936 *) 2937 eval ac_cv_prog_make_${ac_make}_set=no;; 2938esac 2939rm -f conftest.make ;; 2940esac 2941fi 2942if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2944printf "%s\n" "yes" >&6; } 2945 SET_MAKE= 2946else 2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2948printf "%s\n" "no" >&6; } 2949 SET_MAKE="MAKE=${MAKE-make}" 2950fi 2951 2952rm -rf .tst 2>/dev/null 2953mkdir .tst 2>/dev/null 2954if test -d .tst; then 2955 am__leading_dot=. 2956else 2957 am__leading_dot=_ 2958fi 2959rmdir .tst 2>/dev/null 2960 2961# Check whether --enable-silent-rules was given. 2962if test ${enable_silent_rules+y} 2963then : 2964 enableval=$enable_silent_rules; 2965fi 2966 2967case $enable_silent_rules in # ((( 2968 yes) AM_DEFAULT_VERBOSITY=0;; 2969 no) AM_DEFAULT_VERBOSITY=1;; 2970 *) AM_DEFAULT_VERBOSITY=1;; 2971esac 2972am_make=${MAKE-make} 2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2974printf %s "checking whether $am_make supports nested variables... " >&6; } 2975if test ${am_cv_make_support_nested_variables+y} 2976then : 2977 printf %s "(cached) " >&6 2978else case e in #( 2979 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 2980BAR0=false 2981BAR1=true 2982V=1 2983am__doit: 2984 @$(TRUE) 2985.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2986 am_cv_make_support_nested_variables=yes 2987else 2988 am_cv_make_support_nested_variables=no 2989fi ;; 2990esac 2991fi 2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2993printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2994if test $am_cv_make_support_nested_variables = yes; then 2995 AM_V='$(V)' 2996 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2997else 2998 AM_V=$AM_DEFAULT_VERBOSITY 2999 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3000fi 3001AM_BACKSLASH='\' 3002 3003if test "`cd $srcdir && pwd`" != "`pwd`"; then 3004 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3005 # is not polluted with repeated "-I." 3006 am__isrc=' -I$(srcdir)' 3007 # test to see if srcdir already configured 3008 if test -f $srcdir/config.status; then 3009 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3010 fi 3011fi 3012 3013# test whether we have cygpath 3014if test -z "$CYGPATH_W"; then 3015 if (cygpath --version) >/dev/null 2>/dev/null; then 3016 CYGPATH_W='cygpath -w' 3017 else 3018 CYGPATH_W=echo 3019 fi 3020fi 3021 3022 3023# Define the identity of the package. 3024 PACKAGE='appres' 3025 VERSION='1.0.7' 3026 3027 3028printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3029 3030 3031printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3032 3033# Some tools Automake needs. 3034 3035ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3036 3037 3038AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3039 3040 3041AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3042 3043 3044AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3045 3046 3047MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3048 3049# For better backward compatibility. To be removed once Automake 1.9.x 3050# dies out for good. For more background, see: 3051# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3052# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3053mkdir_p='$(MKDIR_P)' 3054 3055# We need awk for the "check" target (and possibly the TAP driver). The 3056# system "awk" is bad on some platforms. 3057# Always define AMTAR for backward compatibility. Yes, it's still used 3058# in the wild :-( We should find a proper way to deprecate it ... 3059AMTAR='$${TAR-tar}' 3060 3061 3062# We'll loop over all known methods to create a tar archive until one works. 3063_am_tools='gnutar pax cpio none' 3064 3065am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3066 3067 3068 3069 3070 3071# Variables for tags utilities; see am/tags.am 3072if test -z "$CTAGS"; then 3073 CTAGS=ctags 3074fi 3075 3076if test -z "$ETAGS"; then 3077 ETAGS=etags 3078fi 3079 3080if test -z "$CSCOPE"; then 3081 CSCOPE=cscope 3082fi 3083 3084 3085 3086# POSIX will say in a future version that running "rm -f" with no argument 3087# is OK; and we want to be able to make that assumption in our Makefile 3088# recipes. So use an aggressive probe to check that the usage we want is 3089# actually supported "in the wild" to an acceptable degree. 3090# See automake bug#10828. 3091# To make any issue more visible, cause the running configure to be aborted 3092# by default if the 'rm' program in use doesn't match our expectations; the 3093# user can still override this though. 3094if rm -f && rm -fr && rm -rf; then : OK; else 3095 cat >&2 <<'END' 3096Oops! 3097 3098Your 'rm' program seems unable to run without file operands specified 3099on the command line, even when the '-f' option is present. This is contrary 3100to the behaviour of most rm programs out there, and not conforming with 3101the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3102 3103Please tell bug-automake@gnu.org about your system, including the value 3104of your $PATH and any error possibly output before this message. This 3105can help us improve future automake versions. 3106 3107END 3108 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3109 echo 'Configuration will proceed anyway, since you have set the' >&2 3110 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3111 echo >&2 3112 else 3113 cat >&2 <<'END' 3114Aborting the configuration process, to ensure you take notice of the issue. 3115 3116You can download and install GNU coreutils to get an 'rm' implementation 3117that behaves properly: <https://www.gnu.org/software/coreutils/>. 3118 3119If you want to complete the configuration process using your problematic 3120'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3121to "yes", and re-run configure. 3122 3123END 3124 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3125 fi 3126fi 3127 3128 3129# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150DEPDIR="${am__leading_dot}deps" 3151 3152ac_config_commands="$ac_config_commands depfiles" 3153 3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3155printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3156cat > confinc.mk << 'END' 3157am__doit: 3158 @echo this is the am__doit target >confinc.out 3159.PHONY: am__doit 3160END 3161am__include="#" 3162am__quote= 3163# BSD make does it like this. 3164echo '.include "confinc.mk" # ignored' > confmf.BSD 3165# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3166echo 'include confinc.mk # ignored' > confmf.GNU 3167_am_result=no 3168for s in GNU BSD; do 3169 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3170 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); } 3174 case $?:`cat confinc.out 2>/dev/null` in #( 3175 '0:this is the am__doit target') : 3176 case $s in #( 3177 BSD) : 3178 am__include='.include' am__quote='"' ;; #( 3179 *) : 3180 am__include='include' am__quote='' ;; 3181esac ;; #( 3182 *) : 3183 ;; 3184esac 3185 if test "$am__include" != "#"; then 3186 _am_result="yes ($s style)" 3187 break 3188 fi 3189done 3190rm -f confinc.* confmf.* 3191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3192printf "%s\n" "${_am_result}" >&6; } 3193 3194# Check whether --enable-dependency-tracking was given. 3195if test ${enable_dependency_tracking+y} 3196then : 3197 enableval=$enable_dependency_tracking; 3198fi 3199 3200if test "x$enable_dependency_tracking" != xno; then 3201 am_depcomp="$ac_aux_dir/depcomp" 3202 AMDEPBACKSLASH='\' 3203 am__nodep='_no' 3204fi 3205 if test "x$enable_dependency_tracking" != xno; then 3206 AMDEP_TRUE= 3207 AMDEP_FALSE='#' 3208else 3209 AMDEP_TRUE='#' 3210 AMDEP_FALSE= 3211fi 3212 3213 3214ac_ext=c 3215ac_cpp='$CPP $CPPFLAGS' 3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3218ac_compiler_gnu=$ac_cv_c_compiler_gnu 3219if test -n "$ac_tool_prefix"; then 3220 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3221set dummy ${ac_tool_prefix}gcc; ac_word=$2 3222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3223printf %s "checking for $ac_word... " >&6; } 3224if test ${ac_cv_prog_CC+y} 3225then : 3226 printf %s "(cached) " >&6 3227else case e in #( 3228 e) if test -n "$CC"; then 3229 ac_cv_prog_CC="$CC" # Let the user override the test. 3230else 3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3232for as_dir in $PATH 3233do 3234 IFS=$as_save_IFS 3235 case $as_dir in #((( 3236 '') as_dir=./ ;; 3237 */) ;; 3238 *) as_dir=$as_dir/ ;; 3239 esac 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi ;; 3251esac 3252fi 3253CC=$ac_cv_prog_CC 3254if test -n "$CC"; then 3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3256printf "%s\n" "$CC" >&6; } 3257else 3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3259printf "%s\n" "no" >&6; } 3260fi 3261 3262 3263fi 3264if test -z "$ac_cv_prog_CC"; then 3265 ac_ct_CC=$CC 3266 # Extract the first word of "gcc", so it can be a program name with args. 3267set dummy gcc; ac_word=$2 3268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3269printf %s "checking for $ac_word... " >&6; } 3270if test ${ac_cv_prog_ac_ct_CC+y} 3271then : 3272 printf %s "(cached) " >&6 3273else case e in #( 3274 e) if test -n "$ac_ct_CC"; then 3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3276else 3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3278for as_dir in $PATH 3279do 3280 IFS=$as_save_IFS 3281 case $as_dir in #((( 3282 '') as_dir=./ ;; 3283 */) ;; 3284 *) as_dir=$as_dir/ ;; 3285 esac 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3288 ac_cv_prog_ac_ct_CC="gcc" 3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3290 break 2 3291 fi 3292done 3293 done 3294IFS=$as_save_IFS 3295 3296fi ;; 3297esac 3298fi 3299ac_ct_CC=$ac_cv_prog_ac_ct_CC 3300if test -n "$ac_ct_CC"; then 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3302printf "%s\n" "$ac_ct_CC" >&6; } 3303else 3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305printf "%s\n" "no" >&6; } 3306fi 3307 3308 if test "x$ac_ct_CC" = x; then 3309 CC="" 3310 else 3311 case $cross_compiling:$ac_tool_warned in 3312yes:) 3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3314printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3315ac_tool_warned=yes ;; 3316esac 3317 CC=$ac_ct_CC 3318 fi 3319else 3320 CC="$ac_cv_prog_CC" 3321fi 3322 3323if test -z "$CC"; then 3324 if test -n "$ac_tool_prefix"; then 3325 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3326set dummy ${ac_tool_prefix}cc; ac_word=$2 3327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3328printf %s "checking for $ac_word... " >&6; } 3329if test ${ac_cv_prog_CC+y} 3330then : 3331 printf %s "(cached) " >&6 3332else case e in #( 3333 e) if test -n "$CC"; then 3334 ac_cv_prog_CC="$CC" # Let the user override the test. 3335else 3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3337for as_dir in $PATH 3338do 3339 IFS=$as_save_IFS 3340 case $as_dir in #((( 3341 '') as_dir=./ ;; 3342 */) ;; 3343 *) as_dir=$as_dir/ ;; 3344 esac 3345 for ac_exec_ext in '' $ac_executable_extensions; do 3346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3347 ac_cv_prog_CC="${ac_tool_prefix}cc" 3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3349 break 2 3350 fi 3351done 3352 done 3353IFS=$as_save_IFS 3354 3355fi ;; 3356esac 3357fi 3358CC=$ac_cv_prog_CC 3359if test -n "$CC"; then 3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3361printf "%s\n" "$CC" >&6; } 3362else 3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3364printf "%s\n" "no" >&6; } 3365fi 3366 3367 3368 fi 3369fi 3370if test -z "$CC"; then 3371 # Extract the first word of "cc", so it can be a program name with args. 3372set dummy cc; ac_word=$2 3373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3374printf %s "checking for $ac_word... " >&6; } 3375if test ${ac_cv_prog_CC+y} 3376then : 3377 printf %s "(cached) " >&6 3378else case e in #( 3379 e) if test -n "$CC"; then 3380 ac_cv_prog_CC="$CC" # Let the user override the test. 3381else 3382 ac_prog_rejected=no 3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3384for as_dir in $PATH 3385do 3386 IFS=$as_save_IFS 3387 case $as_dir in #((( 3388 '') as_dir=./ ;; 3389 */) ;; 3390 *) as_dir=$as_dir/ ;; 3391 esac 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3394 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3395 ac_prog_rejected=yes 3396 continue 3397 fi 3398 ac_cv_prog_CC="cc" 3399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3400 break 2 3401 fi 3402done 3403 done 3404IFS=$as_save_IFS 3405 3406if test $ac_prog_rejected = yes; then 3407 # We found a bogon in the path, so make sure we never use it. 3408 set dummy $ac_cv_prog_CC 3409 shift 3410 if test $# != 0; then 3411 # We chose a different compiler from the bogus one. 3412 # However, it has the same basename, so the bogon will be chosen 3413 # first if we set CC to just the basename; use the full file name. 3414 shift 3415 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3416 fi 3417fi 3418fi ;; 3419esac 3420fi 3421CC=$ac_cv_prog_CC 3422if test -n "$CC"; then 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3424printf "%s\n" "$CC" >&6; } 3425else 3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427printf "%s\n" "no" >&6; } 3428fi 3429 3430 3431fi 3432if test -z "$CC"; then 3433 if test -n "$ac_tool_prefix"; then 3434 for ac_prog in cl.exe 3435 do 3436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3437set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3439printf %s "checking for $ac_word... " >&6; } 3440if test ${ac_cv_prog_CC+y} 3441then : 3442 printf %s "(cached) " >&6 3443else case e in #( 3444 e) if test -n "$CC"; then 3445 ac_cv_prog_CC="$CC" # Let the user override the test. 3446else 3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448for as_dir in $PATH 3449do 3450 IFS=$as_save_IFS 3451 case $as_dir in #((( 3452 '') as_dir=./ ;; 3453 */) ;; 3454 *) as_dir=$as_dir/ ;; 3455 esac 3456 for ac_exec_ext in '' $ac_executable_extensions; do 3457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3460 break 2 3461 fi 3462done 3463 done 3464IFS=$as_save_IFS 3465 3466fi ;; 3467esac 3468fi 3469CC=$ac_cv_prog_CC 3470if test -n "$CC"; then 3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3472printf "%s\n" "$CC" >&6; } 3473else 3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3475printf "%s\n" "no" >&6; } 3476fi 3477 3478 3479 test -n "$CC" && break 3480 done 3481fi 3482if test -z "$CC"; then 3483 ac_ct_CC=$CC 3484 for ac_prog in cl.exe 3485do 3486 # Extract the first word of "$ac_prog", so it can be a program name with args. 3487set dummy $ac_prog; ac_word=$2 3488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489printf %s "checking for $ac_word... " >&6; } 3490if test ${ac_cv_prog_ac_ct_CC+y} 3491then : 3492 printf %s "(cached) " >&6 3493else case e in #( 3494 e) if test -n "$ac_ct_CC"; then 3495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3496else 3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3498for as_dir in $PATH 3499do 3500 IFS=$as_save_IFS 3501 case $as_dir in #((( 3502 '') as_dir=./ ;; 3503 */) ;; 3504 *) as_dir=$as_dir/ ;; 3505 esac 3506 for ac_exec_ext in '' $ac_executable_extensions; do 3507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3508 ac_cv_prog_ac_ct_CC="$ac_prog" 3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3510 break 2 3511 fi 3512done 3513 done 3514IFS=$as_save_IFS 3515 3516fi ;; 3517esac 3518fi 3519ac_ct_CC=$ac_cv_prog_ac_ct_CC 3520if test -n "$ac_ct_CC"; then 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3522printf "%s\n" "$ac_ct_CC" >&6; } 3523else 3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525printf "%s\n" "no" >&6; } 3526fi 3527 3528 3529 test -n "$ac_ct_CC" && break 3530done 3531 3532 if test "x$ac_ct_CC" = x; then 3533 CC="" 3534 else 3535 case $cross_compiling:$ac_tool_warned in 3536yes:) 3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3538printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3539ac_tool_warned=yes ;; 3540esac 3541 CC=$ac_ct_CC 3542 fi 3543fi 3544 3545fi 3546if test -z "$CC"; then 3547 if test -n "$ac_tool_prefix"; then 3548 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3549set dummy ${ac_tool_prefix}clang; ac_word=$2 3550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551printf %s "checking for $ac_word... " >&6; } 3552if test ${ac_cv_prog_CC+y} 3553then : 3554 printf %s "(cached) " >&6 3555else case e in #( 3556 e) if test -n "$CC"; then 3557 ac_cv_prog_CC="$CC" # Let the user override the test. 3558else 3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560for as_dir in $PATH 3561do 3562 IFS=$as_save_IFS 3563 case $as_dir in #((( 3564 '') as_dir=./ ;; 3565 */) ;; 3566 *) as_dir=$as_dir/ ;; 3567 esac 3568 for ac_exec_ext in '' $ac_executable_extensions; do 3569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3570 ac_cv_prog_CC="${ac_tool_prefix}clang" 3571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3572 break 2 3573 fi 3574done 3575 done 3576IFS=$as_save_IFS 3577 3578fi ;; 3579esac 3580fi 3581CC=$ac_cv_prog_CC 3582if test -n "$CC"; then 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3584printf "%s\n" "$CC" >&6; } 3585else 3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587printf "%s\n" "no" >&6; } 3588fi 3589 3590 3591fi 3592if test -z "$ac_cv_prog_CC"; then 3593 ac_ct_CC=$CC 3594 # Extract the first word of "clang", so it can be a program name with args. 3595set dummy clang; ac_word=$2 3596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3597printf %s "checking for $ac_word... " >&6; } 3598if test ${ac_cv_prog_ac_ct_CC+y} 3599then : 3600 printf %s "(cached) " >&6 3601else case e in #( 3602 e) if test -n "$ac_ct_CC"; then 3603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3604else 3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606for as_dir in $PATH 3607do 3608 IFS=$as_save_IFS 3609 case $as_dir in #((( 3610 '') as_dir=./ ;; 3611 */) ;; 3612 *) as_dir=$as_dir/ ;; 3613 esac 3614 for ac_exec_ext in '' $ac_executable_extensions; do 3615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3616 ac_cv_prog_ac_ct_CC="clang" 3617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3618 break 2 3619 fi 3620done 3621 done 3622IFS=$as_save_IFS 3623 3624fi ;; 3625esac 3626fi 3627ac_ct_CC=$ac_cv_prog_ac_ct_CC 3628if test -n "$ac_ct_CC"; then 3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3630printf "%s\n" "$ac_ct_CC" >&6; } 3631else 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3633printf "%s\n" "no" >&6; } 3634fi 3635 3636 if test "x$ac_ct_CC" = x; then 3637 CC="" 3638 else 3639 case $cross_compiling:$ac_tool_warned in 3640yes:) 3641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3642printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3643ac_tool_warned=yes ;; 3644esac 3645 CC=$ac_ct_CC 3646 fi 3647else 3648 CC="$ac_cv_prog_CC" 3649fi 3650 3651fi 3652 3653 3654test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3655printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3656as_fn_error $? "no acceptable C compiler found in \$PATH 3657See 'config.log' for more details" "$LINENO" 5; } 3658 3659# Provide some information about the compiler. 3660printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3661set X $ac_compile 3662ac_compiler=$2 3663for ac_option in --version -v -V -qversion -version; do 3664 { { ac_try="$ac_compiler $ac_option >&5" 3665case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668esac 3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3670printf "%s\n" "$ac_try_echo"; } >&5 3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3672 ac_status=$? 3673 if test -s conftest.err; then 3674 sed '10a\ 3675... rest of stderr output deleted ... 3676 10q' conftest.err >conftest.er1 3677 cat conftest.er1 >&5 3678 fi 3679 rm -f conftest.er1 conftest.err 3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3681 test $ac_status = 0; } 3682done 3683 3684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686 3687int 3688main (void) 3689{ 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695ac_clean_files_save=$ac_clean_files 3696ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3697# Try to create an executable without -o first, disregard a.out. 3698# It will help us diagnose broken compilers, and finding out an intuition 3699# of exeext. 3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3701printf %s "checking whether the C compiler works... " >&6; } 3702ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3703 3704# The possible output files: 3705ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3706 3707ac_rmfiles= 3708for ac_file in $ac_files 3709do 3710 case $ac_file in 3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3713 esac 3714done 3715rm -f $ac_rmfiles 3716 3717if { { ac_try="$ac_link_default" 3718case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721esac 3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3723printf "%s\n" "$ac_try_echo"; } >&5 3724 (eval "$ac_link_default") 2>&5 3725 ac_status=$? 3726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3727 test $ac_status = 0; } 3728then : 3729 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3730# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3731# in a Makefile. We should not override ac_cv_exeext if it was cached, 3732# so that the user can short-circuit this test for compilers unknown to 3733# Autoconf. 3734for ac_file in $ac_files '' 3735do 3736 test -f "$ac_file" || continue 3737 case $ac_file in 3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3739 ;; 3740 [ab].out ) 3741 # We found the default executable, but exeext='' is most 3742 # certainly right. 3743 break;; 3744 *.* ) 3745 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3746 then :; else 3747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3748 fi 3749 # We set ac_cv_exeext here because the later test for it is not 3750 # safe: cross compilers may not add the suffix if given an '-o' 3751 # argument, so we may need to know it at that point already. 3752 # Even if this section looks crufty: it has the advantage of 3753 # actually working. 3754 break;; 3755 * ) 3756 break;; 3757 esac 3758done 3759test "$ac_cv_exeext" = no && ac_cv_exeext= 3760 3761else case e in #( 3762 e) ac_file='' ;; 3763esac 3764fi 3765if test -z "$ac_file" 3766then : 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3768printf "%s\n" "no" >&6; } 3769printf "%s\n" "$as_me: failed program was:" >&5 3770sed 's/^/| /' conftest.$ac_ext >&5 3771 3772{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3773printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3774as_fn_error 77 "C compiler cannot create executables 3775See 'config.log' for more details" "$LINENO" 5; } 3776else case e in #( 3777 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3778printf "%s\n" "yes" >&6; } ;; 3779esac 3780fi 3781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3782printf %s "checking for C compiler default output file name... " >&6; } 3783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3784printf "%s\n" "$ac_file" >&6; } 3785ac_exeext=$ac_cv_exeext 3786 3787rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3788ac_clean_files=$ac_clean_files_save 3789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3790printf %s "checking for suffix of executables... " >&6; } 3791if { { ac_try="$ac_link" 3792case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795esac 3796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3797printf "%s\n" "$ac_try_echo"; } >&5 3798 (eval "$ac_link") 2>&5 3799 ac_status=$? 3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3801 test $ac_status = 0; } 3802then : 3803 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3804# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3805# work properly (i.e., refer to 'conftest.exe'), while it won't with 3806# 'rm'. 3807for ac_file in conftest.exe conftest conftest.*; do 3808 test -f "$ac_file" || continue 3809 case $ac_file in 3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3812 break;; 3813 * ) break;; 3814 esac 3815done 3816else case e in #( 3817 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3818printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3819as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3820See 'config.log' for more details" "$LINENO" 5; } ;; 3821esac 3822fi 3823rm -f conftest conftest$ac_cv_exeext 3824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3825printf "%s\n" "$ac_cv_exeext" >&6; } 3826 3827rm -f conftest.$ac_ext 3828EXEEXT=$ac_cv_exeext 3829ac_exeext=$EXEEXT 3830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3831/* end confdefs.h. */ 3832#include <stdio.h> 3833int 3834main (void) 3835{ 3836FILE *f = fopen ("conftest.out", "w"); 3837 if (!f) 3838 return 1; 3839 return ferror (f) || fclose (f) != 0; 3840 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845ac_clean_files="$ac_clean_files conftest.out" 3846# Check that the compiler produces executables we can run. If not, either 3847# the compiler is broken, or we cross compile. 3848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3849printf %s "checking whether we are cross compiling... " >&6; } 3850if test "$cross_compiling" != yes; then 3851 { { ac_try="$ac_link" 3852case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855esac 3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3857printf "%s\n" "$ac_try_echo"; } >&5 3858 (eval "$ac_link") 2>&5 3859 ac_status=$? 3860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3861 test $ac_status = 0; } 3862 if { ac_try='./conftest$ac_cv_exeext' 3863 { { case "(($ac_try" in 3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3865 *) ac_try_echo=$ac_try;; 3866esac 3867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3868printf "%s\n" "$ac_try_echo"; } >&5 3869 (eval "$ac_try") 2>&5 3870 ac_status=$? 3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3872 test $ac_status = 0; }; }; then 3873 cross_compiling=no 3874 else 3875 if test "$cross_compiling" = maybe; then 3876 cross_compiling=yes 3877 else 3878 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3879printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3880as_fn_error 77 "cannot run C compiled programs. 3881If you meant to cross compile, use '--host'. 3882See 'config.log' for more details" "$LINENO" 5; } 3883 fi 3884 fi 3885fi 3886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3887printf "%s\n" "$cross_compiling" >&6; } 3888 3889rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3890 conftest.o conftest.obj conftest.out 3891ac_clean_files=$ac_clean_files_save 3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3893printf %s "checking for suffix of object files... " >&6; } 3894if test ${ac_cv_objext+y} 3895then : 3896 printf %s "(cached) " >&6 3897else case e in #( 3898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899/* end confdefs.h. */ 3900 3901int 3902main (void) 3903{ 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909rm -f conftest.o conftest.obj 3910if { { ac_try="$ac_compile" 3911case "(($ac_try" in 3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3913 *) ac_try_echo=$ac_try;; 3914esac 3915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3916printf "%s\n" "$ac_try_echo"; } >&5 3917 (eval "$ac_compile") 2>&5 3918 ac_status=$? 3919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3920 test $ac_status = 0; } 3921then : 3922 for ac_file in conftest.o conftest.obj conftest.*; do 3923 test -f "$ac_file" || continue; 3924 case $ac_file in 3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3927 break;; 3928 esac 3929done 3930else case e in #( 3931 e) printf "%s\n" "$as_me: failed program was:" >&5 3932sed 's/^/| /' conftest.$ac_ext >&5 3933 3934{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3935printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3936as_fn_error $? "cannot compute suffix of object files: cannot compile 3937See 'config.log' for more details" "$LINENO" 5; } ;; 3938esac 3939fi 3940rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3941esac 3942fi 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3944printf "%s\n" "$ac_cv_objext" >&6; } 3945OBJEXT=$ac_cv_objext 3946ac_objext=$OBJEXT 3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3948printf %s "checking whether the compiler supports GNU C... " >&6; } 3949if test ${ac_cv_c_compiler_gnu+y} 3950then : 3951 printf %s "(cached) " >&6 3952else case e in #( 3953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3954/* end confdefs.h. */ 3955 3956int 3957main (void) 3958{ 3959#ifndef __GNUC__ 3960 choke me 3961#endif 3962 3963 ; 3964 return 0; 3965} 3966_ACEOF 3967if ac_fn_c_try_compile "$LINENO" 3968then : 3969 ac_compiler_gnu=yes 3970else case e in #( 3971 e) ac_compiler_gnu=no ;; 3972esac 3973fi 3974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3975ac_cv_c_compiler_gnu=$ac_compiler_gnu 3976 ;; 3977esac 3978fi 3979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3980printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3981ac_compiler_gnu=$ac_cv_c_compiler_gnu 3982 3983if test $ac_compiler_gnu = yes; then 3984 GCC=yes 3985else 3986 GCC= 3987fi 3988ac_test_CFLAGS=${CFLAGS+y} 3989ac_save_CFLAGS=$CFLAGS 3990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3991printf %s "checking whether $CC accepts -g... " >&6; } 3992if test ${ac_cv_prog_cc_g+y} 3993then : 3994 printf %s "(cached) " >&6 3995else case e in #( 3996 e) ac_save_c_werror_flag=$ac_c_werror_flag 3997 ac_c_werror_flag=yes 3998 ac_cv_prog_cc_g=no 3999 CFLAGS="-g" 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002 4003int 4004main (void) 4005{ 4006 4007 ; 4008 return 0; 4009} 4010_ACEOF 4011if ac_fn_c_try_compile "$LINENO" 4012then : 4013 ac_cv_prog_cc_g=yes 4014else case e in #( 4015 e) CFLAGS="" 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018 4019int 4020main (void) 4021{ 4022 4023 ; 4024 return 0; 4025} 4026_ACEOF 4027if ac_fn_c_try_compile "$LINENO" 4028then : 4029 4030else case e in #( 4031 e) ac_c_werror_flag=$ac_save_c_werror_flag 4032 CFLAGS="-g" 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035 4036int 4037main (void) 4038{ 4039 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044if ac_fn_c_try_compile "$LINENO" 4045then : 4046 ac_cv_prog_cc_g=yes 4047fi 4048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4049esac 4050fi 4051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4052esac 4053fi 4054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4055 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4056esac 4057fi 4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4059printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4060if test $ac_test_CFLAGS; then 4061 CFLAGS=$ac_save_CFLAGS 4062elif test $ac_cv_prog_cc_g = yes; then 4063 if test "$GCC" = yes; then 4064 CFLAGS="-g -O2" 4065 else 4066 CFLAGS="-g" 4067 fi 4068else 4069 if test "$GCC" = yes; then 4070 CFLAGS="-O2" 4071 else 4072 CFLAGS= 4073 fi 4074fi 4075ac_prog_cc_stdc=no 4076if test x$ac_prog_cc_stdc = xno 4077then : 4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4079printf %s "checking for $CC option to enable C11 features... " >&6; } 4080if test ${ac_cv_prog_cc_c11+y} 4081then : 4082 printf %s "(cached) " >&6 4083else case e in #( 4084 e) ac_cv_prog_cc_c11=no 4085ac_save_CC=$CC 4086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4087/* end confdefs.h. */ 4088$ac_c_conftest_c11_program 4089_ACEOF 4090for ac_arg in '' -std=gnu11 4091do 4092 CC="$ac_save_CC $ac_arg" 4093 if ac_fn_c_try_compile "$LINENO" 4094then : 4095 ac_cv_prog_cc_c11=$ac_arg 4096fi 4097rm -f core conftest.err conftest.$ac_objext conftest.beam 4098 test "x$ac_cv_prog_cc_c11" != "xno" && break 4099done 4100rm -f conftest.$ac_ext 4101CC=$ac_save_CC ;; 4102esac 4103fi 4104 4105if test "x$ac_cv_prog_cc_c11" = xno 4106then : 4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4108printf "%s\n" "unsupported" >&6; } 4109else case e in #( 4110 e) if test "x$ac_cv_prog_cc_c11" = x 4111then : 4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4113printf "%s\n" "none needed" >&6; } 4114else case e in #( 4115 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4116printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4117 CC="$CC $ac_cv_prog_cc_c11" ;; 4118esac 4119fi 4120 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4121 ac_prog_cc_stdc=c11 ;; 4122esac 4123fi 4124fi 4125if test x$ac_prog_cc_stdc = xno 4126then : 4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4128printf %s "checking for $CC option to enable C99 features... " >&6; } 4129if test ${ac_cv_prog_cc_c99+y} 4130then : 4131 printf %s "(cached) " >&6 4132else case e in #( 4133 e) ac_cv_prog_cc_c99=no 4134ac_save_CC=$CC 4135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137$ac_c_conftest_c99_program 4138_ACEOF 4139for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4140do 4141 CC="$ac_save_CC $ac_arg" 4142 if ac_fn_c_try_compile "$LINENO" 4143then : 4144 ac_cv_prog_cc_c99=$ac_arg 4145fi 4146rm -f core conftest.err conftest.$ac_objext conftest.beam 4147 test "x$ac_cv_prog_cc_c99" != "xno" && break 4148done 4149rm -f conftest.$ac_ext 4150CC=$ac_save_CC ;; 4151esac 4152fi 4153 4154if test "x$ac_cv_prog_cc_c99" = xno 4155then : 4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4157printf "%s\n" "unsupported" >&6; } 4158else case e in #( 4159 e) if test "x$ac_cv_prog_cc_c99" = x 4160then : 4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4162printf "%s\n" "none needed" >&6; } 4163else case e in #( 4164 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4165printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4166 CC="$CC $ac_cv_prog_cc_c99" ;; 4167esac 4168fi 4169 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4170 ac_prog_cc_stdc=c99 ;; 4171esac 4172fi 4173fi 4174if test x$ac_prog_cc_stdc = xno 4175then : 4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4177printf %s "checking for $CC option to enable C89 features... " >&6; } 4178if test ${ac_cv_prog_cc_c89+y} 4179then : 4180 printf %s "(cached) " >&6 4181else case e in #( 4182 e) ac_cv_prog_cc_c89=no 4183ac_save_CC=$CC 4184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4185/* end confdefs.h. */ 4186$ac_c_conftest_c89_program 4187_ACEOF 4188for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4189do 4190 CC="$ac_save_CC $ac_arg" 4191 if ac_fn_c_try_compile "$LINENO" 4192then : 4193 ac_cv_prog_cc_c89=$ac_arg 4194fi 4195rm -f core conftest.err conftest.$ac_objext conftest.beam 4196 test "x$ac_cv_prog_cc_c89" != "xno" && break 4197done 4198rm -f conftest.$ac_ext 4199CC=$ac_save_CC ;; 4200esac 4201fi 4202 4203if test "x$ac_cv_prog_cc_c89" = xno 4204then : 4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4206printf "%s\n" "unsupported" >&6; } 4207else case e in #( 4208 e) if test "x$ac_cv_prog_cc_c89" = x 4209then : 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4211printf "%s\n" "none needed" >&6; } 4212else case e in #( 4213 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4214printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4215 CC="$CC $ac_cv_prog_cc_c89" ;; 4216esac 4217fi 4218 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4219 ac_prog_cc_stdc=c89 ;; 4220esac 4221fi 4222fi 4223 4224ac_ext=c 4225ac_cpp='$CPP $CPPFLAGS' 4226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4228ac_compiler_gnu=$ac_cv_c_compiler_gnu 4229 4230 4231 ac_ext=c 4232ac_cpp='$CPP $CPPFLAGS' 4233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4235ac_compiler_gnu=$ac_cv_c_compiler_gnu 4236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4237printf %s "checking whether $CC understands -c and -o together... " >&6; } 4238if test ${am_cv_prog_cc_c_o+y} 4239then : 4240 printf %s "(cached) " >&6 4241else case e in #( 4242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244 4245int 4246main (void) 4247{ 4248 4249 ; 4250 return 0; 4251} 4252_ACEOF 4253 # Make sure it works both with $CC and with simple cc. 4254 # Following AC_PROG_CC_C_O, we do the test twice because some 4255 # compilers refuse to overwrite an existing .o file with -o, 4256 # though they will create one. 4257 am_cv_prog_cc_c_o=yes 4258 for am_i in 1 2; do 4259 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4260 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4261 ac_status=$? 4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4263 (exit $ac_status); } \ 4264 && test -f conftest2.$ac_objext; then 4265 : OK 4266 else 4267 am_cv_prog_cc_c_o=no 4268 break 4269 fi 4270 done 4271 rm -f core conftest* 4272 unset am_i ;; 4273esac 4274fi 4275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4276printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4277if test "$am_cv_prog_cc_c_o" != yes; then 4278 # Losing compiler, so override with the script. 4279 # FIXME: It is wrong to rewrite CC. 4280 # But if we don't then we get into trouble of one sort or another. 4281 # A longer-term fix would be to have automake use am__CC in this case, 4282 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4283 CC="$am_aux_dir/compile $CC" 4284fi 4285ac_ext=c 4286ac_cpp='$CPP $CPPFLAGS' 4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4289ac_compiler_gnu=$ac_cv_c_compiler_gnu 4290 4291 4292depcc="$CC" am_compiler_list= 4293 4294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4295printf %s "checking dependency style of $depcc... " >&6; } 4296if test ${am_cv_CC_dependencies_compiler_type+y} 4297then : 4298 printf %s "(cached) " >&6 4299else case e in #( 4300 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4301 # We make a subdir and do the tests there. Otherwise we can end up 4302 # making bogus files that we don't know about and never remove. For 4303 # instance it was reported that on HP-UX the gcc test will end up 4304 # making a dummy file named 'D' -- because '-MD' means "put the output 4305 # in D". 4306 rm -rf conftest.dir 4307 mkdir conftest.dir 4308 # Copy depcomp to subdir because otherwise we won't find it if we're 4309 # using a relative directory. 4310 cp "$am_depcomp" conftest.dir 4311 cd conftest.dir 4312 # We will build objects and dependencies in a subdirectory because 4313 # it helps to detect inapplicable dependency modes. For instance 4314 # both Tru64's cc and ICC support -MD to output dependencies as a 4315 # side effect of compilation, but ICC will put the dependencies in 4316 # the current directory while Tru64 will put them in the object 4317 # directory. 4318 mkdir sub 4319 4320 am_cv_CC_dependencies_compiler_type=none 4321 if test "$am_compiler_list" = ""; then 4322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4323 fi 4324 am__universal=false 4325 case " $depcc " in #( 4326 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4327 esac 4328 4329 for depmode in $am_compiler_list; do 4330 # Setup a source with many dependencies, because some compilers 4331 # like to wrap large dependency lists on column 80 (with \), and 4332 # we should not choose a depcomp mode which is confused by this. 4333 # 4334 # We need to recreate these files for each test, as the compiler may 4335 # overwrite some of them when testing with obscure command lines. 4336 # This happens at least with the AIX C compiler. 4337 : > sub/conftest.c 4338 for i in 1 2 3 4 5 6; do 4339 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4340 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4341 # Solaris 10 /bin/sh. 4342 echo '/* dummy */' > sub/conftst$i.h 4343 done 4344 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4345 4346 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4347 # mode. It turns out that the SunPro C++ compiler does not properly 4348 # handle '-M -o', and we need to detect this. Also, some Intel 4349 # versions had trouble with output in subdirs. 4350 am__obj=sub/conftest.${OBJEXT-o} 4351 am__minus_obj="-o $am__obj" 4352 case $depmode in 4353 gcc) 4354 # This depmode causes a compiler race in universal mode. 4355 test "$am__universal" = false || continue 4356 ;; 4357 nosideeffect) 4358 # After this tag, mechanisms are not by side-effect, so they'll 4359 # only be used when explicitly requested. 4360 if test "x$enable_dependency_tracking" = xyes; then 4361 continue 4362 else 4363 break 4364 fi 4365 ;; 4366 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4367 # This compiler won't grok '-c -o', but also, the minuso test has 4368 # not run yet. These depmodes are late enough in the game, and 4369 # so weak that their functioning should not be impacted. 4370 am__obj=conftest.${OBJEXT-o} 4371 am__minus_obj= 4372 ;; 4373 none) break ;; 4374 esac 4375 if depmode=$depmode \ 4376 source=sub/conftest.c object=$am__obj \ 4377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4378 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4379 >/dev/null 2>conftest.err && 4380 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4382 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4384 # icc doesn't choke on unknown options, it will just issue warnings 4385 # or remarks (even with -Werror). So we grep stderr for any message 4386 # that says an option was ignored or not supported. 4387 # When given -MP, icc 7.0 and 7.1 complain thusly: 4388 # icc: Command line warning: ignoring option '-M'; no argument required 4389 # The diagnosis changed in icc 8.0: 4390 # icc: Command line remark: option '-MP' not supported 4391 if (grep 'ignoring option' conftest.err || 4392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4393 am_cv_CC_dependencies_compiler_type=$depmode 4394 break 4395 fi 4396 fi 4397 done 4398 4399 cd .. 4400 rm -rf conftest.dir 4401else 4402 am_cv_CC_dependencies_compiler_type=none 4403fi 4404 ;; 4405esac 4406fi 4407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4408printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4409CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4410 4411 if 4412 test "x$enable_dependency_tracking" != xno \ 4413 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4414 am__fastdepCC_TRUE= 4415 am__fastdepCC_FALSE='#' 4416else 4417 am__fastdepCC_TRUE='#' 4418 am__fastdepCC_FALSE= 4419fi 4420 4421 4422 4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4424printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4425if test ${ac_cv_c_undeclared_builtin_options+y} 4426then : 4427 printf %s "(cached) " >&6 4428else case e in #( 4429 e) ac_save_CFLAGS=$CFLAGS 4430 ac_cv_c_undeclared_builtin_options='cannot detect' 4431 for ac_arg in '' -fno-builtin; do 4432 CFLAGS="$ac_save_CFLAGS $ac_arg" 4433 # This test program should *not* compile successfully. 4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4435/* end confdefs.h. */ 4436 4437int 4438main (void) 4439{ 4440(void) strchr; 4441 ; 4442 return 0; 4443} 4444_ACEOF 4445if ac_fn_c_try_compile "$LINENO" 4446then : 4447 4448else case e in #( 4449 e) # This test program should compile successfully. 4450 # No library function is consistently available on 4451 # freestanding implementations, so test against a dummy 4452 # declaration. Include always-available headers on the 4453 # off chance that they somehow elicit warnings. 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455/* end confdefs.h. */ 4456#include <float.h> 4457#include <limits.h> 4458#include <stdarg.h> 4459#include <stddef.h> 4460extern void ac_decl (int, char *); 4461 4462int 4463main (void) 4464{ 4465(void) ac_decl (0, (char *) 0); 4466 (void) ac_decl; 4467 4468 ; 4469 return 0; 4470} 4471_ACEOF 4472if ac_fn_c_try_compile "$LINENO" 4473then : 4474 if test x"$ac_arg" = x 4475then : 4476 ac_cv_c_undeclared_builtin_options='none needed' 4477else case e in #( 4478 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4479esac 4480fi 4481 break 4482fi 4483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4484esac 4485fi 4486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4487 done 4488 CFLAGS=$ac_save_CFLAGS 4489 ;; 4490esac 4491fi 4492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4493printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4494 case $ac_cv_c_undeclared_builtin_options in #( 4495 'cannot detect') : 4496 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4497printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4498as_fn_error $? "cannot make $CC report undeclared builtins 4499See 'config.log' for more details" "$LINENO" 5; } ;; #( 4500 'none needed') : 4501 ac_c_undeclared_builtin_options='' ;; #( 4502 *) : 4503 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4504esac 4505 4506ac_header= ac_cache= 4507for ac_item in $ac_header_c_list 4508do 4509 if test $ac_cache; then 4510 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4511 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4512 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4513 fi 4514 ac_header= ac_cache= 4515 elif test $ac_header; then 4516 ac_cache=$ac_item 4517 else 4518 ac_header=$ac_item 4519 fi 4520done 4521 4522 4523 4524 4525 4526 4527 4528 4529if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4530then : 4531 4532printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4533 4534fi 4535 4536 4537 4538 4539ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4540if test "x$ac_cv_have_decl___clang__" = xyes 4541then : 4542 CLANGCC="yes" 4543else case e in #( 4544 e) CLANGCC="no" ;; 4545esac 4546fi 4547ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4548if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4549then : 4550 INTELCC="yes" 4551else case e in #( 4552 e) INTELCC="no" ;; 4553esac 4554fi 4555ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4556if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4557then : 4558 SUNCC="yes" 4559else case e in #( 4560 e) SUNCC="no" ;; 4561esac 4562fi 4563 4564 4565 4566 4567 4568 4569 4570 4571if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4572 if test -n "$ac_tool_prefix"; then 4573 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4574set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4576printf %s "checking for $ac_word... " >&6; } 4577if test ${ac_cv_path_PKG_CONFIG+y} 4578then : 4579 printf %s "(cached) " >&6 4580else case e in #( 4581 e) case $PKG_CONFIG in 4582 [\\/]* | ?:[\\/]*) 4583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4584 ;; 4585 *) 4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH 4588do 4589 IFS=$as_save_IFS 4590 case $as_dir in #((( 4591 '') as_dir=./ ;; 4592 */) ;; 4593 *) as_dir=$as_dir/ ;; 4594 esac 4595 for ac_exec_ext in '' $ac_executable_extensions; do 4596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4597 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4599 break 2 4600 fi 4601done 4602 done 4603IFS=$as_save_IFS 4604 4605 ;; 4606esac ;; 4607esac 4608fi 4609PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4610if test -n "$PKG_CONFIG"; then 4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4612printf "%s\n" "$PKG_CONFIG" >&6; } 4613else 4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4615printf "%s\n" "no" >&6; } 4616fi 4617 4618 4619fi 4620if test -z "$ac_cv_path_PKG_CONFIG"; then 4621 ac_pt_PKG_CONFIG=$PKG_CONFIG 4622 # Extract the first word of "pkg-config", so it can be a program name with args. 4623set dummy pkg-config; ac_word=$2 4624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4625printf %s "checking for $ac_word... " >&6; } 4626if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4627then : 4628 printf %s "(cached) " >&6 4629else case e in #( 4630 e) case $ac_pt_PKG_CONFIG in 4631 [\\/]* | ?:[\\/]*) 4632 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4633 ;; 4634 *) 4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4636for as_dir in $PATH 4637do 4638 IFS=$as_save_IFS 4639 case $as_dir in #((( 4640 '') as_dir=./ ;; 4641 */) ;; 4642 *) as_dir=$as_dir/ ;; 4643 esac 4644 for ac_exec_ext in '' $ac_executable_extensions; do 4645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4646 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4648 break 2 4649 fi 4650done 4651 done 4652IFS=$as_save_IFS 4653 4654 ;; 4655esac ;; 4656esac 4657fi 4658ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4659if test -n "$ac_pt_PKG_CONFIG"; then 4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4661printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4662else 4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4664printf "%s\n" "no" >&6; } 4665fi 4666 4667 if test "x$ac_pt_PKG_CONFIG" = x; then 4668 PKG_CONFIG="" 4669 else 4670 case $cross_compiling:$ac_tool_warned in 4671yes:) 4672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4673printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4674ac_tool_warned=yes ;; 4675esac 4676 PKG_CONFIG=$ac_pt_PKG_CONFIG 4677 fi 4678else 4679 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4680fi 4681 4682fi 4683if test -n "$PKG_CONFIG"; then 4684 _pkg_min_version=0.9.0 4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4686printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4687 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4689printf "%s\n" "yes" >&6; } 4690 else 4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4692printf "%s\n" "no" >&6; } 4693 PKG_CONFIG="" 4694 fi 4695fi 4696 4697 4698 # Make sure we can run config.sub. 4699$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4700 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4701 4702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4703printf %s "checking build system type... " >&6; } 4704if test ${ac_cv_build+y} 4705then : 4706 printf %s "(cached) " >&6 4707else case e in #( 4708 e) ac_build_alias=$build_alias 4709test "x$ac_build_alias" = x && 4710 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4711test "x$ac_build_alias" = x && 4712 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4713ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4714 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4715 ;; 4716esac 4717fi 4718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4719printf "%s\n" "$ac_cv_build" >&6; } 4720case $ac_cv_build in 4721*-*-*) ;; 4722*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4723esac 4724build=$ac_cv_build 4725ac_save_IFS=$IFS; IFS='-' 4726set x $ac_cv_build 4727shift 4728build_cpu=$1 4729build_vendor=$2 4730shift; shift 4731# Remember, the first character of IFS is used to create $*, 4732# except with old shells: 4733build_os=$* 4734IFS=$ac_save_IFS 4735case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4736 4737 4738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4739printf %s "checking host system type... " >&6; } 4740if test ${ac_cv_host+y} 4741then : 4742 printf %s "(cached) " >&6 4743else case e in #( 4744 e) if test "x$host_alias" = x; then 4745 ac_cv_host=$ac_cv_build 4746else 4747 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4748 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4749fi 4750 ;; 4751esac 4752fi 4753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4754printf "%s\n" "$ac_cv_host" >&6; } 4755case $ac_cv_host in 4756*-*-*) ;; 4757*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4758esac 4759host=$ac_cv_host 4760ac_save_IFS=$IFS; IFS='-' 4761set x $ac_cv_host 4762shift 4763host_cpu=$1 4764host_vendor=$2 4765shift; shift 4766# Remember, the first character of IFS is used to create $*, 4767# except with old shells: 4768host_os=$* 4769IFS=$ac_save_IFS 4770case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4771 4772 4773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4774printf %s "checking for a sed that does not truncate output... " >&6; } 4775if test ${ac_cv_path_SED+y} 4776then : 4777 printf %s "(cached) " >&6 4778else case e in #( 4779 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4780 for ac_i in 1 2 3 4 5 6 7; do 4781 ac_script="$ac_script$as_nl$ac_script" 4782 done 4783 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4784 { ac_script=; unset ac_script;} 4785 if test -z "$SED"; then 4786 ac_path_SED_found=false 4787 # Loop through the user's path and test for each of PROGNAME-LIST 4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4789for as_dir in $PATH 4790do 4791 IFS=$as_save_IFS 4792 case $as_dir in #((( 4793 '') as_dir=./ ;; 4794 */) ;; 4795 *) as_dir=$as_dir/ ;; 4796 esac 4797 for ac_prog in sed gsed 4798 do 4799 for ac_exec_ext in '' $ac_executable_extensions; do 4800 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4801 as_fn_executable_p "$ac_path_SED" || continue 4802# Check for GNU ac_path_SED and select it if it is found. 4803 # Check for GNU $ac_path_SED 4804case `"$ac_path_SED" --version 2>&1` in #( 4805*GNU*) 4806 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4807#( 4808*) 4809 ac_count=0 4810 printf %s 0123456789 >"conftest.in" 4811 while : 4812 do 4813 cat "conftest.in" "conftest.in" >"conftest.tmp" 4814 mv "conftest.tmp" "conftest.in" 4815 cp "conftest.in" "conftest.nl" 4816 printf "%s\n" '' >> "conftest.nl" 4817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4819 as_fn_arith $ac_count + 1 && ac_count=$as_val 4820 if test $ac_count -gt ${ac_path_SED_max-0}; then 4821 # Best one so far, save it but keep looking for a better one 4822 ac_cv_path_SED="$ac_path_SED" 4823 ac_path_SED_max=$ac_count 4824 fi 4825 # 10*(2^10) chars as input seems more than enough 4826 test $ac_count -gt 10 && break 4827 done 4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4829esac 4830 4831 $ac_path_SED_found && break 3 4832 done 4833 done 4834 done 4835IFS=$as_save_IFS 4836 if test -z "$ac_cv_path_SED"; then 4837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4838 fi 4839else 4840 ac_cv_path_SED=$SED 4841fi 4842 ;; 4843esac 4844fi 4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4846printf "%s\n" "$ac_cv_path_SED" >&6; } 4847 SED="$ac_cv_path_SED" 4848 rm -f conftest.sed 4849 4850 4851 4852 4853 4854 4855# Check whether --enable-selective-werror was given. 4856if test ${enable_selective_werror+y} 4857then : 4858 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4859else case e in #( 4860 e) SELECTIVE_WERROR=yes ;; 4861esac 4862fi 4863 4864 4865 4866 4867 4868# -v is too short to test reliably with XORG_TESTSET_CFLAG 4869if test "x$SUNCC" = "xyes"; then 4870 BASE_CFLAGS="-v" 4871else 4872 BASE_CFLAGS="" 4873fi 4874 4875# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889xorg_testset_save_CFLAGS="$CFLAGS" 4890 4891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4895if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4896then : 4897 printf %s "(cached) " >&6 4898else case e in #( 4899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4900/* end confdefs.h. */ 4901int i; 4902_ACEOF 4903if ac_fn_c_try_compile "$LINENO" 4904then : 4905 xorg_cv_cc_flag_unknown_warning_option=yes 4906else case e in #( 4907 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4908esac 4909fi 4910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4911esac 4912fi 4913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4914printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4916 CFLAGS="$xorg_testset_save_CFLAGS" 4917fi 4918 4919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4922 fi 4923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4925printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4926if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4927then : 4928 printf %s "(cached) " >&6 4929else case e in #( 4930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4931/* end confdefs.h. */ 4932int i; 4933_ACEOF 4934if ac_fn_c_try_compile "$LINENO" 4935then : 4936 xorg_cv_cc_flag_unused_command_line_argument=yes 4937else case e in #( 4938 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4939esac 4940fi 4941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4942esac 4943fi 4944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4947 CFLAGS="$xorg_testset_save_CFLAGS" 4948fi 4949 4950found="no" 4951 4952 if test $found = "no" ; then 4953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4955 fi 4956 4957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4959 fi 4960 4961 CFLAGS="$CFLAGS -Wall" 4962 4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4964printf %s "checking if $CC supports -Wall... " >&6; } 4965 cacheid=xorg_cv_cc_flag__Wall 4966 if eval test \${$cacheid+y} 4967then : 4968 printf %s "(cached) " >&6 4969else case e in #( 4970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971/* end confdefs.h. */ 4972int i; 4973int 4974main (void) 4975{ 4976 4977 ; 4978 return 0; 4979} 4980_ACEOF 4981if ac_fn_c_try_link "$LINENO" 4982then : 4983 eval $cacheid=yes 4984else case e in #( 4985 e) eval $cacheid=no ;; 4986esac 4987fi 4988rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4989 conftest$ac_exeext conftest.$ac_ext ;; 4990esac 4991fi 4992 4993 4994 CFLAGS="$xorg_testset_save_CFLAGS" 4995 4996 eval supported=\$$cacheid 4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4998printf "%s\n" "$supported" >&6; } 4999 if test "$supported" = "yes" ; then 5000 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5001 found="yes" 5002 fi 5003 fi 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019xorg_testset_save_CFLAGS="$CFLAGS" 5020 5021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5025if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5026then : 5027 printf %s "(cached) " >&6 5028else case e in #( 5029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5030/* end confdefs.h. */ 5031int i; 5032_ACEOF 5033if ac_fn_c_try_compile "$LINENO" 5034then : 5035 xorg_cv_cc_flag_unknown_warning_option=yes 5036else case e in #( 5037 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5038esac 5039fi 5040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5041esac 5042fi 5043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5046 CFLAGS="$xorg_testset_save_CFLAGS" 5047fi 5048 5049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5052 fi 5053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5057then : 5058 printf %s "(cached) " >&6 5059else case e in #( 5060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5061/* end confdefs.h. */ 5062int i; 5063_ACEOF 5064if ac_fn_c_try_compile "$LINENO" 5065then : 5066 xorg_cv_cc_flag_unused_command_line_argument=yes 5067else case e in #( 5068 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5069esac 5070fi 5071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5072esac 5073fi 5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5077 CFLAGS="$xorg_testset_save_CFLAGS" 5078fi 5079 5080found="no" 5081 5082 if test $found = "no" ; then 5083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5085 fi 5086 5087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5089 fi 5090 5091 CFLAGS="$CFLAGS -Wpointer-arith" 5092 5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5094printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5095 cacheid=xorg_cv_cc_flag__Wpointer_arith 5096 if eval test \${$cacheid+y} 5097then : 5098 printf %s "(cached) " >&6 5099else case e in #( 5100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102int i; 5103int 5104main (void) 5105{ 5106 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111if ac_fn_c_try_link "$LINENO" 5112then : 5113 eval $cacheid=yes 5114else case e in #( 5115 e) eval $cacheid=no ;; 5116esac 5117fi 5118rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5119 conftest$ac_exeext conftest.$ac_ext ;; 5120esac 5121fi 5122 5123 5124 CFLAGS="$xorg_testset_save_CFLAGS" 5125 5126 eval supported=\$$cacheid 5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5128printf "%s\n" "$supported" >&6; } 5129 if test "$supported" = "yes" ; then 5130 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5131 found="yes" 5132 fi 5133 fi 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149xorg_testset_save_CFLAGS="$CFLAGS" 5150 5151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5155if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5156then : 5157 printf %s "(cached) " >&6 5158else case e in #( 5159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5160/* end confdefs.h. */ 5161int i; 5162_ACEOF 5163if ac_fn_c_try_compile "$LINENO" 5164then : 5165 xorg_cv_cc_flag_unknown_warning_option=yes 5166else case e in #( 5167 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5168esac 5169fi 5170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5171esac 5172fi 5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5174printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5176 CFLAGS="$xorg_testset_save_CFLAGS" 5177fi 5178 5179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5182 fi 5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5185printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5186if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5187then : 5188 printf %s "(cached) " >&6 5189else case e in #( 5190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5191/* end confdefs.h. */ 5192int i; 5193_ACEOF 5194if ac_fn_c_try_compile "$LINENO" 5195then : 5196 xorg_cv_cc_flag_unused_command_line_argument=yes 5197else case e in #( 5198 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5199esac 5200fi 5201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5202esac 5203fi 5204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5205printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5207 CFLAGS="$xorg_testset_save_CFLAGS" 5208fi 5209 5210found="no" 5211 5212 if test $found = "no" ; then 5213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5215 fi 5216 5217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5219 fi 5220 5221 CFLAGS="$CFLAGS -Wmissing-declarations" 5222 5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5224printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5225 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5226 if eval test \${$cacheid+y} 5227then : 5228 printf %s "(cached) " >&6 5229else case e in #( 5230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232int i; 5233int 5234main (void) 5235{ 5236 5237 ; 5238 return 0; 5239} 5240_ACEOF 5241if ac_fn_c_try_link "$LINENO" 5242then : 5243 eval $cacheid=yes 5244else case e in #( 5245 e) eval $cacheid=no ;; 5246esac 5247fi 5248rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5249 conftest$ac_exeext conftest.$ac_ext ;; 5250esac 5251fi 5252 5253 5254 CFLAGS="$xorg_testset_save_CFLAGS" 5255 5256 eval supported=\$$cacheid 5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5258printf "%s\n" "$supported" >&6; } 5259 if test "$supported" = "yes" ; then 5260 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5261 found="yes" 5262 fi 5263 fi 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279xorg_testset_save_CFLAGS="$CFLAGS" 5280 5281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5284printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5285if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5286then : 5287 printf %s "(cached) " >&6 5288else case e in #( 5289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5290/* end confdefs.h. */ 5291int i; 5292_ACEOF 5293if ac_fn_c_try_compile "$LINENO" 5294then : 5295 xorg_cv_cc_flag_unknown_warning_option=yes 5296else case e in #( 5297 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5298esac 5299fi 5300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5301esac 5302fi 5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5306 CFLAGS="$xorg_testset_save_CFLAGS" 5307fi 5308 5309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 fi 5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5316if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5317then : 5318 printf %s "(cached) " >&6 5319else case e in #( 5320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322int i; 5323_ACEOF 5324if ac_fn_c_try_compile "$LINENO" 5325then : 5326 xorg_cv_cc_flag_unused_command_line_argument=yes 5327else case e in #( 5328 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5329esac 5330fi 5331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5332esac 5333fi 5334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5335printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5337 CFLAGS="$xorg_testset_save_CFLAGS" 5338fi 5339 5340found="no" 5341 5342 if test $found = "no" ; then 5343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5345 fi 5346 5347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5349 fi 5350 5351 CFLAGS="$CFLAGS -Wformat=2" 5352 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5354printf %s "checking if $CC supports -Wformat=2... " >&6; } 5355 cacheid=xorg_cv_cc_flag__Wformat_2 5356 if eval test \${$cacheid+y} 5357then : 5358 printf %s "(cached) " >&6 5359else case e in #( 5360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5361/* end confdefs.h. */ 5362int i; 5363int 5364main (void) 5365{ 5366 5367 ; 5368 return 0; 5369} 5370_ACEOF 5371if ac_fn_c_try_link "$LINENO" 5372then : 5373 eval $cacheid=yes 5374else case e in #( 5375 e) eval $cacheid=no ;; 5376esac 5377fi 5378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5379 conftest$ac_exeext conftest.$ac_ext ;; 5380esac 5381fi 5382 5383 5384 CFLAGS="$xorg_testset_save_CFLAGS" 5385 5386 eval supported=\$$cacheid 5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5388printf "%s\n" "$supported" >&6; } 5389 if test "$supported" = "yes" ; then 5390 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5391 found="yes" 5392 fi 5393 fi 5394 5395 if test $found = "no" ; then 5396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5398 fi 5399 5400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5402 fi 5403 5404 CFLAGS="$CFLAGS -Wformat" 5405 5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5407printf %s "checking if $CC supports -Wformat... " >&6; } 5408 cacheid=xorg_cv_cc_flag__Wformat 5409 if eval test \${$cacheid+y} 5410then : 5411 printf %s "(cached) " >&6 5412else case e in #( 5413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5414/* end confdefs.h. */ 5415int i; 5416int 5417main (void) 5418{ 5419 5420 ; 5421 return 0; 5422} 5423_ACEOF 5424if ac_fn_c_try_link "$LINENO" 5425then : 5426 eval $cacheid=yes 5427else case e in #( 5428 e) eval $cacheid=no ;; 5429esac 5430fi 5431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5432 conftest$ac_exeext conftest.$ac_ext ;; 5433esac 5434fi 5435 5436 5437 CFLAGS="$xorg_testset_save_CFLAGS" 5438 5439 eval supported=\$$cacheid 5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5441printf "%s\n" "$supported" >&6; } 5442 if test "$supported" = "yes" ; then 5443 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5444 found="yes" 5445 fi 5446 fi 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464xorg_testset_save_CFLAGS="$CFLAGS" 5465 5466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5470if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5471then : 5472 printf %s "(cached) " >&6 5473else case e in #( 5474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475/* end confdefs.h. */ 5476int i; 5477_ACEOF 5478if ac_fn_c_try_compile "$LINENO" 5479then : 5480 xorg_cv_cc_flag_unknown_warning_option=yes 5481else case e in #( 5482 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5483esac 5484fi 5485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5486esac 5487fi 5488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5491 CFLAGS="$xorg_testset_save_CFLAGS" 5492fi 5493 5494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5497 fi 5498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5501if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5502then : 5503 printf %s "(cached) " >&6 5504else case e in #( 5505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507int i; 5508_ACEOF 5509if ac_fn_c_try_compile "$LINENO" 5510then : 5511 xorg_cv_cc_flag_unused_command_line_argument=yes 5512else case e in #( 5513 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5514esac 5515fi 5516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5517esac 5518fi 5519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5520printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5522 CFLAGS="$xorg_testset_save_CFLAGS" 5523fi 5524 5525found="no" 5526 5527 if test $found = "no" ; then 5528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5530 fi 5531 5532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5534 fi 5535 5536 CFLAGS="$CFLAGS -Wstrict-prototypes" 5537 5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5539printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5540 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5541 if eval test \${$cacheid+y} 5542then : 5543 printf %s "(cached) " >&6 5544else case e in #( 5545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5546/* end confdefs.h. */ 5547int i; 5548int 5549main (void) 5550{ 5551 5552 ; 5553 return 0; 5554} 5555_ACEOF 5556if ac_fn_c_try_link "$LINENO" 5557then : 5558 eval $cacheid=yes 5559else case e in #( 5560 e) eval $cacheid=no ;; 5561esac 5562fi 5563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5564 conftest$ac_exeext conftest.$ac_ext ;; 5565esac 5566fi 5567 5568 5569 CFLAGS="$xorg_testset_save_CFLAGS" 5570 5571 eval supported=\$$cacheid 5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5573printf "%s\n" "$supported" >&6; } 5574 if test "$supported" = "yes" ; then 5575 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5576 found="yes" 5577 fi 5578 fi 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594xorg_testset_save_CFLAGS="$CFLAGS" 5595 5596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5600if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5601then : 5602 printf %s "(cached) " >&6 5603else case e in #( 5604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605/* end confdefs.h. */ 5606int i; 5607_ACEOF 5608if ac_fn_c_try_compile "$LINENO" 5609then : 5610 xorg_cv_cc_flag_unknown_warning_option=yes 5611else case e in #( 5612 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5613esac 5614fi 5615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5616esac 5617fi 5618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5619printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5621 CFLAGS="$xorg_testset_save_CFLAGS" 5622fi 5623 5624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5627 fi 5628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5630printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5631if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5632then : 5633 printf %s "(cached) " >&6 5634else case e in #( 5635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637int i; 5638_ACEOF 5639if ac_fn_c_try_compile "$LINENO" 5640then : 5641 xorg_cv_cc_flag_unused_command_line_argument=yes 5642else case e in #( 5643 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5644esac 5645fi 5646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5647esac 5648fi 5649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5650printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5652 CFLAGS="$xorg_testset_save_CFLAGS" 5653fi 5654 5655found="no" 5656 5657 if test $found = "no" ; then 5658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5660 fi 5661 5662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5664 fi 5665 5666 CFLAGS="$CFLAGS -Wmissing-prototypes" 5667 5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5669printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5670 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5671 if eval test \${$cacheid+y} 5672then : 5673 printf %s "(cached) " >&6 5674else case e in #( 5675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5676/* end confdefs.h. */ 5677int i; 5678int 5679main (void) 5680{ 5681 5682 ; 5683 return 0; 5684} 5685_ACEOF 5686if ac_fn_c_try_link "$LINENO" 5687then : 5688 eval $cacheid=yes 5689else case e in #( 5690 e) eval $cacheid=no ;; 5691esac 5692fi 5693rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5694 conftest$ac_exeext conftest.$ac_ext ;; 5695esac 5696fi 5697 5698 5699 CFLAGS="$xorg_testset_save_CFLAGS" 5700 5701 eval supported=\$$cacheid 5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5703printf "%s\n" "$supported" >&6; } 5704 if test "$supported" = "yes" ; then 5705 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5706 found="yes" 5707 fi 5708 fi 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724xorg_testset_save_CFLAGS="$CFLAGS" 5725 5726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5729printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5730if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5731then : 5732 printf %s "(cached) " >&6 5733else case e in #( 5734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735/* end confdefs.h. */ 5736int i; 5737_ACEOF 5738if ac_fn_c_try_compile "$LINENO" 5739then : 5740 xorg_cv_cc_flag_unknown_warning_option=yes 5741else case e in #( 5742 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5743esac 5744fi 5745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5746esac 5747fi 5748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5749printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5751 CFLAGS="$xorg_testset_save_CFLAGS" 5752fi 5753 5754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5757 fi 5758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5760printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5761if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5762then : 5763 printf %s "(cached) " >&6 5764else case e in #( 5765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766/* end confdefs.h. */ 5767int i; 5768_ACEOF 5769if ac_fn_c_try_compile "$LINENO" 5770then : 5771 xorg_cv_cc_flag_unused_command_line_argument=yes 5772else case e in #( 5773 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5774esac 5775fi 5776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5777esac 5778fi 5779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5780printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5782 CFLAGS="$xorg_testset_save_CFLAGS" 5783fi 5784 5785found="no" 5786 5787 if test $found = "no" ; then 5788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5790 fi 5791 5792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5794 fi 5795 5796 CFLAGS="$CFLAGS -Wnested-externs" 5797 5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5799printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5800 cacheid=xorg_cv_cc_flag__Wnested_externs 5801 if eval test \${$cacheid+y} 5802then : 5803 printf %s "(cached) " >&6 5804else case e in #( 5805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5806/* end confdefs.h. */ 5807int i; 5808int 5809main (void) 5810{ 5811 5812 ; 5813 return 0; 5814} 5815_ACEOF 5816if ac_fn_c_try_link "$LINENO" 5817then : 5818 eval $cacheid=yes 5819else case e in #( 5820 e) eval $cacheid=no ;; 5821esac 5822fi 5823rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5824 conftest$ac_exeext conftest.$ac_ext ;; 5825esac 5826fi 5827 5828 5829 CFLAGS="$xorg_testset_save_CFLAGS" 5830 5831 eval supported=\$$cacheid 5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5833printf "%s\n" "$supported" >&6; } 5834 if test "$supported" = "yes" ; then 5835 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5836 found="yes" 5837 fi 5838 fi 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854xorg_testset_save_CFLAGS="$CFLAGS" 5855 5856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5859printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5860if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5861then : 5862 printf %s "(cached) " >&6 5863else case e in #( 5864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5865/* end confdefs.h. */ 5866int i; 5867_ACEOF 5868if ac_fn_c_try_compile "$LINENO" 5869then : 5870 xorg_cv_cc_flag_unknown_warning_option=yes 5871else case e in #( 5872 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5873esac 5874fi 5875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5876esac 5877fi 5878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5879printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5881 CFLAGS="$xorg_testset_save_CFLAGS" 5882fi 5883 5884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5887 fi 5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5890printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5891if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5892then : 5893 printf %s "(cached) " >&6 5894else case e in #( 5895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896/* end confdefs.h. */ 5897int i; 5898_ACEOF 5899if ac_fn_c_try_compile "$LINENO" 5900then : 5901 xorg_cv_cc_flag_unused_command_line_argument=yes 5902else case e in #( 5903 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5904esac 5905fi 5906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5907esac 5908fi 5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5912 CFLAGS="$xorg_testset_save_CFLAGS" 5913fi 5914 5915found="no" 5916 5917 if test $found = "no" ; then 5918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5920 fi 5921 5922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5924 fi 5925 5926 CFLAGS="$CFLAGS -Wbad-function-cast" 5927 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5929printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5930 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5931 if eval test \${$cacheid+y} 5932then : 5933 printf %s "(cached) " >&6 5934else case e in #( 5935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937int i; 5938int 5939main (void) 5940{ 5941 5942 ; 5943 return 0; 5944} 5945_ACEOF 5946if ac_fn_c_try_link "$LINENO" 5947then : 5948 eval $cacheid=yes 5949else case e in #( 5950 e) eval $cacheid=no ;; 5951esac 5952fi 5953rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5954 conftest$ac_exeext conftest.$ac_ext ;; 5955esac 5956fi 5957 5958 5959 CFLAGS="$xorg_testset_save_CFLAGS" 5960 5961 eval supported=\$$cacheid 5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5963printf "%s\n" "$supported" >&6; } 5964 if test "$supported" = "yes" ; then 5965 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5966 found="yes" 5967 fi 5968 fi 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984xorg_testset_save_CFLAGS="$CFLAGS" 5985 5986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5990if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5991then : 5992 printf %s "(cached) " >&6 5993else case e in #( 5994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5995/* end confdefs.h. */ 5996int i; 5997_ACEOF 5998if ac_fn_c_try_compile "$LINENO" 5999then : 6000 xorg_cv_cc_flag_unknown_warning_option=yes 6001else case e in #( 6002 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6003esac 6004fi 6005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6006esac 6007fi 6008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6009printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6011 CFLAGS="$xorg_testset_save_CFLAGS" 6012fi 6013 6014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6017 fi 6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6020printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6021if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6022then : 6023 printf %s "(cached) " >&6 6024else case e in #( 6025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6026/* end confdefs.h. */ 6027int i; 6028_ACEOF 6029if ac_fn_c_try_compile "$LINENO" 6030then : 6031 xorg_cv_cc_flag_unused_command_line_argument=yes 6032else case e in #( 6033 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6034esac 6035fi 6036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6037esac 6038fi 6039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6042 CFLAGS="$xorg_testset_save_CFLAGS" 6043fi 6044 6045found="no" 6046 6047 if test $found = "no" ; then 6048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6050 fi 6051 6052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6054 fi 6055 6056 CFLAGS="$CFLAGS -Wold-style-definition" 6057 6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6059printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6060 cacheid=xorg_cv_cc_flag__Wold_style_definition 6061 if eval test \${$cacheid+y} 6062then : 6063 printf %s "(cached) " >&6 6064else case e in #( 6065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6066/* end confdefs.h. */ 6067int i; 6068int 6069main (void) 6070{ 6071 6072 ; 6073 return 0; 6074} 6075_ACEOF 6076if ac_fn_c_try_link "$LINENO" 6077then : 6078 eval $cacheid=yes 6079else case e in #( 6080 e) eval $cacheid=no ;; 6081esac 6082fi 6083rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6084 conftest$ac_exeext conftest.$ac_ext ;; 6085esac 6086fi 6087 6088 6089 CFLAGS="$xorg_testset_save_CFLAGS" 6090 6091 eval supported=\$$cacheid 6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6093printf "%s\n" "$supported" >&6; } 6094 if test "$supported" = "yes" ; then 6095 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6096 found="yes" 6097 fi 6098 fi 6099 6100 if test $found = "no" ; then 6101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6103 fi 6104 6105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6107 fi 6108 6109 CFLAGS="$CFLAGS -fd" 6110 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6112printf %s "checking if $CC supports -fd... " >&6; } 6113 cacheid=xorg_cv_cc_flag__fd 6114 if eval test \${$cacheid+y} 6115then : 6116 printf %s "(cached) " >&6 6117else case e in #( 6118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119/* end confdefs.h. */ 6120int i; 6121int 6122main (void) 6123{ 6124 6125 ; 6126 return 0; 6127} 6128_ACEOF 6129if ac_fn_c_try_link "$LINENO" 6130then : 6131 eval $cacheid=yes 6132else case e in #( 6133 e) eval $cacheid=no ;; 6134esac 6135fi 6136rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6137 conftest$ac_exeext conftest.$ac_ext ;; 6138esac 6139fi 6140 6141 6142 CFLAGS="$xorg_testset_save_CFLAGS" 6143 6144 eval supported=\$$cacheid 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6146printf "%s\n" "$supported" >&6; } 6147 if test "$supported" = "yes" ; then 6148 BASE_CFLAGS="$BASE_CFLAGS -fd" 6149 found="yes" 6150 fi 6151 fi 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167xorg_testset_save_CFLAGS="$CFLAGS" 6168 6169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6172printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6173if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6174then : 6175 printf %s "(cached) " >&6 6176else case e in #( 6177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6178/* end confdefs.h. */ 6179int i; 6180_ACEOF 6181if ac_fn_c_try_compile "$LINENO" 6182then : 6183 xorg_cv_cc_flag_unknown_warning_option=yes 6184else case e in #( 6185 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6186esac 6187fi 6188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6189esac 6190fi 6191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6192printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6194 CFLAGS="$xorg_testset_save_CFLAGS" 6195fi 6196 6197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6200 fi 6201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6203printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6204if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6205then : 6206 printf %s "(cached) " >&6 6207else case e in #( 6208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6209/* end confdefs.h. */ 6210int i; 6211_ACEOF 6212if ac_fn_c_try_compile "$LINENO" 6213then : 6214 xorg_cv_cc_flag_unused_command_line_argument=yes 6215else case e in #( 6216 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6217esac 6218fi 6219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6220esac 6221fi 6222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6223printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6225 CFLAGS="$xorg_testset_save_CFLAGS" 6226fi 6227 6228found="no" 6229 6230 if test $found = "no" ; then 6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6233 fi 6234 6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6237 fi 6238 6239 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6240 6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6242printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6243 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6244 if eval test \${$cacheid+y} 6245then : 6246 printf %s "(cached) " >&6 6247else case e in #( 6248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6249/* end confdefs.h. */ 6250int i; 6251int 6252main (void) 6253{ 6254 6255 ; 6256 return 0; 6257} 6258_ACEOF 6259if ac_fn_c_try_link "$LINENO" 6260then : 6261 eval $cacheid=yes 6262else case e in #( 6263 e) eval $cacheid=no ;; 6264esac 6265fi 6266rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6267 conftest$ac_exeext conftest.$ac_ext ;; 6268esac 6269fi 6270 6271 6272 CFLAGS="$xorg_testset_save_CFLAGS" 6273 6274 eval supported=\$$cacheid 6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6276printf "%s\n" "$supported" >&6; } 6277 if test "$supported" = "yes" ; then 6278 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6279 found="yes" 6280 fi 6281 fi 6282 6283 6284 6285 6286 6287# This chunk adds additional warnings that could catch undesired effects. 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301xorg_testset_save_CFLAGS="$CFLAGS" 6302 6303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6306printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6307if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6308then : 6309 printf %s "(cached) " >&6 6310else case e in #( 6311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312/* end confdefs.h. */ 6313int i; 6314_ACEOF 6315if ac_fn_c_try_compile "$LINENO" 6316then : 6317 xorg_cv_cc_flag_unknown_warning_option=yes 6318else case e in #( 6319 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6320esac 6321fi 6322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6323esac 6324fi 6325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6326printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6328 CFLAGS="$xorg_testset_save_CFLAGS" 6329fi 6330 6331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6334 fi 6335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6337printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6338if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6339then : 6340 printf %s "(cached) " >&6 6341else case e in #( 6342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343/* end confdefs.h. */ 6344int i; 6345_ACEOF 6346if ac_fn_c_try_compile "$LINENO" 6347then : 6348 xorg_cv_cc_flag_unused_command_line_argument=yes 6349else case e in #( 6350 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6351esac 6352fi 6353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6354esac 6355fi 6356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360fi 6361 6362found="no" 6363 6364 if test $found = "no" ; then 6365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 fi 6368 6369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6371 fi 6372 6373 CFLAGS="$CFLAGS -Wunused" 6374 6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6376printf %s "checking if $CC supports -Wunused... " >&6; } 6377 cacheid=xorg_cv_cc_flag__Wunused 6378 if eval test \${$cacheid+y} 6379then : 6380 printf %s "(cached) " >&6 6381else case e in #( 6382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6383/* end confdefs.h. */ 6384int i; 6385int 6386main (void) 6387{ 6388 6389 ; 6390 return 0; 6391} 6392_ACEOF 6393if ac_fn_c_try_link "$LINENO" 6394then : 6395 eval $cacheid=yes 6396else case e in #( 6397 e) eval $cacheid=no ;; 6398esac 6399fi 6400rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6401 conftest$ac_exeext conftest.$ac_ext ;; 6402esac 6403fi 6404 6405 6406 CFLAGS="$xorg_testset_save_CFLAGS" 6407 6408 eval supported=\$$cacheid 6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6410printf "%s\n" "$supported" >&6; } 6411 if test "$supported" = "yes" ; then 6412 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6413 found="yes" 6414 fi 6415 fi 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431xorg_testset_save_CFLAGS="$CFLAGS" 6432 6433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6436printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6437if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6438then : 6439 printf %s "(cached) " >&6 6440else case e in #( 6441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6442/* end confdefs.h. */ 6443int i; 6444_ACEOF 6445if ac_fn_c_try_compile "$LINENO" 6446then : 6447 xorg_cv_cc_flag_unknown_warning_option=yes 6448else case e in #( 6449 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6450esac 6451fi 6452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6453esac 6454fi 6455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6456printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6458 CFLAGS="$xorg_testset_save_CFLAGS" 6459fi 6460 6461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6464 fi 6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6467printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6468if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6469then : 6470 printf %s "(cached) " >&6 6471else case e in #( 6472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474int i; 6475_ACEOF 6476if ac_fn_c_try_compile "$LINENO" 6477then : 6478 xorg_cv_cc_flag_unused_command_line_argument=yes 6479else case e in #( 6480 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6481esac 6482fi 6483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6484esac 6485fi 6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490fi 6491 6492found="no" 6493 6494 if test $found = "no" ; then 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 fi 6498 6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6501 fi 6502 6503 CFLAGS="$CFLAGS -Wuninitialized" 6504 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6506printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6507 cacheid=xorg_cv_cc_flag__Wuninitialized 6508 if eval test \${$cacheid+y} 6509then : 6510 printf %s "(cached) " >&6 6511else case e in #( 6512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513/* end confdefs.h. */ 6514int i; 6515int 6516main (void) 6517{ 6518 6519 ; 6520 return 0; 6521} 6522_ACEOF 6523if ac_fn_c_try_link "$LINENO" 6524then : 6525 eval $cacheid=yes 6526else case e in #( 6527 e) eval $cacheid=no ;; 6528esac 6529fi 6530rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6531 conftest$ac_exeext conftest.$ac_ext ;; 6532esac 6533fi 6534 6535 6536 CFLAGS="$xorg_testset_save_CFLAGS" 6537 6538 eval supported=\$$cacheid 6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6540printf "%s\n" "$supported" >&6; } 6541 if test "$supported" = "yes" ; then 6542 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6543 found="yes" 6544 fi 6545 fi 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561xorg_testset_save_CFLAGS="$CFLAGS" 6562 6563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6567if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6568then : 6569 printf %s "(cached) " >&6 6570else case e in #( 6571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572/* end confdefs.h. */ 6573int i; 6574_ACEOF 6575if ac_fn_c_try_compile "$LINENO" 6576then : 6577 xorg_cv_cc_flag_unknown_warning_option=yes 6578else case e in #( 6579 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6580esac 6581fi 6582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6583esac 6584fi 6585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6588 CFLAGS="$xorg_testset_save_CFLAGS" 6589fi 6590 6591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6594 fi 6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6598if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6599then : 6600 printf %s "(cached) " >&6 6601else case e in #( 6602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6603/* end confdefs.h. */ 6604int i; 6605_ACEOF 6606if ac_fn_c_try_compile "$LINENO" 6607then : 6608 xorg_cv_cc_flag_unused_command_line_argument=yes 6609else case e in #( 6610 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6611esac 6612fi 6613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6614esac 6615fi 6616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6617printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620fi 6621 6622found="no" 6623 6624 if test $found = "no" ; then 6625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6627 fi 6628 6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6631 fi 6632 6633 CFLAGS="$CFLAGS -Wshadow" 6634 6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6636printf %s "checking if $CC supports -Wshadow... " >&6; } 6637 cacheid=xorg_cv_cc_flag__Wshadow 6638 if eval test \${$cacheid+y} 6639then : 6640 printf %s "(cached) " >&6 6641else case e in #( 6642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643/* end confdefs.h. */ 6644int i; 6645int 6646main (void) 6647{ 6648 6649 ; 6650 return 0; 6651} 6652_ACEOF 6653if ac_fn_c_try_link "$LINENO" 6654then : 6655 eval $cacheid=yes 6656else case e in #( 6657 e) eval $cacheid=no ;; 6658esac 6659fi 6660rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6661 conftest$ac_exeext conftest.$ac_ext ;; 6662esac 6663fi 6664 6665 6666 CFLAGS="$xorg_testset_save_CFLAGS" 6667 6668 eval supported=\$$cacheid 6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6670printf "%s\n" "$supported" >&6; } 6671 if test "$supported" = "yes" ; then 6672 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6673 found="yes" 6674 fi 6675 fi 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691xorg_testset_save_CFLAGS="$CFLAGS" 6692 6693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6697if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6698then : 6699 printf %s "(cached) " >&6 6700else case e in #( 6701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702/* end confdefs.h. */ 6703int i; 6704_ACEOF 6705if ac_fn_c_try_compile "$LINENO" 6706then : 6707 xorg_cv_cc_flag_unknown_warning_option=yes 6708else case e in #( 6709 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6710esac 6711fi 6712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6713esac 6714fi 6715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6718 CFLAGS="$xorg_testset_save_CFLAGS" 6719fi 6720 6721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6724 fi 6725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6728if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6729then : 6730 printf %s "(cached) " >&6 6731else case e in #( 6732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6733/* end confdefs.h. */ 6734int i; 6735_ACEOF 6736if ac_fn_c_try_compile "$LINENO" 6737then : 6738 xorg_cv_cc_flag_unused_command_line_argument=yes 6739else case e in #( 6740 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6741esac 6742fi 6743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6744esac 6745fi 6746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6749 CFLAGS="$xorg_testset_save_CFLAGS" 6750fi 6751 6752found="no" 6753 6754 if test $found = "no" ; then 6755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757 fi 6758 6759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6761 fi 6762 6763 CFLAGS="$CFLAGS -Wmissing-noreturn" 6764 6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6766printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6767 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6768 if eval test \${$cacheid+y} 6769then : 6770 printf %s "(cached) " >&6 6771else case e in #( 6772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6773/* end confdefs.h. */ 6774int i; 6775int 6776main (void) 6777{ 6778 6779 ; 6780 return 0; 6781} 6782_ACEOF 6783if ac_fn_c_try_link "$LINENO" 6784then : 6785 eval $cacheid=yes 6786else case e in #( 6787 e) eval $cacheid=no ;; 6788esac 6789fi 6790rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6791 conftest$ac_exeext conftest.$ac_ext ;; 6792esac 6793fi 6794 6795 6796 CFLAGS="$xorg_testset_save_CFLAGS" 6797 6798 eval supported=\$$cacheid 6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6800printf "%s\n" "$supported" >&6; } 6801 if test "$supported" = "yes" ; then 6802 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6803 found="yes" 6804 fi 6805 fi 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821xorg_testset_save_CFLAGS="$CFLAGS" 6822 6823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6827if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6828then : 6829 printf %s "(cached) " >&6 6830else case e in #( 6831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833int i; 6834_ACEOF 6835if ac_fn_c_try_compile "$LINENO" 6836then : 6837 xorg_cv_cc_flag_unknown_warning_option=yes 6838else case e in #( 6839 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6840esac 6841fi 6842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6843esac 6844fi 6845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6848 CFLAGS="$xorg_testset_save_CFLAGS" 6849fi 6850 6851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6854 fi 6855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6858if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6859then : 6860 printf %s "(cached) " >&6 6861else case e in #( 6862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6863/* end confdefs.h. */ 6864int i; 6865_ACEOF 6866if ac_fn_c_try_compile "$LINENO" 6867then : 6868 xorg_cv_cc_flag_unused_command_line_argument=yes 6869else case e in #( 6870 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6871esac 6872fi 6873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6874esac 6875fi 6876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6879 CFLAGS="$xorg_testset_save_CFLAGS" 6880fi 6881 6882found="no" 6883 6884 if test $found = "no" ; then 6885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6887 fi 6888 6889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6891 fi 6892 6893 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6894 6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6896printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6897 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6898 if eval test \${$cacheid+y} 6899then : 6900 printf %s "(cached) " >&6 6901else case e in #( 6902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904int i; 6905int 6906main (void) 6907{ 6908 6909 ; 6910 return 0; 6911} 6912_ACEOF 6913if ac_fn_c_try_link "$LINENO" 6914then : 6915 eval $cacheid=yes 6916else case e in #( 6917 e) eval $cacheid=no ;; 6918esac 6919fi 6920rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6921 conftest$ac_exeext conftest.$ac_ext ;; 6922esac 6923fi 6924 6925 6926 CFLAGS="$xorg_testset_save_CFLAGS" 6927 6928 eval supported=\$$cacheid 6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6930printf "%s\n" "$supported" >&6; } 6931 if test "$supported" = "yes" ; then 6932 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6933 found="yes" 6934 fi 6935 fi 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951xorg_testset_save_CFLAGS="$CFLAGS" 6952 6953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6957if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6958then : 6959 printf %s "(cached) " >&6 6960else case e in #( 6961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6962/* end confdefs.h. */ 6963int i; 6964_ACEOF 6965if ac_fn_c_try_compile "$LINENO" 6966then : 6967 xorg_cv_cc_flag_unknown_warning_option=yes 6968else case e in #( 6969 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6970esac 6971fi 6972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6973esac 6974fi 6975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6978 CFLAGS="$xorg_testset_save_CFLAGS" 6979fi 6980 6981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6984 fi 6985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6988if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6989then : 6990 printf %s "(cached) " >&6 6991else case e in #( 6992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6993/* end confdefs.h. */ 6994int i; 6995_ACEOF 6996if ac_fn_c_try_compile "$LINENO" 6997then : 6998 xorg_cv_cc_flag_unused_command_line_argument=yes 6999else case e in #( 7000 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7001esac 7002fi 7003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7004esac 7005fi 7006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7009 CFLAGS="$xorg_testset_save_CFLAGS" 7010fi 7011 7012found="no" 7013 7014 if test $found = "no" ; then 7015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7017 fi 7018 7019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7021 fi 7022 7023 CFLAGS="$CFLAGS -Wredundant-decls" 7024 7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7026printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7027 cacheid=xorg_cv_cc_flag__Wredundant_decls 7028 if eval test \${$cacheid+y} 7029then : 7030 printf %s "(cached) " >&6 7031else case e in #( 7032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7033/* end confdefs.h. */ 7034int i; 7035int 7036main (void) 7037{ 7038 7039 ; 7040 return 0; 7041} 7042_ACEOF 7043if ac_fn_c_try_link "$LINENO" 7044then : 7045 eval $cacheid=yes 7046else case e in #( 7047 e) eval $cacheid=no ;; 7048esac 7049fi 7050rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7051 conftest$ac_exeext conftest.$ac_ext ;; 7052esac 7053fi 7054 7055 7056 CFLAGS="$xorg_testset_save_CFLAGS" 7057 7058 eval supported=\$$cacheid 7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7060printf "%s\n" "$supported" >&6; } 7061 if test "$supported" = "yes" ; then 7062 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7063 found="yes" 7064 fi 7065 fi 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081xorg_testset_save_CFLAGS="$CFLAGS" 7082 7083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7087if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7088then : 7089 printf %s "(cached) " >&6 7090else case e in #( 7091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092/* end confdefs.h. */ 7093int i; 7094_ACEOF 7095if ac_fn_c_try_compile "$LINENO" 7096then : 7097 xorg_cv_cc_flag_unknown_warning_option=yes 7098else case e in #( 7099 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7100esac 7101fi 7102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7103esac 7104fi 7105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7108 CFLAGS="$xorg_testset_save_CFLAGS" 7109fi 7110 7111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7114 fi 7115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7118if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7119then : 7120 printf %s "(cached) " >&6 7121else case e in #( 7122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123/* end confdefs.h. */ 7124int i; 7125_ACEOF 7126if ac_fn_c_try_compile "$LINENO" 7127then : 7128 xorg_cv_cc_flag_unused_command_line_argument=yes 7129else case e in #( 7130 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7131esac 7132fi 7133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7134esac 7135fi 7136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7139 CFLAGS="$xorg_testset_save_CFLAGS" 7140fi 7141 7142found="no" 7143 7144 if test $found = "no" ; then 7145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7147 fi 7148 7149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7151 fi 7152 7153 CFLAGS="$CFLAGS -Wlogical-op" 7154 7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7156printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7157 cacheid=xorg_cv_cc_flag__Wlogical_op 7158 if eval test \${$cacheid+y} 7159then : 7160 printf %s "(cached) " >&6 7161else case e in #( 7162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7163/* end confdefs.h. */ 7164int i; 7165int 7166main (void) 7167{ 7168 7169 ; 7170 return 0; 7171} 7172_ACEOF 7173if ac_fn_c_try_link "$LINENO" 7174then : 7175 eval $cacheid=yes 7176else case e in #( 7177 e) eval $cacheid=no ;; 7178esac 7179fi 7180rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7181 conftest$ac_exeext conftest.$ac_ext ;; 7182esac 7183fi 7184 7185 7186 CFLAGS="$xorg_testset_save_CFLAGS" 7187 7188 eval supported=\$$cacheid 7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7190printf "%s\n" "$supported" >&6; } 7191 if test "$supported" = "yes" ; then 7192 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7193 found="yes" 7194 fi 7195 fi 7196 7197 7198 7199# These are currently disabled because they are noisy. They will be enabled 7200# in the future once the codebase is sufficiently modernized to silence 7201# them. For now, I don't want them to drown out the other warnings. 7202# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7203# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7204# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7205 7206# Turn some warnings into errors, so we don't accidentally get successful builds 7207# when there are problems that should be fixed. 7208 7209if test "x$SELECTIVE_WERROR" = "xyes" ; then 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223xorg_testset_save_CFLAGS="$CFLAGS" 7224 7225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7228printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7229if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7230then : 7231 printf %s "(cached) " >&6 7232else case e in #( 7233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235int i; 7236_ACEOF 7237if ac_fn_c_try_compile "$LINENO" 7238then : 7239 xorg_cv_cc_flag_unknown_warning_option=yes 7240else case e in #( 7241 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7242esac 7243fi 7244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7245esac 7246fi 7247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7250 CFLAGS="$xorg_testset_save_CFLAGS" 7251fi 7252 7253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7256 fi 7257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7260if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7261then : 7262 printf %s "(cached) " >&6 7263else case e in #( 7264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265/* end confdefs.h. */ 7266int i; 7267_ACEOF 7268if ac_fn_c_try_compile "$LINENO" 7269then : 7270 xorg_cv_cc_flag_unused_command_line_argument=yes 7271else case e in #( 7272 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7273esac 7274fi 7275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7276esac 7277fi 7278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7281 CFLAGS="$xorg_testset_save_CFLAGS" 7282fi 7283 7284found="no" 7285 7286 if test $found = "no" ; then 7287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7289 fi 7290 7291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7293 fi 7294 7295 CFLAGS="$CFLAGS -Werror=implicit" 7296 7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7298printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7299 cacheid=xorg_cv_cc_flag__Werror_implicit 7300 if eval test \${$cacheid+y} 7301then : 7302 printf %s "(cached) " >&6 7303else case e in #( 7304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306int i; 7307int 7308main (void) 7309{ 7310 7311 ; 7312 return 0; 7313} 7314_ACEOF 7315if ac_fn_c_try_link "$LINENO" 7316then : 7317 eval $cacheid=yes 7318else case e in #( 7319 e) eval $cacheid=no ;; 7320esac 7321fi 7322rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7323 conftest$ac_exeext conftest.$ac_ext ;; 7324esac 7325fi 7326 7327 7328 CFLAGS="$xorg_testset_save_CFLAGS" 7329 7330 eval supported=\$$cacheid 7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7332printf "%s\n" "$supported" >&6; } 7333 if test "$supported" = "yes" ; then 7334 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7335 found="yes" 7336 fi 7337 fi 7338 7339 if test $found = "no" ; then 7340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7342 fi 7343 7344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7346 fi 7347 7348 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7349 7350 { 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 7351printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7352 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7353 if eval test \${$cacheid+y} 7354then : 7355 printf %s "(cached) " >&6 7356else case e in #( 7357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7358/* end confdefs.h. */ 7359int i; 7360int 7361main (void) 7362{ 7363 7364 ; 7365 return 0; 7366} 7367_ACEOF 7368if ac_fn_c_try_link "$LINENO" 7369then : 7370 eval $cacheid=yes 7371else case e in #( 7372 e) eval $cacheid=no ;; 7373esac 7374fi 7375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7376 conftest$ac_exeext conftest.$ac_ext ;; 7377esac 7378fi 7379 7380 7381 CFLAGS="$xorg_testset_save_CFLAGS" 7382 7383 eval supported=\$$cacheid 7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7385printf "%s\n" "$supported" >&6; } 7386 if test "$supported" = "yes" ; then 7387 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7388 found="yes" 7389 fi 7390 fi 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406xorg_testset_save_CFLAGS="$CFLAGS" 7407 7408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7412if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7413then : 7414 printf %s "(cached) " >&6 7415else case e in #( 7416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417/* end confdefs.h. */ 7418int i; 7419_ACEOF 7420if ac_fn_c_try_compile "$LINENO" 7421then : 7422 xorg_cv_cc_flag_unknown_warning_option=yes 7423else case e in #( 7424 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7425esac 7426fi 7427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7428esac 7429fi 7430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7433 CFLAGS="$xorg_testset_save_CFLAGS" 7434fi 7435 7436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 fi 7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7443if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7444then : 7445 printf %s "(cached) " >&6 7446else case e in #( 7447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449int i; 7450_ACEOF 7451if ac_fn_c_try_compile "$LINENO" 7452then : 7453 xorg_cv_cc_flag_unused_command_line_argument=yes 7454else case e in #( 7455 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7456esac 7457fi 7458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7459esac 7460fi 7461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7462printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465fi 7466 7467found="no" 7468 7469 if test $found = "no" ; then 7470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7472 fi 7473 7474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7476 fi 7477 7478 CFLAGS="$CFLAGS -Werror=nonnull" 7479 7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7481printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7482 cacheid=xorg_cv_cc_flag__Werror_nonnull 7483 if eval test \${$cacheid+y} 7484then : 7485 printf %s "(cached) " >&6 7486else case e in #( 7487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7488/* end confdefs.h. */ 7489int i; 7490int 7491main (void) 7492{ 7493 7494 ; 7495 return 0; 7496} 7497_ACEOF 7498if ac_fn_c_try_link "$LINENO" 7499then : 7500 eval $cacheid=yes 7501else case e in #( 7502 e) eval $cacheid=no ;; 7503esac 7504fi 7505rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7506 conftest$ac_exeext conftest.$ac_ext ;; 7507esac 7508fi 7509 7510 7511 CFLAGS="$xorg_testset_save_CFLAGS" 7512 7513 eval supported=\$$cacheid 7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7515printf "%s\n" "$supported" >&6; } 7516 if test "$supported" = "yes" ; then 7517 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7518 found="yes" 7519 fi 7520 fi 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536xorg_testset_save_CFLAGS="$CFLAGS" 7537 7538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7542if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7543then : 7544 printf %s "(cached) " >&6 7545else case e in #( 7546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547/* end confdefs.h. */ 7548int i; 7549_ACEOF 7550if ac_fn_c_try_compile "$LINENO" 7551then : 7552 xorg_cv_cc_flag_unknown_warning_option=yes 7553else case e in #( 7554 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7555esac 7556fi 7557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7558esac 7559fi 7560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7563 CFLAGS="$xorg_testset_save_CFLAGS" 7564fi 7565 7566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7569 fi 7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7573if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7574then : 7575 printf %s "(cached) " >&6 7576else case e in #( 7577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579int i; 7580_ACEOF 7581if ac_fn_c_try_compile "$LINENO" 7582then : 7583 xorg_cv_cc_flag_unused_command_line_argument=yes 7584else case e in #( 7585 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7586esac 7587fi 7588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7589esac 7590fi 7591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7594 CFLAGS="$xorg_testset_save_CFLAGS" 7595fi 7596 7597found="no" 7598 7599 if test $found = "no" ; then 7600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7602 fi 7603 7604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7606 fi 7607 7608 CFLAGS="$CFLAGS -Werror=init-self" 7609 7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7611printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7612 cacheid=xorg_cv_cc_flag__Werror_init_self 7613 if eval test \${$cacheid+y} 7614then : 7615 printf %s "(cached) " >&6 7616else case e in #( 7617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7618/* end confdefs.h. */ 7619int i; 7620int 7621main (void) 7622{ 7623 7624 ; 7625 return 0; 7626} 7627_ACEOF 7628if ac_fn_c_try_link "$LINENO" 7629then : 7630 eval $cacheid=yes 7631else case e in #( 7632 e) eval $cacheid=no ;; 7633esac 7634fi 7635rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7636 conftest$ac_exeext conftest.$ac_ext ;; 7637esac 7638fi 7639 7640 7641 CFLAGS="$xorg_testset_save_CFLAGS" 7642 7643 eval supported=\$$cacheid 7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7645printf "%s\n" "$supported" >&6; } 7646 if test "$supported" = "yes" ; then 7647 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7648 found="yes" 7649 fi 7650 fi 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666xorg_testset_save_CFLAGS="$CFLAGS" 7667 7668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7671printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7672if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7673then : 7674 printf %s "(cached) " >&6 7675else case e in #( 7676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678int i; 7679_ACEOF 7680if ac_fn_c_try_compile "$LINENO" 7681then : 7682 xorg_cv_cc_flag_unknown_warning_option=yes 7683else case e in #( 7684 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7685esac 7686fi 7687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7688esac 7689fi 7690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7693 CFLAGS="$xorg_testset_save_CFLAGS" 7694fi 7695 7696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7699 fi 7700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7703if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7704then : 7705 printf %s "(cached) " >&6 7706else case e in #( 7707 e) 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_unused_command_line_argument=yes 7714else case e in #( 7715 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7716esac 7717fi 7718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7719esac 7720fi 7721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7722printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7724 CFLAGS="$xorg_testset_save_CFLAGS" 7725fi 7726 7727found="no" 7728 7729 if test $found = "no" ; then 7730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7732 fi 7733 7734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7736 fi 7737 7738 CFLAGS="$CFLAGS -Werror=main" 7739 7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7741printf %s "checking if $CC supports -Werror=main... " >&6; } 7742 cacheid=xorg_cv_cc_flag__Werror_main 7743 if eval test \${$cacheid+y} 7744then : 7745 printf %s "(cached) " >&6 7746else case e in #( 7747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7748/* end confdefs.h. */ 7749int i; 7750int 7751main (void) 7752{ 7753 7754 ; 7755 return 0; 7756} 7757_ACEOF 7758if ac_fn_c_try_link "$LINENO" 7759then : 7760 eval $cacheid=yes 7761else case e in #( 7762 e) eval $cacheid=no ;; 7763esac 7764fi 7765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7766 conftest$ac_exeext conftest.$ac_ext ;; 7767esac 7768fi 7769 7770 7771 CFLAGS="$xorg_testset_save_CFLAGS" 7772 7773 eval supported=\$$cacheid 7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7775printf "%s\n" "$supported" >&6; } 7776 if test "$supported" = "yes" ; then 7777 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7778 found="yes" 7779 fi 7780 fi 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796xorg_testset_save_CFLAGS="$CFLAGS" 7797 7798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7802if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7803then : 7804 printf %s "(cached) " >&6 7805else case e in #( 7806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808int i; 7809_ACEOF 7810if ac_fn_c_try_compile "$LINENO" 7811then : 7812 xorg_cv_cc_flag_unknown_warning_option=yes 7813else case e in #( 7814 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7815esac 7816fi 7817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7818esac 7819fi 7820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7821printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7823 CFLAGS="$xorg_testset_save_CFLAGS" 7824fi 7825 7826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7829 fi 7830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7832printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7833if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7834then : 7835 printf %s "(cached) " >&6 7836else case e in #( 7837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7838/* end confdefs.h. */ 7839int i; 7840_ACEOF 7841if ac_fn_c_try_compile "$LINENO" 7842then : 7843 xorg_cv_cc_flag_unused_command_line_argument=yes 7844else case e in #( 7845 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7846esac 7847fi 7848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7849esac 7850fi 7851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7852printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7854 CFLAGS="$xorg_testset_save_CFLAGS" 7855fi 7856 7857found="no" 7858 7859 if test $found = "no" ; then 7860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7862 fi 7863 7864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7866 fi 7867 7868 CFLAGS="$CFLAGS -Werror=missing-braces" 7869 7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7871printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7872 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7873 if eval test \${$cacheid+y} 7874then : 7875 printf %s "(cached) " >&6 7876else case e in #( 7877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879int i; 7880int 7881main (void) 7882{ 7883 7884 ; 7885 return 0; 7886} 7887_ACEOF 7888if ac_fn_c_try_link "$LINENO" 7889then : 7890 eval $cacheid=yes 7891else case e in #( 7892 e) eval $cacheid=no ;; 7893esac 7894fi 7895rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7896 conftest$ac_exeext conftest.$ac_ext ;; 7897esac 7898fi 7899 7900 7901 CFLAGS="$xorg_testset_save_CFLAGS" 7902 7903 eval supported=\$$cacheid 7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7905printf "%s\n" "$supported" >&6; } 7906 if test "$supported" = "yes" ; then 7907 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7908 found="yes" 7909 fi 7910 fi 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926xorg_testset_save_CFLAGS="$CFLAGS" 7927 7928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7932if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7933then : 7934 printf %s "(cached) " >&6 7935else case e in #( 7936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937/* end confdefs.h. */ 7938int i; 7939_ACEOF 7940if ac_fn_c_try_compile "$LINENO" 7941then : 7942 xorg_cv_cc_flag_unknown_warning_option=yes 7943else case e in #( 7944 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7945esac 7946fi 7947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7948esac 7949fi 7950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7953 CFLAGS="$xorg_testset_save_CFLAGS" 7954fi 7955 7956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7959 fi 7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7963if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7964then : 7965 printf %s "(cached) " >&6 7966else case e in #( 7967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969int i; 7970_ACEOF 7971if ac_fn_c_try_compile "$LINENO" 7972then : 7973 xorg_cv_cc_flag_unused_command_line_argument=yes 7974else case e in #( 7975 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7976esac 7977fi 7978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7979esac 7980fi 7981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7984 CFLAGS="$xorg_testset_save_CFLAGS" 7985fi 7986 7987found="no" 7988 7989 if test $found = "no" ; then 7990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7992 fi 7993 7994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7996 fi 7997 7998 CFLAGS="$CFLAGS -Werror=sequence-point" 7999 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8001printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8002 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8003 if eval test \${$cacheid+y} 8004then : 8005 printf %s "(cached) " >&6 8006else case e in #( 8007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009int i; 8010int 8011main (void) 8012{ 8013 8014 ; 8015 return 0; 8016} 8017_ACEOF 8018if ac_fn_c_try_link "$LINENO" 8019then : 8020 eval $cacheid=yes 8021else case e in #( 8022 e) eval $cacheid=no ;; 8023esac 8024fi 8025rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8026 conftest$ac_exeext conftest.$ac_ext ;; 8027esac 8028fi 8029 8030 8031 CFLAGS="$xorg_testset_save_CFLAGS" 8032 8033 eval supported=\$$cacheid 8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8035printf "%s\n" "$supported" >&6; } 8036 if test "$supported" = "yes" ; then 8037 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8038 found="yes" 8039 fi 8040 fi 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056xorg_testset_save_CFLAGS="$CFLAGS" 8057 8058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8061printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8062if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8063then : 8064 printf %s "(cached) " >&6 8065else case e in #( 8066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8067/* end confdefs.h. */ 8068int i; 8069_ACEOF 8070if ac_fn_c_try_compile "$LINENO" 8071then : 8072 xorg_cv_cc_flag_unknown_warning_option=yes 8073else case e in #( 8074 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8075esac 8076fi 8077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8078esac 8079fi 8080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8081printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8083 CFLAGS="$xorg_testset_save_CFLAGS" 8084fi 8085 8086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8089 fi 8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8092printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8093if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8094then : 8095 printf %s "(cached) " >&6 8096else case e in #( 8097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098/* end confdefs.h. */ 8099int i; 8100_ACEOF 8101if ac_fn_c_try_compile "$LINENO" 8102then : 8103 xorg_cv_cc_flag_unused_command_line_argument=yes 8104else case e in #( 8105 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8106esac 8107fi 8108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8109esac 8110fi 8111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8114 CFLAGS="$xorg_testset_save_CFLAGS" 8115fi 8116 8117found="no" 8118 8119 if test $found = "no" ; then 8120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8122 fi 8123 8124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8126 fi 8127 8128 CFLAGS="$CFLAGS -Werror=return-type" 8129 8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8131printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8132 cacheid=xorg_cv_cc_flag__Werror_return_type 8133 if eval test \${$cacheid+y} 8134then : 8135 printf %s "(cached) " >&6 8136else case e in #( 8137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8138/* end confdefs.h. */ 8139int i; 8140int 8141main (void) 8142{ 8143 8144 ; 8145 return 0; 8146} 8147_ACEOF 8148if ac_fn_c_try_link "$LINENO" 8149then : 8150 eval $cacheid=yes 8151else case e in #( 8152 e) eval $cacheid=no ;; 8153esac 8154fi 8155rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8156 conftest$ac_exeext conftest.$ac_ext ;; 8157esac 8158fi 8159 8160 8161 CFLAGS="$xorg_testset_save_CFLAGS" 8162 8163 eval supported=\$$cacheid 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8165printf "%s\n" "$supported" >&6; } 8166 if test "$supported" = "yes" ; then 8167 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8168 found="yes" 8169 fi 8170 fi 8171 8172 if test $found = "no" ; then 8173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8175 fi 8176 8177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8179 fi 8180 8181 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8182 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8184printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8185 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8186 if eval test \${$cacheid+y} 8187then : 8188 printf %s "(cached) " >&6 8189else case e in #( 8190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8191/* end confdefs.h. */ 8192int i; 8193int 8194main (void) 8195{ 8196 8197 ; 8198 return 0; 8199} 8200_ACEOF 8201if ac_fn_c_try_link "$LINENO" 8202then : 8203 eval $cacheid=yes 8204else case e in #( 8205 e) eval $cacheid=no ;; 8206esac 8207fi 8208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8209 conftest$ac_exeext conftest.$ac_ext ;; 8210esac 8211fi 8212 8213 8214 CFLAGS="$xorg_testset_save_CFLAGS" 8215 8216 eval supported=\$$cacheid 8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8218printf "%s\n" "$supported" >&6; } 8219 if test "$supported" = "yes" ; then 8220 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8221 found="yes" 8222 fi 8223 fi 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239xorg_testset_save_CFLAGS="$CFLAGS" 8240 8241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8245if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8246then : 8247 printf %s "(cached) " >&6 8248else case e in #( 8249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250/* end confdefs.h. */ 8251int i; 8252_ACEOF 8253if ac_fn_c_try_compile "$LINENO" 8254then : 8255 xorg_cv_cc_flag_unknown_warning_option=yes 8256else case e in #( 8257 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8258esac 8259fi 8260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8261esac 8262fi 8263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8266 CFLAGS="$xorg_testset_save_CFLAGS" 8267fi 8268 8269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8272 fi 8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8276if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8277then : 8278 printf %s "(cached) " >&6 8279else case e in #( 8280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8281/* end confdefs.h. */ 8282int i; 8283_ACEOF 8284if ac_fn_c_try_compile "$LINENO" 8285then : 8286 xorg_cv_cc_flag_unused_command_line_argument=yes 8287else case e in #( 8288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8289esac 8290fi 8291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8292esac 8293fi 8294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8297 CFLAGS="$xorg_testset_save_CFLAGS" 8298fi 8299 8300found="no" 8301 8302 if test $found = "no" ; then 8303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8305 fi 8306 8307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8309 fi 8310 8311 CFLAGS="$CFLAGS -Werror=trigraphs" 8312 8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8314printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8315 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8316 if eval test \${$cacheid+y} 8317then : 8318 printf %s "(cached) " >&6 8319else case e in #( 8320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321/* end confdefs.h. */ 8322int i; 8323int 8324main (void) 8325{ 8326 8327 ; 8328 return 0; 8329} 8330_ACEOF 8331if ac_fn_c_try_link "$LINENO" 8332then : 8333 eval $cacheid=yes 8334else case e in #( 8335 e) eval $cacheid=no ;; 8336esac 8337fi 8338rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8339 conftest$ac_exeext conftest.$ac_ext ;; 8340esac 8341fi 8342 8343 8344 CFLAGS="$xorg_testset_save_CFLAGS" 8345 8346 eval supported=\$$cacheid 8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8348printf "%s\n" "$supported" >&6; } 8349 if test "$supported" = "yes" ; then 8350 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8351 found="yes" 8352 fi 8353 fi 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369xorg_testset_save_CFLAGS="$CFLAGS" 8370 8371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8375if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8376then : 8377 printf %s "(cached) " >&6 8378else case e in #( 8379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8380/* end confdefs.h. */ 8381int i; 8382_ACEOF 8383if ac_fn_c_try_compile "$LINENO" 8384then : 8385 xorg_cv_cc_flag_unknown_warning_option=yes 8386else case e in #( 8387 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8388esac 8389fi 8390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8391esac 8392fi 8393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8396 CFLAGS="$xorg_testset_save_CFLAGS" 8397fi 8398 8399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8402 fi 8403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8406if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8407then : 8408 printf %s "(cached) " >&6 8409else case e in #( 8410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8411/* end confdefs.h. */ 8412int i; 8413_ACEOF 8414if ac_fn_c_try_compile "$LINENO" 8415then : 8416 xorg_cv_cc_flag_unused_command_line_argument=yes 8417else case e in #( 8418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8419esac 8420fi 8421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8422esac 8423fi 8424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8427 CFLAGS="$xorg_testset_save_CFLAGS" 8428fi 8429 8430found="no" 8431 8432 if test $found = "no" ; then 8433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8435 fi 8436 8437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8439 fi 8440 8441 CFLAGS="$CFLAGS -Werror=array-bounds" 8442 8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8444printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8445 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8446 if eval test \${$cacheid+y} 8447then : 8448 printf %s "(cached) " >&6 8449else case e in #( 8450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8451/* end confdefs.h. */ 8452int i; 8453int 8454main (void) 8455{ 8456 8457 ; 8458 return 0; 8459} 8460_ACEOF 8461if ac_fn_c_try_link "$LINENO" 8462then : 8463 eval $cacheid=yes 8464else case e in #( 8465 e) eval $cacheid=no ;; 8466esac 8467fi 8468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8469 conftest$ac_exeext conftest.$ac_ext ;; 8470esac 8471fi 8472 8473 8474 CFLAGS="$xorg_testset_save_CFLAGS" 8475 8476 eval supported=\$$cacheid 8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8478printf "%s\n" "$supported" >&6; } 8479 if test "$supported" = "yes" ; then 8480 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8481 found="yes" 8482 fi 8483 fi 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499xorg_testset_save_CFLAGS="$CFLAGS" 8500 8501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8506then : 8507 printf %s "(cached) " >&6 8508else case e in #( 8509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8510/* end confdefs.h. */ 8511int i; 8512_ACEOF 8513if ac_fn_c_try_compile "$LINENO" 8514then : 8515 xorg_cv_cc_flag_unknown_warning_option=yes 8516else case e in #( 8517 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8518esac 8519fi 8520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8521esac 8522fi 8523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8526 CFLAGS="$xorg_testset_save_CFLAGS" 8527fi 8528 8529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8532 fi 8533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8537then : 8538 printf %s "(cached) " >&6 8539else case e in #( 8540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541/* end confdefs.h. */ 8542int i; 8543_ACEOF 8544if ac_fn_c_try_compile "$LINENO" 8545then : 8546 xorg_cv_cc_flag_unused_command_line_argument=yes 8547else case e in #( 8548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8549esac 8550fi 8551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8552esac 8553fi 8554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8555printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8558fi 8559 8560found="no" 8561 8562 if test $found = "no" ; then 8563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8565 fi 8566 8567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8569 fi 8570 8571 CFLAGS="$CFLAGS -Werror=write-strings" 8572 8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8574printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8575 cacheid=xorg_cv_cc_flag__Werror_write_strings 8576 if eval test \${$cacheid+y} 8577then : 8578 printf %s "(cached) " >&6 8579else case e in #( 8580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8581/* end confdefs.h. */ 8582int i; 8583int 8584main (void) 8585{ 8586 8587 ; 8588 return 0; 8589} 8590_ACEOF 8591if ac_fn_c_try_link "$LINENO" 8592then : 8593 eval $cacheid=yes 8594else case e in #( 8595 e) eval $cacheid=no ;; 8596esac 8597fi 8598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8599 conftest$ac_exeext conftest.$ac_ext ;; 8600esac 8601fi 8602 8603 8604 CFLAGS="$xorg_testset_save_CFLAGS" 8605 8606 eval supported=\$$cacheid 8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8608printf "%s\n" "$supported" >&6; } 8609 if test "$supported" = "yes" ; then 8610 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8611 found="yes" 8612 fi 8613 fi 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629xorg_testset_save_CFLAGS="$CFLAGS" 8630 8631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8635if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8636then : 8637 printf %s "(cached) " >&6 8638else case e in #( 8639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8640/* end confdefs.h. */ 8641int i; 8642_ACEOF 8643if ac_fn_c_try_compile "$LINENO" 8644then : 8645 xorg_cv_cc_flag_unknown_warning_option=yes 8646else case e in #( 8647 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8648esac 8649fi 8650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8651esac 8652fi 8653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8654printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8656 CFLAGS="$xorg_testset_save_CFLAGS" 8657fi 8658 8659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8662 fi 8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8665printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8666if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8667then : 8668 printf %s "(cached) " >&6 8669else case e in #( 8670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673_ACEOF 8674if ac_fn_c_try_compile "$LINENO" 8675then : 8676 xorg_cv_cc_flag_unused_command_line_argument=yes 8677else case e in #( 8678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8679esac 8680fi 8681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8682esac 8683fi 8684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8687 CFLAGS="$xorg_testset_save_CFLAGS" 8688fi 8689 8690found="no" 8691 8692 if test $found = "no" ; then 8693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8695 fi 8696 8697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8699 fi 8700 8701 CFLAGS="$CFLAGS -Werror=address" 8702 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8704printf %s "checking if $CC supports -Werror=address... " >&6; } 8705 cacheid=xorg_cv_cc_flag__Werror_address 8706 if eval test \${$cacheid+y} 8707then : 8708 printf %s "(cached) " >&6 8709else case e in #( 8710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8711/* end confdefs.h. */ 8712int i; 8713int 8714main (void) 8715{ 8716 8717 ; 8718 return 0; 8719} 8720_ACEOF 8721if ac_fn_c_try_link "$LINENO" 8722then : 8723 eval $cacheid=yes 8724else case e in #( 8725 e) eval $cacheid=no ;; 8726esac 8727fi 8728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8729 conftest$ac_exeext conftest.$ac_ext ;; 8730esac 8731fi 8732 8733 8734 CFLAGS="$xorg_testset_save_CFLAGS" 8735 8736 eval supported=\$$cacheid 8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8738printf "%s\n" "$supported" >&6; } 8739 if test "$supported" = "yes" ; then 8740 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8741 found="yes" 8742 fi 8743 fi 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759xorg_testset_save_CFLAGS="$CFLAGS" 8760 8761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8764printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8765if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8766then : 8767 printf %s "(cached) " >&6 8768else case e in #( 8769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770/* end confdefs.h. */ 8771int i; 8772_ACEOF 8773if ac_fn_c_try_compile "$LINENO" 8774then : 8775 xorg_cv_cc_flag_unknown_warning_option=yes 8776else case e in #( 8777 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8778esac 8779fi 8780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8781esac 8782fi 8783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8784printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8786 CFLAGS="$xorg_testset_save_CFLAGS" 8787fi 8788 8789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8792 fi 8793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8795printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8796if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8797then : 8798 printf %s "(cached) " >&6 8799else case e in #( 8800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8801/* end confdefs.h. */ 8802int i; 8803_ACEOF 8804if ac_fn_c_try_compile "$LINENO" 8805then : 8806 xorg_cv_cc_flag_unused_command_line_argument=yes 8807else case e in #( 8808 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8809esac 8810fi 8811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8812esac 8813fi 8814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8817 CFLAGS="$xorg_testset_save_CFLAGS" 8818fi 8819 8820found="no" 8821 8822 if test $found = "no" ; then 8823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8825 fi 8826 8827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8829 fi 8830 8831 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8832 8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8834printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8835 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8836 if eval test \${$cacheid+y} 8837then : 8838 printf %s "(cached) " >&6 8839else case e in #( 8840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841/* end confdefs.h. */ 8842int i; 8843int 8844main (void) 8845{ 8846 8847 ; 8848 return 0; 8849} 8850_ACEOF 8851if ac_fn_c_try_link "$LINENO" 8852then : 8853 eval $cacheid=yes 8854else case e in #( 8855 e) eval $cacheid=no ;; 8856esac 8857fi 8858rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8859 conftest$ac_exeext conftest.$ac_ext ;; 8860esac 8861fi 8862 8863 8864 CFLAGS="$xorg_testset_save_CFLAGS" 8865 8866 eval supported=\$$cacheid 8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8868printf "%s\n" "$supported" >&6; } 8869 if test "$supported" = "yes" ; then 8870 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8871 found="yes" 8872 fi 8873 fi 8874 8875 if test $found = "no" ; then 8876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8878 fi 8879 8880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8882 fi 8883 8884 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8885 8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8887printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8888 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8889 if eval test \${$cacheid+y} 8890then : 8891 printf %s "(cached) " >&6 8892else case e in #( 8893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895int i; 8896int 8897main (void) 8898{ 8899 8900 ; 8901 return 0; 8902} 8903_ACEOF 8904if ac_fn_c_try_link "$LINENO" 8905then : 8906 eval $cacheid=yes 8907else case e in #( 8908 e) eval $cacheid=no ;; 8909esac 8910fi 8911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8912 conftest$ac_exeext conftest.$ac_ext ;; 8913esac 8914fi 8915 8916 8917 CFLAGS="$xorg_testset_save_CFLAGS" 8918 8919 eval supported=\$$cacheid 8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8921printf "%s\n" "$supported" >&6; } 8922 if test "$supported" = "yes" ; then 8923 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8924 found="yes" 8925 fi 8926 fi 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942xorg_testset_save_CFLAGS="$CFLAGS" 8943 8944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8948if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8949then : 8950 printf %s "(cached) " >&6 8951else case e in #( 8952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8953/* end confdefs.h. */ 8954int i; 8955_ACEOF 8956if ac_fn_c_try_compile "$LINENO" 8957then : 8958 xorg_cv_cc_flag_unknown_warning_option=yes 8959else case e in #( 8960 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8961esac 8962fi 8963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8964esac 8965fi 8966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8969 CFLAGS="$xorg_testset_save_CFLAGS" 8970fi 8971 8972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8975 fi 8976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8979if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8980then : 8981 printf %s "(cached) " >&6 8982else case e in #( 8983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984/* end confdefs.h. */ 8985int i; 8986_ACEOF 8987if ac_fn_c_try_compile "$LINENO" 8988then : 8989 xorg_cv_cc_flag_unused_command_line_argument=yes 8990else case e in #( 8991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8992esac 8993fi 8994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8995esac 8996fi 8997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9000 CFLAGS="$xorg_testset_save_CFLAGS" 9001fi 9002 9003found="no" 9004 9005 if test $found = "no" ; then 9006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9008 fi 9009 9010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9012 fi 9013 9014 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9015 9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9017printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9018 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9019 if eval test \${$cacheid+y} 9020then : 9021 printf %s "(cached) " >&6 9022else case e in #( 9023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9024/* end confdefs.h. */ 9025int i; 9026int 9027main (void) 9028{ 9029 9030 ; 9031 return 0; 9032} 9033_ACEOF 9034if ac_fn_c_try_link "$LINENO" 9035then : 9036 eval $cacheid=yes 9037else case e in #( 9038 e) eval $cacheid=no ;; 9039esac 9040fi 9041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9042 conftest$ac_exeext conftest.$ac_ext ;; 9043esac 9044fi 9045 9046 9047 CFLAGS="$xorg_testset_save_CFLAGS" 9048 9049 eval supported=\$$cacheid 9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9051printf "%s\n" "$supported" >&6; } 9052 if test "$supported" = "yes" ; then 9053 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9054 found="yes" 9055 fi 9056 fi 9057 9058 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9059else 9060{ 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 9061printf "%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;} 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075xorg_testset_save_CFLAGS="$CFLAGS" 9076 9077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9081if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9082then : 9083 printf %s "(cached) " >&6 9084else case e in #( 9085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9086/* end confdefs.h. */ 9087int i; 9088_ACEOF 9089if ac_fn_c_try_compile "$LINENO" 9090then : 9091 xorg_cv_cc_flag_unknown_warning_option=yes 9092else case e in #( 9093 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9094esac 9095fi 9096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9097esac 9098fi 9099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9100printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9102 CFLAGS="$xorg_testset_save_CFLAGS" 9103fi 9104 9105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9108 fi 9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9111printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9112if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9113then : 9114 printf %s "(cached) " >&6 9115else case e in #( 9116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9117/* end confdefs.h. */ 9118int i; 9119_ACEOF 9120if ac_fn_c_try_compile "$LINENO" 9121then : 9122 xorg_cv_cc_flag_unused_command_line_argument=yes 9123else case e in #( 9124 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9125esac 9126fi 9127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9128esac 9129fi 9130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9131printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9133 CFLAGS="$xorg_testset_save_CFLAGS" 9134fi 9135 9136found="no" 9137 9138 if test $found = "no" ; then 9139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9141 fi 9142 9143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9145 fi 9146 9147 CFLAGS="$CFLAGS -Wimplicit" 9148 9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9150printf %s "checking if $CC supports -Wimplicit... " >&6; } 9151 cacheid=xorg_cv_cc_flag__Wimplicit 9152 if eval test \${$cacheid+y} 9153then : 9154 printf %s "(cached) " >&6 9155else case e in #( 9156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9157/* end confdefs.h. */ 9158int i; 9159int 9160main (void) 9161{ 9162 9163 ; 9164 return 0; 9165} 9166_ACEOF 9167if ac_fn_c_try_link "$LINENO" 9168then : 9169 eval $cacheid=yes 9170else case e in #( 9171 e) eval $cacheid=no ;; 9172esac 9173fi 9174rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9175 conftest$ac_exeext conftest.$ac_ext ;; 9176esac 9177fi 9178 9179 9180 CFLAGS="$xorg_testset_save_CFLAGS" 9181 9182 eval supported=\$$cacheid 9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9184printf "%s\n" "$supported" >&6; } 9185 if test "$supported" = "yes" ; then 9186 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9187 found="yes" 9188 fi 9189 fi 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205xorg_testset_save_CFLAGS="$CFLAGS" 9206 9207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9210printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9211if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9212then : 9213 printf %s "(cached) " >&6 9214else case e in #( 9215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217int i; 9218_ACEOF 9219if ac_fn_c_try_compile "$LINENO" 9220then : 9221 xorg_cv_cc_flag_unknown_warning_option=yes 9222else case e in #( 9223 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9224esac 9225fi 9226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9227esac 9228fi 9229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9232 CFLAGS="$xorg_testset_save_CFLAGS" 9233fi 9234 9235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9242if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9243then : 9244 printf %s "(cached) " >&6 9245else case e in #( 9246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247/* end confdefs.h. */ 9248int i; 9249_ACEOF 9250if ac_fn_c_try_compile "$LINENO" 9251then : 9252 xorg_cv_cc_flag_unused_command_line_argument=yes 9253else case e in #( 9254 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9255esac 9256fi 9257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9258esac 9259fi 9260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9263 CFLAGS="$xorg_testset_save_CFLAGS" 9264fi 9265 9266found="no" 9267 9268 if test $found = "no" ; then 9269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9271 fi 9272 9273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9275 fi 9276 9277 CFLAGS="$CFLAGS -Wnonnull" 9278 9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9280printf %s "checking if $CC supports -Wnonnull... " >&6; } 9281 cacheid=xorg_cv_cc_flag__Wnonnull 9282 if eval test \${$cacheid+y} 9283then : 9284 printf %s "(cached) " >&6 9285else case e in #( 9286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9287/* end confdefs.h. */ 9288int i; 9289int 9290main (void) 9291{ 9292 9293 ; 9294 return 0; 9295} 9296_ACEOF 9297if ac_fn_c_try_link "$LINENO" 9298then : 9299 eval $cacheid=yes 9300else case e in #( 9301 e) eval $cacheid=no ;; 9302esac 9303fi 9304rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9305 conftest$ac_exeext conftest.$ac_ext ;; 9306esac 9307fi 9308 9309 9310 CFLAGS="$xorg_testset_save_CFLAGS" 9311 9312 eval supported=\$$cacheid 9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9314printf "%s\n" "$supported" >&6; } 9315 if test "$supported" = "yes" ; then 9316 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9317 found="yes" 9318 fi 9319 fi 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335xorg_testset_save_CFLAGS="$CFLAGS" 9336 9337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9341if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9342then : 9343 printf %s "(cached) " >&6 9344else case e in #( 9345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9346/* end confdefs.h. */ 9347int i; 9348_ACEOF 9349if ac_fn_c_try_compile "$LINENO" 9350then : 9351 xorg_cv_cc_flag_unknown_warning_option=yes 9352else case e in #( 9353 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9354esac 9355fi 9356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9357esac 9358fi 9359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9362 CFLAGS="$xorg_testset_save_CFLAGS" 9363fi 9364 9365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9368 fi 9369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9372if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9373then : 9374 printf %s "(cached) " >&6 9375else case e in #( 9376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9377/* end confdefs.h. */ 9378int i; 9379_ACEOF 9380if ac_fn_c_try_compile "$LINENO" 9381then : 9382 xorg_cv_cc_flag_unused_command_line_argument=yes 9383else case e in #( 9384 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9385esac 9386fi 9387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9388esac 9389fi 9390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9391printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9393 CFLAGS="$xorg_testset_save_CFLAGS" 9394fi 9395 9396found="no" 9397 9398 if test $found = "no" ; then 9399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9401 fi 9402 9403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9405 fi 9406 9407 CFLAGS="$CFLAGS -Winit-self" 9408 9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9410printf %s "checking if $CC supports -Winit-self... " >&6; } 9411 cacheid=xorg_cv_cc_flag__Winit_self 9412 if eval test \${$cacheid+y} 9413then : 9414 printf %s "(cached) " >&6 9415else case e in #( 9416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9417/* end confdefs.h. */ 9418int i; 9419int 9420main (void) 9421{ 9422 9423 ; 9424 return 0; 9425} 9426_ACEOF 9427if ac_fn_c_try_link "$LINENO" 9428then : 9429 eval $cacheid=yes 9430else case e in #( 9431 e) eval $cacheid=no ;; 9432esac 9433fi 9434rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9435 conftest$ac_exeext conftest.$ac_ext ;; 9436esac 9437fi 9438 9439 9440 CFLAGS="$xorg_testset_save_CFLAGS" 9441 9442 eval supported=\$$cacheid 9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9444printf "%s\n" "$supported" >&6; } 9445 if test "$supported" = "yes" ; then 9446 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9447 found="yes" 9448 fi 9449 fi 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465xorg_testset_save_CFLAGS="$CFLAGS" 9466 9467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9471if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9472then : 9473 printf %s "(cached) " >&6 9474else case e in #( 9475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476/* end confdefs.h. */ 9477int i; 9478_ACEOF 9479if ac_fn_c_try_compile "$LINENO" 9480then : 9481 xorg_cv_cc_flag_unknown_warning_option=yes 9482else case e in #( 9483 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9484esac 9485fi 9486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9487esac 9488fi 9489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9492 CFLAGS="$xorg_testset_save_CFLAGS" 9493fi 9494 9495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9498 fi 9499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9502if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9503then : 9504 printf %s "(cached) " >&6 9505else case e in #( 9506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9507/* end confdefs.h. */ 9508int i; 9509_ACEOF 9510if ac_fn_c_try_compile "$LINENO" 9511then : 9512 xorg_cv_cc_flag_unused_command_line_argument=yes 9513else case e in #( 9514 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9515esac 9516fi 9517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9518esac 9519fi 9520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9523 CFLAGS="$xorg_testset_save_CFLAGS" 9524fi 9525 9526found="no" 9527 9528 if test $found = "no" ; then 9529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9531 fi 9532 9533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9535 fi 9536 9537 CFLAGS="$CFLAGS -Wmain" 9538 9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9540printf %s "checking if $CC supports -Wmain... " >&6; } 9541 cacheid=xorg_cv_cc_flag__Wmain 9542 if eval test \${$cacheid+y} 9543then : 9544 printf %s "(cached) " >&6 9545else case e in #( 9546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9547/* end confdefs.h. */ 9548int i; 9549int 9550main (void) 9551{ 9552 9553 ; 9554 return 0; 9555} 9556_ACEOF 9557if ac_fn_c_try_link "$LINENO" 9558then : 9559 eval $cacheid=yes 9560else case e in #( 9561 e) eval $cacheid=no ;; 9562esac 9563fi 9564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9565 conftest$ac_exeext conftest.$ac_ext ;; 9566esac 9567fi 9568 9569 9570 CFLAGS="$xorg_testset_save_CFLAGS" 9571 9572 eval supported=\$$cacheid 9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9574printf "%s\n" "$supported" >&6; } 9575 if test "$supported" = "yes" ; then 9576 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9577 found="yes" 9578 fi 9579 fi 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595xorg_testset_save_CFLAGS="$CFLAGS" 9596 9597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9601if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9602then : 9603 printf %s "(cached) " >&6 9604else case e in #( 9605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9606/* end confdefs.h. */ 9607int i; 9608_ACEOF 9609if ac_fn_c_try_compile "$LINENO" 9610then : 9611 xorg_cv_cc_flag_unknown_warning_option=yes 9612else case e in #( 9613 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9614esac 9615fi 9616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9617esac 9618fi 9619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9622 CFLAGS="$xorg_testset_save_CFLAGS" 9623fi 9624 9625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9628 fi 9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9632if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9633then : 9634 printf %s "(cached) " >&6 9635else case e in #( 9636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9637/* end confdefs.h. */ 9638int i; 9639_ACEOF 9640if ac_fn_c_try_compile "$LINENO" 9641then : 9642 xorg_cv_cc_flag_unused_command_line_argument=yes 9643else case e in #( 9644 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9645esac 9646fi 9647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9648esac 9649fi 9650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9653 CFLAGS="$xorg_testset_save_CFLAGS" 9654fi 9655 9656found="no" 9657 9658 if test $found = "no" ; then 9659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9661 fi 9662 9663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9665 fi 9666 9667 CFLAGS="$CFLAGS -Wmissing-braces" 9668 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9670printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9671 cacheid=xorg_cv_cc_flag__Wmissing_braces 9672 if eval test \${$cacheid+y} 9673then : 9674 printf %s "(cached) " >&6 9675else case e in #( 9676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9677/* end confdefs.h. */ 9678int i; 9679int 9680main (void) 9681{ 9682 9683 ; 9684 return 0; 9685} 9686_ACEOF 9687if ac_fn_c_try_link "$LINENO" 9688then : 9689 eval $cacheid=yes 9690else case e in #( 9691 e) eval $cacheid=no ;; 9692esac 9693fi 9694rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9695 conftest$ac_exeext conftest.$ac_ext ;; 9696esac 9697fi 9698 9699 9700 CFLAGS="$xorg_testset_save_CFLAGS" 9701 9702 eval supported=\$$cacheid 9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9704printf "%s\n" "$supported" >&6; } 9705 if test "$supported" = "yes" ; then 9706 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9707 found="yes" 9708 fi 9709 fi 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725xorg_testset_save_CFLAGS="$CFLAGS" 9726 9727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9731if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9732then : 9733 printf %s "(cached) " >&6 9734else case e in #( 9735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9736/* end confdefs.h. */ 9737int i; 9738_ACEOF 9739if ac_fn_c_try_compile "$LINENO" 9740then : 9741 xorg_cv_cc_flag_unknown_warning_option=yes 9742else case e in #( 9743 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9744esac 9745fi 9746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9747esac 9748fi 9749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9752 CFLAGS="$xorg_testset_save_CFLAGS" 9753fi 9754 9755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9758 fi 9759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9762if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9763then : 9764 printf %s "(cached) " >&6 9765else case e in #( 9766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9767/* end confdefs.h. */ 9768int i; 9769_ACEOF 9770if ac_fn_c_try_compile "$LINENO" 9771then : 9772 xorg_cv_cc_flag_unused_command_line_argument=yes 9773else case e in #( 9774 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9775esac 9776fi 9777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9778esac 9779fi 9780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9783 CFLAGS="$xorg_testset_save_CFLAGS" 9784fi 9785 9786found="no" 9787 9788 if test $found = "no" ; then 9789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9791 fi 9792 9793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9795 fi 9796 9797 CFLAGS="$CFLAGS -Wsequence-point" 9798 9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9800printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9801 cacheid=xorg_cv_cc_flag__Wsequence_point 9802 if eval test \${$cacheid+y} 9803then : 9804 printf %s "(cached) " >&6 9805else case e in #( 9806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9807/* end confdefs.h. */ 9808int i; 9809int 9810main (void) 9811{ 9812 9813 ; 9814 return 0; 9815} 9816_ACEOF 9817if ac_fn_c_try_link "$LINENO" 9818then : 9819 eval $cacheid=yes 9820else case e in #( 9821 e) eval $cacheid=no ;; 9822esac 9823fi 9824rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9825 conftest$ac_exeext conftest.$ac_ext ;; 9826esac 9827fi 9828 9829 9830 CFLAGS="$xorg_testset_save_CFLAGS" 9831 9832 eval supported=\$$cacheid 9833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9834printf "%s\n" "$supported" >&6; } 9835 if test "$supported" = "yes" ; then 9836 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9837 found="yes" 9838 fi 9839 fi 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855xorg_testset_save_CFLAGS="$CFLAGS" 9856 9857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9861if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9862then : 9863 printf %s "(cached) " >&6 9864else case e in #( 9865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9866/* end confdefs.h. */ 9867int i; 9868_ACEOF 9869if ac_fn_c_try_compile "$LINENO" 9870then : 9871 xorg_cv_cc_flag_unknown_warning_option=yes 9872else case e in #( 9873 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9874esac 9875fi 9876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9877esac 9878fi 9879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9882 CFLAGS="$xorg_testset_save_CFLAGS" 9883fi 9884 9885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9888 fi 9889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9892if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9893then : 9894 printf %s "(cached) " >&6 9895else case e in #( 9896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9897/* end confdefs.h. */ 9898int i; 9899_ACEOF 9900if ac_fn_c_try_compile "$LINENO" 9901then : 9902 xorg_cv_cc_flag_unused_command_line_argument=yes 9903else case e in #( 9904 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9905esac 9906fi 9907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9908esac 9909fi 9910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9911printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9913 CFLAGS="$xorg_testset_save_CFLAGS" 9914fi 9915 9916found="no" 9917 9918 if test $found = "no" ; then 9919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9921 fi 9922 9923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9925 fi 9926 9927 CFLAGS="$CFLAGS -Wreturn-type" 9928 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9930printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9931 cacheid=xorg_cv_cc_flag__Wreturn_type 9932 if eval test \${$cacheid+y} 9933then : 9934 printf %s "(cached) " >&6 9935else case e in #( 9936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9937/* end confdefs.h. */ 9938int i; 9939int 9940main (void) 9941{ 9942 9943 ; 9944 return 0; 9945} 9946_ACEOF 9947if ac_fn_c_try_link "$LINENO" 9948then : 9949 eval $cacheid=yes 9950else case e in #( 9951 e) eval $cacheid=no ;; 9952esac 9953fi 9954rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9955 conftest$ac_exeext conftest.$ac_ext ;; 9956esac 9957fi 9958 9959 9960 CFLAGS="$xorg_testset_save_CFLAGS" 9961 9962 eval supported=\$$cacheid 9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9964printf "%s\n" "$supported" >&6; } 9965 if test "$supported" = "yes" ; then 9966 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9967 found="yes" 9968 fi 9969 fi 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985xorg_testset_save_CFLAGS="$CFLAGS" 9986 9987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9991if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9992then : 9993 printf %s "(cached) " >&6 9994else case e in #( 9995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9996/* end confdefs.h. */ 9997int i; 9998_ACEOF 9999if ac_fn_c_try_compile "$LINENO" 10000then : 10001 xorg_cv_cc_flag_unknown_warning_option=yes 10002else case e in #( 10003 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10004esac 10005fi 10006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10007esac 10008fi 10009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10010printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10012 CFLAGS="$xorg_testset_save_CFLAGS" 10013fi 10014 10015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10018 fi 10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10021printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10022if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10023then : 10024 printf %s "(cached) " >&6 10025else case e in #( 10026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10027/* end confdefs.h. */ 10028int i; 10029_ACEOF 10030if ac_fn_c_try_compile "$LINENO" 10031then : 10032 xorg_cv_cc_flag_unused_command_line_argument=yes 10033else case e in #( 10034 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10035esac 10036fi 10037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10038esac 10039fi 10040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10043 CFLAGS="$xorg_testset_save_CFLAGS" 10044fi 10045 10046found="no" 10047 10048 if test $found = "no" ; then 10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 fi 10052 10053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10055 fi 10056 10057 CFLAGS="$CFLAGS -Wtrigraphs" 10058 10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10060printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10061 cacheid=xorg_cv_cc_flag__Wtrigraphs 10062 if eval test \${$cacheid+y} 10063then : 10064 printf %s "(cached) " >&6 10065else case e in #( 10066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10067/* end confdefs.h. */ 10068int i; 10069int 10070main (void) 10071{ 10072 10073 ; 10074 return 0; 10075} 10076_ACEOF 10077if ac_fn_c_try_link "$LINENO" 10078then : 10079 eval $cacheid=yes 10080else case e in #( 10081 e) eval $cacheid=no ;; 10082esac 10083fi 10084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10085 conftest$ac_exeext conftest.$ac_ext ;; 10086esac 10087fi 10088 10089 10090 CFLAGS="$xorg_testset_save_CFLAGS" 10091 10092 eval supported=\$$cacheid 10093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10094printf "%s\n" "$supported" >&6; } 10095 if test "$supported" = "yes" ; then 10096 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10097 found="yes" 10098 fi 10099 fi 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115xorg_testset_save_CFLAGS="$CFLAGS" 10116 10117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10120printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10121if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10122then : 10123 printf %s "(cached) " >&6 10124else case e in #( 10125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10126/* end confdefs.h. */ 10127int i; 10128_ACEOF 10129if ac_fn_c_try_compile "$LINENO" 10130then : 10131 xorg_cv_cc_flag_unknown_warning_option=yes 10132else case e in #( 10133 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10134esac 10135fi 10136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10137esac 10138fi 10139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10142 CFLAGS="$xorg_testset_save_CFLAGS" 10143fi 10144 10145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10148 fi 10149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10152if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10153then : 10154 printf %s "(cached) " >&6 10155else case e in #( 10156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10157/* end confdefs.h. */ 10158int i; 10159_ACEOF 10160if ac_fn_c_try_compile "$LINENO" 10161then : 10162 xorg_cv_cc_flag_unused_command_line_argument=yes 10163else case e in #( 10164 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10165esac 10166fi 10167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10168esac 10169fi 10170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10171printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10173 CFLAGS="$xorg_testset_save_CFLAGS" 10174fi 10175 10176found="no" 10177 10178 if test $found = "no" ; then 10179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10181 fi 10182 10183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10185 fi 10186 10187 CFLAGS="$CFLAGS -Warray-bounds" 10188 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10190printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10191 cacheid=xorg_cv_cc_flag__Warray_bounds 10192 if eval test \${$cacheid+y} 10193then : 10194 printf %s "(cached) " >&6 10195else case e in #( 10196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198int i; 10199int 10200main (void) 10201{ 10202 10203 ; 10204 return 0; 10205} 10206_ACEOF 10207if ac_fn_c_try_link "$LINENO" 10208then : 10209 eval $cacheid=yes 10210else case e in #( 10211 e) eval $cacheid=no ;; 10212esac 10213fi 10214rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10215 conftest$ac_exeext conftest.$ac_ext ;; 10216esac 10217fi 10218 10219 10220 CFLAGS="$xorg_testset_save_CFLAGS" 10221 10222 eval supported=\$$cacheid 10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10224printf "%s\n" "$supported" >&6; } 10225 if test "$supported" = "yes" ; then 10226 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10227 found="yes" 10228 fi 10229 fi 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245xorg_testset_save_CFLAGS="$CFLAGS" 10246 10247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10251if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10252then : 10253 printf %s "(cached) " >&6 10254else case e in #( 10255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10256/* end confdefs.h. */ 10257int i; 10258_ACEOF 10259if ac_fn_c_try_compile "$LINENO" 10260then : 10261 xorg_cv_cc_flag_unknown_warning_option=yes 10262else case e in #( 10263 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10264esac 10265fi 10266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10267esac 10268fi 10269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10270printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10272 CFLAGS="$xorg_testset_save_CFLAGS" 10273fi 10274 10275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10278 fi 10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10281printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10282if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10283then : 10284 printf %s "(cached) " >&6 10285else case e in #( 10286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288int i; 10289_ACEOF 10290if ac_fn_c_try_compile "$LINENO" 10291then : 10292 xorg_cv_cc_flag_unused_command_line_argument=yes 10293else case e in #( 10294 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10295esac 10296fi 10297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10298esac 10299fi 10300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10303 CFLAGS="$xorg_testset_save_CFLAGS" 10304fi 10305 10306found="no" 10307 10308 if test $found = "no" ; then 10309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10311 fi 10312 10313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10315 fi 10316 10317 CFLAGS="$CFLAGS -Wwrite-strings" 10318 10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10320printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10321 cacheid=xorg_cv_cc_flag__Wwrite_strings 10322 if eval test \${$cacheid+y} 10323then : 10324 printf %s "(cached) " >&6 10325else case e in #( 10326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10327/* end confdefs.h. */ 10328int i; 10329int 10330main (void) 10331{ 10332 10333 ; 10334 return 0; 10335} 10336_ACEOF 10337if ac_fn_c_try_link "$LINENO" 10338then : 10339 eval $cacheid=yes 10340else case e in #( 10341 e) eval $cacheid=no ;; 10342esac 10343fi 10344rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10345 conftest$ac_exeext conftest.$ac_ext ;; 10346esac 10347fi 10348 10349 10350 CFLAGS="$xorg_testset_save_CFLAGS" 10351 10352 eval supported=\$$cacheid 10353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10354printf "%s\n" "$supported" >&6; } 10355 if test "$supported" = "yes" ; then 10356 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10357 found="yes" 10358 fi 10359 fi 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375xorg_testset_save_CFLAGS="$CFLAGS" 10376 10377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10381if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10382then : 10383 printf %s "(cached) " >&6 10384else case e in #( 10385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10386/* end confdefs.h. */ 10387int i; 10388_ACEOF 10389if ac_fn_c_try_compile "$LINENO" 10390then : 10391 xorg_cv_cc_flag_unknown_warning_option=yes 10392else case e in #( 10393 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10394esac 10395fi 10396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10397esac 10398fi 10399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10402 CFLAGS="$xorg_testset_save_CFLAGS" 10403fi 10404 10405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10408 fi 10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10413then : 10414 printf %s "(cached) " >&6 10415else case e in #( 10416 e) 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_unused_command_line_argument=yes 10423else case e in #( 10424 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10425esac 10426fi 10427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10428esac 10429fi 10430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10431printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10433 CFLAGS="$xorg_testset_save_CFLAGS" 10434fi 10435 10436found="no" 10437 10438 if test $found = "no" ; then 10439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10441 fi 10442 10443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10445 fi 10446 10447 CFLAGS="$CFLAGS -Waddress" 10448 10449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10450printf %s "checking if $CC supports -Waddress... " >&6; } 10451 cacheid=xorg_cv_cc_flag__Waddress 10452 if eval test \${$cacheid+y} 10453then : 10454 printf %s "(cached) " >&6 10455else case e in #( 10456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10457/* end confdefs.h. */ 10458int i; 10459int 10460main (void) 10461{ 10462 10463 ; 10464 return 0; 10465} 10466_ACEOF 10467if ac_fn_c_try_link "$LINENO" 10468then : 10469 eval $cacheid=yes 10470else case e in #( 10471 e) eval $cacheid=no ;; 10472esac 10473fi 10474rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10475 conftest$ac_exeext conftest.$ac_ext ;; 10476esac 10477fi 10478 10479 10480 CFLAGS="$xorg_testset_save_CFLAGS" 10481 10482 eval supported=\$$cacheid 10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10484printf "%s\n" "$supported" >&6; } 10485 if test "$supported" = "yes" ; then 10486 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10487 found="yes" 10488 fi 10489 fi 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505xorg_testset_save_CFLAGS="$CFLAGS" 10506 10507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10511if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10512then : 10513 printf %s "(cached) " >&6 10514else case e in #( 10515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10516/* end confdefs.h. */ 10517int i; 10518_ACEOF 10519if ac_fn_c_try_compile "$LINENO" 10520then : 10521 xorg_cv_cc_flag_unknown_warning_option=yes 10522else case e in #( 10523 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10524esac 10525fi 10526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10527esac 10528fi 10529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10530printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10532 CFLAGS="$xorg_testset_save_CFLAGS" 10533fi 10534 10535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10538 fi 10539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10541printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10542if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10543then : 10544 printf %s "(cached) " >&6 10545else case e in #( 10546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10547/* end confdefs.h. */ 10548int i; 10549_ACEOF 10550if ac_fn_c_try_compile "$LINENO" 10551then : 10552 xorg_cv_cc_flag_unused_command_line_argument=yes 10553else case e in #( 10554 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10555esac 10556fi 10557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10558esac 10559fi 10560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10563 CFLAGS="$xorg_testset_save_CFLAGS" 10564fi 10565 10566found="no" 10567 10568 if test $found = "no" ; then 10569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10571 fi 10572 10573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10575 fi 10576 10577 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10578 10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10580printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10581 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10582 if eval test \${$cacheid+y} 10583then : 10584 printf %s "(cached) " >&6 10585else case e in #( 10586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10587/* end confdefs.h. */ 10588int i; 10589int 10590main (void) 10591{ 10592 10593 ; 10594 return 0; 10595} 10596_ACEOF 10597if ac_fn_c_try_link "$LINENO" 10598then : 10599 eval $cacheid=yes 10600else case e in #( 10601 e) eval $cacheid=no ;; 10602esac 10603fi 10604rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10605 conftest$ac_exeext conftest.$ac_ext ;; 10606esac 10607fi 10608 10609 10610 CFLAGS="$xorg_testset_save_CFLAGS" 10611 10612 eval supported=\$$cacheid 10613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10614printf "%s\n" "$supported" >&6; } 10615 if test "$supported" = "yes" ; then 10616 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10617 found="yes" 10618 fi 10619 fi 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635xorg_testset_save_CFLAGS="$CFLAGS" 10636 10637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10640printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10641if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10642then : 10643 printf %s "(cached) " >&6 10644else case e in #( 10645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10646/* end confdefs.h. */ 10647int i; 10648_ACEOF 10649if ac_fn_c_try_compile "$LINENO" 10650then : 10651 xorg_cv_cc_flag_unknown_warning_option=yes 10652else case e in #( 10653 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10654esac 10655fi 10656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10657esac 10658fi 10659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10662 CFLAGS="$xorg_testset_save_CFLAGS" 10663fi 10664 10665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10668 fi 10669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10672if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10673then : 10674 printf %s "(cached) " >&6 10675else case e in #( 10676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10677/* end confdefs.h. */ 10678int i; 10679_ACEOF 10680if ac_fn_c_try_compile "$LINENO" 10681then : 10682 xorg_cv_cc_flag_unused_command_line_argument=yes 10683else case e in #( 10684 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10685esac 10686fi 10687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10688esac 10689fi 10690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10693 CFLAGS="$xorg_testset_save_CFLAGS" 10694fi 10695 10696found="no" 10697 10698 if test $found = "no" ; then 10699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10701 fi 10702 10703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10705 fi 10706 10707 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10708 10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10710printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10711 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10712 if eval test \${$cacheid+y} 10713then : 10714 printf %s "(cached) " >&6 10715else case e in #( 10716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10717/* end confdefs.h. */ 10718int i; 10719int 10720main (void) 10721{ 10722 10723 ; 10724 return 0; 10725} 10726_ACEOF 10727if ac_fn_c_try_link "$LINENO" 10728then : 10729 eval $cacheid=yes 10730else case e in #( 10731 e) eval $cacheid=no ;; 10732esac 10733fi 10734rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10735 conftest$ac_exeext conftest.$ac_ext ;; 10736esac 10737fi 10738 10739 10740 CFLAGS="$xorg_testset_save_CFLAGS" 10741 10742 eval supported=\$$cacheid 10743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10744printf "%s\n" "$supported" >&6; } 10745 if test "$supported" = "yes" ; then 10746 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10747 found="yes" 10748 fi 10749 fi 10750 10751 10752fi 10753 10754 10755 10756 10757 10758 10759 10760 CWARNFLAGS="$BASE_CFLAGS" 10761 if test "x$GCC" = xyes ; then 10762 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10763 fi 10764 10765 10766 10767 10768 10769 10770 10771 10772# Check whether --enable-strict-compilation was given. 10773if test ${enable_strict_compilation+y} 10774then : 10775 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10776else case e in #( 10777 e) STRICT_COMPILE=no ;; 10778esac 10779fi 10780 10781 10782 10783 10784 10785 10786STRICT_CFLAGS="" 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800xorg_testset_save_CFLAGS="$CFLAGS" 10801 10802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10806if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10807then : 10808 printf %s "(cached) " >&6 10809else case e in #( 10810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10811/* end confdefs.h. */ 10812int i; 10813_ACEOF 10814if ac_fn_c_try_compile "$LINENO" 10815then : 10816 xorg_cv_cc_flag_unknown_warning_option=yes 10817else case e in #( 10818 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10819esac 10820fi 10821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10822esac 10823fi 10824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10827 CFLAGS="$xorg_testset_save_CFLAGS" 10828fi 10829 10830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10833 fi 10834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10837if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10838then : 10839 printf %s "(cached) " >&6 10840else case e in #( 10841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843int i; 10844_ACEOF 10845if ac_fn_c_try_compile "$LINENO" 10846then : 10847 xorg_cv_cc_flag_unused_command_line_argument=yes 10848else case e in #( 10849 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10850esac 10851fi 10852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10853esac 10854fi 10855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10858 CFLAGS="$xorg_testset_save_CFLAGS" 10859fi 10860 10861found="no" 10862 10863 if test $found = "no" ; then 10864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10866 fi 10867 10868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10870 fi 10871 10872 CFLAGS="$CFLAGS -pedantic" 10873 10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10875printf %s "checking if $CC supports -pedantic... " >&6; } 10876 cacheid=xorg_cv_cc_flag__pedantic 10877 if eval test \${$cacheid+y} 10878then : 10879 printf %s "(cached) " >&6 10880else case e in #( 10881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10882/* end confdefs.h. */ 10883int i; 10884int 10885main (void) 10886{ 10887 10888 ; 10889 return 0; 10890} 10891_ACEOF 10892if ac_fn_c_try_link "$LINENO" 10893then : 10894 eval $cacheid=yes 10895else case e in #( 10896 e) eval $cacheid=no ;; 10897esac 10898fi 10899rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10900 conftest$ac_exeext conftest.$ac_ext ;; 10901esac 10902fi 10903 10904 10905 CFLAGS="$xorg_testset_save_CFLAGS" 10906 10907 eval supported=\$$cacheid 10908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10909printf "%s\n" "$supported" >&6; } 10910 if test "$supported" = "yes" ; then 10911 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10912 found="yes" 10913 fi 10914 fi 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930xorg_testset_save_CFLAGS="$CFLAGS" 10931 10932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10936if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10937then : 10938 printf %s "(cached) " >&6 10939else case e in #( 10940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10941/* end confdefs.h. */ 10942int i; 10943_ACEOF 10944if ac_fn_c_try_compile "$LINENO" 10945then : 10946 xorg_cv_cc_flag_unknown_warning_option=yes 10947else case e in #( 10948 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10949esac 10950fi 10951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10952esac 10953fi 10954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10957 CFLAGS="$xorg_testset_save_CFLAGS" 10958fi 10959 10960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10963 fi 10964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10967if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10968then : 10969 printf %s "(cached) " >&6 10970else case e in #( 10971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10972/* end confdefs.h. */ 10973int i; 10974_ACEOF 10975if ac_fn_c_try_compile "$LINENO" 10976then : 10977 xorg_cv_cc_flag_unused_command_line_argument=yes 10978else case e in #( 10979 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10980esac 10981fi 10982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10983esac 10984fi 10985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10988 CFLAGS="$xorg_testset_save_CFLAGS" 10989fi 10990 10991found="no" 10992 10993 if test $found = "no" ; then 10994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10996 fi 10997 10998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11000 fi 11001 11002 CFLAGS="$CFLAGS -Werror" 11003 11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11005printf %s "checking if $CC supports -Werror... " >&6; } 11006 cacheid=xorg_cv_cc_flag__Werror 11007 if eval test \${$cacheid+y} 11008then : 11009 printf %s "(cached) " >&6 11010else case e in #( 11011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11012/* end confdefs.h. */ 11013int i; 11014int 11015main (void) 11016{ 11017 11018 ; 11019 return 0; 11020} 11021_ACEOF 11022if ac_fn_c_try_link "$LINENO" 11023then : 11024 eval $cacheid=yes 11025else case e in #( 11026 e) eval $cacheid=no ;; 11027esac 11028fi 11029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11030 conftest$ac_exeext conftest.$ac_ext ;; 11031esac 11032fi 11033 11034 11035 CFLAGS="$xorg_testset_save_CFLAGS" 11036 11037 eval supported=\$$cacheid 11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11039printf "%s\n" "$supported" >&6; } 11040 if test "$supported" = "yes" ; then 11041 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11042 found="yes" 11043 fi 11044 fi 11045 11046 if test $found = "no" ; then 11047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11049 fi 11050 11051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11053 fi 11054 11055 CFLAGS="$CFLAGS -errwarn" 11056 11057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11058printf %s "checking if $CC supports -errwarn... " >&6; } 11059 cacheid=xorg_cv_cc_flag__errwarn 11060 if eval test \${$cacheid+y} 11061then : 11062 printf %s "(cached) " >&6 11063else case e in #( 11064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11065/* end confdefs.h. */ 11066int i; 11067int 11068main (void) 11069{ 11070 11071 ; 11072 return 0; 11073} 11074_ACEOF 11075if ac_fn_c_try_link "$LINENO" 11076then : 11077 eval $cacheid=yes 11078else case e in #( 11079 e) eval $cacheid=no ;; 11080esac 11081fi 11082rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11083 conftest$ac_exeext conftest.$ac_ext ;; 11084esac 11085fi 11086 11087 11088 CFLAGS="$xorg_testset_save_CFLAGS" 11089 11090 eval supported=\$$cacheid 11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11092printf "%s\n" "$supported" >&6; } 11093 if test "$supported" = "yes" ; then 11094 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11095 found="yes" 11096 fi 11097 fi 11098 11099 11100 11101# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11102# activate it with -Werror, so we add it here explicitly. 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116xorg_testset_save_CFLAGS="$CFLAGS" 11117 11118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11121printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11122if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11123then : 11124 printf %s "(cached) " >&6 11125else case e in #( 11126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11127/* end confdefs.h. */ 11128int i; 11129_ACEOF 11130if ac_fn_c_try_compile "$LINENO" 11131then : 11132 xorg_cv_cc_flag_unknown_warning_option=yes 11133else case e in #( 11134 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11135esac 11136fi 11137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11138esac 11139fi 11140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11141printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11143 CFLAGS="$xorg_testset_save_CFLAGS" 11144fi 11145 11146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11149 fi 11150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11152printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11153if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11154then : 11155 printf %s "(cached) " >&6 11156else case e in #( 11157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11158/* end confdefs.h. */ 11159int i; 11160_ACEOF 11161if ac_fn_c_try_compile "$LINENO" 11162then : 11163 xorg_cv_cc_flag_unused_command_line_argument=yes 11164else case e in #( 11165 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11166esac 11167fi 11168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11169esac 11170fi 11171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11172printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11174 CFLAGS="$xorg_testset_save_CFLAGS" 11175fi 11176 11177found="no" 11178 11179 if test $found = "no" ; then 11180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11182 fi 11183 11184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11186 fi 11187 11188 CFLAGS="$CFLAGS -Werror=attributes" 11189 11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11191printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11192 cacheid=xorg_cv_cc_flag__Werror_attributes 11193 if eval test \${$cacheid+y} 11194then : 11195 printf %s "(cached) " >&6 11196else case e in #( 11197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11198/* end confdefs.h. */ 11199int i; 11200int 11201main (void) 11202{ 11203 11204 ; 11205 return 0; 11206} 11207_ACEOF 11208if ac_fn_c_try_link "$LINENO" 11209then : 11210 eval $cacheid=yes 11211else case e in #( 11212 e) eval $cacheid=no ;; 11213esac 11214fi 11215rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11216 conftest$ac_exeext conftest.$ac_ext ;; 11217esac 11218fi 11219 11220 11221 CFLAGS="$xorg_testset_save_CFLAGS" 11222 11223 eval supported=\$$cacheid 11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11225printf "%s\n" "$supported" >&6; } 11226 if test "$supported" = "yes" ; then 11227 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11228 found="yes" 11229 fi 11230 fi 11231 11232 11233 11234if test "x$STRICT_COMPILE" = "xyes"; then 11235 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11236 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11237fi 11238 11239 11240 11241 11242 11243 11244 11245 11246cat >>confdefs.h <<_ACEOF 11247#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11248_ACEOF 11249 11250 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11251 if test "x$PVM" = "x"; then 11252 PVM="0" 11253 fi 11254 11255printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11256 11257 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11258 if test "x$PVP" = "x"; then 11259 PVP="0" 11260 fi 11261 11262printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11263 11264 11265 11266CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11267mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11268|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11269touch \$(top_srcdir)/ChangeLog; \ 11270echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11271 11272 11273 11274 11275macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11276INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11277mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11278|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11279touch \$(top_srcdir)/INSTALL; \ 11280echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11281 11282 11283 11284 11285 11286 11287case $host_os in 11288 solaris*) 11289 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11290 # check for a man page file found in later versions that use 11291 # traditional section numbers instead 11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11293printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11294if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11295then : 11296 printf %s "(cached) " >&6 11297else case e in #( 11298 e) test "$cross_compiling" = yes && 11299 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11300if test -r "/usr/share/man/man7/attributes.7"; then 11301 ac_cv_file__usr_share_man_man7_attributes_7=yes 11302else 11303 ac_cv_file__usr_share_man_man7_attributes_7=no 11304fi ;; 11305esac 11306fi 11307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11308printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11309if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11310then : 11311 SYSV_MAN_SECTIONS=false 11312else case e in #( 11313 e) SYSV_MAN_SECTIONS=true ;; 11314esac 11315fi 11316 11317 ;; 11318 *) SYSV_MAN_SECTIONS=false ;; 11319esac 11320 11321if test x$APP_MAN_SUFFIX = x ; then 11322 APP_MAN_SUFFIX=1 11323fi 11324if test x$APP_MAN_DIR = x ; then 11325 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11326fi 11327 11328if test x$LIB_MAN_SUFFIX = x ; then 11329 LIB_MAN_SUFFIX=3 11330fi 11331if test x$LIB_MAN_DIR = x ; then 11332 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11333fi 11334 11335if test x$FILE_MAN_SUFFIX = x ; then 11336 case $SYSV_MAN_SECTIONS in 11337 true) FILE_MAN_SUFFIX=4 ;; 11338 *) FILE_MAN_SUFFIX=5 ;; 11339 esac 11340fi 11341if test x$FILE_MAN_DIR = x ; then 11342 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11343fi 11344 11345if test x$MISC_MAN_SUFFIX = x ; then 11346 case $SYSV_MAN_SECTIONS in 11347 true) MISC_MAN_SUFFIX=5 ;; 11348 *) MISC_MAN_SUFFIX=7 ;; 11349 esac 11350fi 11351if test x$MISC_MAN_DIR = x ; then 11352 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11353fi 11354 11355if test x$DRIVER_MAN_SUFFIX = x ; then 11356 case $SYSV_MAN_SECTIONS in 11357 true) DRIVER_MAN_SUFFIX=7 ;; 11358 *) DRIVER_MAN_SUFFIX=4 ;; 11359 esac 11360fi 11361if test x$DRIVER_MAN_DIR = x ; then 11362 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11363fi 11364 11365if test x$ADMIN_MAN_SUFFIX = x ; then 11366 case $SYSV_MAN_SECTIONS in 11367 true) ADMIN_MAN_SUFFIX=1m ;; 11368 *) ADMIN_MAN_SUFFIX=8 ;; 11369 esac 11370fi 11371if test x$ADMIN_MAN_DIR = x ; then 11372 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11373fi 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389XORG_MAN_PAGE="X Version 11" 11390 11391MAN_SUBSTS="\ 11392 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11393 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11394 -e 's|__xservername__|Xorg|g' \ 11395 -e 's|__xconfigfile__|xorg.conf|g' \ 11396 -e 's|__projectroot__|\$(prefix)|g' \ 11397 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11398 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11399 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11400 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11401 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11402 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11403 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11404 11405 11406 11407# Check whether --enable-silent-rules was given. 11408if test ${enable_silent_rules+y} 11409then : 11410 enableval=$enable_silent_rules; 11411fi 11412 11413case $enable_silent_rules in # ((( 11414 yes) AM_DEFAULT_VERBOSITY=0;; 11415 no) AM_DEFAULT_VERBOSITY=1;; 11416 *) AM_DEFAULT_VERBOSITY=0;; 11417esac 11418am_make=${MAKE-make} 11419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11420printf %s "checking whether $am_make supports nested variables... " >&6; } 11421if test ${am_cv_make_support_nested_variables+y} 11422then : 11423 printf %s "(cached) " >&6 11424else case e in #( 11425 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11426BAR0=false 11427BAR1=true 11428V=1 11429am__doit: 11430 @$(TRUE) 11431.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11432 am_cv_make_support_nested_variables=yes 11433else 11434 am_cv_make_support_nested_variables=no 11435fi ;; 11436esac 11437fi 11438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11439printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11440if test $am_cv_make_support_nested_variables = yes; then 11441 AM_V='$(V)' 11442 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11443else 11444 AM_V=$AM_DEFAULT_VERBOSITY 11445 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11446fi 11447AM_BACKSLASH='\' 11448 11449 11450 11451 11452# Checks for pkg-config packages 11453 11454pkg_failed=no 11455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPRES" >&5 11456printf %s "checking for APPRES... " >&6; } 11457 11458if test -n "$APPRES_CFLAGS"; then 11459 pkg_cv_APPRES_CFLAGS="$APPRES_CFLAGS" 11460 elif test -n "$PKG_CONFIG"; then 11461 if test -n "$PKG_CONFIG" && \ 11462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xproto >= 7.0.17\""; } >&5 11463 ($PKG_CONFIG --exists --print-errors "x11 xt xproto >= 7.0.17") 2>&5 11464 ac_status=$? 11465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11466 test $ac_status = 0; }; then 11467 pkg_cv_APPRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xproto >= 7.0.17" 2>/dev/null` 11468 test "x$?" != "x0" && pkg_failed=yes 11469else 11470 pkg_failed=yes 11471fi 11472 else 11473 pkg_failed=untried 11474fi 11475if test -n "$APPRES_LIBS"; then 11476 pkg_cv_APPRES_LIBS="$APPRES_LIBS" 11477 elif test -n "$PKG_CONFIG"; then 11478 if test -n "$PKG_CONFIG" && \ 11479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xproto >= 7.0.17\""; } >&5 11480 ($PKG_CONFIG --exists --print-errors "x11 xt xproto >= 7.0.17") 2>&5 11481 ac_status=$? 11482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11483 test $ac_status = 0; }; then 11484 pkg_cv_APPRES_LIBS=`$PKG_CONFIG --libs "x11 xt xproto >= 7.0.17" 2>/dev/null` 11485 test "x$?" != "x0" && pkg_failed=yes 11486else 11487 pkg_failed=yes 11488fi 11489 else 11490 pkg_failed=untried 11491fi 11492 11493 11494 11495if test $pkg_failed = yes; then 11496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11497printf "%s\n" "no" >&6; } 11498 11499if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11500 _pkg_short_errors_supported=yes 11501else 11502 _pkg_short_errors_supported=no 11503fi 11504 if test $_pkg_short_errors_supported = yes; then 11505 APPRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xproto >= 7.0.17" 2>&1` 11506 else 11507 APPRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xproto >= 7.0.17" 2>&1` 11508 fi 11509 # Put the nasty error message in config.log where it belongs 11510 echo "$APPRES_PKG_ERRORS" >&5 11511 11512 as_fn_error $? "Package requirements (x11 xt xproto >= 7.0.17) were not met: 11513 11514$APPRES_PKG_ERRORS 11515 11516Consider adjusting the PKG_CONFIG_PATH environment variable if you 11517installed software in a non-standard prefix. 11518 11519Alternatively, you may set the environment variables APPRES_CFLAGS 11520and APPRES_LIBS to avoid the need to call pkg-config. 11521See the pkg-config man page for more details." "$LINENO" 5 11522elif test $pkg_failed = untried; then 11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11524printf "%s\n" "no" >&6; } 11525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11526printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11527as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11528is in your PATH or set the PKG_CONFIG environment variable to the full 11529path to pkg-config. 11530 11531Alternatively, you may set the environment variables APPRES_CFLAGS 11532and APPRES_LIBS to avoid the need to call pkg-config. 11533See the pkg-config man page for more details. 11534 11535To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11536See 'config.log' for more details" "$LINENO" 5; } 11537else 11538 APPRES_CFLAGS=$pkg_cv_APPRES_CFLAGS 11539 APPRES_LIBS=$pkg_cv_APPRES_LIBS 11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11541printf "%s\n" "yes" >&6; } 11542 11543fi 11544 11545# Substitute config variables in man pages 11546ac_config_files="$ac_config_files man/appres.1:man/appres.man" 11547 11548 11549ac_config_files="$ac_config_files Makefile man/Makefile" 11550 11551cat >confcache <<\_ACEOF 11552# This file is a shell script that caches the results of configure 11553# tests run on this system so they can be shared between configure 11554# scripts and configure runs, see configure's option --config-cache. 11555# It is not useful on other systems. If it contains results you don't 11556# want to keep, you may remove or edit it. 11557# 11558# config.status only pays attention to the cache file if you give it 11559# the --recheck option to rerun configure. 11560# 11561# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11562# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11563# following values. 11564 11565_ACEOF 11566 11567# The following way of writing the cache mishandles newlines in values, 11568# but we know of no workaround that is simple, portable, and efficient. 11569# So, we kill variables containing newlines. 11570# Ultrix sh set writes to stderr and can't be redirected directly, 11571# and sets the high bit in the cache file unless we assign to the vars. 11572( 11573 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11574 eval ac_val=\$$ac_var 11575 case $ac_val in #( 11576 *${as_nl}*) 11577 case $ac_var in #( 11578 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11579printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11580 esac 11581 case $ac_var in #( 11582 _ | IFS | as_nl) ;; #( 11583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11584 *) { eval $ac_var=; unset $ac_var;} ;; 11585 esac ;; 11586 esac 11587 done 11588 11589 (set) 2>&1 | 11590 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11591 *${as_nl}ac_space=\ *) 11592 # 'set' does not quote correctly, so add quotes: double-quote 11593 # substitution turns \\\\ into \\, and sed turns \\ into \. 11594 sed -n \ 11595 "s/'/'\\\\''/g; 11596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11597 ;; #( 11598 *) 11599 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11601 ;; 11602 esac | 11603 sort 11604) | 11605 sed ' 11606 /^ac_cv_env_/b end 11607 t clear 11608 :clear 11609 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11610 t end 11611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11612 :end' >>confcache 11613if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11614 if test -w "$cache_file"; then 11615 if test "x$cache_file" != "x/dev/null"; then 11616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11617printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11618 if test ! -f "$cache_file" || test -h "$cache_file"; then 11619 cat confcache >"$cache_file" 11620 else 11621 case $cache_file in #( 11622 */* | ?:*) 11623 mv -f confcache "$cache_file"$$ && 11624 mv -f "$cache_file"$$ "$cache_file" ;; #( 11625 *) 11626 mv -f confcache "$cache_file" ;; 11627 esac 11628 fi 11629 fi 11630 else 11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11632printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11633 fi 11634fi 11635rm -f confcache 11636 11637test "x$prefix" = xNONE && prefix=$ac_default_prefix 11638# Let make expand exec_prefix. 11639test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11640 11641DEFS=-DHAVE_CONFIG_H 11642 11643ac_libobjs= 11644ac_ltlibobjs= 11645U= 11646for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11647 # 1. Remove the extension, and $U if already installed. 11648 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11649 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11650 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11651 # will be set to the directory where LIBOBJS objects are built. 11652 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11653 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11654done 11655LIBOBJS=$ac_libobjs 11656 11657LTLIBOBJS=$ac_ltlibobjs 11658 11659 11660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11661printf %s "checking that generated files are newer than configure... " >&6; } 11662 if test -n "$am_sleep_pid"; then 11663 # Hide warnings about reused PIDs. 11664 wait $am_sleep_pid 2>/dev/null 11665 fi 11666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11667printf "%s\n" "done" >&6; } 11668 if test -n "$EXEEXT"; then 11669 am__EXEEXT_TRUE= 11670 am__EXEEXT_FALSE='#' 11671else 11672 am__EXEEXT_TRUE='#' 11673 am__EXEEXT_FALSE= 11674fi 11675 11676if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11677 as_fn_error $? "conditional \"AMDEP\" was never defined. 11678Usually this means the macro was only invoked conditionally." "$LINENO" 5 11679fi 11680if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11681 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11682Usually this means the macro was only invoked conditionally." "$LINENO" 5 11683fi 11684 11685: "${CONFIG_STATUS=./config.status}" 11686ac_write_fail=0 11687ac_clean_files_save=$ac_clean_files 11688ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11690printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11691as_write_fail=0 11692cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11693#! $SHELL 11694# Generated by $as_me. 11695# Run this file to recreate the current configuration. 11696# Compiler output produced by configure, useful for debugging 11697# configure, is in config.log if it exists. 11698 11699debug=false 11700ac_cs_recheck=false 11701ac_cs_silent=false 11702 11703SHELL=\${CONFIG_SHELL-$SHELL} 11704export SHELL 11705_ASEOF 11706cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11707## -------------------- ## 11708## M4sh Initialization. ## 11709## -------------------- ## 11710 11711# Be more Bourne compatible 11712DUALCASE=1; export DUALCASE # for MKS sh 11713if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11714then : 11715 emulate sh 11716 NULLCMD=: 11717 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11718 # is contrary to our usage. Disable this feature. 11719 alias -g '${1+"$@"}'='"$@"' 11720 setopt NO_GLOB_SUBST 11721else case e in #( 11722 e) case `(set -o) 2>/dev/null` in #( 11723 *posix*) : 11724 set -o posix ;; #( 11725 *) : 11726 ;; 11727esac ;; 11728esac 11729fi 11730 11731 11732 11733# Reset variables that may have inherited troublesome values from 11734# the environment. 11735 11736# IFS needs to be set, to space, tab, and newline, in precisely that order. 11737# (If _AS_PATH_WALK were called with IFS unset, it would have the 11738# side effect of setting IFS to empty, thus disabling word splitting.) 11739# Quoting is to prevent editors from complaining about space-tab. 11740as_nl=' 11741' 11742export as_nl 11743IFS=" "" $as_nl" 11744 11745PS1='$ ' 11746PS2='> ' 11747PS4='+ ' 11748 11749# Ensure predictable behavior from utilities with locale-dependent output. 11750LC_ALL=C 11751export LC_ALL 11752LANGUAGE=C 11753export LANGUAGE 11754 11755# We cannot yet rely on "unset" to work, but we need these variables 11756# to be unset--not just set to an empty or harmless value--now, to 11757# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11758# also avoids known problems related to "unset" and subshell syntax 11759# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11760for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11761do eval test \${$as_var+y} \ 11762 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11763done 11764 11765# Ensure that fds 0, 1, and 2 are open. 11766if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11767if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11768if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11769 11770# The user is always right. 11771if ${PATH_SEPARATOR+false} :; then 11772 PATH_SEPARATOR=: 11773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11775 PATH_SEPARATOR=';' 11776 } 11777fi 11778 11779 11780# Find who we are. Look in the path if we contain no directory separator. 11781as_myself= 11782case $0 in #(( 11783 *[\\/]* ) as_myself=$0 ;; 11784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11785for as_dir in $PATH 11786do 11787 IFS=$as_save_IFS 11788 case $as_dir in #((( 11789 '') as_dir=./ ;; 11790 */) ;; 11791 *) as_dir=$as_dir/ ;; 11792 esac 11793 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11794 done 11795IFS=$as_save_IFS 11796 11797 ;; 11798esac 11799# We did not find ourselves, most probably we were run as 'sh COMMAND' 11800# in which case we are not to be found in the path. 11801if test "x$as_myself" = x; then 11802 as_myself=$0 11803fi 11804if test ! -f "$as_myself"; then 11805 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11806 exit 1 11807fi 11808 11809 11810 11811# as_fn_error STATUS ERROR [LINENO LOG_FD] 11812# ---------------------------------------- 11813# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11814# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11815# script with STATUS, using 1 if that was 0. 11816as_fn_error () 11817{ 11818 as_status=$1; test $as_status -eq 0 && as_status=1 11819 if test "$4"; then 11820 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11822 fi 11823 printf "%s\n" "$as_me: error: $2" >&2 11824 as_fn_exit $as_status 11825} # as_fn_error 11826 11827 11828# as_fn_set_status STATUS 11829# ----------------------- 11830# Set $? to STATUS, without forking. 11831as_fn_set_status () 11832{ 11833 return $1 11834} # as_fn_set_status 11835 11836# as_fn_exit STATUS 11837# ----------------- 11838# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11839as_fn_exit () 11840{ 11841 set +e 11842 as_fn_set_status $1 11843 exit $1 11844} # as_fn_exit 11845 11846# as_fn_unset VAR 11847# --------------- 11848# Portably unset VAR. 11849as_fn_unset () 11850{ 11851 { eval $1=; unset $1;} 11852} 11853as_unset=as_fn_unset 11854 11855# as_fn_append VAR VALUE 11856# ---------------------- 11857# Append the text in VALUE to the end of the definition contained in VAR. Take 11858# advantage of any shell optimizations that allow amortized linear growth over 11859# repeated appends, instead of the typical quadratic growth present in naive 11860# implementations. 11861if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11862then : 11863 eval 'as_fn_append () 11864 { 11865 eval $1+=\$2 11866 }' 11867else case e in #( 11868 e) as_fn_append () 11869 { 11870 eval $1=\$$1\$2 11871 } ;; 11872esac 11873fi # as_fn_append 11874 11875# as_fn_arith ARG... 11876# ------------------ 11877# Perform arithmetic evaluation on the ARGs, and store the result in the 11878# global $as_val. Take advantage of shells that can avoid forks. The arguments 11879# must be portable across $(()) and expr. 11880if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11881then : 11882 eval 'as_fn_arith () 11883 { 11884 as_val=$(( $* )) 11885 }' 11886else case e in #( 11887 e) as_fn_arith () 11888 { 11889 as_val=`expr "$@" || test $? -eq 1` 11890 } ;; 11891esac 11892fi # as_fn_arith 11893 11894 11895if expr a : '\(a\)' >/dev/null 2>&1 && 11896 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11897 as_expr=expr 11898else 11899 as_expr=false 11900fi 11901 11902if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11903 as_basename=basename 11904else 11905 as_basename=false 11906fi 11907 11908if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11909 as_dirname=dirname 11910else 11911 as_dirname=false 11912fi 11913 11914as_me=`$as_basename -- "$0" || 11915$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11916 X"$0" : 'X\(//\)$' \| \ 11917 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11918printf "%s\n" X/"$0" | 11919 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11920 s//\1/ 11921 q 11922 } 11923 /^X\/\(\/\/\)$/{ 11924 s//\1/ 11925 q 11926 } 11927 /^X\/\(\/\).*/{ 11928 s//\1/ 11929 q 11930 } 11931 s/.*/./; q'` 11932 11933# Avoid depending upon Character Ranges. 11934as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11935as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11936as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11937as_cr_digits='0123456789' 11938as_cr_alnum=$as_cr_Letters$as_cr_digits 11939 11940 11941# Determine whether it's possible to make 'echo' print without a newline. 11942# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11943# for compatibility with existing Makefiles. 11944ECHO_C= ECHO_N= ECHO_T= 11945case `echo -n x` in #((((( 11946-n*) 11947 case `echo 'xy\c'` in 11948 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11949 xy) ECHO_C='\c';; 11950 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11951 ECHO_T=' ';; 11952 esac;; 11953*) 11954 ECHO_N='-n';; 11955esac 11956 11957# For backward compatibility with old third-party macros, we provide 11958# the shell variables $as_echo and $as_echo_n. New code should use 11959# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11960as_echo='printf %s\n' 11961as_echo_n='printf %s' 11962 11963rm -f conf$$ conf$$.exe conf$$.file 11964if test -d conf$$.dir; then 11965 rm -f conf$$.dir/conf$$.file 11966else 11967 rm -f conf$$.dir 11968 mkdir conf$$.dir 2>/dev/null 11969fi 11970if (echo >conf$$.file) 2>/dev/null; then 11971 if ln -s conf$$.file conf$$ 2>/dev/null; then 11972 as_ln_s='ln -s' 11973 # ... but there are two gotchas: 11974 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 11975 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 11976 # In both cases, we have to default to 'cp -pR'. 11977 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11978 as_ln_s='cp -pR' 11979 elif ln conf$$.file conf$$ 2>/dev/null; then 11980 as_ln_s=ln 11981 else 11982 as_ln_s='cp -pR' 11983 fi 11984else 11985 as_ln_s='cp -pR' 11986fi 11987rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11988rmdir conf$$.dir 2>/dev/null 11989 11990 11991# as_fn_mkdir_p 11992# ------------- 11993# Create "$as_dir" as a directory, including parents if necessary. 11994as_fn_mkdir_p () 11995{ 11996 11997 case $as_dir in #( 11998 -*) as_dir=./$as_dir;; 11999 esac 12000 test -d "$as_dir" || eval $as_mkdir_p || { 12001 as_dirs= 12002 while :; do 12003 case $as_dir in #( 12004 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12005 *) as_qdir=$as_dir;; 12006 esac 12007 as_dirs="'$as_qdir' $as_dirs" 12008 as_dir=`$as_dirname -- "$as_dir" || 12009$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12010 X"$as_dir" : 'X\(//\)[^/]' \| \ 12011 X"$as_dir" : 'X\(//\)$' \| \ 12012 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12013printf "%s\n" X"$as_dir" | 12014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12015 s//\1/ 12016 q 12017 } 12018 /^X\(\/\/\)[^/].*/{ 12019 s//\1/ 12020 q 12021 } 12022 /^X\(\/\/\)$/{ 12023 s//\1/ 12024 q 12025 } 12026 /^X\(\/\).*/{ 12027 s//\1/ 12028 q 12029 } 12030 s/.*/./; q'` 12031 test -d "$as_dir" && break 12032 done 12033 test -z "$as_dirs" || eval "mkdir $as_dirs" 12034 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12035 12036 12037} # as_fn_mkdir_p 12038if mkdir -p . 2>/dev/null; then 12039 as_mkdir_p='mkdir -p "$as_dir"' 12040else 12041 test -d ./-p && rmdir ./-p 12042 as_mkdir_p=false 12043fi 12044 12045 12046# as_fn_executable_p FILE 12047# ----------------------- 12048# Test if FILE is an executable regular file. 12049as_fn_executable_p () 12050{ 12051 test -f "$1" && test -x "$1" 12052} # as_fn_executable_p 12053as_test_x='test -x' 12054as_executable_p=as_fn_executable_p 12055 12056# Sed expression to map a string onto a valid CPP name. 12057as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12058as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12059 12060# Sed expression to map a string onto a valid variable name. 12061as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12062as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12063 12064 12065exec 6>&1 12066## ----------------------------------- ## 12067## Main body of $CONFIG_STATUS script. ## 12068## ----------------------------------- ## 12069_ASEOF 12070test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12071 12072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12073# Save the log message, to keep $0 and so on meaningful, and to 12074# report actual input values of CONFIG_FILES etc. instead of their 12075# values after options handling. 12076ac_log=" 12077This file was extended by appres $as_me 1.0.7, which was 12078generated by GNU Autoconf 2.72. Invocation command line was 12079 12080 CONFIG_FILES = $CONFIG_FILES 12081 CONFIG_HEADERS = $CONFIG_HEADERS 12082 CONFIG_LINKS = $CONFIG_LINKS 12083 CONFIG_COMMANDS = $CONFIG_COMMANDS 12084 $ $0 $@ 12085 12086on `(hostname || uname -n) 2>/dev/null | sed 1q` 12087" 12088 12089_ACEOF 12090 12091case $ac_config_files in *" 12092"*) set x $ac_config_files; shift; ac_config_files=$*;; 12093esac 12094 12095case $ac_config_headers in *" 12096"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12097esac 12098 12099 12100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12101# Files that config.status was made for. 12102config_files="$ac_config_files" 12103config_headers="$ac_config_headers" 12104config_commands="$ac_config_commands" 12105 12106_ACEOF 12107 12108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12109ac_cs_usage="\ 12110'$as_me' instantiates files and other configuration actions 12111from templates according to the current configuration. Unless the files 12112and actions are specified as TAGs, all are instantiated by default. 12113 12114Usage: $0 [OPTION]... [TAG]... 12115 12116 -h, --help print this help, then exit 12117 -V, --version print version number and configuration settings, then exit 12118 --config print configuration, then exit 12119 -q, --quiet, --silent 12120 do not print progress messages 12121 -d, --debug don't remove temporary files 12122 --recheck update $as_me by reconfiguring in the same conditions 12123 --file=FILE[:TEMPLATE] 12124 instantiate the configuration file FILE 12125 --header=FILE[:TEMPLATE] 12126 instantiate the configuration header FILE 12127 12128Configuration files: 12129$config_files 12130 12131Configuration headers: 12132$config_headers 12133 12134Configuration commands: 12135$config_commands 12136 12137Report bugs to <https://gitlab.freedesktop.org/xorg/app/appres/issues>." 12138 12139_ACEOF 12140ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12141ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12143ac_cs_config='$ac_cs_config_escaped' 12144ac_cs_version="\\ 12145appres config.status 1.0.7 12146configured by $0, generated by GNU Autoconf 2.72, 12147 with options \\"\$ac_cs_config\\" 12148 12149Copyright (C) 2023 Free Software Foundation, Inc. 12150This config.status script is free software; the Free Software Foundation 12151gives unlimited permission to copy, distribute and modify it." 12152 12153ac_pwd='$ac_pwd' 12154srcdir='$srcdir' 12155INSTALL='$INSTALL' 12156MKDIR_P='$MKDIR_P' 12157AWK='$AWK' 12158test -n "\$AWK" || AWK=awk 12159_ACEOF 12160 12161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12162# The default lists apply if the user does not specify any file. 12163ac_need_defaults=: 12164while test $# != 0 12165do 12166 case $1 in 12167 --*=?*) 12168 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12169 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12170 ac_shift=: 12171 ;; 12172 --*=) 12173 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12174 ac_optarg= 12175 ac_shift=: 12176 ;; 12177 *) 12178 ac_option=$1 12179 ac_optarg=$2 12180 ac_shift=shift 12181 ;; 12182 esac 12183 12184 case $ac_option in 12185 # Handling of the options. 12186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12187 ac_cs_recheck=: ;; 12188 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12189 printf "%s\n" "$ac_cs_version"; exit ;; 12190 --config | --confi | --conf | --con | --co | --c ) 12191 printf "%s\n" "$ac_cs_config"; exit ;; 12192 --debug | --debu | --deb | --de | --d | -d ) 12193 debug=: ;; 12194 --file | --fil | --fi | --f ) 12195 $ac_shift 12196 case $ac_optarg in 12197 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12198 '') as_fn_error $? "missing file argument" ;; 12199 esac 12200 as_fn_append CONFIG_FILES " '$ac_optarg'" 12201 ac_need_defaults=false;; 12202 --header | --heade | --head | --hea ) 12203 $ac_shift 12204 case $ac_optarg in 12205 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12206 esac 12207 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12208 ac_need_defaults=false;; 12209 --he | --h) 12210 # Conflict between --help and --header 12211 as_fn_error $? "ambiguous option: '$1' 12212Try '$0 --help' for more information.";; 12213 --help | --hel | -h ) 12214 printf "%s\n" "$ac_cs_usage"; exit ;; 12215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12216 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12217 ac_cs_silent=: ;; 12218 12219 # This is an error. 12220 -*) as_fn_error $? "unrecognized option: '$1' 12221Try '$0 --help' for more information." ;; 12222 12223 *) as_fn_append ac_config_targets " $1" 12224 ac_need_defaults=false ;; 12225 12226 esac 12227 shift 12228done 12229 12230ac_configure_extra_args= 12231 12232if $ac_cs_silent; then 12233 exec 6>/dev/null 12234 ac_configure_extra_args="$ac_configure_extra_args --silent" 12235fi 12236 12237_ACEOF 12238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12239if \$ac_cs_recheck; then 12240 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12241 shift 12242 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12243 CONFIG_SHELL='$SHELL' 12244 export CONFIG_SHELL 12245 exec "\$@" 12246fi 12247 12248_ACEOF 12249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12250exec 5>>config.log 12251{ 12252 echo 12253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12254## Running $as_me. ## 12255_ASBOX 12256 printf "%s\n" "$ac_log" 12257} >&5 12258 12259_ACEOF 12260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12261# 12262# INIT-COMMANDS 12263# 12264AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12265 12266_ACEOF 12267 12268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12269 12270# Handling of arguments. 12271for ac_config_target in $ac_config_targets 12272do 12273 case $ac_config_target in 12274 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12275 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12276 "man/appres.1") CONFIG_FILES="$CONFIG_FILES man/appres.1:man/appres.man" ;; 12277 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12278 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12279 12280 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12281 esac 12282done 12283 12284 12285# If the user did not use the arguments to specify the items to instantiate, 12286# then the envvar interface is used. Set only those that are not. 12287# We use the long form for the default assignment because of an extremely 12288# bizarre bug on SunOS 4.1.3. 12289if $ac_need_defaults; then 12290 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12291 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12292 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12293fi 12294 12295# Have a temporary directory for convenience. Make it in the build tree 12296# simply because there is no reason against having it here, and in addition, 12297# creating and moving files from /tmp can sometimes cause problems. 12298# Hook for its removal unless debugging. 12299# Note that there is a small window in which the directory will not be cleaned: 12300# after its creation but before its name has been assigned to '$tmp'. 12301$debug || 12302{ 12303 tmp= ac_tmp= 12304 trap 'exit_status=$? 12305 : "${ac_tmp:=$tmp}" 12306 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12307' 0 12308 trap 'as_fn_exit 1' 1 2 13 15 12309} 12310# Create a (secure) tmp directory for tmp files. 12311 12312{ 12313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12314 test -d "$tmp" 12315} || 12316{ 12317 tmp=./conf$$-$RANDOM 12318 (umask 077 && mkdir "$tmp") 12319} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12320ac_tmp=$tmp 12321 12322# Set up the scripts for CONFIG_FILES section. 12323# No need to generate them if there are no CONFIG_FILES. 12324# This happens for instance with './config.status config.h'. 12325if test -n "$CONFIG_FILES"; then 12326 12327 12328ac_cr=`echo X | tr X '\015'` 12329# On cygwin, bash can eat \r inside `` if the user requested igncr. 12330# But we know of no other shell where ac_cr would be empty at this 12331# point, so we can use a bashism as a fallback. 12332if test "x$ac_cr" = x; then 12333 eval ac_cr=\$\'\\r\' 12334fi 12335ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12336if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12337 ac_cs_awk_cr='\\r' 12338else 12339 ac_cs_awk_cr=$ac_cr 12340fi 12341 12342echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12343_ACEOF 12344 12345 12346{ 12347 echo "cat >conf$$subs.awk <<_ACEOF" && 12348 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12349 echo "_ACEOF" 12350} >conf$$subs.sh || 12351 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12352ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12353ac_delim='%!_!# ' 12354for ac_last_try in false false false false false :; do 12355 . ./conf$$subs.sh || 12356 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12357 12358 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12359 if test $ac_delim_n = $ac_delim_num; then 12360 break 12361 elif $ac_last_try; then 12362 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12363 else 12364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12365 fi 12366done 12367rm -f conf$$subs.sh 12368 12369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12370cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12371_ACEOF 12372sed -n ' 12373h 12374s/^/S["/; s/!.*/"]=/ 12375p 12376g 12377s/^[^!]*!// 12378:repl 12379t repl 12380s/'"$ac_delim"'$// 12381t delim 12382:nl 12383h 12384s/\(.\{148\}\)..*/\1/ 12385t more1 12386s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12387p 12388n 12389b repl 12390:more1 12391s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12392p 12393g 12394s/.\{148\}// 12395t nl 12396:delim 12397h 12398s/\(.\{148\}\)..*/\1/ 12399t more2 12400s/["\\]/\\&/g; s/^/"/; s/$/"/ 12401p 12402b 12403:more2 12404s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12405p 12406g 12407s/.\{148\}// 12408t delim 12409' <conf$$subs.awk | sed ' 12410/^[^""]/{ 12411 N 12412 s/\n// 12413} 12414' >>$CONFIG_STATUS || ac_write_fail=1 12415rm -f conf$$subs.awk 12416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12417_ACAWK 12418cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12419 for (key in S) S_is_set[key] = 1 12420 FS = "" 12421 12422} 12423{ 12424 line = $ 0 12425 nfields = split(line, field, "@") 12426 substed = 0 12427 len = length(field[1]) 12428 for (i = 2; i < nfields; i++) { 12429 key = field[i] 12430 keylen = length(key) 12431 if (S_is_set[key]) { 12432 value = S[key] 12433 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12434 len += length(value) + length(field[++i]) 12435 substed = 1 12436 } else 12437 len += 1 + keylen 12438 } 12439 12440 print line 12441} 12442 12443_ACAWK 12444_ACEOF 12445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12446if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12447 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12448else 12449 cat 12450fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12451 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12452_ACEOF 12453 12454# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12455# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12456# trailing colons and then remove the whole line if VPATH becomes empty 12457# (actually we leave an empty line to preserve line numbers). 12458if test "x$srcdir" = x.; then 12459 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12460h 12461s/// 12462s/^/:/ 12463s/[ ]*$/:/ 12464s/:\$(srcdir):/:/g 12465s/:\${srcdir}:/:/g 12466s/:@srcdir@:/:/g 12467s/^:*// 12468s/:*$// 12469x 12470s/\(=[ ]*\).*/\1/ 12471G 12472s/\n// 12473s/^[^=]*=[ ]*$// 12474}' 12475fi 12476 12477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12478fi # test -n "$CONFIG_FILES" 12479 12480# Set up the scripts for CONFIG_HEADERS section. 12481# No need to generate them if there are no CONFIG_HEADERS. 12482# This happens for instance with './config.status Makefile'. 12483if test -n "$CONFIG_HEADERS"; then 12484cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12485BEGIN { 12486_ACEOF 12487 12488# Transform confdefs.h into an awk script 'defines.awk', embedded as 12489# here-document in config.status, that substitutes the proper values into 12490# config.h.in to produce config.h. 12491 12492# Create a delimiter string that does not exist in confdefs.h, to ease 12493# handling of long lines. 12494ac_delim='%!_!# ' 12495for ac_last_try in false false :; do 12496 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12497 if test -z "$ac_tt"; then 12498 break 12499 elif $ac_last_try; then 12500 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12501 else 12502 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12503 fi 12504done 12505 12506# For the awk script, D is an array of macro values keyed by name, 12507# likewise P contains macro parameters if any. Preserve backslash 12508# newline sequences. 12509 12510ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12511sed -n ' 12512s/.\{148\}/&'"$ac_delim"'/g 12513t rset 12514:rset 12515s/^[ ]*#[ ]*define[ ][ ]*/ / 12516t def 12517d 12518:def 12519s/\\$// 12520t bsnl 12521s/["\\]/\\&/g 12522s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12523D["\1"]=" \3"/p 12524s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12525d 12526:bsnl 12527s/["\\]/\\&/g 12528s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12529D["\1"]=" \3\\\\\\n"\\/p 12530t cont 12531s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12532t cont 12533d 12534:cont 12535n 12536s/.\{148\}/&'"$ac_delim"'/g 12537t clear 12538:clear 12539s/\\$// 12540t bsnlc 12541s/["\\]/\\&/g; s/^/"/; s/$/"/p 12542d 12543:bsnlc 12544s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12545b cont 12546' <confdefs.h | sed ' 12547s/'"$ac_delim"'/"\\\ 12548"/g' >>$CONFIG_STATUS || ac_write_fail=1 12549 12550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12551 for (key in D) D_is_set[key] = 1 12552 FS = "" 12553} 12554/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12555 line = \$ 0 12556 split(line, arg, " ") 12557 if (arg[1] == "#") { 12558 defundef = arg[2] 12559 mac1 = arg[3] 12560 } else { 12561 defundef = substr(arg[1], 2) 12562 mac1 = arg[2] 12563 } 12564 split(mac1, mac2, "(") #) 12565 macro = mac2[1] 12566 prefix = substr(line, 1, index(line, defundef) - 1) 12567 if (D_is_set[macro]) { 12568 # Preserve the white space surrounding the "#". 12569 print prefix "define", macro P[macro] D[macro] 12570 next 12571 } else { 12572 # Replace #undef with comments. This is necessary, for example, 12573 # in the case of _POSIX_SOURCE, which is predefined and required 12574 # on some systems where configure will not decide to define it. 12575 if (defundef == "undef") { 12576 print "/*", prefix defundef, macro, "*/" 12577 next 12578 } 12579 } 12580} 12581{ print } 12582_ACAWK 12583_ACEOF 12584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12585 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12586fi # test -n "$CONFIG_HEADERS" 12587 12588 12589eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12590shift 12591for ac_tag 12592do 12593 case $ac_tag in 12594 :[FHLC]) ac_mode=$ac_tag; continue;; 12595 esac 12596 case $ac_mode$ac_tag in 12597 :[FHL]*:*);; 12598 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12599 :[FH]-) ac_tag=-:-;; 12600 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12601 esac 12602 ac_save_IFS=$IFS 12603 IFS=: 12604 set x $ac_tag 12605 IFS=$ac_save_IFS 12606 shift 12607 ac_file=$1 12608 shift 12609 12610 case $ac_mode in 12611 :L) ac_source=$1;; 12612 :[FH]) 12613 ac_file_inputs= 12614 for ac_f 12615 do 12616 case $ac_f in 12617 -) ac_f="$ac_tmp/stdin";; 12618 *) # Look for the file first in the build tree, then in the source tree 12619 # (if the path is not absolute). The absolute path cannot be DOS-style, 12620 # because $ac_f cannot contain ':'. 12621 test -f "$ac_f" || 12622 case $ac_f in 12623 [\\/$]*) false;; 12624 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12625 esac || 12626 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12627 esac 12628 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12629 as_fn_append ac_file_inputs " '$ac_f'" 12630 done 12631 12632 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12633 # use $as_me), people would be surprised to read: 12634 # /* config.h. Generated by config.status. */ 12635 configure_input='Generated from '` 12636 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12637 `' by configure.' 12638 if test x"$ac_file" != x-; then 12639 configure_input="$ac_file. $configure_input" 12640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12641printf "%s\n" "$as_me: creating $ac_file" >&6;} 12642 fi 12643 # Neutralize special characters interpreted by sed in replacement strings. 12644 case $configure_input in #( 12645 *\&* | *\|* | *\\* ) 12646 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12647 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12648 *) ac_sed_conf_input=$configure_input;; 12649 esac 12650 12651 case $ac_tag in 12652 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12654 esac 12655 ;; 12656 esac 12657 12658 ac_dir=`$as_dirname -- "$ac_file" || 12659$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12660 X"$ac_file" : 'X\(//\)[^/]' \| \ 12661 X"$ac_file" : 'X\(//\)$' \| \ 12662 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12663printf "%s\n" X"$ac_file" | 12664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12665 s//\1/ 12666 q 12667 } 12668 /^X\(\/\/\)[^/].*/{ 12669 s//\1/ 12670 q 12671 } 12672 /^X\(\/\/\)$/{ 12673 s//\1/ 12674 q 12675 } 12676 /^X\(\/\).*/{ 12677 s//\1/ 12678 q 12679 } 12680 s/.*/./; q'` 12681 as_dir="$ac_dir"; as_fn_mkdir_p 12682 ac_builddir=. 12683 12684case "$ac_dir" in 12685.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12686*) 12687 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12688 # A ".." for each directory in $ac_dir_suffix. 12689 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12690 case $ac_top_builddir_sub in 12691 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12692 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12693 esac ;; 12694esac 12695ac_abs_top_builddir=$ac_pwd 12696ac_abs_builddir=$ac_pwd$ac_dir_suffix 12697# for backward compatibility: 12698ac_top_builddir=$ac_top_build_prefix 12699 12700case $srcdir in 12701 .) # We are building in place. 12702 ac_srcdir=. 12703 ac_top_srcdir=$ac_top_builddir_sub 12704 ac_abs_top_srcdir=$ac_pwd ;; 12705 [\\/]* | ?:[\\/]* ) # Absolute name. 12706 ac_srcdir=$srcdir$ac_dir_suffix; 12707 ac_top_srcdir=$srcdir 12708 ac_abs_top_srcdir=$srcdir ;; 12709 *) # Relative name. 12710 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12711 ac_top_srcdir=$ac_top_build_prefix$srcdir 12712 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12713esac 12714ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12715 12716 12717 case $ac_mode in 12718 :F) 12719 # 12720 # CONFIG_FILE 12721 # 12722 12723 case $INSTALL in 12724 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12725 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12726 esac 12727 ac_MKDIR_P=$MKDIR_P 12728 case $MKDIR_P in 12729 [\\/$]* | ?:[\\/]* ) ;; 12730 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12731 esac 12732_ACEOF 12733 12734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12735# If the template does not know about datarootdir, expand it. 12736# FIXME: This hack should be removed a few years after 2.60. 12737ac_datarootdir_hack=; ac_datarootdir_seen= 12738ac_sed_dataroot=' 12739/datarootdir/ { 12740 p 12741 q 12742} 12743/@datadir@/p 12744/@docdir@/p 12745/@infodir@/p 12746/@localedir@/p 12747/@mandir@/p' 12748case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12749*datarootdir*) ac_datarootdir_seen=yes;; 12750*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12752printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12753_ACEOF 12754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12755 ac_datarootdir_hack=' 12756 s&@datadir@&$datadir&g 12757 s&@docdir@&$docdir&g 12758 s&@infodir@&$infodir&g 12759 s&@localedir@&$localedir&g 12760 s&@mandir@&$mandir&g 12761 s&\\\${datarootdir}&$datarootdir&g' ;; 12762esac 12763_ACEOF 12764 12765# Neutralize VPATH when '$srcdir' = '.'. 12766# Shell code in configure.ac might set extrasub. 12767# FIXME: do we really want to maintain this feature? 12768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12769ac_sed_extra="$ac_vpsub 12770$extrasub 12771_ACEOF 12772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12773:t 12774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12775s|@configure_input@|$ac_sed_conf_input|;t t 12776s&@top_builddir@&$ac_top_builddir_sub&;t t 12777s&@top_build_prefix@&$ac_top_build_prefix&;t t 12778s&@srcdir@&$ac_srcdir&;t t 12779s&@abs_srcdir@&$ac_abs_srcdir&;t t 12780s&@top_srcdir@&$ac_top_srcdir&;t t 12781s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12782s&@builddir@&$ac_builddir&;t t 12783s&@abs_builddir@&$ac_abs_builddir&;t t 12784s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12785s&@INSTALL@&$ac_INSTALL&;t t 12786s&@MKDIR_P@&$ac_MKDIR_P&;t t 12787$ac_datarootdir_hack 12788" 12789eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12790 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12791 12792test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12793 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12795 "$ac_tmp/out"`; test -z "$ac_out"; } && 12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12797which seems to be undefined. Please make sure it is defined" >&5 12798printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12799which seems to be undefined. Please make sure it is defined" >&2;} 12800 12801 rm -f "$ac_tmp/stdin" 12802 case $ac_file in 12803 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12804 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12805 esac \ 12806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12807 ;; 12808 :H) 12809 # 12810 # CONFIG_HEADER 12811 # 12812 if test x"$ac_file" != x-; then 12813 { 12814 printf "%s\n" "/* $configure_input */" >&1 \ 12815 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12816 } >"$ac_tmp/config.h" \ 12817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12818 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12820printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12821 else 12822 rm -f "$ac_file" 12823 mv "$ac_tmp/config.h" "$ac_file" \ 12824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12825 fi 12826 else 12827 printf "%s\n" "/* $configure_input */" >&1 \ 12828 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12829 || as_fn_error $? "could not create -" "$LINENO" 5 12830 fi 12831# Compute "$ac_file"'s index in $config_headers. 12832_am_arg="$ac_file" 12833_am_stamp_count=1 12834for _am_header in $config_headers :; do 12835 case $_am_header in 12836 $_am_arg | $_am_arg:* ) 12837 break ;; 12838 * ) 12839 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12840 esac 12841done 12842echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12843$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12844 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12845 X"$_am_arg" : 'X\(//\)$' \| \ 12846 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12847printf "%s\n" X"$_am_arg" | 12848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12849 s//\1/ 12850 q 12851 } 12852 /^X\(\/\/\)[^/].*/{ 12853 s//\1/ 12854 q 12855 } 12856 /^X\(\/\/\)$/{ 12857 s//\1/ 12858 q 12859 } 12860 /^X\(\/\).*/{ 12861 s//\1/ 12862 q 12863 } 12864 s/.*/./; q'`/stamp-h$_am_stamp_count 12865 ;; 12866 12867 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12868printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12869 ;; 12870 esac 12871 12872 12873 case $ac_file$ac_mode in 12874 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12875 # Older Autoconf quotes --file arguments for eval, but not when files 12876 # are listed without --file. Let's play safe and only enable the eval 12877 # if we detect the quoting. 12878 # TODO: see whether this extra hack can be removed once we start 12879 # requiring Autoconf 2.70 or later. 12880 case $CONFIG_FILES in #( 12881 *\'*) : 12882 eval set x "$CONFIG_FILES" ;; #( 12883 *) : 12884 set x $CONFIG_FILES ;; #( 12885 *) : 12886 ;; 12887esac 12888 shift 12889 # Used to flag and report bootstrapping failures. 12890 am_rc=0 12891 for am_mf 12892 do 12893 # Strip MF so we end up with the name of the file. 12894 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12895 # Check whether this is an Automake generated Makefile which includes 12896 # dependency-tracking related rules and includes. 12897 # Grep'ing the whole file directly is not great: AIX grep has a line 12898 # limit of 2048, but all sed's we know have understand at least 4000. 12899 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12900 || continue 12901 am_dirpart=`$as_dirname -- "$am_mf" || 12902$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12903 X"$am_mf" : 'X\(//\)[^/]' \| \ 12904 X"$am_mf" : 'X\(//\)$' \| \ 12905 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12906printf "%s\n" X"$am_mf" | 12907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12908 s//\1/ 12909 q 12910 } 12911 /^X\(\/\/\)[^/].*/{ 12912 s//\1/ 12913 q 12914 } 12915 /^X\(\/\/\)$/{ 12916 s//\1/ 12917 q 12918 } 12919 /^X\(\/\).*/{ 12920 s//\1/ 12921 q 12922 } 12923 s/.*/./; q'` 12924 am_filepart=`$as_basename -- "$am_mf" || 12925$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12926 X"$am_mf" : 'X\(//\)$' \| \ 12927 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12928printf "%s\n" X/"$am_mf" | 12929 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12930 s//\1/ 12931 q 12932 } 12933 /^X\/\(\/\/\)$/{ 12934 s//\1/ 12935 q 12936 } 12937 /^X\/\(\/\).*/{ 12938 s//\1/ 12939 q 12940 } 12941 s/.*/./; q'` 12942 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12943 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12944 | $MAKE -f - am--depfiles" >&5 12945 (cd "$am_dirpart" \ 12946 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12947 | $MAKE -f - am--depfiles) >&5 2>&5 12948 ac_status=$? 12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12950 (exit $ac_status); } || am_rc=$? 12951 done 12952 if test $am_rc -ne 0; then 12953 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12954printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12955as_fn_error $? "Something went wrong bootstrapping makefile fragments 12956 for automatic dependency tracking. If GNU make was not used, consider 12957 re-running the configure script with MAKE=\"gmake\" (or whatever is 12958 necessary). You can also try re-running configure with the 12959 '--disable-dependency-tracking' option to at least be able to build 12960 the package (albeit without support for automatic dependency tracking). 12961See 'config.log' for more details" "$LINENO" 5; } 12962 fi 12963 { am_dirpart=; unset am_dirpart;} 12964 { am_filepart=; unset am_filepart;} 12965 { am_mf=; unset am_mf;} 12966 { am_rc=; unset am_rc;} 12967 rm -f conftest-deps.mk 12968} 12969 ;; 12970 12971 esac 12972done # for ac_tag 12973 12974 12975as_fn_exit 0 12976_ACEOF 12977ac_clean_files=$ac_clean_files_save 12978 12979test $ac_write_fail = 0 || 12980 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12981 12982 12983# configure is writing to config.log, and then calls config.status. 12984# config.status does its own redirection, appending to config.log. 12985# Unfortunately, on DOS this fails, as config.log is still kept open 12986# by configure, so config.status won't be able to write to it; its 12987# output is simply discarded. So we exec the FD to /dev/null, 12988# effectively closing config.log, so it can be properly (re)opened and 12989# appended to by config.status. When coming back to configure, we 12990# need to make the FD available again. 12991if test "$no_create" != yes; then 12992 ac_cs_success=: 12993 ac_config_status_args= 12994 test "$silent" = yes && 12995 ac_config_status_args="$ac_config_status_args --quiet" 12996 exec 5>/dev/null 12997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12998 exec 5>>config.log 12999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13000 # would make configure fail if this is the last instruction. 13001 $ac_cs_success || as_fn_exit 1 13002fi 13003if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13005printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13006fi 13007 13008 13009