1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xkbevd 1.1.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/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/xkbevd/-/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='xkbevd' 607PACKAGE_TARNAME='xkbevd' 608PACKAGE_VERSION='1.1.6' 609PACKAGE_STRING='xkbevd 1.1.6' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbevd/-/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 650XKBEVD_LIBS 651XKBEVD_CFLAGS 652YACC_INST 653YFLAGS 654YACC 655MAN_SUBSTS 656XORG_MAN_PAGE 657ADMIN_MAN_DIR 658DRIVER_MAN_DIR 659MISC_MAN_DIR 660FILE_MAN_DIR 661LIB_MAN_DIR 662APP_MAN_DIR 663ADMIN_MAN_SUFFIX 664DRIVER_MAN_SUFFIX 665MISC_MAN_SUFFIX 666FILE_MAN_SUFFIX 667LIB_MAN_SUFFIX 668APP_MAN_SUFFIX 669SED 670host_os 671host_vendor 672host_cpu 673host 674build_os 675build_vendor 676build_cpu 677build 678INSTALL_CMD 679PKG_CONFIG_LIBDIR 680PKG_CONFIG_PATH 681PKG_CONFIG 682CHANGELOG_CMD 683STRICT_CFLAGS 684CWARNFLAGS 685BASE_CFLAGS 686am__fastdepCC_FALSE 687am__fastdepCC_TRUE 688CCDEPMODE 689am__nodep 690AMDEPBACKSLASH 691AMDEP_FALSE 692AMDEP_TRUE 693am__include 694DEPDIR 695OBJEXT 696EXEEXT 697ac_ct_CC 698CPPFLAGS 699LDFLAGS 700CFLAGS 701CC 702am__xargs_n 703am__rm_f_notfound 704AM_BACKSLASH 705AM_DEFAULT_VERBOSITY 706AM_DEFAULT_V 707AM_V 708CSCOPE 709ETAGS 710CTAGS 711am__untar 712am__tar 713AMTAR 714am__leading_dot 715SET_MAKE 716AWK 717mkdir_p 718MKDIR_P 719INSTALL_STRIP_PROGRAM 720STRIP 721install_sh 722MAKEINFO 723AUTOHEADER 724AUTOMAKE 725AUTOCONF 726ACLOCAL 727VERSION 728PACKAGE 729CYGPATH_W 730am__isrc 731INSTALL_DATA 732INSTALL_SCRIPT 733INSTALL_PROGRAM 734target_alias 735host_alias 736build_alias 737LIBS 738ECHO_T 739ECHO_N 740ECHO_C 741DEFS 742mandir 743localedir 744libdir 745psdir 746pdfdir 747dvidir 748htmldir 749infodir 750docdir 751oldincludedir 752includedir 753runstatedir 754localstatedir 755sharedstatedir 756sysconfdir 757datadir 758datarootdir 759libexecdir 760sbindir 761bindir 762program_transform_name 763prefix 764exec_prefix 765PACKAGE_URL 766PACKAGE_BUGREPORT 767PACKAGE_STRING 768PACKAGE_VERSION 769PACKAGE_TARNAME 770PACKAGE_NAME 771PATH_SEPARATOR 772SHELL 773am__quote' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777enable_silent_rules 778enable_dependency_tracking 779enable_selective_werror 780enable_strict_compilation 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790PKG_CONFIG 791PKG_CONFIG_PATH 792PKG_CONFIG_LIBDIR 793YACC 794YFLAGS 795XKBEVD_CFLAGS 796XKBEVD_LIBS' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 835runstatedir='${localstatedir}/run' 836includedir='${prefix}/include' 837oldincludedir='/usr/include' 838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839infodir='${datarootdir}/info' 840htmldir='${docdir}' 841dvidir='${docdir}' 842pdfdir='${docdir}' 843psdir='${docdir}' 844libdir='${exec_prefix}/lib' 845localedir='${datarootdir}/locale' 846mandir='${datarootdir}/man' 847 848ac_prev= 849ac_dashdash= 850for ac_option 851do 852 # If the previous option needs an argument, assign it. 853 if test -n "$ac_prev"; then 854 eval $ac_prev=\$ac_option 855 ac_prev= 856 continue 857 fi 858 859 case $ac_option in 860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 861 *=) ac_optarg= ;; 862 *) ac_optarg=yes ;; 863 esac 864 865 case $ac_dashdash$ac_option in 866 --) 867 ac_dashdash=yes ;; 868 869 -bindir | --bindir | --bindi | --bind | --bin | --bi) 870 ac_prev=bindir ;; 871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 872 bindir=$ac_optarg ;; 873 874 -build | --build | --buil | --bui | --bu) 875 ac_prev=build_alias ;; 876 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 877 build_alias=$ac_optarg ;; 878 879 -cache-file | --cache-file | --cache-fil | --cache-fi \ 880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 881 ac_prev=cache_file ;; 882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 884 cache_file=$ac_optarg ;; 885 886 --config-cache | -C) 887 cache_file=config.cache ;; 888 889 -datadir | --datadir | --datadi | --datad) 890 ac_prev=datadir ;; 891 -datadir=* | --datadir=* | --datadi=* | --datad=*) 892 datadir=$ac_optarg ;; 893 894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895 | --dataroo | --dataro | --datar) 896 ac_prev=datarootdir ;; 897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899 datarootdir=$ac_optarg ;; 900 901 -disable-* | --disable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: '$ac_useropt'" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=no ;; 916 917 -docdir | --docdir | --docdi | --doc | --do) 918 ac_prev=docdir ;; 919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920 docdir=$ac_optarg ;; 921 922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923 ac_prev=dvidir ;; 924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925 dvidir=$ac_optarg ;; 926 927 -enable-* | --enable-*) 928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 929 # Reject names that are not valid shell variable names. 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931 as_fn_error $? "invalid feature name: '$ac_useropt'" 932 ac_useropt_orig=$ac_useropt 933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 934 case $ac_user_opts in 935 *" 936"enable_$ac_useropt" 937"*) ;; 938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939 ac_unrecognized_sep=', ';; 940 esac 941 eval enable_$ac_useropt=\$ac_optarg ;; 942 943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 945 | --exec | --exe | --ex) 946 ac_prev=exec_prefix ;; 947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 949 | --exec=* | --exe=* | --ex=*) 950 exec_prefix=$ac_optarg ;; 951 952 -gas | --gas | --ga | --g) 953 # Obsolete; use --with-gas. 954 with_gas=yes ;; 955 956 -help | --help | --hel | --he | -h) 957 ac_init_help=long ;; 958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 959 ac_init_help=recursive ;; 960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 961 ac_init_help=short ;; 962 963 -host | --host | --hos | --ho) 964 ac_prev=host_alias ;; 965 -host=* | --host=* | --hos=* | --ho=*) 966 host_alias=$ac_optarg ;; 967 968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969 ac_prev=htmldir ;; 970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971 | --ht=*) 972 htmldir=$ac_optarg ;; 973 974 -includedir | --includedir | --includedi | --included | --include \ 975 | --includ | --inclu | --incl | --inc) 976 ac_prev=includedir ;; 977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 978 | --includ=* | --inclu=* | --incl=* | --inc=*) 979 includedir=$ac_optarg ;; 980 981 -infodir | --infodir | --infodi | --infod | --info | --inf) 982 ac_prev=infodir ;; 983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 984 infodir=$ac_optarg ;; 985 986 -libdir | --libdir | --libdi | --libd) 987 ac_prev=libdir ;; 988 -libdir=* | --libdir=* | --libdi=* | --libd=*) 989 libdir=$ac_optarg ;; 990 991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 992 | --libexe | --libex | --libe) 993 ac_prev=libexecdir ;; 994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 995 | --libexe=* | --libex=* | --libe=*) 996 libexecdir=$ac_optarg ;; 997 998 -localedir | --localedir | --localedi | --localed | --locale) 999 ac_prev=localedir ;; 1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001 localedir=$ac_optarg ;; 1002 1003 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004 | --localstate | --localstat | --localsta | --localst | --locals) 1005 ac_prev=localstatedir ;; 1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008 localstatedir=$ac_optarg ;; 1009 1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011 ac_prev=mandir ;; 1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013 mandir=$ac_optarg ;; 1014 1015 -nfp | --nfp | --nf) 1016 # Obsolete; use --without-fp. 1017 with_fp=no ;; 1018 1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020 | --no-cr | --no-c | -n) 1021 no_create=yes ;; 1022 1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025 no_recursion=yes ;; 1026 1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029 | --oldin | --oldi | --old | --ol | --o) 1030 ac_prev=oldincludedir ;; 1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034 oldincludedir=$ac_optarg ;; 1035 1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037 ac_prev=prefix ;; 1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039 prefix=$ac_optarg ;; 1040 1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042 | --program-pre | --program-pr | --program-p) 1043 ac_prev=program_prefix ;; 1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046 program_prefix=$ac_optarg ;; 1047 1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049 | --program-suf | --program-su | --program-s) 1050 ac_prev=program_suffix ;; 1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053 program_suffix=$ac_optarg ;; 1054 1055 -program-transform-name | --program-transform-name \ 1056 | --program-transform-nam | --program-transform-na \ 1057 | --program-transform-n | --program-transform- \ 1058 | --program-transform | --program-transfor \ 1059 | --program-transfo | --program-transf \ 1060 | --program-trans | --program-tran \ 1061 | --progr-tra | --program-tr | --program-t) 1062 ac_prev=program_transform_name ;; 1063 -program-transform-name=* | --program-transform-name=* \ 1064 | --program-transform-nam=* | --program-transform-na=* \ 1065 | --program-transform-n=* | --program-transform-=* \ 1066 | --program-transform=* | --program-transfor=* \ 1067 | --program-transfo=* | --program-transf=* \ 1068 | --program-trans=* | --program-tran=* \ 1069 | --progr-tra=* | --program-tr=* | --program-t=*) 1070 program_transform_name=$ac_optarg ;; 1071 1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073 ac_prev=pdfdir ;; 1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075 pdfdir=$ac_optarg ;; 1076 1077 -psdir | --psdir | --psdi | --psd | --ps) 1078 ac_prev=psdir ;; 1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080 psdir=$ac_optarg ;; 1081 1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083 | -silent | --silent | --silen | --sile | --sil) 1084 silent=yes ;; 1085 1086 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1087 | --runstate | --runstat | --runsta | --runst | --runs \ 1088 | --run | --ru | --r) 1089 ac_prev=runstatedir ;; 1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1092 | --run=* | --ru=* | --r=*) 1093 runstatedir=$ac_optarg ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: '$ac_useropt'" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: '$ac_useropt'" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=no ;; 1171 1172 --x) 1173 # Obsolete; use --with-x. 1174 with_x=yes ;; 1175 1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177 | --x-incl | --x-inc | --x-in | --x-i) 1178 ac_prev=x_includes ;; 1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181 x_includes=$ac_optarg ;; 1182 1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185 ac_prev=x_libraries ;; 1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188 x_libraries=$ac_optarg ;; 1189 1190 -*) as_fn_error $? "unrecognized option: '$ac_option' 1191Try '$0 --help' for more information" 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 case $ac_envvar in #( 1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1200 esac 1201 eval $ac_envvar=\$ac_optarg 1202 export $ac_envvar ;; 1203 1204 *) 1205 # FIXME: should be removed in autoconf 3.0. 1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210 ;; 1211 1212 esac 1213done 1214 1215if test -n "$ac_prev"; then 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217 as_fn_error $? "missing argument to $ac_option" 1218fi 1219 1220if test -n "$ac_unrecognized_opts"; then 1221 case $enable_option_checking in 1222 no) ;; 1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225 esac 1226fi 1227 1228# Check all directory arguments for consistency. 1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230 datadir sysconfdir sharedstatedir localstatedir includedir \ 1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232 libdir localedir mandir runstatedir 1233do 1234 eval ac_val=\$$ac_var 1235 # Remove trailing slashes. 1236 case $ac_val in 1237 */ ) 1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239 eval $ac_var=\$ac_val;; 1240 esac 1241 # Be sure to have absolute directory names. 1242 case $ac_val in 1243 [\\/$]* | ?:[\\/]* ) continue;; 1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245 esac 1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247done 1248 1249# There might be people who depend on the old broken behavior: '$host' 1250# used to hold the argument of --host etc. 1251# FIXME: To remove some day. 1252build=$build_alias 1253host=$host_alias 1254target=$target_alias 1255 1256# FIXME: To remove some day. 1257if test "x$host_alias" != x; then 1258 if test "x$build_alias" = x; then 1259 cross_compiling=maybe 1260 elif test "x$build_alias" != "x$host_alias"; then 1261 cross_compiling=yes 1262 fi 1263fi 1264 1265ac_tool_prefix= 1266test -n "$host_alias" && ac_tool_prefix=$host_alias- 1267 1268test "$silent" = yes && exec 6>/dev/null 1269 1270 1271ac_pwd=`pwd` && test -n "$ac_pwd" && 1272ac_ls_di=`ls -di .` && 1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274 as_fn_error $? "working directory cannot be determined" 1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276 as_fn_error $? "pwd does not report name of working directory" 1277 1278 1279# Find the source files, if location was not specified. 1280if test -z "$srcdir"; then 1281 ac_srcdir_defaulted=yes 1282 # Try the directory containing this script, then the parent directory. 1283 ac_confdir=`$as_dirname -- "$as_myself" || 1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285 X"$as_myself" : 'X\(//\)[^/]' \| \ 1286 X"$as_myself" : 'X\(//\)$' \| \ 1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288printf "%s\n" X"$as_myself" | 1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)[^/].*/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\).*/{ 1302 s//\1/ 1303 q 1304 } 1305 s/.*/./; q'` 1306 srcdir=$ac_confdir 1307 if test ! -r "$srcdir/$ac_unique_file"; then 1308 srcdir=.. 1309 fi 1310else 1311 ac_srcdir_defaulted=no 1312fi 1313if test ! -r "$srcdir/$ac_unique_file"; then 1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316fi 1317ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1318ac_abs_confdir=`( 1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320 pwd)` 1321# When building in place, set srcdir=. 1322if test "$ac_abs_confdir" = "$ac_pwd"; then 1323 srcdir=. 1324fi 1325# Remove unnecessary trailing slashes from srcdir. 1326# Double slashes in file names in object file debugging info 1327# mess up M-x gdb in Emacs. 1328case $srcdir in 1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330esac 1331for ac_var in $ac_precious_vars; do 1332 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_env_${ac_var}_value=\$${ac_var} 1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336done 1337 1338# 1339# Report the --help message. 1340# 1341if test "$ac_init_help" = "long"; then 1342 # Omit some internal or obsolete options to make the list less imposing. 1343 # This message is too long to be a string in the A/UX 3.1 sh. 1344 cat <<_ACEOF 1345'configure' configures xkbevd 1.1.6 to adapt to many kinds of systems. 1346 1347Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352Defaults for the options are specified in brackets. 1353 1354Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print 'checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for '--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1364 1365Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371By default, 'make install' will install all the files in 1372'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1373an installation prefix other than '$ac_default_prefix' using '--prefix', 1374for instance '--prefix=\$HOME'. 1375 1376For better control, use the options below. 1377 1378Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbevd] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399_ACEOF 1400 1401 cat <<\_ACEOF 1402 1403Program names: 1404 --program-prefix=PREFIX prepend PREFIX to installed program names 1405 --program-suffix=SUFFIX append SUFFIX to installed program names 1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407 1408System types: 1409 --build=BUILD configure for building on BUILD [guessed] 1410 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411_ACEOF 1412fi 1413 1414if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of xkbevd 1.1.6:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-silent-rules less verbose build output (undo: "make V=1") 1425 --disable-silent-rules verbose build output (undo: "make V=0") 1426 --enable-dependency-tracking 1427 do not reject slow dependency extractors 1428 --disable-dependency-tracking 1429 speeds up one-time build 1430 --disable-selective-werror 1431 Turn off selective compiler errors. (default: 1432 enabled) 1433 --enable-strict-compilation 1434 Enable all warnings from compiler and make them 1435 errors (default: disabled) 1436 1437Some influential environment variables: 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 PKG_CONFIG path to pkg-config utility 1446 PKG_CONFIG_PATH 1447 directories to add to pkg-config's search path 1448 PKG_CONFIG_LIBDIR 1449 path overriding pkg-config's built-in search path 1450 YACC The 'Yet Another Compiler Compiler' implementation to use. 1451 Defaults to the first program found out of: 'bison -y', 'byacc', 1452 'yacc'. 1453 YFLAGS The list of arguments that will be passed by default to $YACC. 1454 This script will default YFLAGS to the empty string to avoid a 1455 default value of '-d' given by some make applications. 1456 XKBEVD_CFLAGS 1457 C compiler flags for XKBEVD, overriding pkg-config 1458 XKBEVD_LIBS linker flags for XKBEVD, overriding pkg-config 1459 1460Use these variables to override the choices made by 'configure' or to help 1461it to find libraries and programs with nonstandard names/locations. 1462 1463Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>. 1464_ACEOF 1465ac_status=$? 1466fi 1467 1468if test "$ac_init_help" = "recursive"; then 1469 # If there are subdirs, report their specific --help. 1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1471 test -d "$ac_dir" || 1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1473 continue 1474 ac_builddir=. 1475 1476case "$ac_dir" in 1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478*) 1479 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1480 # A ".." for each directory in $ac_dir_suffix. 1481 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1482 case $ac_top_builddir_sub in 1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1485 esac ;; 1486esac 1487ac_abs_top_builddir=$ac_pwd 1488ac_abs_builddir=$ac_pwd$ac_dir_suffix 1489# for backward compatibility: 1490ac_top_builddir=$ac_top_build_prefix 1491 1492case $srcdir in 1493 .) # We are building in place. 1494 ac_srcdir=. 1495 ac_top_srcdir=$ac_top_builddir_sub 1496 ac_abs_top_srcdir=$ac_pwd ;; 1497 [\\/]* | ?:[\\/]* ) # Absolute name. 1498 ac_srcdir=$srcdir$ac_dir_suffix; 1499 ac_top_srcdir=$srcdir 1500 ac_abs_top_srcdir=$srcdir ;; 1501 *) # Relative name. 1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1503 ac_top_srcdir=$ac_top_build_prefix$srcdir 1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1505esac 1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1507 1508 cd "$ac_dir" || { ac_status=$?; continue; } 1509 # Check for configure.gnu first; this name is used for a wrapper for 1510 # Metaconfig's "Configure" on case-insensitive file systems. 1511 if test -f "$ac_srcdir/configure.gnu"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514 elif test -f "$ac_srcdir/configure"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure" --help=recursive 1517 else 1518 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519 fi || ac_status=$? 1520 cd "$ac_pwd" || { ac_status=$?; break; } 1521 done 1522fi 1523 1524test -n "$ac_init_help" && exit $ac_status 1525if $ac_init_version; then 1526 cat <<\_ACEOF 1527xkbevd configure 1.1.6 1528generated by GNU Autoconf 2.72 1529 1530Copyright (C) 2023 Free Software Foundation, Inc. 1531This configure script is free software; the Free Software Foundation 1532gives unlimited permission to copy, distribute and modify it. 1533_ACEOF 1534 exit 1535fi 1536 1537## ------------------------ ## 1538## Autoconf initialization. ## 1539## ------------------------ ## 1540 1541# ac_fn_c_try_compile LINENO 1542# -------------------------- 1543# Try to compile conftest.$ac_ext, and return whether this succeeded. 1544ac_fn_c_try_compile () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext conftest.beam 1548 if { { ac_try="$ac_compile" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554printf "%s\n" "$ac_try_echo"; } >&5 1555 (eval "$ac_compile") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest.$ac_objext 1567then : 1568 ac_retval=0 1569else case e in #( 1570 e) printf "%s\n" "$as_me: failed program was:" >&5 1571sed 's/^/| /' conftest.$ac_ext >&5 1572 1573 ac_retval=1 ;; 1574esac 1575fi 1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1577 as_fn_set_status $ac_retval 1578 1579} # ac_fn_c_try_compile 1580 1581# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1582# ------------------------------------------------------------------ 1583# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1584# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1585ac_fn_check_decl () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 as_decl_name=`echo $2|sed 's/ *(.*//'` 1589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1590printf %s "checking whether $as_decl_name is declared... " >&6; } 1591if eval test \${$3+y} 1592then : 1593 printf %s "(cached) " >&6 1594else case e in #( 1595 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1596 eval ac_save_FLAGS=\$$6 1597 as_fn_append $6 " $5" 1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1599/* end confdefs.h. */ 1600$4 1601int 1602main (void) 1603{ 1604#ifndef $as_decl_name 1605#ifdef __cplusplus 1606 (void) $as_decl_use; 1607#else 1608 (void) $as_decl_name; 1609#endif 1610#endif 1611 1612 ; 1613 return 0; 1614} 1615_ACEOF 1616if ac_fn_c_try_compile "$LINENO" 1617then : 1618 eval "$3=yes" 1619else case e in #( 1620 e) eval "$3=no" ;; 1621esac 1622fi 1623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1624 eval $6=\$ac_save_FLAGS 1625 ;; 1626esac 1627fi 1628eval ac_res=\$$3 1629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1630printf "%s\n" "$ac_res" >&6; } 1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1632 1633} # ac_fn_check_decl 1634 1635# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1636# ------------------------------------------------------- 1637# Tests whether HEADER exists and can be compiled using the include files in 1638# INCLUDES, setting the cache variable VAR accordingly. 1639ac_fn_c_check_header_compile () 1640{ 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1643printf %s "checking for $2... " >&6; } 1644if eval test \${$3+y} 1645then : 1646 printf %s "(cached) " >&6 1647else case e in #( 1648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1649/* end confdefs.h. */ 1650$4 1651#include <$2> 1652_ACEOF 1653if ac_fn_c_try_compile "$LINENO" 1654then : 1655 eval "$3=yes" 1656else case e in #( 1657 e) eval "$3=no" ;; 1658esac 1659fi 1660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1661esac 1662fi 1663eval ac_res=\$$3 1664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1665printf "%s\n" "$ac_res" >&6; } 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 1668} # ac_fn_c_check_header_compile 1669 1670# ac_fn_c_try_link LINENO 1671# ----------------------- 1672# Try to link conftest.$ac_ext, and return whether this succeeded. 1673ac_fn_c_try_link () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1677 if { { ac_try="$ac_link" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683printf "%s\n" "$ac_try_echo"; } >&5 1684 (eval "$ac_link") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } && { 1693 test -z "$ac_c_werror_flag" || 1694 test ! -s conftest.err 1695 } && test -s conftest$ac_exeext && { 1696 test "$cross_compiling" = yes || 1697 test -x conftest$ac_exeext 1698 } 1699then : 1700 ac_retval=0 1701else case e in #( 1702 e) printf "%s\n" "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 ;; 1706esac 1707fi 1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1710 # interfere with the next link command; also delete a directory that is 1711 # left behind by Apple's compiler. We do this before executing the actions. 1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_link 1717ac_configure_args_raw= 1718for ac_arg 1719do 1720 case $ac_arg in 1721 *\'*) 1722 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1723 esac 1724 as_fn_append ac_configure_args_raw " '$ac_arg'" 1725done 1726 1727case $ac_configure_args_raw in 1728 *$as_nl*) 1729 ac_safe_unquote= ;; 1730 *) 1731 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1732 ac_unsafe_a="$ac_unsafe_z#~" 1733 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1734 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1735esac 1736 1737cat >config.log <<_ACEOF 1738This file contains any messages produced by compilers while 1739running configure, to aid debugging if configure makes a mistake. 1740 1741It was created by xkbevd $as_me 1.1.6, which was 1742generated by GNU Autoconf 2.72. Invocation command line was 1743 1744 $ $0$ac_configure_args_raw 1745 1746_ACEOF 1747exec 5>>config.log 1748{ 1749cat <<_ASUNAME 1750## --------- ## 1751## Platform. ## 1752## --------- ## 1753 1754hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1755uname -m = `(uname -m) 2>/dev/null || echo unknown` 1756uname -r = `(uname -r) 2>/dev/null || echo unknown` 1757uname -s = `(uname -s) 2>/dev/null || echo unknown` 1758uname -v = `(uname -v) 2>/dev/null || echo unknown` 1759 1760/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1761/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1762 1763/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1764/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1765/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1766/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1767/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1768/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1769/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1770 1771_ASUNAME 1772 1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1774for as_dir in $PATH 1775do 1776 IFS=$as_save_IFS 1777 case $as_dir in #((( 1778 '') as_dir=./ ;; 1779 */) ;; 1780 *) as_dir=$as_dir/ ;; 1781 esac 1782 printf "%s\n" "PATH: $as_dir" 1783 done 1784IFS=$as_save_IFS 1785 1786} >&5 1787 1788cat >&5 <<_ACEOF 1789 1790 1791## ----------- ## 1792## Core tests. ## 1793## ----------- ## 1794 1795_ACEOF 1796 1797 1798# Keep a trace of the command line. 1799# Strip out --no-create and --no-recursion so they do not pile up. 1800# Strip out --silent because we don't want to record it for future runs. 1801# Also quote any args containing shell meta-characters. 1802# Make two passes to allow for proper duplicate-argument suppression. 1803ac_configure_args= 1804ac_configure_args0= 1805ac_configure_args1= 1806ac_must_keep_next=false 1807for ac_pass in 1 2 1808do 1809 for ac_arg 1810 do 1811 case $ac_arg in 1812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1814 | -silent | --silent | --silen | --sile | --sil) 1815 continue ;; 1816 *\'*) 1817 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1818 esac 1819 case $ac_pass in 1820 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1821 2) 1822 as_fn_append ac_configure_args1 " '$ac_arg'" 1823 if test $ac_must_keep_next = true; then 1824 ac_must_keep_next=false # Got value, back to normal. 1825 else 1826 case $ac_arg in 1827 *=* | --config-cache | -C | -disable-* | --disable-* \ 1828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1830 | -with-* | --with-* | -without-* | --without-* | --x) 1831 case "$ac_configure_args0 " in 1832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1833 esac 1834 ;; 1835 -* ) ac_must_keep_next=true ;; 1836 esac 1837 fi 1838 as_fn_append ac_configure_args " '$ac_arg'" 1839 ;; 1840 esac 1841 done 1842done 1843{ ac_configure_args0=; unset ac_configure_args0;} 1844{ ac_configure_args1=; unset ac_configure_args1;} 1845 1846# When interrupted or exit'd, cleanup temporary files, and complete 1847# config.log. We remove comments because anyway the quotes in there 1848# would cause problems or look ugly. 1849# WARNING: Use '\'' to represent an apostrophe within the trap. 1850# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1851trap 'exit_status=$? 1852 # Sanitize IFS. 1853 IFS=" "" $as_nl" 1854 # Save into config.log some information that might help in debugging. 1855 { 1856 echo 1857 1858 printf "%s\n" "## ---------------- ## 1859## Cache variables. ## 1860## ---------------- ##" 1861 echo 1862 # The following way of writing the cache mishandles newlines in values, 1863( 1864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1865 eval ac_val=\$$ac_var 1866 case $ac_val in #( 1867 *${as_nl}*) 1868 case $ac_var in #( 1869 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1870printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1871 esac 1872 case $ac_var in #( 1873 _ | IFS | as_nl) ;; #( 1874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1875 *) { eval $ac_var=; unset $ac_var;} ;; 1876 esac ;; 1877 esac 1878 done 1879 (set) 2>&1 | 1880 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1881 *${as_nl}ac_space=\ *) 1882 sed -n \ 1883 "s/'\''/'\''\\\\'\'''\''/g; 1884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1885 ;; #( 1886 *) 1887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1888 ;; 1889 esac | 1890 sort 1891) 1892 echo 1893 1894 printf "%s\n" "## ----------------- ## 1895## Output variables. ## 1896## ----------------- ##" 1897 echo 1898 for ac_var in $ac_subst_vars 1899 do 1900 eval ac_val=\$$ac_var 1901 case $ac_val in 1902 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1903 esac 1904 printf "%s\n" "$ac_var='\''$ac_val'\''" 1905 done | sort 1906 echo 1907 1908 if test -n "$ac_subst_files"; then 1909 printf "%s\n" "## ------------------- ## 1910## File substitutions. ## 1911## ------------------- ##" 1912 echo 1913 for ac_var in $ac_subst_files 1914 do 1915 eval ac_val=\$$ac_var 1916 case $ac_val in 1917 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1918 esac 1919 printf "%s\n" "$ac_var='\''$ac_val'\''" 1920 done | sort 1921 echo 1922 fi 1923 1924 if test -s confdefs.h; then 1925 printf "%s\n" "## ----------- ## 1926## confdefs.h. ## 1927## ----------- ##" 1928 echo 1929 cat confdefs.h 1930 echo 1931 fi 1932 test "$ac_signal" != 0 && 1933 printf "%s\n" "$as_me: caught signal $ac_signal" 1934 printf "%s\n" "$as_me: exit $exit_status" 1935 } >&5 1936 rm -f core *.core core.conftest.* && 1937 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1938 exit $exit_status 1939' 0 1940for ac_signal in 1 2 13 15; do 1941 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1942done 1943ac_signal=0 1944 1945# confdefs.h avoids OS command line length limits that DEFS can exceed. 1946rm -f -r conftest* confdefs.h 1947 1948printf "%s\n" "/* confdefs.h */" > confdefs.h 1949 1950# Predefined preprocessor variables. 1951 1952printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1953 1954printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1955 1956printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1957 1958printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1959 1960printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1961 1962printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1963 1964 1965# Let the site file select an alternate cache file if it wants to. 1966# Prefer an explicitly selected file to automatically selected ones. 1967if test -n "$CONFIG_SITE"; then 1968 ac_site_files="$CONFIG_SITE" 1969elif test "x$prefix" != xNONE; then 1970 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1971else 1972 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1973fi 1974 1975for ac_site_file in $ac_site_files 1976do 1977 case $ac_site_file in #( 1978 */*) : 1979 ;; #( 1980 *) : 1981 ac_site_file=./$ac_site_file ;; 1982esac 1983 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1985printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1986 sed 's/^/| /' "$ac_site_file" >&5 1987 . "$ac_site_file" \ 1988 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1989printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1990as_fn_error $? "failed to load site script $ac_site_file 1991See 'config.log' for more details" "$LINENO" 5; } 1992 fi 1993done 1994 1995if test -r "$cache_file"; then 1996 # Some versions of bash will fail to source /dev/null (special files 1997 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1998 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2000printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2001 case $cache_file in 2002 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2003 *) . "./$cache_file";; 2004 esac 2005 fi 2006else 2007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2008printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2009 >$cache_file 2010fi 2011 2012# Test code for whether the C compiler supports C89 (global declarations) 2013ac_c_conftest_c89_globals=' 2014/* Does the compiler advertise C89 conformance? 2015 Do not test the value of __STDC__, because some compilers set it to 0 2016 while being otherwise adequately conformant. */ 2017#if !defined __STDC__ 2018# error "Compiler does not advertise C89 conformance" 2019#endif 2020 2021#include <stddef.h> 2022#include <stdarg.h> 2023struct stat; 2024/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2025struct buf { int x; }; 2026struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2027static char *e (char **p, int i) 2028{ 2029 return p[i]; 2030} 2031static char *f (char * (*g) (char **, int), char **p, ...) 2032{ 2033 char *s; 2034 va_list v; 2035 va_start (v,p); 2036 s = g (p, va_arg (v,int)); 2037 va_end (v); 2038 return s; 2039} 2040 2041/* C89 style stringification. */ 2042#define noexpand_stringify(a) #a 2043const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2044 2045/* C89 style token pasting. Exercises some of the corner cases that 2046 e.g. old MSVC gets wrong, but not very hard. */ 2047#define noexpand_concat(a,b) a##b 2048#define expand_concat(a,b) noexpand_concat(a,b) 2049extern int vA; 2050extern int vbee; 2051#define aye A 2052#define bee B 2053int *pvA = &expand_concat(v,aye); 2054int *pvbee = &noexpand_concat(v,bee); 2055 2056/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2057 function prototypes and stuff, but not \xHH hex character constants. 2058 These do not provoke an error unfortunately, instead are silently treated 2059 as an "x". The following induces an error, until -std is added to get 2060 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2061 array size at least. It is necessary to write \x00 == 0 to get something 2062 that is true only with -std. */ 2063int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2064 2065/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2066 inside strings and character constants. */ 2067#define FOO(x) '\''x'\'' 2068int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2069 2070int test (int i, double x); 2071struct s1 {int (*f) (int a);}; 2072struct s2 {int (*f) (double a);}; 2073int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2074 int, int);' 2075 2076# Test code for whether the C compiler supports C89 (body of main). 2077ac_c_conftest_c89_main=' 2078ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2079' 2080 2081# Test code for whether the C compiler supports C99 (global declarations) 2082ac_c_conftest_c99_globals=' 2083/* Does the compiler advertise C99 conformance? */ 2084#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2085# error "Compiler does not advertise C99 conformance" 2086#endif 2087 2088// See if C++-style comments work. 2089 2090#include <stdbool.h> 2091extern int puts (const char *); 2092extern int printf (const char *, ...); 2093extern int dprintf (int, const char *, ...); 2094extern void *malloc (size_t); 2095extern void free (void *); 2096 2097// Check varargs macros. These examples are taken from C99 6.10.3.5. 2098// dprintf is used instead of fprintf to avoid needing to declare 2099// FILE and stderr. 2100#define debug(...) dprintf (2, __VA_ARGS__) 2101#define showlist(...) puts (#__VA_ARGS__) 2102#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2103static void 2104test_varargs_macros (void) 2105{ 2106 int x = 1234; 2107 int y = 5678; 2108 debug ("Flag"); 2109 debug ("X = %d\n", x); 2110 showlist (The first, second, and third items.); 2111 report (x>y, "x is %d but y is %d", x, y); 2112} 2113 2114// Check long long types. 2115#define BIG64 18446744073709551615ull 2116#define BIG32 4294967295ul 2117#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2118#if !BIG_OK 2119 #error "your preprocessor is broken" 2120#endif 2121#if BIG_OK 2122#else 2123 #error "your preprocessor is broken" 2124#endif 2125static long long int bignum = -9223372036854775807LL; 2126static unsigned long long int ubignum = BIG64; 2127 2128struct incomplete_array 2129{ 2130 int datasize; 2131 double data[]; 2132}; 2133 2134struct named_init { 2135 int number; 2136 const wchar_t *name; 2137 double average; 2138}; 2139 2140typedef const char *ccp; 2141 2142static inline int 2143test_restrict (ccp restrict text) 2144{ 2145 // Iterate through items via the restricted pointer. 2146 // Also check for declarations in for loops. 2147 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2148 continue; 2149 return 0; 2150} 2151 2152// Check varargs and va_copy. 2153static bool 2154test_varargs (const char *format, ...) 2155{ 2156 va_list args; 2157 va_start (args, format); 2158 va_list args_copy; 2159 va_copy (args_copy, args); 2160 2161 const char *str = ""; 2162 int number = 0; 2163 float fnumber = 0; 2164 2165 while (*format) 2166 { 2167 switch (*format++) 2168 { 2169 case '\''s'\'': // string 2170 str = va_arg (args_copy, const char *); 2171 break; 2172 case '\''d'\'': // int 2173 number = va_arg (args_copy, int); 2174 break; 2175 case '\''f'\'': // float 2176 fnumber = va_arg (args_copy, double); 2177 break; 2178 default: 2179 break; 2180 } 2181 } 2182 va_end (args_copy); 2183 va_end (args); 2184 2185 return *str && number && fnumber; 2186} 2187' 2188 2189# Test code for whether the C compiler supports C99 (body of main). 2190ac_c_conftest_c99_main=' 2191 // Check bool. 2192 _Bool success = false; 2193 success |= (argc != 0); 2194 2195 // Check restrict. 2196 if (test_restrict ("String literal") == 0) 2197 success = true; 2198 char *restrict newvar = "Another string"; 2199 2200 // Check varargs. 2201 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2202 test_varargs_macros (); 2203 2204 // Check flexible array members. 2205 struct incomplete_array *ia = 2206 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2207 ia->datasize = 10; 2208 for (int i = 0; i < ia->datasize; ++i) 2209 ia->data[i] = i * 1.234; 2210 // Work around memory leak warnings. 2211 free (ia); 2212 2213 // Check named initializers. 2214 struct named_init ni = { 2215 .number = 34, 2216 .name = L"Test wide string", 2217 .average = 543.34343, 2218 }; 2219 2220 ni.number = 58; 2221 2222 int dynamic_array[ni.number]; 2223 dynamic_array[0] = argv[0][0]; 2224 dynamic_array[ni.number - 1] = 543; 2225 2226 // work around unused variable warnings 2227 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2228 || dynamic_array[ni.number - 1] != 543); 2229' 2230 2231# Test code for whether the C compiler supports C11 (global declarations) 2232ac_c_conftest_c11_globals=' 2233/* Does the compiler advertise C11 conformance? */ 2234#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2235# error "Compiler does not advertise C11 conformance" 2236#endif 2237 2238// Check _Alignas. 2239char _Alignas (double) aligned_as_double; 2240char _Alignas (0) no_special_alignment; 2241extern char aligned_as_int; 2242char _Alignas (0) _Alignas (int) aligned_as_int; 2243 2244// Check _Alignof. 2245enum 2246{ 2247 int_alignment = _Alignof (int), 2248 int_array_alignment = _Alignof (int[100]), 2249 char_alignment = _Alignof (char) 2250}; 2251_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2252 2253// Check _Noreturn. 2254int _Noreturn does_not_return (void) { for (;;) continue; } 2255 2256// Check _Static_assert. 2257struct test_static_assert 2258{ 2259 int x; 2260 _Static_assert (sizeof (int) <= sizeof (long int), 2261 "_Static_assert does not work in struct"); 2262 long int y; 2263}; 2264 2265// Check UTF-8 literals. 2266#define u8 syntax error! 2267char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2268 2269// Check duplicate typedefs. 2270typedef long *long_ptr; 2271typedef long int *long_ptr; 2272typedef long_ptr long_ptr; 2273 2274// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2275struct anonymous 2276{ 2277 union { 2278 struct { int i; int j; }; 2279 struct { int k; long int l; } w; 2280 }; 2281 int m; 2282} v1; 2283' 2284 2285# Test code for whether the C compiler supports C11 (body of main). 2286ac_c_conftest_c11_main=' 2287 _Static_assert ((offsetof (struct anonymous, i) 2288 == offsetof (struct anonymous, w.k)), 2289 "Anonymous union alignment botch"); 2290 v1.i = 2; 2291 v1.w.k = 5; 2292 ok |= v1.i != 5; 2293' 2294 2295# Test code for whether the C compiler supports C11 (complete). 2296ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2297${ac_c_conftest_c99_globals} 2298${ac_c_conftest_c11_globals} 2299 2300int 2301main (int argc, char **argv) 2302{ 2303 int ok = 0; 2304 ${ac_c_conftest_c89_main} 2305 ${ac_c_conftest_c99_main} 2306 ${ac_c_conftest_c11_main} 2307 return ok; 2308} 2309" 2310 2311# Test code for whether the C compiler supports C99 (complete). 2312ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2313${ac_c_conftest_c99_globals} 2314 2315int 2316main (int argc, char **argv) 2317{ 2318 int ok = 0; 2319 ${ac_c_conftest_c89_main} 2320 ${ac_c_conftest_c99_main} 2321 return ok; 2322} 2323" 2324 2325# Test code for whether the C compiler supports C89 (complete). 2326ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2327 2328int 2329main (int argc, char **argv) 2330{ 2331 int ok = 0; 2332 ${ac_c_conftest_c89_main} 2333 return ok; 2334} 2335" 2336 2337as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2338as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2339as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2340as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2341as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2342as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2343as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2344as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2345as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2346 2347# Auxiliary files required by this configure script. 2348ac_aux_files="config.guess config.sub compile missing install-sh" 2349 2350# Locations in which to look for auxiliary files. 2351ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2352 2353# Search for a directory containing all of the required auxiliary files, 2354# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2355# If we don't find one directory that contains all the files we need, 2356# we report the set of missing files from the *first* directory in 2357# $ac_aux_dir_candidates and give up. 2358ac_missing_aux_files="" 2359ac_first_candidate=: 2360printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2362as_found=false 2363for as_dir in $ac_aux_dir_candidates 2364do 2365 IFS=$as_save_IFS 2366 case $as_dir in #((( 2367 '') as_dir=./ ;; 2368 */) ;; 2369 *) as_dir=$as_dir/ ;; 2370 esac 2371 as_found=: 2372 2373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2374 ac_aux_dir_found=yes 2375 ac_install_sh= 2376 for ac_aux in $ac_aux_files 2377 do 2378 # As a special case, if "install-sh" is required, that requirement 2379 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2380 # and $ac_install_sh is set appropriately for whichever one is found. 2381 if test x"$ac_aux" = x"install-sh" 2382 then 2383 if test -f "${as_dir}install-sh"; then 2384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2385 ac_install_sh="${as_dir}install-sh -c" 2386 elif test -f "${as_dir}install.sh"; then 2387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2388 ac_install_sh="${as_dir}install.sh -c" 2389 elif test -f "${as_dir}shtool"; then 2390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2391 ac_install_sh="${as_dir}shtool install -c" 2392 else 2393 ac_aux_dir_found=no 2394 if $ac_first_candidate; then 2395 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2396 else 2397 break 2398 fi 2399 fi 2400 else 2401 if test -f "${as_dir}${ac_aux}"; then 2402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2403 else 2404 ac_aux_dir_found=no 2405 if $ac_first_candidate; then 2406 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2407 else 2408 break 2409 fi 2410 fi 2411 fi 2412 done 2413 if test "$ac_aux_dir_found" = yes; then 2414 ac_aux_dir="$as_dir" 2415 break 2416 fi 2417 ac_first_candidate=false 2418 2419 as_found=false 2420done 2421IFS=$as_save_IFS 2422if $as_found 2423then : 2424 2425else case e in #( 2426 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2427esac 2428fi 2429 2430 2431# These three variables are undocumented and unsupported, 2432# and are intended to be withdrawn in a future Autoconf release. 2433# They can cause serious problems if a builder's source tree is in a directory 2434# whose full name contains unusual characters. 2435if test -f "${ac_aux_dir}config.guess"; then 2436 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2437fi 2438if test -f "${ac_aux_dir}config.sub"; then 2439 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2440fi 2441if test -f "$ac_aux_dir/configure"; then 2442 ac_configure="$SHELL ${ac_aux_dir}configure" 2443fi 2444 2445# Check that the precious variables saved in the cache have kept the same 2446# value. 2447ac_cache_corrupted=false 2448for ac_var in $ac_precious_vars; do 2449 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2450 eval ac_new_set=\$ac_env_${ac_var}_set 2451 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2452 eval ac_new_val=\$ac_env_${ac_var}_value 2453 case $ac_old_set,$ac_new_set in 2454 set,) 2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2456printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2457 ac_cache_corrupted=: ;; 2458 ,set) 2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2460printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2461 ac_cache_corrupted=: ;; 2462 ,);; 2463 *) 2464 if test "x$ac_old_val" != "x$ac_new_val"; then 2465 # differences in whitespace do not lead to failure. 2466 ac_old_val_w=`echo x $ac_old_val` 2467 ac_new_val_w=`echo x $ac_new_val` 2468 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2470printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2471 ac_cache_corrupted=: 2472 else 2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2474printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2475 eval $ac_var=\$ac_old_val 2476 fi 2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2478printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2480printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2481 fi;; 2482 esac 2483 # Pass precious variables to config.status. 2484 if test "$ac_new_set" = set; then 2485 case $ac_new_val in 2486 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2487 *) ac_arg=$ac_var=$ac_new_val ;; 2488 esac 2489 case " $ac_configure_args " in 2490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2491 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2492 esac 2493 fi 2494done 2495if $ac_cache_corrupted; then 2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2497printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2499printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2500 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2501 and start over" "$LINENO" 5 2502fi 2503## -------------------- ## 2504## Main body of script. ## 2505## -------------------- ## 2506 2507ac_ext=c 2508ac_cpp='$CPP $CPPFLAGS' 2509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2511ac_compiler_gnu=$ac_cv_c_compiler_gnu 2512 2513 2514 2515ac_config_headers="$ac_config_headers config.h" 2516 2517 2518# Initialize Automake 2519am__api_version='1.17' 2520 2521 2522 2523 # Find a good install program. We prefer a C program (faster), 2524# so one script is as good as another. But avoid the broken or 2525# incompatible versions: 2526# SysV /etc/install, /usr/sbin/install 2527# SunOS /usr/etc/install 2528# IRIX /sbin/install 2529# AIX /bin/install 2530# AmigaOS /C/install, which installs bootblocks on floppy discs 2531# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2532# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2533# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2534# OS/2's system install, which has a completely different semantic 2535# ./install, which can be erroneously created by make from ./install.sh. 2536# Reject install programs that cannot install multiple files. 2537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2538printf %s "checking for a BSD-compatible install... " >&6; } 2539if test -z "$INSTALL"; then 2540if test ${ac_cv_path_install+y} 2541then : 2542 printf %s "(cached) " >&6 2543else case e in #( 2544 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2545for as_dir in $PATH 2546do 2547 IFS=$as_save_IFS 2548 case $as_dir in #((( 2549 '') as_dir=./ ;; 2550 */) ;; 2551 *) as_dir=$as_dir/ ;; 2552 esac 2553 # Account for fact that we put trailing slashes in our PATH walk. 2554case $as_dir in #(( 2555 ./ | /[cC]/* | \ 2556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2557 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2558 /usr/ucb/* ) ;; 2559 *) 2560 # OSF1 and SCO ODT 3.0 have their own names for install. 2561 # Don't use installbsd from OSF since it installs stuff as root 2562 # by default. 2563 for ac_prog in ginstall scoinst install; do 2564 for ac_exec_ext in '' $ac_executable_extensions; do 2565 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2566 if test $ac_prog = install && 2567 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2568 # AIX install. It has an incompatible calling convention. 2569 : 2570 elif test $ac_prog = install && 2571 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2572 # program-specific install script used by HP pwplus--don't use. 2573 : 2574 else 2575 rm -rf conftest.one conftest.two conftest.dir 2576 echo one > conftest.one 2577 echo two > conftest.two 2578 mkdir conftest.dir 2579 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2580 test -s conftest.one && test -s conftest.two && 2581 test -s conftest.dir/conftest.one && 2582 test -s conftest.dir/conftest.two 2583 then 2584 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2585 break 3 2586 fi 2587 fi 2588 fi 2589 done 2590 done 2591 ;; 2592esac 2593 2594 done 2595IFS=$as_save_IFS 2596 2597rm -rf conftest.one conftest.two conftest.dir 2598 ;; 2599esac 2600fi 2601 if test ${ac_cv_path_install+y}; then 2602 INSTALL=$ac_cv_path_install 2603 else 2604 # As a last resort, use the slow shell script. Don't cache a 2605 # value for INSTALL within a source directory, because that will 2606 # break other packages using the cache if that directory is 2607 # removed, or if the value is a relative name. 2608 INSTALL=$ac_install_sh 2609 fi 2610fi 2611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2612printf "%s\n" "$INSTALL" >&6; } 2613 2614# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2615# It thinks the first close brace ends the variable substitution. 2616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2617 2618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2619 2620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2621 2622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2623printf %s "checking whether sleep supports fractional seconds... " >&6; } 2624if test ${am_cv_sleep_fractional_seconds+y} 2625then : 2626 printf %s "(cached) " >&6 2627else case e in #( 2628 e) if sleep 0.001 2>/dev/null 2629then : 2630 am_cv_sleep_fractional_seconds=yes 2631else case e in #( 2632 e) am_cv_sleep_fractional_seconds=no ;; 2633esac 2634fi 2635 ;; 2636esac 2637fi 2638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2639printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2640 2641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2642printf %s "checking filesystem timestamp resolution... " >&6; } 2643if test ${am_cv_filesystem_timestamp_resolution+y} 2644then : 2645 printf %s "(cached) " >&6 2646else case e in #( 2647 e) # Default to the worst case. 2648am_cv_filesystem_timestamp_resolution=2 2649 2650# Only try to go finer than 1 sec if sleep can do it. 2651# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2652# - 1 sec is not much of a win compared to 2 sec, and 2653# - it takes 2 seconds to perform the test whether 1 sec works. 2654# 2655# Instead, just use the default 2s on platforms that have 1s resolution, 2656# accept the extra 1s delay when using $sleep in the Automake tests, in 2657# exchange for not incurring the 2s delay for running the test for all 2658# packages. 2659# 2660am_try_resolutions= 2661if test "$am_cv_sleep_fractional_seconds" = yes; then 2662 # Even a millisecond often causes a bunch of false positives, 2663 # so just try a hundredth of a second. The time saved between .001 and 2664 # .01 is not terribly consequential. 2665 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2666fi 2667 2668# In order to catch current-generation FAT out, we must *modify* files 2669# that already exist; the *creation* timestamp is finer. Use names 2670# that make ls -t sort them differently when they have equal 2671# timestamps than when they have distinct timestamps, keeping 2672# in mind that ls -t prints the *newest* file first. 2673rm -f conftest.ts? 2674: > conftest.ts1 2675: > conftest.ts2 2676: > conftest.ts3 2677 2678# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2679# clobber the current shell's arguments. (Outer-level square brackets 2680# are removed by m4; they're present so that m4 does not expand 2681# <dollar><star>; be careful, easy to get confused.) 2682if ( 2683 set X `ls -t conftest.ts[12]` && 2684 { 2685 test "$*" != "X conftest.ts1 conftest.ts2" || 2686 test "$*" != "X conftest.ts2 conftest.ts1"; 2687 } 2688); then :; else 2689 # If neither matched, then we have a broken ls. This can happen 2690 # if, for instance, CONFIG_SHELL is bash and it inherits a 2691 # broken ls alias from the environment. This has actually 2692 # happened. Such a system could not be considered "sane". 2693 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2695printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2696as_fn_error $? "ls -t produces unexpected output. 2697Make sure there is not a broken ls alias in your environment. 2698See 'config.log' for more details" "$LINENO" 5; } 2699fi 2700 2701for am_try_res in $am_try_resolutions; do 2702 # Any one fine-grained sleep might happen to cross the boundary 2703 # between two values of a coarser actual resolution, but if we do 2704 # two fine-grained sleeps in a row, at least one of them will fall 2705 # entirely within a coarse interval. 2706 echo alpha > conftest.ts1 2707 sleep $am_try_res 2708 echo beta > conftest.ts2 2709 sleep $am_try_res 2710 echo gamma > conftest.ts3 2711 2712 # We assume that 'ls -t' will make use of high-resolution 2713 # timestamps if the operating system supports them at all. 2714 if (set X `ls -t conftest.ts?` && 2715 test "$2" = conftest.ts3 && 2716 test "$3" = conftest.ts2 && 2717 test "$4" = conftest.ts1); then 2718 # 2719 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2720 # because we don't need to test make. 2721 make_ok=true 2722 if test $am_try_res != 1; then 2723 # But if we've succeeded so far with a subsecond resolution, we 2724 # have one more thing to check: make. It can happen that 2725 # everything else supports the subsecond mtimes, but make doesn't; 2726 # notably on macOS, which ships make 3.81 from 2006 (the last one 2727 # released under GPLv2). https://bugs.gnu.org/68808 2728 # 2729 # We test $MAKE if it is defined in the environment, else "make". 2730 # It might get overridden later, but our hope is that in practice 2731 # it does not matter: it is the system "make" which is (by far) 2732 # the most likely to be broken, whereas if the user overrides it, 2733 # probably they did so with a better, or at least not worse, make. 2734 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2735 # 2736 # Create a Makefile (real tab character here): 2737 rm -f conftest.mk 2738 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2739 echo ' touch conftest.ts2' >>conftest.mk 2740 # 2741 # Now, running 2742 # touch conftest.ts1; touch conftest.ts2; make 2743 # should touch ts1 because ts2 is newer. This could happen by luck, 2744 # but most often, it will fail if make's support is insufficient. So 2745 # test for several consecutive successes. 2746 # 2747 # (We reuse conftest.ts[12] because we still want to modify existing 2748 # files, not create new ones, per above.) 2749 n=0 2750 make=${MAKE-make} 2751 until test $n -eq 3; do 2752 echo one > conftest.ts1 2753 sleep $am_try_res 2754 echo two > conftest.ts2 # ts2 should now be newer than ts1 2755 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2756 make_ok=false 2757 break # out of $n loop 2758 fi 2759 n=`expr $n + 1` 2760 done 2761 fi 2762 # 2763 if $make_ok; then 2764 # Everything we know to check worked out, so call this resolution good. 2765 am_cv_filesystem_timestamp_resolution=$am_try_res 2766 break # out of $am_try_res loop 2767 fi 2768 # Otherwise, we'll go on to check the next resolution. 2769 fi 2770done 2771rm -f conftest.ts? 2772# (end _am_filesystem_timestamp_resolution) 2773 ;; 2774esac 2775fi 2776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2777printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2778 2779# This check should not be cached, as it may vary across builds of 2780# different projects. 2781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2782printf %s "checking whether build environment is sane... " >&6; } 2783# Reject unsafe characters in $srcdir or the absolute working directory 2784# name. Accept space and tab only in the latter. 2785am_lf=' 2786' 2787case `pwd` in 2788 *[\\\"\#\$\&\'\`$am_lf]*) 2789 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2790esac 2791case $srcdir in 2792 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2793 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2794esac 2795 2796# Do 'set' in a subshell so we don't clobber the current shell's 2797# arguments. Must try -L first in case configure is actually a 2798# symlink; some systems play weird games with the mod time of symlinks 2799# (eg FreeBSD returns the mod time of the symlink's containing 2800# directory). 2801am_build_env_is_sane=no 2802am_has_slept=no 2803rm -f conftest.file 2804for am_try in 1 2; do 2805 echo "timestamp, slept: $am_has_slept" > conftest.file 2806 if ( 2807 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2808 if test "$*" = "X"; then 2809 # -L didn't work. 2810 set X `ls -t "$srcdir/configure" conftest.file` 2811 fi 2812 test "$2" = conftest.file 2813 ); then 2814 am_build_env_is_sane=yes 2815 break 2816 fi 2817 # Just in case. 2818 sleep "$am_cv_filesystem_timestamp_resolution" 2819 am_has_slept=yes 2820done 2821 2822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2823printf "%s\n" "$am_build_env_is_sane" >&6; } 2824if test "$am_build_env_is_sane" = no; then 2825 as_fn_error $? "newly created file is older than distributed files! 2826Check your system clock" "$LINENO" 5 2827fi 2828 2829# If we didn't sleep, we still need to ensure time stamps of config.status and 2830# generated files are strictly newer. 2831am_sleep_pid= 2832if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2833then : 2834 2835else case e in #( 2836 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2837 am_sleep_pid=$! 2838 ;; 2839esac 2840fi 2841 2842rm -f conftest.file 2843 2844test "$program_prefix" != NONE && 2845 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2846# Use a double $ so make ignores it. 2847test "$program_suffix" != NONE && 2848 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2849# Double any \ or $. 2850# By default was 's,x,x', remove it if useless. 2851ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2852program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2853 2854 2855# Expand $ac_aux_dir to an absolute path. 2856am_aux_dir=`cd "$ac_aux_dir" && pwd` 2857 2858 2859 if test x"${MISSING+set}" != xset; then 2860 MISSING="\${SHELL} '$am_aux_dir/missing'" 2861fi 2862# Use eval to expand $SHELL 2863if eval "$MISSING --is-lightweight"; then 2864 am_missing_run="$MISSING " 2865else 2866 am_missing_run= 2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2868printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2869fi 2870 2871if test x"${install_sh+set}" != xset; then 2872 case $am_aux_dir in 2873 *\ * | *\ *) 2874 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2875 *) 2876 install_sh="\${SHELL} $am_aux_dir/install-sh" 2877 esac 2878fi 2879 2880# Installed binaries are usually stripped using 'strip' when the user 2881# run "make install-strip". However 'strip' might not be the right 2882# tool to use in cross-compilation environments, therefore Automake 2883# will honor the 'STRIP' environment variable to overrule this program. 2884if test "$cross_compiling" != no; then 2885 if test -n "$ac_tool_prefix"; then 2886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2887set dummy ${ac_tool_prefix}strip; ac_word=$2 2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889printf %s "checking for $ac_word... " >&6; } 2890if test ${ac_cv_prog_STRIP+y} 2891then : 2892 printf %s "(cached) " >&6 2893else case e in #( 2894 e) if test -n "$STRIP"; then 2895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2896else 2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898for as_dir in $PATH 2899do 2900 IFS=$as_save_IFS 2901 case $as_dir in #((( 2902 '') as_dir=./ ;; 2903 */) ;; 2904 *) as_dir=$as_dir/ ;; 2905 esac 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2908 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912done 2913 done 2914IFS=$as_save_IFS 2915 2916fi ;; 2917esac 2918fi 2919STRIP=$ac_cv_prog_STRIP 2920if test -n "$STRIP"; then 2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2922printf "%s\n" "$STRIP" >&6; } 2923else 2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2925printf "%s\n" "no" >&6; } 2926fi 2927 2928 2929fi 2930if test -z "$ac_cv_prog_STRIP"; then 2931 ac_ct_STRIP=$STRIP 2932 # Extract the first word of "strip", so it can be a program name with args. 2933set dummy strip; ac_word=$2 2934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2935printf %s "checking for $ac_word... " >&6; } 2936if test ${ac_cv_prog_ac_ct_STRIP+y} 2937then : 2938 printf %s "(cached) " >&6 2939else case e in #( 2940 e) if test -n "$ac_ct_STRIP"; then 2941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2942else 2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2944for as_dir in $PATH 2945do 2946 IFS=$as_save_IFS 2947 case $as_dir in #((( 2948 '') as_dir=./ ;; 2949 */) ;; 2950 *) as_dir=$as_dir/ ;; 2951 esac 2952 for ac_exec_ext in '' $ac_executable_extensions; do 2953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2954 ac_cv_prog_ac_ct_STRIP="strip" 2955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2956 break 2 2957 fi 2958done 2959 done 2960IFS=$as_save_IFS 2961 2962fi ;; 2963esac 2964fi 2965ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2966if test -n "$ac_ct_STRIP"; then 2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2968printf "%s\n" "$ac_ct_STRIP" >&6; } 2969else 2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971printf "%s\n" "no" >&6; } 2972fi 2973 2974 if test "x$ac_ct_STRIP" = x; then 2975 STRIP=":" 2976 else 2977 case $cross_compiling:$ac_tool_warned in 2978yes:) 2979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2980printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2981ac_tool_warned=yes ;; 2982esac 2983 STRIP=$ac_ct_STRIP 2984 fi 2985else 2986 STRIP="$ac_cv_prog_STRIP" 2987fi 2988 2989fi 2990INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2991 2992 2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2994printf %s "checking for a race-free mkdir -p... " >&6; } 2995if test -z "$MKDIR_P"; then 2996 if test ${ac_cv_path_mkdir+y} 2997then : 2998 printf %s "(cached) " >&6 2999else case e in #( 3000 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3002do 3003 IFS=$as_save_IFS 3004 case $as_dir in #((( 3005 '') as_dir=./ ;; 3006 */) ;; 3007 *) as_dir=$as_dir/ ;; 3008 esac 3009 for ac_prog in mkdir gmkdir; do 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3012 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3013 'mkdir ('*'coreutils) '* | \ 3014 *'BusyBox '* | \ 3015 'mkdir (fileutils) '4.1*) 3016 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3017 break 3;; 3018 esac 3019 done 3020 done 3021 done 3022IFS=$as_save_IFS 3023 ;; 3024esac 3025fi 3026 3027 test -d ./--version && rmdir ./--version 3028 if test ${ac_cv_path_mkdir+y}; then 3029 MKDIR_P="$ac_cv_path_mkdir -p" 3030 else 3031 # As a last resort, use plain mkdir -p, 3032 # in the hope it doesn't have the bugs of ancient mkdir. 3033 MKDIR_P='mkdir -p' 3034 fi 3035fi 3036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3037printf "%s\n" "$MKDIR_P" >&6; } 3038 3039for ac_prog in gawk mawk nawk awk 3040do 3041 # Extract the first word of "$ac_prog", so it can be a program name with args. 3042set dummy $ac_prog; ac_word=$2 3043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3044printf %s "checking for $ac_word... " >&6; } 3045if test ${ac_cv_prog_AWK+y} 3046then : 3047 printf %s "(cached) " >&6 3048else case e in #( 3049 e) if test -n "$AWK"; then 3050 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3051else 3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3053for as_dir in $PATH 3054do 3055 IFS=$as_save_IFS 3056 case $as_dir in #((( 3057 '') as_dir=./ ;; 3058 */) ;; 3059 *) as_dir=$as_dir/ ;; 3060 esac 3061 for ac_exec_ext in '' $ac_executable_extensions; do 3062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3063 ac_cv_prog_AWK="$ac_prog" 3064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3065 break 2 3066 fi 3067done 3068 done 3069IFS=$as_save_IFS 3070 3071fi ;; 3072esac 3073fi 3074AWK=$ac_cv_prog_AWK 3075if test -n "$AWK"; then 3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3077printf "%s\n" "$AWK" >&6; } 3078else 3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080printf "%s\n" "no" >&6; } 3081fi 3082 3083 3084 test -n "$AWK" && break 3085done 3086 3087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3088printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3089set x ${MAKE-make} 3090ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3091if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3092then : 3093 printf %s "(cached) " >&6 3094else case e in #( 3095 e) cat >conftest.make <<\_ACEOF 3096SHELL = /bin/sh 3097all: 3098 @echo '@@@%%%=$(MAKE)=@@@%%%' 3099_ACEOF 3100# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3101case `${MAKE-make} -f conftest.make 2>/dev/null` in 3102 *@@@%%%=?*=@@@%%%*) 3103 eval ac_cv_prog_make_${ac_make}_set=yes;; 3104 *) 3105 eval ac_cv_prog_make_${ac_make}_set=no;; 3106esac 3107rm -f conftest.make ;; 3108esac 3109fi 3110if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3112printf "%s\n" "yes" >&6; } 3113 SET_MAKE= 3114else 3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3116printf "%s\n" "no" >&6; } 3117 SET_MAKE="MAKE=${MAKE-make}" 3118fi 3119 3120rm -rf .tst 2>/dev/null 3121mkdir .tst 2>/dev/null 3122if test -d .tst; then 3123 am__leading_dot=. 3124else 3125 am__leading_dot=_ 3126fi 3127rmdir .tst 2>/dev/null 3128 3129AM_DEFAULT_VERBOSITY=1 3130# Check whether --enable-silent-rules was given. 3131if test ${enable_silent_rules+y} 3132then : 3133 enableval=$enable_silent_rules; 3134fi 3135 3136am_make=${MAKE-make} 3137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3138printf %s "checking whether $am_make supports nested variables... " >&6; } 3139if test ${am_cv_make_support_nested_variables+y} 3140then : 3141 printf %s "(cached) " >&6 3142else case e in #( 3143 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3144BAR0=false 3145BAR1=true 3146V=1 3147am__doit: 3148 @$(TRUE) 3149.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3150 am_cv_make_support_nested_variables=yes 3151else 3152 am_cv_make_support_nested_variables=no 3153fi ;; 3154esac 3155fi 3156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3157printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3158AM_BACKSLASH='\' 3159 3160am__rm_f_notfound= 3161if (rm -f && rm -fr && rm -rf) 2>/dev/null 3162then : 3163 3164else case e in #( 3165 e) am__rm_f_notfound='""' ;; 3166esac 3167fi 3168 3169 3170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3171printf %s "checking xargs -n works... " >&6; } 3172if test ${am_cv_xargs_n_works+y} 3173then : 3174 printf %s "(cached) " >&6 3175else case e in #( 3176 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 31773" 3178then : 3179 am_cv_xargs_n_works=yes 3180else case e in #( 3181 e) am_cv_xargs_n_works=no ;; 3182esac 3183fi ;; 3184esac 3185fi 3186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3187printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3188if test "$am_cv_xargs_n_works" = yes 3189then : 3190 am__xargs_n='xargs -n' 3191else case e in #( 3192 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3193 ;; 3194esac 3195fi 3196 3197if test "`cd $srcdir && pwd`" != "`pwd`"; then 3198 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3199 # is not polluted with repeated "-I." 3200 am__isrc=' -I$(srcdir)' 3201 # test to see if srcdir already configured 3202 if test -f $srcdir/config.status; then 3203 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3204 fi 3205fi 3206 3207# test whether we have cygpath 3208if test -z "$CYGPATH_W"; then 3209 if (cygpath --version) >/dev/null 2>/dev/null; then 3210 CYGPATH_W='cygpath -w' 3211 else 3212 CYGPATH_W=echo 3213 fi 3214fi 3215 3216 3217# Define the identity of the package. 3218 PACKAGE='xkbevd' 3219 VERSION='1.1.6' 3220 3221 3222printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3223 3224 3225printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3226 3227# Some tools Automake needs. 3228 3229ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3230 3231 3232AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3233 3234 3235AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3236 3237 3238AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3239 3240 3241MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3242 3243# For better backward compatibility. To be removed once Automake 1.9.x 3244# dies out for good. For more background, see: 3245# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3246# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3247mkdir_p='$(MKDIR_P)' 3248 3249# We need awk for the "check" target (and possibly the TAP driver). The 3250# system "awk" is bad on some platforms. 3251# Always define AMTAR for backward compatibility. Yes, it's still used 3252# in the wild :-( We should find a proper way to deprecate it ... 3253AMTAR='$${TAR-tar}' 3254 3255 3256# We'll loop over all known methods to create a tar archive until one works. 3257_am_tools='gnutar pax cpio none' 3258 3259am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3260 3261 3262 3263 3264 3265# Variables for tags utilities; see am/tags.am 3266if test -z "$CTAGS"; then 3267 CTAGS=ctags 3268fi 3269 3270if test -z "$ETAGS"; then 3271 ETAGS=etags 3272fi 3273 3274if test -z "$CSCOPE"; then 3275 CSCOPE=cscope 3276fi 3277 3278 3279 3280 3281 3282 3283 3284 3285# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306DEPDIR="${am__leading_dot}deps" 3307 3308ac_config_commands="$ac_config_commands depfiles" 3309 3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3311printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3312cat > confinc.mk << 'END' 3313am__doit: 3314 @echo this is the am__doit target >confinc.out 3315.PHONY: am__doit 3316END 3317am__include="#" 3318am__quote= 3319# BSD make does it like this. 3320echo '.include "confinc.mk" # ignored' > confmf.BSD 3321# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3322echo 'include confinc.mk # ignored' > confmf.GNU 3323_am_result=no 3324for s in GNU BSD; do 3325 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3326 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3327 ac_status=$? 3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); } 3330 case $?:`cat confinc.out 2>/dev/null` in #( 3331 '0:this is the am__doit target') : 3332 case $s in #( 3333 BSD) : 3334 am__include='.include' am__quote='"' ;; #( 3335 *) : 3336 am__include='include' am__quote='' ;; 3337esac ;; #( 3338 *) : 3339 ;; 3340esac 3341 if test "$am__include" != "#"; then 3342 _am_result="yes ($s style)" 3343 break 3344 fi 3345done 3346rm -f confinc.* confmf.* 3347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3348printf "%s\n" "${_am_result}" >&6; } 3349 3350# Check whether --enable-dependency-tracking was given. 3351if test ${enable_dependency_tracking+y} 3352then : 3353 enableval=$enable_dependency_tracking; 3354fi 3355 3356if test "x$enable_dependency_tracking" != xno; then 3357 am_depcomp="$ac_aux_dir/depcomp" 3358 AMDEPBACKSLASH='\' 3359 am__nodep='_no' 3360fi 3361 if test "x$enable_dependency_tracking" != xno; then 3362 AMDEP_TRUE= 3363 AMDEP_FALSE='#' 3364else 3365 AMDEP_TRUE='#' 3366 AMDEP_FALSE= 3367fi 3368 3369 3370ac_ext=c 3371ac_cpp='$CPP $CPPFLAGS' 3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3374ac_compiler_gnu=$ac_cv_c_compiler_gnu 3375if test -n "$ac_tool_prefix"; then 3376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3377set dummy ${ac_tool_prefix}gcc; ac_word=$2 3378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3379printf %s "checking for $ac_word... " >&6; } 3380if test ${ac_cv_prog_CC+y} 3381then : 3382 printf %s "(cached) " >&6 3383else case e in #( 3384 e) if test -n "$CC"; then 3385 ac_cv_prog_CC="$CC" # Let the user override the test. 3386else 3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3388for as_dir in $PATH 3389do 3390 IFS=$as_save_IFS 3391 case $as_dir in #((( 3392 '') as_dir=./ ;; 3393 */) ;; 3394 *) as_dir=$as_dir/ ;; 3395 esac 3396 for ac_exec_ext in '' $ac_executable_extensions; do 3397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3398 ac_cv_prog_CC="${ac_tool_prefix}gcc" 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 3406fi ;; 3407esac 3408fi 3409CC=$ac_cv_prog_CC 3410if test -n "$CC"; then 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3412printf "%s\n" "$CC" >&6; } 3413else 3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3415printf "%s\n" "no" >&6; } 3416fi 3417 3418 3419fi 3420if test -z "$ac_cv_prog_CC"; then 3421 ac_ct_CC=$CC 3422 # Extract the first word of "gcc", so it can be a program name with args. 3423set dummy gcc; ac_word=$2 3424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3425printf %s "checking for $ac_word... " >&6; } 3426if test ${ac_cv_prog_ac_ct_CC+y} 3427then : 3428 printf %s "(cached) " >&6 3429else case e in #( 3430 e) if test -n "$ac_ct_CC"; then 3431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3432else 3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3434for as_dir in $PATH 3435do 3436 IFS=$as_save_IFS 3437 case $as_dir in #((( 3438 '') as_dir=./ ;; 3439 */) ;; 3440 *) as_dir=$as_dir/ ;; 3441 esac 3442 for ac_exec_ext in '' $ac_executable_extensions; do 3443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3444 ac_cv_prog_ac_ct_CC="gcc" 3445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3446 break 2 3447 fi 3448done 3449 done 3450IFS=$as_save_IFS 3451 3452fi ;; 3453esac 3454fi 3455ac_ct_CC=$ac_cv_prog_ac_ct_CC 3456if test -n "$ac_ct_CC"; then 3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3458printf "%s\n" "$ac_ct_CC" >&6; } 3459else 3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3461printf "%s\n" "no" >&6; } 3462fi 3463 3464 if test "x$ac_ct_CC" = x; then 3465 CC="" 3466 else 3467 case $cross_compiling:$ac_tool_warned in 3468yes:) 3469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3470printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3471ac_tool_warned=yes ;; 3472esac 3473 CC=$ac_ct_CC 3474 fi 3475else 3476 CC="$ac_cv_prog_CC" 3477fi 3478 3479if test -z "$CC"; then 3480 if test -n "$ac_tool_prefix"; then 3481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3482set dummy ${ac_tool_prefix}cc; ac_word=$2 3483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3484printf %s "checking for $ac_word... " >&6; } 3485if test ${ac_cv_prog_CC+y} 3486then : 3487 printf %s "(cached) " >&6 3488else case e in #( 3489 e) if test -n "$CC"; then 3490 ac_cv_prog_CC="$CC" # Let the user override the test. 3491else 3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3493for as_dir in $PATH 3494do 3495 IFS=$as_save_IFS 3496 case $as_dir in #((( 3497 '') as_dir=./ ;; 3498 */) ;; 3499 *) as_dir=$as_dir/ ;; 3500 esac 3501 for ac_exec_ext in '' $ac_executable_extensions; do 3502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3503 ac_cv_prog_CC="${ac_tool_prefix}cc" 3504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3505 break 2 3506 fi 3507done 3508 done 3509IFS=$as_save_IFS 3510 3511fi ;; 3512esac 3513fi 3514CC=$ac_cv_prog_CC 3515if test -n "$CC"; then 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3517printf "%s\n" "$CC" >&6; } 3518else 3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3520printf "%s\n" "no" >&6; } 3521fi 3522 3523 3524 fi 3525fi 3526if test -z "$CC"; then 3527 # Extract the first word of "cc", so it can be a program name with args. 3528set dummy cc; ac_word=$2 3529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3530printf %s "checking for $ac_word... " >&6; } 3531if test ${ac_cv_prog_CC+y} 3532then : 3533 printf %s "(cached) " >&6 3534else case e in #( 3535 e) if test -n "$CC"; then 3536 ac_cv_prog_CC="$CC" # Let the user override the test. 3537else 3538 ac_prog_rejected=no 3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3540for as_dir in $PATH 3541do 3542 IFS=$as_save_IFS 3543 case $as_dir in #((( 3544 '') as_dir=./ ;; 3545 */) ;; 3546 *) as_dir=$as_dir/ ;; 3547 esac 3548 for ac_exec_ext in '' $ac_executable_extensions; do 3549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3550 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3551 ac_prog_rejected=yes 3552 continue 3553 fi 3554 ac_cv_prog_CC="cc" 3555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3556 break 2 3557 fi 3558done 3559 done 3560IFS=$as_save_IFS 3561 3562if test $ac_prog_rejected = yes; then 3563 # We found a bogon in the path, so make sure we never use it. 3564 set dummy $ac_cv_prog_CC 3565 shift 3566 if test $# != 0; then 3567 # We chose a different compiler from the bogus one. 3568 # However, it has the same basename, so the bogon will be chosen 3569 # first if we set CC to just the basename; use the full file name. 3570 shift 3571 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3572 fi 3573fi 3574fi ;; 3575esac 3576fi 3577CC=$ac_cv_prog_CC 3578if test -n "$CC"; then 3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3580printf "%s\n" "$CC" >&6; } 3581else 3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3583printf "%s\n" "no" >&6; } 3584fi 3585 3586 3587fi 3588if test -z "$CC"; then 3589 if test -n "$ac_tool_prefix"; then 3590 for ac_prog in cl.exe 3591 do 3592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3593set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3595printf %s "checking for $ac_word... " >&6; } 3596if test ${ac_cv_prog_CC+y} 3597then : 3598 printf %s "(cached) " >&6 3599else case e in #( 3600 e) if test -n "$CC"; then 3601 ac_cv_prog_CC="$CC" # Let the user override the test. 3602else 3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3604for as_dir in $PATH 3605do 3606 IFS=$as_save_IFS 3607 case $as_dir in #((( 3608 '') as_dir=./ ;; 3609 */) ;; 3610 *) as_dir=$as_dir/ ;; 3611 esac 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3616 break 2 3617 fi 3618done 3619 done 3620IFS=$as_save_IFS 3621 3622fi ;; 3623esac 3624fi 3625CC=$ac_cv_prog_CC 3626if test -n "$CC"; then 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3628printf "%s\n" "$CC" >&6; } 3629else 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3631printf "%s\n" "no" >&6; } 3632fi 3633 3634 3635 test -n "$CC" && break 3636 done 3637fi 3638if test -z "$CC"; then 3639 ac_ct_CC=$CC 3640 for ac_prog in cl.exe 3641do 3642 # Extract the first word of "$ac_prog", so it can be a program name with args. 3643set dummy $ac_prog; ac_word=$2 3644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3645printf %s "checking for $ac_word... " >&6; } 3646if test ${ac_cv_prog_ac_ct_CC+y} 3647then : 3648 printf %s "(cached) " >&6 3649else case e in #( 3650 e) if test -n "$ac_ct_CC"; then 3651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3652else 3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3654for as_dir in $PATH 3655do 3656 IFS=$as_save_IFS 3657 case $as_dir in #((( 3658 '') as_dir=./ ;; 3659 */) ;; 3660 *) as_dir=$as_dir/ ;; 3661 esac 3662 for ac_exec_ext in '' $ac_executable_extensions; do 3663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3664 ac_cv_prog_ac_ct_CC="$ac_prog" 3665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3666 break 2 3667 fi 3668done 3669 done 3670IFS=$as_save_IFS 3671 3672fi ;; 3673esac 3674fi 3675ac_ct_CC=$ac_cv_prog_ac_ct_CC 3676if test -n "$ac_ct_CC"; then 3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3678printf "%s\n" "$ac_ct_CC" >&6; } 3679else 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3681printf "%s\n" "no" >&6; } 3682fi 3683 3684 3685 test -n "$ac_ct_CC" && break 3686done 3687 3688 if test "x$ac_ct_CC" = x; then 3689 CC="" 3690 else 3691 case $cross_compiling:$ac_tool_warned in 3692yes:) 3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3694printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3695ac_tool_warned=yes ;; 3696esac 3697 CC=$ac_ct_CC 3698 fi 3699fi 3700 3701fi 3702if test -z "$CC"; then 3703 if test -n "$ac_tool_prefix"; then 3704 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3705set dummy ${ac_tool_prefix}clang; ac_word=$2 3706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3707printf %s "checking for $ac_word... " >&6; } 3708if test ${ac_cv_prog_CC+y} 3709then : 3710 printf %s "(cached) " >&6 3711else case e in #( 3712 e) if test -n "$CC"; then 3713 ac_cv_prog_CC="$CC" # Let the user override the test. 3714else 3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3716for as_dir in $PATH 3717do 3718 IFS=$as_save_IFS 3719 case $as_dir in #((( 3720 '') as_dir=./ ;; 3721 */) ;; 3722 *) as_dir=$as_dir/ ;; 3723 esac 3724 for ac_exec_ext in '' $ac_executable_extensions; do 3725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3726 ac_cv_prog_CC="${ac_tool_prefix}clang" 3727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3728 break 2 3729 fi 3730done 3731 done 3732IFS=$as_save_IFS 3733 3734fi ;; 3735esac 3736fi 3737CC=$ac_cv_prog_CC 3738if test -n "$CC"; then 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3740printf "%s\n" "$CC" >&6; } 3741else 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3743printf "%s\n" "no" >&6; } 3744fi 3745 3746 3747fi 3748if test -z "$ac_cv_prog_CC"; then 3749 ac_ct_CC=$CC 3750 # Extract the first word of "clang", so it can be a program name with args. 3751set dummy clang; ac_word=$2 3752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3753printf %s "checking for $ac_word... " >&6; } 3754if test ${ac_cv_prog_ac_ct_CC+y} 3755then : 3756 printf %s "(cached) " >&6 3757else case e in #( 3758 e) if test -n "$ac_ct_CC"; then 3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3760else 3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3762for as_dir in $PATH 3763do 3764 IFS=$as_save_IFS 3765 case $as_dir in #((( 3766 '') as_dir=./ ;; 3767 */) ;; 3768 *) as_dir=$as_dir/ ;; 3769 esac 3770 for ac_exec_ext in '' $ac_executable_extensions; do 3771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3772 ac_cv_prog_ac_ct_CC="clang" 3773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3774 break 2 3775 fi 3776done 3777 done 3778IFS=$as_save_IFS 3779 3780fi ;; 3781esac 3782fi 3783ac_ct_CC=$ac_cv_prog_ac_ct_CC 3784if test -n "$ac_ct_CC"; then 3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3786printf "%s\n" "$ac_ct_CC" >&6; } 3787else 3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3789printf "%s\n" "no" >&6; } 3790fi 3791 3792 if test "x$ac_ct_CC" = x; then 3793 CC="" 3794 else 3795 case $cross_compiling:$ac_tool_warned in 3796yes:) 3797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3798printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3799ac_tool_warned=yes ;; 3800esac 3801 CC=$ac_ct_CC 3802 fi 3803else 3804 CC="$ac_cv_prog_CC" 3805fi 3806 3807fi 3808 3809 3810test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3811printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3812as_fn_error $? "no acceptable C compiler found in \$PATH 3813See 'config.log' for more details" "$LINENO" 5; } 3814 3815# Provide some information about the compiler. 3816printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3817set X $ac_compile 3818ac_compiler=$2 3819for ac_option in --version -v -V -qversion -version; do 3820 { { ac_try="$ac_compiler $ac_option >&5" 3821case "(($ac_try" in 3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3823 *) ac_try_echo=$ac_try;; 3824esac 3825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3826printf "%s\n" "$ac_try_echo"; } >&5 3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3828 ac_status=$? 3829 if test -s conftest.err; then 3830 sed '10a\ 3831... rest of stderr output deleted ... 3832 10q' conftest.err >conftest.er1 3833 cat conftest.er1 >&5 3834 fi 3835 rm -f conftest.er1 conftest.err 3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3837 test $ac_status = 0; } 3838done 3839 3840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841/* end confdefs.h. */ 3842 3843int 3844main (void) 3845{ 3846 3847 ; 3848 return 0; 3849} 3850_ACEOF 3851ac_clean_files_save=$ac_clean_files 3852ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3853# Try to create an executable without -o first, disregard a.out. 3854# It will help us diagnose broken compilers, and finding out an intuition 3855# of exeext. 3856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3857printf %s "checking whether the C compiler works... " >&6; } 3858ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3859 3860# The possible output files: 3861ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3862 3863ac_rmfiles= 3864for ac_file in $ac_files 3865do 3866 case $ac_file in 3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3869 esac 3870done 3871rm -f $ac_rmfiles 3872 3873if { { ac_try="$ac_link_default" 3874case "(($ac_try" in 3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3876 *) ac_try_echo=$ac_try;; 3877esac 3878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3879printf "%s\n" "$ac_try_echo"; } >&5 3880 (eval "$ac_link_default") 2>&5 3881 ac_status=$? 3882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3883 test $ac_status = 0; } 3884then : 3885 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3886# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3887# in a Makefile. We should not override ac_cv_exeext if it was cached, 3888# so that the user can short-circuit this test for compilers unknown to 3889# Autoconf. 3890for ac_file in $ac_files '' 3891do 3892 test -f "$ac_file" || continue 3893 case $ac_file in 3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3895 ;; 3896 [ab].out ) 3897 # We found the default executable, but exeext='' is most 3898 # certainly right. 3899 break;; 3900 *.* ) 3901 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3902 then :; else 3903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3904 fi 3905 # We set ac_cv_exeext here because the later test for it is not 3906 # safe: cross compilers may not add the suffix if given an '-o' 3907 # argument, so we may need to know it at that point already. 3908 # Even if this section looks crufty: it has the advantage of 3909 # actually working. 3910 break;; 3911 * ) 3912 break;; 3913 esac 3914done 3915test "$ac_cv_exeext" = no && ac_cv_exeext= 3916 3917else case e in #( 3918 e) ac_file='' ;; 3919esac 3920fi 3921if test -z "$ac_file" 3922then : 3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3924printf "%s\n" "no" >&6; } 3925printf "%s\n" "$as_me: failed program was:" >&5 3926sed 's/^/| /' conftest.$ac_ext >&5 3927 3928{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3929printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3930as_fn_error 77 "C compiler cannot create executables 3931See 'config.log' for more details" "$LINENO" 5; } 3932else case e in #( 3933 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3934printf "%s\n" "yes" >&6; } ;; 3935esac 3936fi 3937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3938printf %s "checking for C compiler default output file name... " >&6; } 3939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3940printf "%s\n" "$ac_file" >&6; } 3941ac_exeext=$ac_cv_exeext 3942 3943rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3944ac_clean_files=$ac_clean_files_save 3945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3946printf %s "checking for suffix of executables... " >&6; } 3947if { { ac_try="$ac_link" 3948case "(($ac_try" in 3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3950 *) ac_try_echo=$ac_try;; 3951esac 3952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3953printf "%s\n" "$ac_try_echo"; } >&5 3954 (eval "$ac_link") 2>&5 3955 ac_status=$? 3956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3957 test $ac_status = 0; } 3958then : 3959 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3960# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3961# work properly (i.e., refer to 'conftest.exe'), while it won't with 3962# 'rm'. 3963for ac_file in conftest.exe conftest conftest.*; do 3964 test -f "$ac_file" || continue 3965 case $ac_file in 3966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3968 break;; 3969 * ) break;; 3970 esac 3971done 3972else case e in #( 3973 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3974printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3975as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3976See 'config.log' for more details" "$LINENO" 5; } ;; 3977esac 3978fi 3979rm -f conftest conftest$ac_cv_exeext 3980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3981printf "%s\n" "$ac_cv_exeext" >&6; } 3982 3983rm -f conftest.$ac_ext 3984EXEEXT=$ac_cv_exeext 3985ac_exeext=$EXEEXT 3986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987/* end confdefs.h. */ 3988#include <stdio.h> 3989int 3990main (void) 3991{ 3992FILE *f = fopen ("conftest.out", "w"); 3993 if (!f) 3994 return 1; 3995 return ferror (f) || fclose (f) != 0; 3996 3997 ; 3998 return 0; 3999} 4000_ACEOF 4001ac_clean_files="$ac_clean_files conftest.out" 4002# Check that the compiler produces executables we can run. If not, either 4003# the compiler is broken, or we cross compile. 4004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4005printf %s "checking whether we are cross compiling... " >&6; } 4006if test "$cross_compiling" != yes; then 4007 { { ac_try="$ac_link" 4008case "(($ac_try" in 4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4010 *) ac_try_echo=$ac_try;; 4011esac 4012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4013printf "%s\n" "$ac_try_echo"; } >&5 4014 (eval "$ac_link") 2>&5 4015 ac_status=$? 4016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4017 test $ac_status = 0; } 4018 if { ac_try='./conftest$ac_cv_exeext' 4019 { { case "(($ac_try" in 4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4021 *) ac_try_echo=$ac_try;; 4022esac 4023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4024printf "%s\n" "$ac_try_echo"; } >&5 4025 (eval "$ac_try") 2>&5 4026 ac_status=$? 4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4028 test $ac_status = 0; }; }; then 4029 cross_compiling=no 4030 else 4031 if test "$cross_compiling" = maybe; then 4032 cross_compiling=yes 4033 else 4034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4035printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4036as_fn_error 77 "cannot run C compiled programs. 4037If you meant to cross compile, use '--host'. 4038See 'config.log' for more details" "$LINENO" 5; } 4039 fi 4040 fi 4041fi 4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4043printf "%s\n" "$cross_compiling" >&6; } 4044 4045rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4046 conftest.o conftest.obj conftest.out 4047ac_clean_files=$ac_clean_files_save 4048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4049printf %s "checking for suffix of object files... " >&6; } 4050if test ${ac_cv_objext+y} 4051then : 4052 printf %s "(cached) " >&6 4053else case e in #( 4054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056 4057int 4058main (void) 4059{ 4060 4061 ; 4062 return 0; 4063} 4064_ACEOF 4065rm -f conftest.o conftest.obj 4066if { { ac_try="$ac_compile" 4067case "(($ac_try" in 4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4069 *) ac_try_echo=$ac_try;; 4070esac 4071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4072printf "%s\n" "$ac_try_echo"; } >&5 4073 (eval "$ac_compile") 2>&5 4074 ac_status=$? 4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4076 test $ac_status = 0; } 4077then : 4078 for ac_file in conftest.o conftest.obj conftest.*; do 4079 test -f "$ac_file" || continue; 4080 case $ac_file in 4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4083 break;; 4084 esac 4085done 4086else case e in #( 4087 e) printf "%s\n" "$as_me: failed program was:" >&5 4088sed 's/^/| /' conftest.$ac_ext >&5 4089 4090{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4091printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4092as_fn_error $? "cannot compute suffix of object files: cannot compile 4093See 'config.log' for more details" "$LINENO" 5; } ;; 4094esac 4095fi 4096rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4097esac 4098fi 4099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4100printf "%s\n" "$ac_cv_objext" >&6; } 4101OBJEXT=$ac_cv_objext 4102ac_objext=$OBJEXT 4103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4104printf %s "checking whether the compiler supports GNU C... " >&6; } 4105if test ${ac_cv_c_compiler_gnu+y} 4106then : 4107 printf %s "(cached) " >&6 4108else case e in #( 4109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111 4112int 4113main (void) 4114{ 4115#ifndef __GNUC__ 4116 choke me 4117#endif 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123if ac_fn_c_try_compile "$LINENO" 4124then : 4125 ac_compiler_gnu=yes 4126else case e in #( 4127 e) ac_compiler_gnu=no ;; 4128esac 4129fi 4130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4131ac_cv_c_compiler_gnu=$ac_compiler_gnu 4132 ;; 4133esac 4134fi 4135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4136printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4137ac_compiler_gnu=$ac_cv_c_compiler_gnu 4138 4139if test $ac_compiler_gnu = yes; then 4140 GCC=yes 4141else 4142 GCC= 4143fi 4144ac_test_CFLAGS=${CFLAGS+y} 4145ac_save_CFLAGS=$CFLAGS 4146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4147printf %s "checking whether $CC accepts -g... " >&6; } 4148if test ${ac_cv_prog_cc_g+y} 4149then : 4150 printf %s "(cached) " >&6 4151else case e in #( 4152 e) ac_save_c_werror_flag=$ac_c_werror_flag 4153 ac_c_werror_flag=yes 4154 ac_cv_prog_cc_g=no 4155 CFLAGS="-g" 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157/* end confdefs.h. */ 4158 4159int 4160main (void) 4161{ 4162 4163 ; 4164 return 0; 4165} 4166_ACEOF 4167if ac_fn_c_try_compile "$LINENO" 4168then : 4169 ac_cv_prog_cc_g=yes 4170else case e in #( 4171 e) CFLAGS="" 4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173/* end confdefs.h. */ 4174 4175int 4176main (void) 4177{ 4178 4179 ; 4180 return 0; 4181} 4182_ACEOF 4183if ac_fn_c_try_compile "$LINENO" 4184then : 4185 4186else case e in #( 4187 e) ac_c_werror_flag=$ac_save_c_werror_flag 4188 CFLAGS="-g" 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191 4192int 4193main (void) 4194{ 4195 4196 ; 4197 return 0; 4198} 4199_ACEOF 4200if ac_fn_c_try_compile "$LINENO" 4201then : 4202 ac_cv_prog_cc_g=yes 4203fi 4204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4205esac 4206fi 4207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4208esac 4209fi 4210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4211 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4212esac 4213fi 4214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4215printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4216if test $ac_test_CFLAGS; then 4217 CFLAGS=$ac_save_CFLAGS 4218elif test $ac_cv_prog_cc_g = yes; then 4219 if test "$GCC" = yes; then 4220 CFLAGS="-g -O2" 4221 else 4222 CFLAGS="-g" 4223 fi 4224else 4225 if test "$GCC" = yes; then 4226 CFLAGS="-O2" 4227 else 4228 CFLAGS= 4229 fi 4230fi 4231ac_prog_cc_stdc=no 4232if test x$ac_prog_cc_stdc = xno 4233then : 4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4235printf %s "checking for $CC option to enable C11 features... " >&6; } 4236if test ${ac_cv_prog_cc_c11+y} 4237then : 4238 printf %s "(cached) " >&6 4239else case e in #( 4240 e) ac_cv_prog_cc_c11=no 4241ac_save_CC=$CC 4242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244$ac_c_conftest_c11_program 4245_ACEOF 4246for ac_arg in '' -std=gnu11 4247do 4248 CC="$ac_save_CC $ac_arg" 4249 if ac_fn_c_try_compile "$LINENO" 4250then : 4251 ac_cv_prog_cc_c11=$ac_arg 4252fi 4253rm -f core conftest.err conftest.$ac_objext conftest.beam 4254 test "x$ac_cv_prog_cc_c11" != "xno" && break 4255done 4256rm -f conftest.$ac_ext 4257CC=$ac_save_CC ;; 4258esac 4259fi 4260 4261if test "x$ac_cv_prog_cc_c11" = xno 4262then : 4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4264printf "%s\n" "unsupported" >&6; } 4265else case e in #( 4266 e) if test "x$ac_cv_prog_cc_c11" = x 4267then : 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4269printf "%s\n" "none needed" >&6; } 4270else case e in #( 4271 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4272printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4273 CC="$CC $ac_cv_prog_cc_c11" ;; 4274esac 4275fi 4276 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4277 ac_prog_cc_stdc=c11 ;; 4278esac 4279fi 4280fi 4281if test x$ac_prog_cc_stdc = xno 4282then : 4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4284printf %s "checking for $CC option to enable C99 features... " >&6; } 4285if test ${ac_cv_prog_cc_c99+y} 4286then : 4287 printf %s "(cached) " >&6 4288else case e in #( 4289 e) ac_cv_prog_cc_c99=no 4290ac_save_CC=$CC 4291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4292/* end confdefs.h. */ 4293$ac_c_conftest_c99_program 4294_ACEOF 4295for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4296do 4297 CC="$ac_save_CC $ac_arg" 4298 if ac_fn_c_try_compile "$LINENO" 4299then : 4300 ac_cv_prog_cc_c99=$ac_arg 4301fi 4302rm -f core conftest.err conftest.$ac_objext conftest.beam 4303 test "x$ac_cv_prog_cc_c99" != "xno" && break 4304done 4305rm -f conftest.$ac_ext 4306CC=$ac_save_CC ;; 4307esac 4308fi 4309 4310if test "x$ac_cv_prog_cc_c99" = xno 4311then : 4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4313printf "%s\n" "unsupported" >&6; } 4314else case e in #( 4315 e) if test "x$ac_cv_prog_cc_c99" = x 4316then : 4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4318printf "%s\n" "none needed" >&6; } 4319else case e in #( 4320 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4321printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4322 CC="$CC $ac_cv_prog_cc_c99" ;; 4323esac 4324fi 4325 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4326 ac_prog_cc_stdc=c99 ;; 4327esac 4328fi 4329fi 4330if test x$ac_prog_cc_stdc = xno 4331then : 4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4333printf %s "checking for $CC option to enable C89 features... " >&6; } 4334if test ${ac_cv_prog_cc_c89+y} 4335then : 4336 printf %s "(cached) " >&6 4337else case e in #( 4338 e) ac_cv_prog_cc_c89=no 4339ac_save_CC=$CC 4340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341/* end confdefs.h. */ 4342$ac_c_conftest_c89_program 4343_ACEOF 4344for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4345do 4346 CC="$ac_save_CC $ac_arg" 4347 if ac_fn_c_try_compile "$LINENO" 4348then : 4349 ac_cv_prog_cc_c89=$ac_arg 4350fi 4351rm -f core conftest.err conftest.$ac_objext conftest.beam 4352 test "x$ac_cv_prog_cc_c89" != "xno" && break 4353done 4354rm -f conftest.$ac_ext 4355CC=$ac_save_CC ;; 4356esac 4357fi 4358 4359if test "x$ac_cv_prog_cc_c89" = xno 4360then : 4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4362printf "%s\n" "unsupported" >&6; } 4363else case e in #( 4364 e) if test "x$ac_cv_prog_cc_c89" = x 4365then : 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4367printf "%s\n" "none needed" >&6; } 4368else case e in #( 4369 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4370printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4371 CC="$CC $ac_cv_prog_cc_c89" ;; 4372esac 4373fi 4374 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4375 ac_prog_cc_stdc=c89 ;; 4376esac 4377fi 4378fi 4379 4380ac_ext=c 4381ac_cpp='$CPP $CPPFLAGS' 4382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4384ac_compiler_gnu=$ac_cv_c_compiler_gnu 4385 4386 4387 ac_ext=c 4388ac_cpp='$CPP $CPPFLAGS' 4389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4391ac_compiler_gnu=$ac_cv_c_compiler_gnu 4392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4393printf %s "checking whether $CC understands -c and -o together... " >&6; } 4394if test ${am_cv_prog_cc_c_o+y} 4395then : 4396 printf %s "(cached) " >&6 4397else case e in #( 4398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4399/* end confdefs.h. */ 4400 4401int 4402main (void) 4403{ 4404 4405 ; 4406 return 0; 4407} 4408_ACEOF 4409 # Make sure it works both with $CC and with simple cc. 4410 # Following AC_PROG_CC_C_O, we do the test twice because some 4411 # compilers refuse to overwrite an existing .o file with -o, 4412 # though they will create one. 4413 am_cv_prog_cc_c_o=yes 4414 for am_i in 1 2; do 4415 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4416 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4417 ac_status=$? 4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4419 (exit $ac_status); } \ 4420 && test -f conftest2.$ac_objext; then 4421 : OK 4422 else 4423 am_cv_prog_cc_c_o=no 4424 break 4425 fi 4426 done 4427 rm -f core conftest* 4428 unset am_i ;; 4429esac 4430fi 4431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4432printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4433if test "$am_cv_prog_cc_c_o" != yes; then 4434 # Losing compiler, so override with the script. 4435 # FIXME: It is wrong to rewrite CC. 4436 # But if we don't then we get into trouble of one sort or another. 4437 # A longer-term fix would be to have automake use am__CC in this case, 4438 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4439 CC="$am_aux_dir/compile $CC" 4440fi 4441ac_ext=c 4442ac_cpp='$CPP $CPPFLAGS' 4443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4445ac_compiler_gnu=$ac_cv_c_compiler_gnu 4446 4447 4448depcc="$CC" am_compiler_list= 4449 4450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4451printf %s "checking dependency style of $depcc... " >&6; } 4452if test ${am_cv_CC_dependencies_compiler_type+y} 4453then : 4454 printf %s "(cached) " >&6 4455else case e in #( 4456 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4457 # We make a subdir and do the tests there. Otherwise we can end up 4458 # making bogus files that we don't know about and never remove. For 4459 # instance it was reported that on HP-UX the gcc test will end up 4460 # making a dummy file named 'D' -- because '-MD' means "put the output 4461 # in D". 4462 rm -rf conftest.dir 4463 mkdir conftest.dir 4464 # Copy depcomp to subdir because otherwise we won't find it if we're 4465 # using a relative directory. 4466 cp "$am_depcomp" conftest.dir 4467 cd conftest.dir 4468 # We will build objects and dependencies in a subdirectory because 4469 # it helps to detect inapplicable dependency modes. For instance 4470 # both Tru64's cc and ICC support -MD to output dependencies as a 4471 # side effect of compilation, but ICC will put the dependencies in 4472 # the current directory while Tru64 will put them in the object 4473 # directory. 4474 mkdir sub 4475 4476 am_cv_CC_dependencies_compiler_type=none 4477 if test "$am_compiler_list" = ""; then 4478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4479 fi 4480 am__universal=false 4481 case " $depcc " in #( 4482 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4483 esac 4484 4485 for depmode in $am_compiler_list; do 4486 # Setup a source with many dependencies, because some compilers 4487 # like to wrap large dependency lists on column 80 (with \), and 4488 # we should not choose a depcomp mode which is confused by this. 4489 # 4490 # We need to recreate these files for each test, as the compiler may 4491 # overwrite some of them when testing with obscure command lines. 4492 # This happens at least with the AIX C compiler. 4493 : > sub/conftest.c 4494 for i in 1 2 3 4 5 6; do 4495 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4496 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4497 # Solaris 10 /bin/sh. 4498 echo '/* dummy */' > sub/conftst$i.h 4499 done 4500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4501 4502 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4503 # mode. It turns out that the SunPro C++ compiler does not properly 4504 # handle '-M -o', and we need to detect this. Also, some Intel 4505 # versions had trouble with output in subdirs. 4506 am__obj=sub/conftest.${OBJEXT-o} 4507 am__minus_obj="-o $am__obj" 4508 case $depmode in 4509 gcc) 4510 # This depmode causes a compiler race in universal mode. 4511 test "$am__universal" = false || continue 4512 ;; 4513 nosideeffect) 4514 # After this tag, mechanisms are not by side-effect, so they'll 4515 # only be used when explicitly requested. 4516 if test "x$enable_dependency_tracking" = xyes; then 4517 continue 4518 else 4519 break 4520 fi 4521 ;; 4522 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4523 # This compiler won't grok '-c -o', but also, the minuso test has 4524 # not run yet. These depmodes are late enough in the game, and 4525 # so weak that their functioning should not be impacted. 4526 am__obj=conftest.${OBJEXT-o} 4527 am__minus_obj= 4528 ;; 4529 none) break ;; 4530 esac 4531 if depmode=$depmode \ 4532 source=sub/conftest.c object=$am__obj \ 4533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4534 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4535 >/dev/null 2>conftest.err && 4536 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4538 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4540 # icc doesn't choke on unknown options, it will just issue warnings 4541 # or remarks (even with -Werror). So we grep stderr for any message 4542 # that says an option was ignored or not supported. 4543 # When given -MP, icc 7.0 and 7.1 complain thus: 4544 # icc: Command line warning: ignoring option '-M'; no argument required 4545 # The diagnosis changed in icc 8.0: 4546 # icc: Command line remark: option '-MP' not supported 4547 if (grep 'ignoring option' conftest.err || 4548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4549 am_cv_CC_dependencies_compiler_type=$depmode 4550 break 4551 fi 4552 fi 4553 done 4554 4555 cd .. 4556 rm -rf conftest.dir 4557else 4558 am_cv_CC_dependencies_compiler_type=none 4559fi 4560 ;; 4561esac 4562fi 4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4564printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4565CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4566 4567 if 4568 test "x$enable_dependency_tracking" != xno \ 4569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4570 am__fastdepCC_TRUE= 4571 am__fastdepCC_FALSE='#' 4572else 4573 am__fastdepCC_TRUE='#' 4574 am__fastdepCC_FALSE= 4575fi 4576 4577 4578 4579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4580printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4581if test ${ac_cv_c_undeclared_builtin_options+y} 4582then : 4583 printf %s "(cached) " >&6 4584else case e in #( 4585 e) ac_save_CFLAGS=$CFLAGS 4586 ac_cv_c_undeclared_builtin_options='cannot detect' 4587 for ac_arg in '' -fno-builtin; do 4588 CFLAGS="$ac_save_CFLAGS $ac_arg" 4589 # This test program should *not* compile successfully. 4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4591/* end confdefs.h. */ 4592 4593int 4594main (void) 4595{ 4596(void) strchr; 4597 ; 4598 return 0; 4599} 4600_ACEOF 4601if ac_fn_c_try_compile "$LINENO" 4602then : 4603 4604else case e in #( 4605 e) # This test program should compile successfully. 4606 # No library function is consistently available on 4607 # freestanding implementations, so test against a dummy 4608 # declaration. Include always-available headers on the 4609 # off chance that they somehow elicit warnings. 4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4611/* end confdefs.h. */ 4612#include <float.h> 4613#include <limits.h> 4614#include <stdarg.h> 4615#include <stddef.h> 4616extern void ac_decl (int, char *); 4617 4618int 4619main (void) 4620{ 4621(void) ac_decl (0, (char *) 0); 4622 (void) ac_decl; 4623 4624 ; 4625 return 0; 4626} 4627_ACEOF 4628if ac_fn_c_try_compile "$LINENO" 4629then : 4630 if test x"$ac_arg" = x 4631then : 4632 ac_cv_c_undeclared_builtin_options='none needed' 4633else case e in #( 4634 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4635esac 4636fi 4637 break 4638fi 4639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4640esac 4641fi 4642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4643 done 4644 CFLAGS=$ac_save_CFLAGS 4645 ;; 4646esac 4647fi 4648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4649printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4650 case $ac_cv_c_undeclared_builtin_options in #( 4651 'cannot detect') : 4652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4653printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4654as_fn_error $? "cannot make $CC report undeclared builtins 4655See 'config.log' for more details" "$LINENO" 5; } ;; #( 4656 'none needed') : 4657 ac_c_undeclared_builtin_options='' ;; #( 4658 *) : 4659 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4660esac 4661 4662ac_header= ac_cache= 4663for ac_item in $ac_header_c_list 4664do 4665 if test $ac_cache; then 4666 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4667 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4668 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4669 fi 4670 ac_header= ac_cache= 4671 elif test $ac_header; then 4672 ac_cache=$ac_item 4673 else 4674 ac_header=$ac_item 4675 fi 4676done 4677 4678 4679 4680 4681 4682 4683 4684 4685if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4686then : 4687 4688printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4689 4690fi 4691 4692 4693 4694 4695ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4696if test "x$ac_cv_have_decl___clang__" = xyes 4697then : 4698 CLANGCC="yes" 4699else case e in #( 4700 e) CLANGCC="no" ;; 4701esac 4702fi 4703ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4704if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4705then : 4706 INTELCC="yes" 4707else case e in #( 4708 e) INTELCC="no" ;; 4709esac 4710fi 4711ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4712if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4713then : 4714 SUNCC="yes" 4715else case e in #( 4716 e) SUNCC="no" ;; 4717esac 4718fi 4719 4720 4721 4722 4723 4724 4725 4726 4727if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4728 if test -n "$ac_tool_prefix"; then 4729 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4730set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4732printf %s "checking for $ac_word... " >&6; } 4733if test ${ac_cv_path_PKG_CONFIG+y} 4734then : 4735 printf %s "(cached) " >&6 4736else case e in #( 4737 e) case $PKG_CONFIG in 4738 [\\/]* | ?:[\\/]*) 4739 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4740 ;; 4741 *) 4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4743for as_dir in $PATH 4744do 4745 IFS=$as_save_IFS 4746 case $as_dir in #((( 4747 '') as_dir=./ ;; 4748 */) ;; 4749 *) as_dir=$as_dir/ ;; 4750 esac 4751 for ac_exec_ext in '' $ac_executable_extensions; do 4752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4753 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4755 break 2 4756 fi 4757done 4758 done 4759IFS=$as_save_IFS 4760 4761 ;; 4762esac ;; 4763esac 4764fi 4765PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4766if test -n "$PKG_CONFIG"; then 4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4768printf "%s\n" "$PKG_CONFIG" >&6; } 4769else 4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4771printf "%s\n" "no" >&6; } 4772fi 4773 4774 4775fi 4776if test -z "$ac_cv_path_PKG_CONFIG"; then 4777 ac_pt_PKG_CONFIG=$PKG_CONFIG 4778 # Extract the first word of "pkg-config", so it can be a program name with args. 4779set dummy pkg-config; ac_word=$2 4780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4781printf %s "checking for $ac_word... " >&6; } 4782if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4783then : 4784 printf %s "(cached) " >&6 4785else case e in #( 4786 e) case $ac_pt_PKG_CONFIG in 4787 [\\/]* | ?:[\\/]*) 4788 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4789 ;; 4790 *) 4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4792for as_dir in $PATH 4793do 4794 IFS=$as_save_IFS 4795 case $as_dir in #((( 4796 '') as_dir=./ ;; 4797 */) ;; 4798 *) as_dir=$as_dir/ ;; 4799 esac 4800 for ac_exec_ext in '' $ac_executable_extensions; do 4801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4802 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4804 break 2 4805 fi 4806done 4807 done 4808IFS=$as_save_IFS 4809 4810 ;; 4811esac ;; 4812esac 4813fi 4814ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4815if test -n "$ac_pt_PKG_CONFIG"; then 4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4817printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4818else 4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4820printf "%s\n" "no" >&6; } 4821fi 4822 4823 if test "x$ac_pt_PKG_CONFIG" = x; then 4824 PKG_CONFIG="" 4825 else 4826 case $cross_compiling:$ac_tool_warned in 4827yes:) 4828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4829printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4830ac_tool_warned=yes ;; 4831esac 4832 PKG_CONFIG=$ac_pt_PKG_CONFIG 4833 fi 4834else 4835 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4836fi 4837 4838fi 4839if test -n "$PKG_CONFIG"; then 4840 _pkg_min_version=0.9.0 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4842printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4843 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4845printf "%s\n" "yes" >&6; } 4846 else 4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4848printf "%s\n" "no" >&6; } 4849 PKG_CONFIG="" 4850 fi 4851fi 4852 4853 4854 # Make sure we can run config.sub. 4855$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4856 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4857 4858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4859printf %s "checking build system type... " >&6; } 4860if test ${ac_cv_build+y} 4861then : 4862 printf %s "(cached) " >&6 4863else case e in #( 4864 e) ac_build_alias=$build_alias 4865test "x$ac_build_alias" = x && 4866 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4867test "x$ac_build_alias" = x && 4868 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4869ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4870 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4871 ;; 4872esac 4873fi 4874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4875printf "%s\n" "$ac_cv_build" >&6; } 4876case $ac_cv_build in 4877*-*-*) ;; 4878*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4879esac 4880build=$ac_cv_build 4881ac_save_IFS=$IFS; IFS='-' 4882set x $ac_cv_build 4883shift 4884build_cpu=$1 4885build_vendor=$2 4886shift; shift 4887# Remember, the first character of IFS is used to create $*, 4888# except with old shells: 4889build_os=$* 4890IFS=$ac_save_IFS 4891case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4892 4893 4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4895printf %s "checking host system type... " >&6; } 4896if test ${ac_cv_host+y} 4897then : 4898 printf %s "(cached) " >&6 4899else case e in #( 4900 e) if test "x$host_alias" = x; then 4901 ac_cv_host=$ac_cv_build 4902else 4903 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4904 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4905fi 4906 ;; 4907esac 4908fi 4909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4910printf "%s\n" "$ac_cv_host" >&6; } 4911case $ac_cv_host in 4912*-*-*) ;; 4913*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4914esac 4915host=$ac_cv_host 4916ac_save_IFS=$IFS; IFS='-' 4917set x $ac_cv_host 4918shift 4919host_cpu=$1 4920host_vendor=$2 4921shift; shift 4922# Remember, the first character of IFS is used to create $*, 4923# except with old shells: 4924host_os=$* 4925IFS=$ac_save_IFS 4926case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4927 4928 4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4930printf %s "checking for a sed that does not truncate output... " >&6; } 4931if test ${ac_cv_path_SED+y} 4932then : 4933 printf %s "(cached) " >&6 4934else case e in #( 4935 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4936 for ac_i in 1 2 3 4 5 6 7; do 4937 ac_script="$ac_script$as_nl$ac_script" 4938 done 4939 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4940 { ac_script=; unset ac_script;} 4941 if test -z "$SED"; then 4942 ac_path_SED_found=false 4943 # Loop through the user's path and test for each of PROGNAME-LIST 4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4945for as_dir in $PATH 4946do 4947 IFS=$as_save_IFS 4948 case $as_dir in #((( 4949 '') as_dir=./ ;; 4950 */) ;; 4951 *) as_dir=$as_dir/ ;; 4952 esac 4953 for ac_prog in sed gsed 4954 do 4955 for ac_exec_ext in '' $ac_executable_extensions; do 4956 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4957 as_fn_executable_p "$ac_path_SED" || continue 4958# Check for GNU ac_path_SED and select it if it is found. 4959 # Check for GNU $ac_path_SED 4960case `"$ac_path_SED" --version 2>&1` in #( 4961*GNU*) 4962 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4963#( 4964*) 4965 ac_count=0 4966 printf %s 0123456789 >"conftest.in" 4967 while : 4968 do 4969 cat "conftest.in" "conftest.in" >"conftest.tmp" 4970 mv "conftest.tmp" "conftest.in" 4971 cp "conftest.in" "conftest.nl" 4972 printf "%s\n" '' >> "conftest.nl" 4973 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4975 as_fn_arith $ac_count + 1 && ac_count=$as_val 4976 if test $ac_count -gt ${ac_path_SED_max-0}; then 4977 # Best one so far, save it but keep looking for a better one 4978 ac_cv_path_SED="$ac_path_SED" 4979 ac_path_SED_max=$ac_count 4980 fi 4981 # 10*(2^10) chars as input seems more than enough 4982 test $ac_count -gt 10 && break 4983 done 4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4985esac 4986 4987 $ac_path_SED_found && break 3 4988 done 4989 done 4990 done 4991IFS=$as_save_IFS 4992 if test -z "$ac_cv_path_SED"; then 4993 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4994 fi 4995else 4996 ac_cv_path_SED=$SED 4997fi 4998 ;; 4999esac 5000fi 5001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5002printf "%s\n" "$ac_cv_path_SED" >&6; } 5003 SED="$ac_cv_path_SED" 5004 rm -f conftest.sed 5005 5006 5007 5008 5009 5010 5011# Check whether --enable-selective-werror was given. 5012if test ${enable_selective_werror+y} 5013then : 5014 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5015else case e in #( 5016 e) SELECTIVE_WERROR=yes ;; 5017esac 5018fi 5019 5020 5021 5022 5023 5024# -v is too short to test reliably with XORG_TESTSET_CFLAG 5025if test "x$SUNCC" = "xyes"; then 5026 BASE_CFLAGS="-v" 5027else 5028 BASE_CFLAGS="" 5029fi 5030 5031# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045xorg_testset_save_CFLAGS="$CFLAGS" 5046 5047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5051if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5052then : 5053 printf %s "(cached) " >&6 5054else case e in #( 5055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5056/* end confdefs.h. */ 5057int i; 5058_ACEOF 5059if ac_fn_c_try_compile "$LINENO" 5060then : 5061 xorg_cv_cc_flag_unknown_warning_option=yes 5062else case e in #( 5063 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5064esac 5065fi 5066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5067esac 5068fi 5069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5070printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5072 CFLAGS="$xorg_testset_save_CFLAGS" 5073fi 5074 5075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5078 fi 5079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5081printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5082if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5083then : 5084 printf %s "(cached) " >&6 5085else case e in #( 5086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088int i; 5089_ACEOF 5090if ac_fn_c_try_compile "$LINENO" 5091then : 5092 xorg_cv_cc_flag_unused_command_line_argument=yes 5093else case e in #( 5094 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5095esac 5096fi 5097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5098esac 5099fi 5100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5103 CFLAGS="$xorg_testset_save_CFLAGS" 5104fi 5105 5106found="no" 5107 5108 if test $found = "no" ; then 5109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5111 fi 5112 5113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5115 fi 5116 5117 CFLAGS="$CFLAGS -Wall" 5118 5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5120printf %s "checking if $CC supports -Wall... " >&6; } 5121 cacheid=xorg_cv_cc_flag__Wall 5122 if eval test \${$cacheid+y} 5123then : 5124 printf %s "(cached) " >&6 5125else case e in #( 5126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5127/* end confdefs.h. */ 5128int i; 5129int 5130main (void) 5131{ 5132 5133 ; 5134 return 0; 5135} 5136_ACEOF 5137if ac_fn_c_try_link "$LINENO" 5138then : 5139 eval $cacheid=yes 5140else case e in #( 5141 e) eval $cacheid=no ;; 5142esac 5143fi 5144rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5145 conftest$ac_exeext conftest.$ac_ext ;; 5146esac 5147fi 5148 5149 5150 CFLAGS="$xorg_testset_save_CFLAGS" 5151 5152 eval supported=\$$cacheid 5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5154printf "%s\n" "$supported" >&6; } 5155 if test "$supported" = "yes" ; then 5156 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5157 found="yes" 5158 fi 5159 fi 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175xorg_testset_save_CFLAGS="$CFLAGS" 5176 5177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5180printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5181if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5182then : 5183 printf %s "(cached) " >&6 5184else case e in #( 5185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5186/* end confdefs.h. */ 5187int i; 5188_ACEOF 5189if ac_fn_c_try_compile "$LINENO" 5190then : 5191 xorg_cv_cc_flag_unknown_warning_option=yes 5192else case e in #( 5193 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5194esac 5195fi 5196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5197esac 5198fi 5199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5202 CFLAGS="$xorg_testset_save_CFLAGS" 5203fi 5204 5205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5208 fi 5209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5212if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5213then : 5214 printf %s "(cached) " >&6 5215else case e in #( 5216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5217/* end confdefs.h. */ 5218int i; 5219_ACEOF 5220if ac_fn_c_try_compile "$LINENO" 5221then : 5222 xorg_cv_cc_flag_unused_command_line_argument=yes 5223else case e in #( 5224 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5225esac 5226fi 5227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5228esac 5229fi 5230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5231printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5233 CFLAGS="$xorg_testset_save_CFLAGS" 5234fi 5235 5236found="no" 5237 5238 if test $found = "no" ; then 5239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5241 fi 5242 5243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5245 fi 5246 5247 CFLAGS="$CFLAGS -Wpointer-arith" 5248 5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5250printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5251 cacheid=xorg_cv_cc_flag__Wpointer_arith 5252 if eval test \${$cacheid+y} 5253then : 5254 printf %s "(cached) " >&6 5255else case e in #( 5256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257/* end confdefs.h. */ 5258int i; 5259int 5260main (void) 5261{ 5262 5263 ; 5264 return 0; 5265} 5266_ACEOF 5267if ac_fn_c_try_link "$LINENO" 5268then : 5269 eval $cacheid=yes 5270else case e in #( 5271 e) eval $cacheid=no ;; 5272esac 5273fi 5274rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5275 conftest$ac_exeext conftest.$ac_ext ;; 5276esac 5277fi 5278 5279 5280 CFLAGS="$xorg_testset_save_CFLAGS" 5281 5282 eval supported=\$$cacheid 5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5284printf "%s\n" "$supported" >&6; } 5285 if test "$supported" = "yes" ; then 5286 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5287 found="yes" 5288 fi 5289 fi 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305xorg_testset_save_CFLAGS="$CFLAGS" 5306 5307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5311if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5312then : 5313 printf %s "(cached) " >&6 5314else case e in #( 5315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316/* end confdefs.h. */ 5317int i; 5318_ACEOF 5319if ac_fn_c_try_compile "$LINENO" 5320then : 5321 xorg_cv_cc_flag_unknown_warning_option=yes 5322else case e in #( 5323 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5324esac 5325fi 5326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5327esac 5328fi 5329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5332 CFLAGS="$xorg_testset_save_CFLAGS" 5333fi 5334 5335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5338 fi 5339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5342if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5343then : 5344 printf %s "(cached) " >&6 5345else case e in #( 5346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5347/* end confdefs.h. */ 5348int i; 5349_ACEOF 5350if ac_fn_c_try_compile "$LINENO" 5351then : 5352 xorg_cv_cc_flag_unused_command_line_argument=yes 5353else case e in #( 5354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5355esac 5356fi 5357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5358esac 5359fi 5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5363 CFLAGS="$xorg_testset_save_CFLAGS" 5364fi 5365 5366found="no" 5367 5368 if test $found = "no" ; then 5369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5371 fi 5372 5373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5375 fi 5376 5377 CFLAGS="$CFLAGS -Wmissing-declarations" 5378 5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5380printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5381 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5382 if eval test \${$cacheid+y} 5383then : 5384 printf %s "(cached) " >&6 5385else case e in #( 5386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387/* end confdefs.h. */ 5388int i; 5389int 5390main (void) 5391{ 5392 5393 ; 5394 return 0; 5395} 5396_ACEOF 5397if ac_fn_c_try_link "$LINENO" 5398then : 5399 eval $cacheid=yes 5400else case e in #( 5401 e) eval $cacheid=no ;; 5402esac 5403fi 5404rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5405 conftest$ac_exeext conftest.$ac_ext ;; 5406esac 5407fi 5408 5409 5410 CFLAGS="$xorg_testset_save_CFLAGS" 5411 5412 eval supported=\$$cacheid 5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5414printf "%s\n" "$supported" >&6; } 5415 if test "$supported" = "yes" ; then 5416 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5417 found="yes" 5418 fi 5419 fi 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435xorg_testset_save_CFLAGS="$CFLAGS" 5436 5437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5441if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5442then : 5443 printf %s "(cached) " >&6 5444else case e in #( 5445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447int i; 5448_ACEOF 5449if ac_fn_c_try_compile "$LINENO" 5450then : 5451 xorg_cv_cc_flag_unknown_warning_option=yes 5452else case e in #( 5453 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5454esac 5455fi 5456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5457esac 5458fi 5459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5462 CFLAGS="$xorg_testset_save_CFLAGS" 5463fi 5464 5465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5468 fi 5469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5472if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5473then : 5474 printf %s "(cached) " >&6 5475else case e in #( 5476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5477/* end confdefs.h. */ 5478int i; 5479_ACEOF 5480if ac_fn_c_try_compile "$LINENO" 5481then : 5482 xorg_cv_cc_flag_unused_command_line_argument=yes 5483else case e in #( 5484 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5485esac 5486fi 5487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5488esac 5489fi 5490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5493 CFLAGS="$xorg_testset_save_CFLAGS" 5494fi 5495 5496found="no" 5497 5498 if test $found = "no" ; then 5499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5501 fi 5502 5503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5505 fi 5506 5507 CFLAGS="$CFLAGS -Wformat=2" 5508 5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5510printf %s "checking if $CC supports -Wformat=2... " >&6; } 5511 cacheid=xorg_cv_cc_flag__Wformat_2 5512 if eval test \${$cacheid+y} 5513then : 5514 printf %s "(cached) " >&6 5515else case e in #( 5516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5517/* end confdefs.h. */ 5518int i; 5519int 5520main (void) 5521{ 5522 5523 ; 5524 return 0; 5525} 5526_ACEOF 5527if ac_fn_c_try_link "$LINENO" 5528then : 5529 eval $cacheid=yes 5530else case e in #( 5531 e) eval $cacheid=no ;; 5532esac 5533fi 5534rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5535 conftest$ac_exeext conftest.$ac_ext ;; 5536esac 5537fi 5538 5539 5540 CFLAGS="$xorg_testset_save_CFLAGS" 5541 5542 eval supported=\$$cacheid 5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5544printf "%s\n" "$supported" >&6; } 5545 if test "$supported" = "yes" ; then 5546 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5547 found="yes" 5548 fi 5549 fi 5550 5551 if test $found = "no" ; then 5552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5554 fi 5555 5556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5558 fi 5559 5560 CFLAGS="$CFLAGS -Wformat" 5561 5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5563printf %s "checking if $CC supports -Wformat... " >&6; } 5564 cacheid=xorg_cv_cc_flag__Wformat 5565 if eval test \${$cacheid+y} 5566then : 5567 printf %s "(cached) " >&6 5568else case e in #( 5569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570/* end confdefs.h. */ 5571int i; 5572int 5573main (void) 5574{ 5575 5576 ; 5577 return 0; 5578} 5579_ACEOF 5580if ac_fn_c_try_link "$LINENO" 5581then : 5582 eval $cacheid=yes 5583else case e in #( 5584 e) eval $cacheid=no ;; 5585esac 5586fi 5587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5588 conftest$ac_exeext conftest.$ac_ext ;; 5589esac 5590fi 5591 5592 5593 CFLAGS="$xorg_testset_save_CFLAGS" 5594 5595 eval supported=\$$cacheid 5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5597printf "%s\n" "$supported" >&6; } 5598 if test "$supported" = "yes" ; then 5599 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5600 found="yes" 5601 fi 5602 fi 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620xorg_testset_save_CFLAGS="$CFLAGS" 5621 5622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5625printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5626if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5627then : 5628 printf %s "(cached) " >&6 5629else case e in #( 5630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631/* end confdefs.h. */ 5632int i; 5633_ACEOF 5634if ac_fn_c_try_compile "$LINENO" 5635then : 5636 xorg_cv_cc_flag_unknown_warning_option=yes 5637else case e in #( 5638 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5639esac 5640fi 5641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5642esac 5643fi 5644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5647 CFLAGS="$xorg_testset_save_CFLAGS" 5648fi 5649 5650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5653 fi 5654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5657if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5658then : 5659 printf %s "(cached) " >&6 5660else case e in #( 5661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5662/* end confdefs.h. */ 5663int i; 5664_ACEOF 5665if ac_fn_c_try_compile "$LINENO" 5666then : 5667 xorg_cv_cc_flag_unused_command_line_argument=yes 5668else case e in #( 5669 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5670esac 5671fi 5672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5673esac 5674fi 5675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5678 CFLAGS="$xorg_testset_save_CFLAGS" 5679fi 5680 5681found="no" 5682 5683 if test $found = "no" ; then 5684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5686 fi 5687 5688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5690 fi 5691 5692 CFLAGS="$CFLAGS -Wstrict-prototypes" 5693 5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5695printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5696 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5697 if eval test \${$cacheid+y} 5698then : 5699 printf %s "(cached) " >&6 5700else case e in #( 5701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5702/* end confdefs.h. */ 5703int i; 5704int 5705main (void) 5706{ 5707 5708 ; 5709 return 0; 5710} 5711_ACEOF 5712if ac_fn_c_try_link "$LINENO" 5713then : 5714 eval $cacheid=yes 5715else case e in #( 5716 e) eval $cacheid=no ;; 5717esac 5718fi 5719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5720 conftest$ac_exeext conftest.$ac_ext ;; 5721esac 5722fi 5723 5724 5725 CFLAGS="$xorg_testset_save_CFLAGS" 5726 5727 eval supported=\$$cacheid 5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5729printf "%s\n" "$supported" >&6; } 5730 if test "$supported" = "yes" ; then 5731 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5732 found="yes" 5733 fi 5734 fi 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750xorg_testset_save_CFLAGS="$CFLAGS" 5751 5752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5755printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5756if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5757then : 5758 printf %s "(cached) " >&6 5759else case e in #( 5760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762int i; 5763_ACEOF 5764if ac_fn_c_try_compile "$LINENO" 5765then : 5766 xorg_cv_cc_flag_unknown_warning_option=yes 5767else case e in #( 5768 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5769esac 5770fi 5771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5772esac 5773fi 5774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5775printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5777 CFLAGS="$xorg_testset_save_CFLAGS" 5778fi 5779 5780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5783 fi 5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5786printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5787if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5788then : 5789 printf %s "(cached) " >&6 5790else case e in #( 5791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5792/* end confdefs.h. */ 5793int i; 5794_ACEOF 5795if ac_fn_c_try_compile "$LINENO" 5796then : 5797 xorg_cv_cc_flag_unused_command_line_argument=yes 5798else case e in #( 5799 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5800esac 5801fi 5802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5803esac 5804fi 5805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5806printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5808 CFLAGS="$xorg_testset_save_CFLAGS" 5809fi 5810 5811found="no" 5812 5813 if test $found = "no" ; then 5814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5816 fi 5817 5818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5820 fi 5821 5822 CFLAGS="$CFLAGS -Wmissing-prototypes" 5823 5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5825printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5826 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5827 if eval test \${$cacheid+y} 5828then : 5829 printf %s "(cached) " >&6 5830else case e in #( 5831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5832/* end confdefs.h. */ 5833int i; 5834int 5835main (void) 5836{ 5837 5838 ; 5839 return 0; 5840} 5841_ACEOF 5842if ac_fn_c_try_link "$LINENO" 5843then : 5844 eval $cacheid=yes 5845else case e in #( 5846 e) eval $cacheid=no ;; 5847esac 5848fi 5849rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5850 conftest$ac_exeext conftest.$ac_ext ;; 5851esac 5852fi 5853 5854 5855 CFLAGS="$xorg_testset_save_CFLAGS" 5856 5857 eval supported=\$$cacheid 5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5859printf "%s\n" "$supported" >&6; } 5860 if test "$supported" = "yes" ; then 5861 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5862 found="yes" 5863 fi 5864 fi 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880xorg_testset_save_CFLAGS="$CFLAGS" 5881 5882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5885printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5886if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5887then : 5888 printf %s "(cached) " >&6 5889else case e in #( 5890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5891/* end confdefs.h. */ 5892int i; 5893_ACEOF 5894if ac_fn_c_try_compile "$LINENO" 5895then : 5896 xorg_cv_cc_flag_unknown_warning_option=yes 5897else case e in #( 5898 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5899esac 5900fi 5901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5902esac 5903fi 5904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5908fi 5909 5910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5913 fi 5914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5917if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5918then : 5919 printf %s "(cached) " >&6 5920else case e in #( 5921 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5922/* end confdefs.h. */ 5923int i; 5924_ACEOF 5925if ac_fn_c_try_compile "$LINENO" 5926then : 5927 xorg_cv_cc_flag_unused_command_line_argument=yes 5928else case e in #( 5929 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5930esac 5931fi 5932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5933esac 5934fi 5935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5936printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5938 CFLAGS="$xorg_testset_save_CFLAGS" 5939fi 5940 5941found="no" 5942 5943 if test $found = "no" ; then 5944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5946 fi 5947 5948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5950 fi 5951 5952 CFLAGS="$CFLAGS -Wnested-externs" 5953 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5955printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5956 cacheid=xorg_cv_cc_flag__Wnested_externs 5957 if eval test \${$cacheid+y} 5958then : 5959 printf %s "(cached) " >&6 5960else case e in #( 5961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963int i; 5964int 5965main (void) 5966{ 5967 5968 ; 5969 return 0; 5970} 5971_ACEOF 5972if ac_fn_c_try_link "$LINENO" 5973then : 5974 eval $cacheid=yes 5975else case e in #( 5976 e) eval $cacheid=no ;; 5977esac 5978fi 5979rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5980 conftest$ac_exeext conftest.$ac_ext ;; 5981esac 5982fi 5983 5984 5985 CFLAGS="$xorg_testset_save_CFLAGS" 5986 5987 eval supported=\$$cacheid 5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5989printf "%s\n" "$supported" >&6; } 5990 if test "$supported" = "yes" ; then 5991 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5992 found="yes" 5993 fi 5994 fi 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010xorg_testset_save_CFLAGS="$CFLAGS" 6011 6012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6015printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6016if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6017then : 6018 printf %s "(cached) " >&6 6019else case e in #( 6020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6021/* end confdefs.h. */ 6022int i; 6023_ACEOF 6024if ac_fn_c_try_compile "$LINENO" 6025then : 6026 xorg_cv_cc_flag_unknown_warning_option=yes 6027else case e in #( 6028 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6029esac 6030fi 6031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6032esac 6033fi 6034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6035printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6037 CFLAGS="$xorg_testset_save_CFLAGS" 6038fi 6039 6040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6043 fi 6044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6046printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6047if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6048then : 6049 printf %s "(cached) " >&6 6050else case e in #( 6051 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6052/* end confdefs.h. */ 6053int i; 6054_ACEOF 6055if ac_fn_c_try_compile "$LINENO" 6056then : 6057 xorg_cv_cc_flag_unused_command_line_argument=yes 6058else case e in #( 6059 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6060esac 6061fi 6062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6063esac 6064fi 6065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6068 CFLAGS="$xorg_testset_save_CFLAGS" 6069fi 6070 6071found="no" 6072 6073 if test $found = "no" ; then 6074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6076 fi 6077 6078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6080 fi 6081 6082 CFLAGS="$CFLAGS -Wbad-function-cast" 6083 6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6085printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6086 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6087 if eval test \${$cacheid+y} 6088then : 6089 printf %s "(cached) " >&6 6090else case e in #( 6091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093int i; 6094int 6095main (void) 6096{ 6097 6098 ; 6099 return 0; 6100} 6101_ACEOF 6102if ac_fn_c_try_link "$LINENO" 6103then : 6104 eval $cacheid=yes 6105else case e in #( 6106 e) eval $cacheid=no ;; 6107esac 6108fi 6109rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6110 conftest$ac_exeext conftest.$ac_ext ;; 6111esac 6112fi 6113 6114 6115 CFLAGS="$xorg_testset_save_CFLAGS" 6116 6117 eval supported=\$$cacheid 6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6119printf "%s\n" "$supported" >&6; } 6120 if test "$supported" = "yes" ; then 6121 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6122 found="yes" 6123 fi 6124 fi 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140xorg_testset_save_CFLAGS="$CFLAGS" 6141 6142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6146if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6147then : 6148 printf %s "(cached) " >&6 6149else case e in #( 6150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6151/* end confdefs.h. */ 6152int i; 6153_ACEOF 6154if ac_fn_c_try_compile "$LINENO" 6155then : 6156 xorg_cv_cc_flag_unknown_warning_option=yes 6157else case e in #( 6158 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6159esac 6160fi 6161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6162esac 6163fi 6164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6167 CFLAGS="$xorg_testset_save_CFLAGS" 6168fi 6169 6170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6173 fi 6174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6177if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6178then : 6179 printf %s "(cached) " >&6 6180else case e in #( 6181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6182/* end confdefs.h. */ 6183int i; 6184_ACEOF 6185if ac_fn_c_try_compile "$LINENO" 6186then : 6187 xorg_cv_cc_flag_unused_command_line_argument=yes 6188else case e in #( 6189 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6190esac 6191fi 6192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6193esac 6194fi 6195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6198 CFLAGS="$xorg_testset_save_CFLAGS" 6199fi 6200 6201found="no" 6202 6203 if test $found = "no" ; then 6204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6206 fi 6207 6208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6210 fi 6211 6212 CFLAGS="$CFLAGS -Wold-style-definition" 6213 6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6215printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6216 cacheid=xorg_cv_cc_flag__Wold_style_definition 6217 if eval test \${$cacheid+y} 6218then : 6219 printf %s "(cached) " >&6 6220else case e in #( 6221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6222/* end confdefs.h. */ 6223int i; 6224int 6225main (void) 6226{ 6227 6228 ; 6229 return 0; 6230} 6231_ACEOF 6232if ac_fn_c_try_link "$LINENO" 6233then : 6234 eval $cacheid=yes 6235else case e in #( 6236 e) eval $cacheid=no ;; 6237esac 6238fi 6239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6240 conftest$ac_exeext conftest.$ac_ext ;; 6241esac 6242fi 6243 6244 6245 CFLAGS="$xorg_testset_save_CFLAGS" 6246 6247 eval supported=\$$cacheid 6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6249printf "%s\n" "$supported" >&6; } 6250 if test "$supported" = "yes" ; then 6251 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6252 found="yes" 6253 fi 6254 fi 6255 6256 if test $found = "no" ; then 6257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6259 fi 6260 6261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6263 fi 6264 6265 CFLAGS="$CFLAGS -fd" 6266 6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6268printf %s "checking if $CC supports -fd... " >&6; } 6269 cacheid=xorg_cv_cc_flag__fd 6270 if eval test \${$cacheid+y} 6271then : 6272 printf %s "(cached) " >&6 6273else case e in #( 6274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6275/* end confdefs.h. */ 6276int i; 6277int 6278main (void) 6279{ 6280 6281 ; 6282 return 0; 6283} 6284_ACEOF 6285if ac_fn_c_try_link "$LINENO" 6286then : 6287 eval $cacheid=yes 6288else case e in #( 6289 e) eval $cacheid=no ;; 6290esac 6291fi 6292rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6293 conftest$ac_exeext conftest.$ac_ext ;; 6294esac 6295fi 6296 6297 6298 CFLAGS="$xorg_testset_save_CFLAGS" 6299 6300 eval supported=\$$cacheid 6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6302printf "%s\n" "$supported" >&6; } 6303 if test "$supported" = "yes" ; then 6304 BASE_CFLAGS="$BASE_CFLAGS -fd" 6305 found="yes" 6306 fi 6307 fi 6308 6309 6310 6311 6312 6313# This chunk adds additional warnings that could catch undesired effects. 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327xorg_testset_save_CFLAGS="$CFLAGS" 6328 6329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6332printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6333if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6334then : 6335 printf %s "(cached) " >&6 6336else case e in #( 6337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6338/* end confdefs.h. */ 6339int i; 6340_ACEOF 6341if ac_fn_c_try_compile "$LINENO" 6342then : 6343 xorg_cv_cc_flag_unknown_warning_option=yes 6344else case e in #( 6345 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6346esac 6347fi 6348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6349esac 6350fi 6351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6352printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6354 CFLAGS="$xorg_testset_save_CFLAGS" 6355fi 6356 6357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6360 fi 6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6363printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6364if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6365then : 6366 printf %s "(cached) " >&6 6367else case e in #( 6368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6369/* end confdefs.h. */ 6370int i; 6371_ACEOF 6372if ac_fn_c_try_compile "$LINENO" 6373then : 6374 xorg_cv_cc_flag_unused_command_line_argument=yes 6375else case e in #( 6376 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6377esac 6378fi 6379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6380esac 6381fi 6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6385 CFLAGS="$xorg_testset_save_CFLAGS" 6386fi 6387 6388found="no" 6389 6390 if test $found = "no" ; then 6391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6393 fi 6394 6395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6397 fi 6398 6399 CFLAGS="$CFLAGS -Wunused" 6400 6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6402printf %s "checking if $CC supports -Wunused... " >&6; } 6403 cacheid=xorg_cv_cc_flag__Wunused 6404 if eval test \${$cacheid+y} 6405then : 6406 printf %s "(cached) " >&6 6407else case e in #( 6408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6409/* end confdefs.h. */ 6410int i; 6411int 6412main (void) 6413{ 6414 6415 ; 6416 return 0; 6417} 6418_ACEOF 6419if ac_fn_c_try_link "$LINENO" 6420then : 6421 eval $cacheid=yes 6422else case e in #( 6423 e) eval $cacheid=no ;; 6424esac 6425fi 6426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6427 conftest$ac_exeext conftest.$ac_ext ;; 6428esac 6429fi 6430 6431 6432 CFLAGS="$xorg_testset_save_CFLAGS" 6433 6434 eval supported=\$$cacheid 6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6436printf "%s\n" "$supported" >&6; } 6437 if test "$supported" = "yes" ; then 6438 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6439 found="yes" 6440 fi 6441 fi 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457xorg_testset_save_CFLAGS="$CFLAGS" 6458 6459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6463if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6464then : 6465 printf %s "(cached) " >&6 6466else case e in #( 6467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6468/* end confdefs.h. */ 6469int i; 6470_ACEOF 6471if ac_fn_c_try_compile "$LINENO" 6472then : 6473 xorg_cv_cc_flag_unknown_warning_option=yes 6474else case e in #( 6475 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6476esac 6477fi 6478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6479esac 6480fi 6481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6484 CFLAGS="$xorg_testset_save_CFLAGS" 6485fi 6486 6487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6490 fi 6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6494if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6495then : 6496 printf %s "(cached) " >&6 6497else case e in #( 6498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6499/* end confdefs.h. */ 6500int i; 6501_ACEOF 6502if ac_fn_c_try_compile "$LINENO" 6503then : 6504 xorg_cv_cc_flag_unused_command_line_argument=yes 6505else case e in #( 6506 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6507esac 6508fi 6509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6510esac 6511fi 6512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6515 CFLAGS="$xorg_testset_save_CFLAGS" 6516fi 6517 6518found="no" 6519 6520 if test $found = "no" ; then 6521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6523 fi 6524 6525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6527 fi 6528 6529 CFLAGS="$CFLAGS -Wuninitialized" 6530 6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6532printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6533 cacheid=xorg_cv_cc_flag__Wuninitialized 6534 if eval test \${$cacheid+y} 6535then : 6536 printf %s "(cached) " >&6 6537else case e in #( 6538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539/* end confdefs.h. */ 6540int i; 6541int 6542main (void) 6543{ 6544 6545 ; 6546 return 0; 6547} 6548_ACEOF 6549if ac_fn_c_try_link "$LINENO" 6550then : 6551 eval $cacheid=yes 6552else case e in #( 6553 e) eval $cacheid=no ;; 6554esac 6555fi 6556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6557 conftest$ac_exeext conftest.$ac_ext ;; 6558esac 6559fi 6560 6561 6562 CFLAGS="$xorg_testset_save_CFLAGS" 6563 6564 eval supported=\$$cacheid 6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6566printf "%s\n" "$supported" >&6; } 6567 if test "$supported" = "yes" ; then 6568 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6569 found="yes" 6570 fi 6571 fi 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587xorg_testset_save_CFLAGS="$CFLAGS" 6588 6589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6593if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6594then : 6595 printf %s "(cached) " >&6 6596else case e in #( 6597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6598/* end confdefs.h. */ 6599int i; 6600_ACEOF 6601if ac_fn_c_try_compile "$LINENO" 6602then : 6603 xorg_cv_cc_flag_unknown_warning_option=yes 6604else case e in #( 6605 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6606esac 6607fi 6608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6609esac 6610fi 6611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6612printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6614 CFLAGS="$xorg_testset_save_CFLAGS" 6615fi 6616 6617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6620 fi 6621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6623printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6624if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6625then : 6626 printf %s "(cached) " >&6 6627else case e in #( 6628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6629/* end confdefs.h. */ 6630int i; 6631_ACEOF 6632if ac_fn_c_try_compile "$LINENO" 6633then : 6634 xorg_cv_cc_flag_unused_command_line_argument=yes 6635else case e in #( 6636 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6637esac 6638fi 6639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6640esac 6641fi 6642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6643printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6645 CFLAGS="$xorg_testset_save_CFLAGS" 6646fi 6647 6648found="no" 6649 6650 if test $found = "no" ; then 6651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6653 fi 6654 6655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6657 fi 6658 6659 CFLAGS="$CFLAGS -Wshadow" 6660 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6662printf %s "checking if $CC supports -Wshadow... " >&6; } 6663 cacheid=xorg_cv_cc_flag__Wshadow 6664 if eval test \${$cacheid+y} 6665then : 6666 printf %s "(cached) " >&6 6667else case e in #( 6668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669/* end confdefs.h. */ 6670int i; 6671int 6672main (void) 6673{ 6674 6675 ; 6676 return 0; 6677} 6678_ACEOF 6679if ac_fn_c_try_link "$LINENO" 6680then : 6681 eval $cacheid=yes 6682else case e in #( 6683 e) eval $cacheid=no ;; 6684esac 6685fi 6686rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6687 conftest$ac_exeext conftest.$ac_ext ;; 6688esac 6689fi 6690 6691 6692 CFLAGS="$xorg_testset_save_CFLAGS" 6693 6694 eval supported=\$$cacheid 6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6696printf "%s\n" "$supported" >&6; } 6697 if test "$supported" = "yes" ; then 6698 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6699 found="yes" 6700 fi 6701 fi 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717xorg_testset_save_CFLAGS="$CFLAGS" 6718 6719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6723if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6724then : 6725 printf %s "(cached) " >&6 6726else case e in #( 6727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6728/* end confdefs.h. */ 6729int i; 6730_ACEOF 6731if ac_fn_c_try_compile "$LINENO" 6732then : 6733 xorg_cv_cc_flag_unknown_warning_option=yes 6734else case e in #( 6735 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6736esac 6737fi 6738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6739esac 6740fi 6741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6742printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6744 CFLAGS="$xorg_testset_save_CFLAGS" 6745fi 6746 6747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6750 fi 6751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6753printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6754if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6755then : 6756 printf %s "(cached) " >&6 6757else case e in #( 6758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6759/* end confdefs.h. */ 6760int i; 6761_ACEOF 6762if ac_fn_c_try_compile "$LINENO" 6763then : 6764 xorg_cv_cc_flag_unused_command_line_argument=yes 6765else case e in #( 6766 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6767esac 6768fi 6769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6770esac 6771fi 6772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6773printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6775 CFLAGS="$xorg_testset_save_CFLAGS" 6776fi 6777 6778found="no" 6779 6780 if test $found = "no" ; then 6781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6783 fi 6784 6785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6787 fi 6788 6789 CFLAGS="$CFLAGS -Wmissing-noreturn" 6790 6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6792printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6793 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6794 if eval test \${$cacheid+y} 6795then : 6796 printf %s "(cached) " >&6 6797else case e in #( 6798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799/* end confdefs.h. */ 6800int i; 6801int 6802main (void) 6803{ 6804 6805 ; 6806 return 0; 6807} 6808_ACEOF 6809if ac_fn_c_try_link "$LINENO" 6810then : 6811 eval $cacheid=yes 6812else case e in #( 6813 e) eval $cacheid=no ;; 6814esac 6815fi 6816rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6817 conftest$ac_exeext conftest.$ac_ext ;; 6818esac 6819fi 6820 6821 6822 CFLAGS="$xorg_testset_save_CFLAGS" 6823 6824 eval supported=\$$cacheid 6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6826printf "%s\n" "$supported" >&6; } 6827 if test "$supported" = "yes" ; then 6828 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6829 found="yes" 6830 fi 6831 fi 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847xorg_testset_save_CFLAGS="$CFLAGS" 6848 6849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6853if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6854then : 6855 printf %s "(cached) " >&6 6856else case e in #( 6857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858/* end confdefs.h. */ 6859int i; 6860_ACEOF 6861if ac_fn_c_try_compile "$LINENO" 6862then : 6863 xorg_cv_cc_flag_unknown_warning_option=yes 6864else case e in #( 6865 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6866esac 6867fi 6868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6869esac 6870fi 6871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6872printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6874 CFLAGS="$xorg_testset_save_CFLAGS" 6875fi 6876 6877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6880 fi 6881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6883printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6884if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6885then : 6886 printf %s "(cached) " >&6 6887else case e in #( 6888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889/* end confdefs.h. */ 6890int i; 6891_ACEOF 6892if ac_fn_c_try_compile "$LINENO" 6893then : 6894 xorg_cv_cc_flag_unused_command_line_argument=yes 6895else case e in #( 6896 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6897esac 6898fi 6899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6900esac 6901fi 6902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906fi 6907 6908found="no" 6909 6910 if test $found = "no" ; then 6911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6913 fi 6914 6915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6917 fi 6918 6919 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6920 6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6922printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6923 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6924 if eval test \${$cacheid+y} 6925then : 6926 printf %s "(cached) " >&6 6927else case e in #( 6928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6929/* end confdefs.h. */ 6930int i; 6931int 6932main (void) 6933{ 6934 6935 ; 6936 return 0; 6937} 6938_ACEOF 6939if ac_fn_c_try_link "$LINENO" 6940then : 6941 eval $cacheid=yes 6942else case e in #( 6943 e) eval $cacheid=no ;; 6944esac 6945fi 6946rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6947 conftest$ac_exeext conftest.$ac_ext ;; 6948esac 6949fi 6950 6951 6952 CFLAGS="$xorg_testset_save_CFLAGS" 6953 6954 eval supported=\$$cacheid 6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6956printf "%s\n" "$supported" >&6; } 6957 if test "$supported" = "yes" ; then 6958 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6959 found="yes" 6960 fi 6961 fi 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977xorg_testset_save_CFLAGS="$CFLAGS" 6978 6979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6982printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6983if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6984then : 6985 printf %s "(cached) " >&6 6986else case e in #( 6987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988/* end confdefs.h. */ 6989int i; 6990_ACEOF 6991if ac_fn_c_try_compile "$LINENO" 6992then : 6993 xorg_cv_cc_flag_unknown_warning_option=yes 6994else case e in #( 6995 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6996esac 6997fi 6998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6999esac 7000fi 7001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7002printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7004 CFLAGS="$xorg_testset_save_CFLAGS" 7005fi 7006 7007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7010 fi 7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7013printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7014if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7015then : 7016 printf %s "(cached) " >&6 7017else case e in #( 7018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7019/* end confdefs.h. */ 7020int i; 7021_ACEOF 7022if ac_fn_c_try_compile "$LINENO" 7023then : 7024 xorg_cv_cc_flag_unused_command_line_argument=yes 7025else case e in #( 7026 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7027esac 7028fi 7029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7030esac 7031fi 7032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7033printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7035 CFLAGS="$xorg_testset_save_CFLAGS" 7036fi 7037 7038found="no" 7039 7040 if test $found = "no" ; then 7041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7043 fi 7044 7045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7047 fi 7048 7049 CFLAGS="$CFLAGS -Wredundant-decls" 7050 7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7052printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7053 cacheid=xorg_cv_cc_flag__Wredundant_decls 7054 if eval test \${$cacheid+y} 7055then : 7056 printf %s "(cached) " >&6 7057else case e in #( 7058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7059/* end confdefs.h. */ 7060int i; 7061int 7062main (void) 7063{ 7064 7065 ; 7066 return 0; 7067} 7068_ACEOF 7069if ac_fn_c_try_link "$LINENO" 7070then : 7071 eval $cacheid=yes 7072else case e in #( 7073 e) eval $cacheid=no ;; 7074esac 7075fi 7076rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7077 conftest$ac_exeext conftest.$ac_ext ;; 7078esac 7079fi 7080 7081 7082 CFLAGS="$xorg_testset_save_CFLAGS" 7083 7084 eval supported=\$$cacheid 7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7086printf "%s\n" "$supported" >&6; } 7087 if test "$supported" = "yes" ; then 7088 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7089 found="yes" 7090 fi 7091 fi 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107xorg_testset_save_CFLAGS="$CFLAGS" 7108 7109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7112printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7113if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7114then : 7115 printf %s "(cached) " >&6 7116else case e in #( 7117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119int i; 7120_ACEOF 7121if ac_fn_c_try_compile "$LINENO" 7122then : 7123 xorg_cv_cc_flag_unknown_warning_option=yes 7124else case e in #( 7125 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7126esac 7127fi 7128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7129esac 7130fi 7131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7134 CFLAGS="$xorg_testset_save_CFLAGS" 7135fi 7136 7137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7140 fi 7141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7144if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7145then : 7146 printf %s "(cached) " >&6 7147else case e in #( 7148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149/* end confdefs.h. */ 7150int i; 7151_ACEOF 7152if ac_fn_c_try_compile "$LINENO" 7153then : 7154 xorg_cv_cc_flag_unused_command_line_argument=yes 7155else case e in #( 7156 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7157esac 7158fi 7159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7160esac 7161fi 7162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7163printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7165 CFLAGS="$xorg_testset_save_CFLAGS" 7166fi 7167 7168found="no" 7169 7170 if test $found = "no" ; then 7171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7173 fi 7174 7175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7177 fi 7178 7179 CFLAGS="$CFLAGS -Wlogical-op" 7180 7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7182printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7183 cacheid=xorg_cv_cc_flag__Wlogical_op 7184 if eval test \${$cacheid+y} 7185then : 7186 printf %s "(cached) " >&6 7187else case e in #( 7188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7189/* end confdefs.h. */ 7190int i; 7191int 7192main (void) 7193{ 7194 7195 ; 7196 return 0; 7197} 7198_ACEOF 7199if ac_fn_c_try_link "$LINENO" 7200then : 7201 eval $cacheid=yes 7202else case e in #( 7203 e) eval $cacheid=no ;; 7204esac 7205fi 7206rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7207 conftest$ac_exeext conftest.$ac_ext ;; 7208esac 7209fi 7210 7211 7212 CFLAGS="$xorg_testset_save_CFLAGS" 7213 7214 eval supported=\$$cacheid 7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7216printf "%s\n" "$supported" >&6; } 7217 if test "$supported" = "yes" ; then 7218 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7219 found="yes" 7220 fi 7221 fi 7222 7223 7224 7225# These are currently disabled because they are noisy. They will be enabled 7226# in the future once the codebase is sufficiently modernized to silence 7227# them. For now, I don't want them to drown out the other warnings. 7228# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7229# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7230# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7231 7232# Turn some warnings into errors, so we don't accidentally get successful builds 7233# when there are problems that should be fixed. 7234 7235if test "x$SELECTIVE_WERROR" = "xyes" ; then 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249xorg_testset_save_CFLAGS="$CFLAGS" 7250 7251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7255if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7256then : 7257 printf %s "(cached) " >&6 7258else case e in #( 7259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260/* end confdefs.h. */ 7261int i; 7262_ACEOF 7263if ac_fn_c_try_compile "$LINENO" 7264then : 7265 xorg_cv_cc_flag_unknown_warning_option=yes 7266else case e in #( 7267 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7268esac 7269fi 7270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7271esac 7272fi 7273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7276 CFLAGS="$xorg_testset_save_CFLAGS" 7277fi 7278 7279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7282 fi 7283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7286if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7287then : 7288 printf %s "(cached) " >&6 7289else case e in #( 7290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7291/* end confdefs.h. */ 7292int i; 7293_ACEOF 7294if ac_fn_c_try_compile "$LINENO" 7295then : 7296 xorg_cv_cc_flag_unused_command_line_argument=yes 7297else case e in #( 7298 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7299esac 7300fi 7301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7302esac 7303fi 7304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7307 CFLAGS="$xorg_testset_save_CFLAGS" 7308fi 7309 7310found="no" 7311 7312 if test $found = "no" ; then 7313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7315 fi 7316 7317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7319 fi 7320 7321 CFLAGS="$CFLAGS -Werror=implicit" 7322 7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7324printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7325 cacheid=xorg_cv_cc_flag__Werror_implicit 7326 if eval test \${$cacheid+y} 7327then : 7328 printf %s "(cached) " >&6 7329else case e in #( 7330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7331/* end confdefs.h. */ 7332int i; 7333int 7334main (void) 7335{ 7336 7337 ; 7338 return 0; 7339} 7340_ACEOF 7341if ac_fn_c_try_link "$LINENO" 7342then : 7343 eval $cacheid=yes 7344else case e in #( 7345 e) eval $cacheid=no ;; 7346esac 7347fi 7348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7349 conftest$ac_exeext conftest.$ac_ext ;; 7350esac 7351fi 7352 7353 7354 CFLAGS="$xorg_testset_save_CFLAGS" 7355 7356 eval supported=\$$cacheid 7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7358printf "%s\n" "$supported" >&6; } 7359 if test "$supported" = "yes" ; then 7360 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7361 found="yes" 7362 fi 7363 fi 7364 7365 if test $found = "no" ; then 7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7368 fi 7369 7370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7372 fi 7373 7374 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7375 7376 { 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 7377printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7378 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7379 if eval test \${$cacheid+y} 7380then : 7381 printf %s "(cached) " >&6 7382else case e in #( 7383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7384/* end confdefs.h. */ 7385int i; 7386int 7387main (void) 7388{ 7389 7390 ; 7391 return 0; 7392} 7393_ACEOF 7394if ac_fn_c_try_link "$LINENO" 7395then : 7396 eval $cacheid=yes 7397else case e in #( 7398 e) eval $cacheid=no ;; 7399esac 7400fi 7401rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7402 conftest$ac_exeext conftest.$ac_ext ;; 7403esac 7404fi 7405 7406 7407 CFLAGS="$xorg_testset_save_CFLAGS" 7408 7409 eval supported=\$$cacheid 7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7411printf "%s\n" "$supported" >&6; } 7412 if test "$supported" = "yes" ; then 7413 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7414 found="yes" 7415 fi 7416 fi 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432xorg_testset_save_CFLAGS="$CFLAGS" 7433 7434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7438if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7439then : 7440 printf %s "(cached) " >&6 7441else case e in #( 7442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7443/* end confdefs.h. */ 7444int i; 7445_ACEOF 7446if ac_fn_c_try_compile "$LINENO" 7447then : 7448 xorg_cv_cc_flag_unknown_warning_option=yes 7449else case e in #( 7450 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7451esac 7452fi 7453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7454esac 7455fi 7456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7459 CFLAGS="$xorg_testset_save_CFLAGS" 7460fi 7461 7462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7465 fi 7466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7469if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7470then : 7471 printf %s "(cached) " >&6 7472else case e in #( 7473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7474/* end confdefs.h. */ 7475int i; 7476_ACEOF 7477if ac_fn_c_try_compile "$LINENO" 7478then : 7479 xorg_cv_cc_flag_unused_command_line_argument=yes 7480else case e in #( 7481 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7482esac 7483fi 7484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7485esac 7486fi 7487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7490 CFLAGS="$xorg_testset_save_CFLAGS" 7491fi 7492 7493found="no" 7494 7495 if test $found = "no" ; then 7496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7498 fi 7499 7500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7502 fi 7503 7504 CFLAGS="$CFLAGS -Werror=nonnull" 7505 7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7507printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7508 cacheid=xorg_cv_cc_flag__Werror_nonnull 7509 if eval test \${$cacheid+y} 7510then : 7511 printf %s "(cached) " >&6 7512else case e in #( 7513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7514/* end confdefs.h. */ 7515int i; 7516int 7517main (void) 7518{ 7519 7520 ; 7521 return 0; 7522} 7523_ACEOF 7524if ac_fn_c_try_link "$LINENO" 7525then : 7526 eval $cacheid=yes 7527else case e in #( 7528 e) eval $cacheid=no ;; 7529esac 7530fi 7531rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7532 conftest$ac_exeext conftest.$ac_ext ;; 7533esac 7534fi 7535 7536 7537 CFLAGS="$xorg_testset_save_CFLAGS" 7538 7539 eval supported=\$$cacheid 7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7541printf "%s\n" "$supported" >&6; } 7542 if test "$supported" = "yes" ; then 7543 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7544 found="yes" 7545 fi 7546 fi 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562xorg_testset_save_CFLAGS="$CFLAGS" 7563 7564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7568if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7569then : 7570 printf %s "(cached) " >&6 7571else case e in #( 7572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7573/* end confdefs.h. */ 7574int i; 7575_ACEOF 7576if ac_fn_c_try_compile "$LINENO" 7577then : 7578 xorg_cv_cc_flag_unknown_warning_option=yes 7579else case e in #( 7580 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7581esac 7582fi 7583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7584esac 7585fi 7586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7589 CFLAGS="$xorg_testset_save_CFLAGS" 7590fi 7591 7592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7595 fi 7596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7599if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7600then : 7601 printf %s "(cached) " >&6 7602else case e in #( 7603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7604/* end confdefs.h. */ 7605int i; 7606_ACEOF 7607if ac_fn_c_try_compile "$LINENO" 7608then : 7609 xorg_cv_cc_flag_unused_command_line_argument=yes 7610else case e in #( 7611 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7612esac 7613fi 7614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7615esac 7616fi 7617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7620 CFLAGS="$xorg_testset_save_CFLAGS" 7621fi 7622 7623found="no" 7624 7625 if test $found = "no" ; then 7626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7628 fi 7629 7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7632 fi 7633 7634 CFLAGS="$CFLAGS -Werror=init-self" 7635 7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7637printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7638 cacheid=xorg_cv_cc_flag__Werror_init_self 7639 if eval test \${$cacheid+y} 7640then : 7641 printf %s "(cached) " >&6 7642else case e in #( 7643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7644/* end confdefs.h. */ 7645int i; 7646int 7647main (void) 7648{ 7649 7650 ; 7651 return 0; 7652} 7653_ACEOF 7654if ac_fn_c_try_link "$LINENO" 7655then : 7656 eval $cacheid=yes 7657else case e in #( 7658 e) eval $cacheid=no ;; 7659esac 7660fi 7661rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7662 conftest$ac_exeext conftest.$ac_ext ;; 7663esac 7664fi 7665 7666 7667 CFLAGS="$xorg_testset_save_CFLAGS" 7668 7669 eval supported=\$$cacheid 7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7671printf "%s\n" "$supported" >&6; } 7672 if test "$supported" = "yes" ; then 7673 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7674 found="yes" 7675 fi 7676 fi 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692xorg_testset_save_CFLAGS="$CFLAGS" 7693 7694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7698if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7699then : 7700 printf %s "(cached) " >&6 7701else case e in #( 7702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7703/* end confdefs.h. */ 7704int i; 7705_ACEOF 7706if ac_fn_c_try_compile "$LINENO" 7707then : 7708 xorg_cv_cc_flag_unknown_warning_option=yes 7709else case e in #( 7710 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7711esac 7712fi 7713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7714esac 7715fi 7716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7719 CFLAGS="$xorg_testset_save_CFLAGS" 7720fi 7721 7722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7725 fi 7726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7729if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7730then : 7731 printf %s "(cached) " >&6 7732else case e in #( 7733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734/* end confdefs.h. */ 7735int i; 7736_ACEOF 7737if ac_fn_c_try_compile "$LINENO" 7738then : 7739 xorg_cv_cc_flag_unused_command_line_argument=yes 7740else case e in #( 7741 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7742esac 7743fi 7744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7745esac 7746fi 7747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7750 CFLAGS="$xorg_testset_save_CFLAGS" 7751fi 7752 7753found="no" 7754 7755 if test $found = "no" ; then 7756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7758 fi 7759 7760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7762 fi 7763 7764 CFLAGS="$CFLAGS -Werror=main" 7765 7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7767printf %s "checking if $CC supports -Werror=main... " >&6; } 7768 cacheid=xorg_cv_cc_flag__Werror_main 7769 if eval test \${$cacheid+y} 7770then : 7771 printf %s "(cached) " >&6 7772else case e in #( 7773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7774/* end confdefs.h. */ 7775int i; 7776int 7777main (void) 7778{ 7779 7780 ; 7781 return 0; 7782} 7783_ACEOF 7784if ac_fn_c_try_link "$LINENO" 7785then : 7786 eval $cacheid=yes 7787else case e in #( 7788 e) eval $cacheid=no ;; 7789esac 7790fi 7791rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7792 conftest$ac_exeext conftest.$ac_ext ;; 7793esac 7794fi 7795 7796 7797 CFLAGS="$xorg_testset_save_CFLAGS" 7798 7799 eval supported=\$$cacheid 7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7801printf "%s\n" "$supported" >&6; } 7802 if test "$supported" = "yes" ; then 7803 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7804 found="yes" 7805 fi 7806 fi 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822xorg_testset_save_CFLAGS="$CFLAGS" 7823 7824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7828if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7829then : 7830 printf %s "(cached) " >&6 7831else case e in #( 7832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7833/* end confdefs.h. */ 7834int i; 7835_ACEOF 7836if ac_fn_c_try_compile "$LINENO" 7837then : 7838 xorg_cv_cc_flag_unknown_warning_option=yes 7839else case e in #( 7840 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7841esac 7842fi 7843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7844esac 7845fi 7846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7849 CFLAGS="$xorg_testset_save_CFLAGS" 7850fi 7851 7852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 fi 7856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7859if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7860then : 7861 printf %s "(cached) " >&6 7862else case e in #( 7863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864/* end confdefs.h. */ 7865int i; 7866_ACEOF 7867if ac_fn_c_try_compile "$LINENO" 7868then : 7869 xorg_cv_cc_flag_unused_command_line_argument=yes 7870else case e in #( 7871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7872esac 7873fi 7874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7875esac 7876fi 7877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7880 CFLAGS="$xorg_testset_save_CFLAGS" 7881fi 7882 7883found="no" 7884 7885 if test $found = "no" ; then 7886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7888 fi 7889 7890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7892 fi 7893 7894 CFLAGS="$CFLAGS -Werror=missing-braces" 7895 7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7897printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7898 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7899 if eval test \${$cacheid+y} 7900then : 7901 printf %s "(cached) " >&6 7902else case e in #( 7903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7904/* end confdefs.h. */ 7905int i; 7906int 7907main (void) 7908{ 7909 7910 ; 7911 return 0; 7912} 7913_ACEOF 7914if ac_fn_c_try_link "$LINENO" 7915then : 7916 eval $cacheid=yes 7917else case e in #( 7918 e) eval $cacheid=no ;; 7919esac 7920fi 7921rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7922 conftest$ac_exeext conftest.$ac_ext ;; 7923esac 7924fi 7925 7926 7927 CFLAGS="$xorg_testset_save_CFLAGS" 7928 7929 eval supported=\$$cacheid 7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7931printf "%s\n" "$supported" >&6; } 7932 if test "$supported" = "yes" ; then 7933 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7934 found="yes" 7935 fi 7936 fi 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952xorg_testset_save_CFLAGS="$CFLAGS" 7953 7954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7958if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7959then : 7960 printf %s "(cached) " >&6 7961else case e in #( 7962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7963/* end confdefs.h. */ 7964int i; 7965_ACEOF 7966if ac_fn_c_try_compile "$LINENO" 7967then : 7968 xorg_cv_cc_flag_unknown_warning_option=yes 7969else case e in #( 7970 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7971esac 7972fi 7973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7974esac 7975fi 7976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7979 CFLAGS="$xorg_testset_save_CFLAGS" 7980fi 7981 7982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7985 fi 7986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7989if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7990then : 7991 printf %s "(cached) " >&6 7992else case e in #( 7993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994/* end confdefs.h. */ 7995int i; 7996_ACEOF 7997if ac_fn_c_try_compile "$LINENO" 7998then : 7999 xorg_cv_cc_flag_unused_command_line_argument=yes 8000else case e in #( 8001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8002esac 8003fi 8004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8005esac 8006fi 8007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8008printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8010 CFLAGS="$xorg_testset_save_CFLAGS" 8011fi 8012 8013found="no" 8014 8015 if test $found = "no" ; then 8016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8018 fi 8019 8020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8022 fi 8023 8024 CFLAGS="$CFLAGS -Werror=sequence-point" 8025 8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8027printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8028 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8029 if eval test \${$cacheid+y} 8030then : 8031 printf %s "(cached) " >&6 8032else case e in #( 8033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8034/* end confdefs.h. */ 8035int i; 8036int 8037main (void) 8038{ 8039 8040 ; 8041 return 0; 8042} 8043_ACEOF 8044if ac_fn_c_try_link "$LINENO" 8045then : 8046 eval $cacheid=yes 8047else case e in #( 8048 e) eval $cacheid=no ;; 8049esac 8050fi 8051rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8052 conftest$ac_exeext conftest.$ac_ext ;; 8053esac 8054fi 8055 8056 8057 CFLAGS="$xorg_testset_save_CFLAGS" 8058 8059 eval supported=\$$cacheid 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8061printf "%s\n" "$supported" >&6; } 8062 if test "$supported" = "yes" ; then 8063 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8064 found="yes" 8065 fi 8066 fi 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082xorg_testset_save_CFLAGS="$CFLAGS" 8083 8084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8088if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8089then : 8090 printf %s "(cached) " >&6 8091else case e in #( 8092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093/* end confdefs.h. */ 8094int i; 8095_ACEOF 8096if ac_fn_c_try_compile "$LINENO" 8097then : 8098 xorg_cv_cc_flag_unknown_warning_option=yes 8099else case e in #( 8100 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8101esac 8102fi 8103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8104esac 8105fi 8106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8107printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8109 CFLAGS="$xorg_testset_save_CFLAGS" 8110fi 8111 8112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8115 fi 8116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8118printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8119if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8120then : 8121 printf %s "(cached) " >&6 8122else case e in #( 8123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8124/* end confdefs.h. */ 8125int i; 8126_ACEOF 8127if ac_fn_c_try_compile "$LINENO" 8128then : 8129 xorg_cv_cc_flag_unused_command_line_argument=yes 8130else case e in #( 8131 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8132esac 8133fi 8134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8135esac 8136fi 8137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8140 CFLAGS="$xorg_testset_save_CFLAGS" 8141fi 8142 8143found="no" 8144 8145 if test $found = "no" ; then 8146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8148 fi 8149 8150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8152 fi 8153 8154 CFLAGS="$CFLAGS -Werror=return-type" 8155 8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8157printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8158 cacheid=xorg_cv_cc_flag__Werror_return_type 8159 if eval test \${$cacheid+y} 8160then : 8161 printf %s "(cached) " >&6 8162else case e in #( 8163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8164/* end confdefs.h. */ 8165int i; 8166int 8167main (void) 8168{ 8169 8170 ; 8171 return 0; 8172} 8173_ACEOF 8174if ac_fn_c_try_link "$LINENO" 8175then : 8176 eval $cacheid=yes 8177else case e in #( 8178 e) eval $cacheid=no ;; 8179esac 8180fi 8181rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8182 conftest$ac_exeext conftest.$ac_ext ;; 8183esac 8184fi 8185 8186 8187 CFLAGS="$xorg_testset_save_CFLAGS" 8188 8189 eval supported=\$$cacheid 8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8191printf "%s\n" "$supported" >&6; } 8192 if test "$supported" = "yes" ; then 8193 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8194 found="yes" 8195 fi 8196 fi 8197 8198 if test $found = "no" ; then 8199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8201 fi 8202 8203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8205 fi 8206 8207 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8208 8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8210printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8211 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8212 if eval test \${$cacheid+y} 8213then : 8214 printf %s "(cached) " >&6 8215else case e in #( 8216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8217/* end confdefs.h. */ 8218int i; 8219int 8220main (void) 8221{ 8222 8223 ; 8224 return 0; 8225} 8226_ACEOF 8227if ac_fn_c_try_link "$LINENO" 8228then : 8229 eval $cacheid=yes 8230else case e in #( 8231 e) eval $cacheid=no ;; 8232esac 8233fi 8234rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8235 conftest$ac_exeext conftest.$ac_ext ;; 8236esac 8237fi 8238 8239 8240 CFLAGS="$xorg_testset_save_CFLAGS" 8241 8242 eval supported=\$$cacheid 8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8244printf "%s\n" "$supported" >&6; } 8245 if test "$supported" = "yes" ; then 8246 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8247 found="yes" 8248 fi 8249 fi 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265xorg_testset_save_CFLAGS="$CFLAGS" 8266 8267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8271if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8272then : 8273 printf %s "(cached) " >&6 8274else case e in #( 8275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8276/* end confdefs.h. */ 8277int i; 8278_ACEOF 8279if ac_fn_c_try_compile "$LINENO" 8280then : 8281 xorg_cv_cc_flag_unknown_warning_option=yes 8282else case e in #( 8283 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8284esac 8285fi 8286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8287esac 8288fi 8289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8290printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8292 CFLAGS="$xorg_testset_save_CFLAGS" 8293fi 8294 8295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8298 fi 8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8301printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8302if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8303then : 8304 printf %s "(cached) " >&6 8305else case e in #( 8306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8307/* end confdefs.h. */ 8308int i; 8309_ACEOF 8310if ac_fn_c_try_compile "$LINENO" 8311then : 8312 xorg_cv_cc_flag_unused_command_line_argument=yes 8313else case e in #( 8314 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8315esac 8316fi 8317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8318esac 8319fi 8320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8323 CFLAGS="$xorg_testset_save_CFLAGS" 8324fi 8325 8326found="no" 8327 8328 if test $found = "no" ; then 8329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8331 fi 8332 8333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8335 fi 8336 8337 CFLAGS="$CFLAGS -Werror=trigraphs" 8338 8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8340printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8341 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8342 if eval test \${$cacheid+y} 8343then : 8344 printf %s "(cached) " >&6 8345else case e in #( 8346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347/* end confdefs.h. */ 8348int i; 8349int 8350main (void) 8351{ 8352 8353 ; 8354 return 0; 8355} 8356_ACEOF 8357if ac_fn_c_try_link "$LINENO" 8358then : 8359 eval $cacheid=yes 8360else case e in #( 8361 e) eval $cacheid=no ;; 8362esac 8363fi 8364rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8365 conftest$ac_exeext conftest.$ac_ext ;; 8366esac 8367fi 8368 8369 8370 CFLAGS="$xorg_testset_save_CFLAGS" 8371 8372 eval supported=\$$cacheid 8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8374printf "%s\n" "$supported" >&6; } 8375 if test "$supported" = "yes" ; then 8376 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8377 found="yes" 8378 fi 8379 fi 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395xorg_testset_save_CFLAGS="$CFLAGS" 8396 8397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8400printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8401if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8402then : 8403 printf %s "(cached) " >&6 8404else case e in #( 8405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8406/* end confdefs.h. */ 8407int i; 8408_ACEOF 8409if ac_fn_c_try_compile "$LINENO" 8410then : 8411 xorg_cv_cc_flag_unknown_warning_option=yes 8412else case e in #( 8413 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8414esac 8415fi 8416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8417esac 8418fi 8419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8422 CFLAGS="$xorg_testset_save_CFLAGS" 8423fi 8424 8425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8428 fi 8429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8432if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8433then : 8434 printf %s "(cached) " >&6 8435else case e in #( 8436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8437/* end confdefs.h. */ 8438int i; 8439_ACEOF 8440if ac_fn_c_try_compile "$LINENO" 8441then : 8442 xorg_cv_cc_flag_unused_command_line_argument=yes 8443else case e in #( 8444 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8445esac 8446fi 8447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8448esac 8449fi 8450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8451printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8453 CFLAGS="$xorg_testset_save_CFLAGS" 8454fi 8455 8456found="no" 8457 8458 if test $found = "no" ; then 8459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8461 fi 8462 8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8465 fi 8466 8467 CFLAGS="$CFLAGS -Werror=array-bounds" 8468 8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8470printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8471 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8472 if eval test \${$cacheid+y} 8473then : 8474 printf %s "(cached) " >&6 8475else case e in #( 8476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478int i; 8479int 8480main (void) 8481{ 8482 8483 ; 8484 return 0; 8485} 8486_ACEOF 8487if ac_fn_c_try_link "$LINENO" 8488then : 8489 eval $cacheid=yes 8490else case e in #( 8491 e) eval $cacheid=no ;; 8492esac 8493fi 8494rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8495 conftest$ac_exeext conftest.$ac_ext ;; 8496esac 8497fi 8498 8499 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501 8502 eval supported=\$$cacheid 8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8504printf "%s\n" "$supported" >&6; } 8505 if test "$supported" = "yes" ; then 8506 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8507 found="yes" 8508 fi 8509 fi 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525xorg_testset_save_CFLAGS="$CFLAGS" 8526 8527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8530printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8531if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8532then : 8533 printf %s "(cached) " >&6 8534else case e in #( 8535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8536/* end confdefs.h. */ 8537int i; 8538_ACEOF 8539if ac_fn_c_try_compile "$LINENO" 8540then : 8541 xorg_cv_cc_flag_unknown_warning_option=yes 8542else case e in #( 8543 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8544esac 8545fi 8546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8547esac 8548fi 8549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8550printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8552 CFLAGS="$xorg_testset_save_CFLAGS" 8553fi 8554 8555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8558 fi 8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8561printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8562if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8563then : 8564 printf %s "(cached) " >&6 8565else case e in #( 8566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8567/* end confdefs.h. */ 8568int i; 8569_ACEOF 8570if ac_fn_c_try_compile "$LINENO" 8571then : 8572 xorg_cv_cc_flag_unused_command_line_argument=yes 8573else case e in #( 8574 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8575esac 8576fi 8577rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8578esac 8579fi 8580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8581printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8583 CFLAGS="$xorg_testset_save_CFLAGS" 8584fi 8585 8586found="no" 8587 8588 if test $found = "no" ; then 8589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8591 fi 8592 8593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8595 fi 8596 8597 CFLAGS="$CFLAGS -Werror=write-strings" 8598 8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8600printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8601 cacheid=xorg_cv_cc_flag__Werror_write_strings 8602 if eval test \${$cacheid+y} 8603then : 8604 printf %s "(cached) " >&6 8605else case e in #( 8606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607/* end confdefs.h. */ 8608int i; 8609int 8610main (void) 8611{ 8612 8613 ; 8614 return 0; 8615} 8616_ACEOF 8617if ac_fn_c_try_link "$LINENO" 8618then : 8619 eval $cacheid=yes 8620else case e in #( 8621 e) eval $cacheid=no ;; 8622esac 8623fi 8624rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8625 conftest$ac_exeext conftest.$ac_ext ;; 8626esac 8627fi 8628 8629 8630 CFLAGS="$xorg_testset_save_CFLAGS" 8631 8632 eval supported=\$$cacheid 8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8634printf "%s\n" "$supported" >&6; } 8635 if test "$supported" = "yes" ; then 8636 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8637 found="yes" 8638 fi 8639 fi 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655xorg_testset_save_CFLAGS="$CFLAGS" 8656 8657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8660printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8661if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8662then : 8663 printf %s "(cached) " >&6 8664else case e in #( 8665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8666/* end confdefs.h. */ 8667int i; 8668_ACEOF 8669if ac_fn_c_try_compile "$LINENO" 8670then : 8671 xorg_cv_cc_flag_unknown_warning_option=yes 8672else case e in #( 8673 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8674esac 8675fi 8676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8677esac 8678fi 8679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8680printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8682 CFLAGS="$xorg_testset_save_CFLAGS" 8683fi 8684 8685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8688 fi 8689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8691printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8692if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8693then : 8694 printf %s "(cached) " >&6 8695else case e in #( 8696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8697/* end confdefs.h. */ 8698int i; 8699_ACEOF 8700if ac_fn_c_try_compile "$LINENO" 8701then : 8702 xorg_cv_cc_flag_unused_command_line_argument=yes 8703else case e in #( 8704 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8705esac 8706fi 8707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8708esac 8709fi 8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8711printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8713 CFLAGS="$xorg_testset_save_CFLAGS" 8714fi 8715 8716found="no" 8717 8718 if test $found = "no" ; then 8719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8721 fi 8722 8723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8725 fi 8726 8727 CFLAGS="$CFLAGS -Werror=address" 8728 8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8730printf %s "checking if $CC supports -Werror=address... " >&6; } 8731 cacheid=xorg_cv_cc_flag__Werror_address 8732 if eval test \${$cacheid+y} 8733then : 8734 printf %s "(cached) " >&6 8735else case e in #( 8736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737/* end confdefs.h. */ 8738int i; 8739int 8740main (void) 8741{ 8742 8743 ; 8744 return 0; 8745} 8746_ACEOF 8747if ac_fn_c_try_link "$LINENO" 8748then : 8749 eval $cacheid=yes 8750else case e in #( 8751 e) eval $cacheid=no ;; 8752esac 8753fi 8754rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8755 conftest$ac_exeext conftest.$ac_ext ;; 8756esac 8757fi 8758 8759 8760 CFLAGS="$xorg_testset_save_CFLAGS" 8761 8762 eval supported=\$$cacheid 8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8764printf "%s\n" "$supported" >&6; } 8765 if test "$supported" = "yes" ; then 8766 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8767 found="yes" 8768 fi 8769 fi 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785xorg_testset_save_CFLAGS="$CFLAGS" 8786 8787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8790printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8791if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8792then : 8793 printf %s "(cached) " >&6 8794else case e in #( 8795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8796/* end confdefs.h. */ 8797int i; 8798_ACEOF 8799if ac_fn_c_try_compile "$LINENO" 8800then : 8801 xorg_cv_cc_flag_unknown_warning_option=yes 8802else case e in #( 8803 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8804esac 8805fi 8806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8807esac 8808fi 8809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8810printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8812 CFLAGS="$xorg_testset_save_CFLAGS" 8813fi 8814 8815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8818 fi 8819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8821printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8822if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8823then : 8824 printf %s "(cached) " >&6 8825else case e in #( 8826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8827/* end confdefs.h. */ 8828int i; 8829_ACEOF 8830if ac_fn_c_try_compile "$LINENO" 8831then : 8832 xorg_cv_cc_flag_unused_command_line_argument=yes 8833else case e in #( 8834 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8835esac 8836fi 8837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8838esac 8839fi 8840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8841printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8843 CFLAGS="$xorg_testset_save_CFLAGS" 8844fi 8845 8846found="no" 8847 8848 if test $found = "no" ; then 8849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8851 fi 8852 8853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8855 fi 8856 8857 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8858 8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8860printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8861 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8862 if eval test \${$cacheid+y} 8863then : 8864 printf %s "(cached) " >&6 8865else case e in #( 8866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8867/* end confdefs.h. */ 8868int i; 8869int 8870main (void) 8871{ 8872 8873 ; 8874 return 0; 8875} 8876_ACEOF 8877if ac_fn_c_try_link "$LINENO" 8878then : 8879 eval $cacheid=yes 8880else case e in #( 8881 e) eval $cacheid=no ;; 8882esac 8883fi 8884rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8885 conftest$ac_exeext conftest.$ac_ext ;; 8886esac 8887fi 8888 8889 8890 CFLAGS="$xorg_testset_save_CFLAGS" 8891 8892 eval supported=\$$cacheid 8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8894printf "%s\n" "$supported" >&6; } 8895 if test "$supported" = "yes" ; then 8896 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8897 found="yes" 8898 fi 8899 fi 8900 8901 if test $found = "no" ; then 8902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8904 fi 8905 8906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8908 fi 8909 8910 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8911 8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8913printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8914 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8915 if eval test \${$cacheid+y} 8916then : 8917 printf %s "(cached) " >&6 8918else case e in #( 8919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920/* end confdefs.h. */ 8921int i; 8922int 8923main (void) 8924{ 8925 8926 ; 8927 return 0; 8928} 8929_ACEOF 8930if ac_fn_c_try_link "$LINENO" 8931then : 8932 eval $cacheid=yes 8933else case e in #( 8934 e) eval $cacheid=no ;; 8935esac 8936fi 8937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8938 conftest$ac_exeext conftest.$ac_ext ;; 8939esac 8940fi 8941 8942 8943 CFLAGS="$xorg_testset_save_CFLAGS" 8944 8945 eval supported=\$$cacheid 8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8947printf "%s\n" "$supported" >&6; } 8948 if test "$supported" = "yes" ; then 8949 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8950 found="yes" 8951 fi 8952 fi 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968xorg_testset_save_CFLAGS="$CFLAGS" 8969 8970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8974if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8975then : 8976 printf %s "(cached) " >&6 8977else case e in #( 8978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8979/* end confdefs.h. */ 8980int i; 8981_ACEOF 8982if ac_fn_c_try_compile "$LINENO" 8983then : 8984 xorg_cv_cc_flag_unknown_warning_option=yes 8985else case e in #( 8986 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8987esac 8988fi 8989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8990esac 8991fi 8992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8995 CFLAGS="$xorg_testset_save_CFLAGS" 8996fi 8997 8998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9001 fi 9002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9006then : 9007 printf %s "(cached) " >&6 9008else case e in #( 9009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010/* end confdefs.h. */ 9011int i; 9012_ACEOF 9013if ac_fn_c_try_compile "$LINENO" 9014then : 9015 xorg_cv_cc_flag_unused_command_line_argument=yes 9016else case e in #( 9017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9018esac 9019fi 9020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9021esac 9022fi 9023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9026 CFLAGS="$xorg_testset_save_CFLAGS" 9027fi 9028 9029found="no" 9030 9031 if test $found = "no" ; then 9032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9034 fi 9035 9036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9038 fi 9039 9040 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9041 9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9043printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9044 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9045 if eval test \${$cacheid+y} 9046then : 9047 printf %s "(cached) " >&6 9048else case e in #( 9049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9050/* end confdefs.h. */ 9051int i; 9052int 9053main (void) 9054{ 9055 9056 ; 9057 return 0; 9058} 9059_ACEOF 9060if ac_fn_c_try_link "$LINENO" 9061then : 9062 eval $cacheid=yes 9063else case e in #( 9064 e) eval $cacheid=no ;; 9065esac 9066fi 9067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9068 conftest$ac_exeext conftest.$ac_ext ;; 9069esac 9070fi 9071 9072 9073 CFLAGS="$xorg_testset_save_CFLAGS" 9074 9075 eval supported=\$$cacheid 9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9077printf "%s\n" "$supported" >&6; } 9078 if test "$supported" = "yes" ; then 9079 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9080 found="yes" 9081 fi 9082 fi 9083 9084 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9085else 9086{ 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 9087printf "%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;} 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101xorg_testset_save_CFLAGS="$CFLAGS" 9102 9103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9107if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9108then : 9109 printf %s "(cached) " >&6 9110else case e in #( 9111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9112/* end confdefs.h. */ 9113int i; 9114_ACEOF 9115if ac_fn_c_try_compile "$LINENO" 9116then : 9117 xorg_cv_cc_flag_unknown_warning_option=yes 9118else case e in #( 9119 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9120esac 9121fi 9122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9123esac 9124fi 9125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9128 CFLAGS="$xorg_testset_save_CFLAGS" 9129fi 9130 9131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9134 fi 9135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9138if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9139then : 9140 printf %s "(cached) " >&6 9141else case e in #( 9142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9143/* end confdefs.h. */ 9144int i; 9145_ACEOF 9146if ac_fn_c_try_compile "$LINENO" 9147then : 9148 xorg_cv_cc_flag_unused_command_line_argument=yes 9149else case e in #( 9150 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9151esac 9152fi 9153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9154esac 9155fi 9156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9159 CFLAGS="$xorg_testset_save_CFLAGS" 9160fi 9161 9162found="no" 9163 9164 if test $found = "no" ; then 9165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9167 fi 9168 9169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9171 fi 9172 9173 CFLAGS="$CFLAGS -Wimplicit" 9174 9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9176printf %s "checking if $CC supports -Wimplicit... " >&6; } 9177 cacheid=xorg_cv_cc_flag__Wimplicit 9178 if eval test \${$cacheid+y} 9179then : 9180 printf %s "(cached) " >&6 9181else case e in #( 9182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9183/* end confdefs.h. */ 9184int i; 9185int 9186main (void) 9187{ 9188 9189 ; 9190 return 0; 9191} 9192_ACEOF 9193if ac_fn_c_try_link "$LINENO" 9194then : 9195 eval $cacheid=yes 9196else case e in #( 9197 e) eval $cacheid=no ;; 9198esac 9199fi 9200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9201 conftest$ac_exeext conftest.$ac_ext ;; 9202esac 9203fi 9204 9205 9206 CFLAGS="$xorg_testset_save_CFLAGS" 9207 9208 eval supported=\$$cacheid 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9210printf "%s\n" "$supported" >&6; } 9211 if test "$supported" = "yes" ; then 9212 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9213 found="yes" 9214 fi 9215 fi 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231xorg_testset_save_CFLAGS="$CFLAGS" 9232 9233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9237if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9238then : 9239 printf %s "(cached) " >&6 9240else case e in #( 9241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9242/* end confdefs.h. */ 9243int i; 9244_ACEOF 9245if ac_fn_c_try_compile "$LINENO" 9246then : 9247 xorg_cv_cc_flag_unknown_warning_option=yes 9248else case e in #( 9249 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9250esac 9251fi 9252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9253esac 9254fi 9255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9258 CFLAGS="$xorg_testset_save_CFLAGS" 9259fi 9260 9261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9264 fi 9265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9269then : 9270 printf %s "(cached) " >&6 9271else case e in #( 9272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9273/* end confdefs.h. */ 9274int i; 9275_ACEOF 9276if ac_fn_c_try_compile "$LINENO" 9277then : 9278 xorg_cv_cc_flag_unused_command_line_argument=yes 9279else case e in #( 9280 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9281esac 9282fi 9283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9284esac 9285fi 9286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9287printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9289 CFLAGS="$xorg_testset_save_CFLAGS" 9290fi 9291 9292found="no" 9293 9294 if test $found = "no" ; then 9295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9297 fi 9298 9299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9301 fi 9302 9303 CFLAGS="$CFLAGS -Wnonnull" 9304 9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9306printf %s "checking if $CC supports -Wnonnull... " >&6; } 9307 cacheid=xorg_cv_cc_flag__Wnonnull 9308 if eval test \${$cacheid+y} 9309then : 9310 printf %s "(cached) " >&6 9311else case e in #( 9312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313/* end confdefs.h. */ 9314int i; 9315int 9316main (void) 9317{ 9318 9319 ; 9320 return 0; 9321} 9322_ACEOF 9323if ac_fn_c_try_link "$LINENO" 9324then : 9325 eval $cacheid=yes 9326else case e in #( 9327 e) eval $cacheid=no ;; 9328esac 9329fi 9330rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9331 conftest$ac_exeext conftest.$ac_ext ;; 9332esac 9333fi 9334 9335 9336 CFLAGS="$xorg_testset_save_CFLAGS" 9337 9338 eval supported=\$$cacheid 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9340printf "%s\n" "$supported" >&6; } 9341 if test "$supported" = "yes" ; then 9342 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9343 found="yes" 9344 fi 9345 fi 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361xorg_testset_save_CFLAGS="$CFLAGS" 9362 9363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9366printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9367if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9368then : 9369 printf %s "(cached) " >&6 9370else case e in #( 9371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9372/* end confdefs.h. */ 9373int i; 9374_ACEOF 9375if ac_fn_c_try_compile "$LINENO" 9376then : 9377 xorg_cv_cc_flag_unknown_warning_option=yes 9378else case e in #( 9379 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9380esac 9381fi 9382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9383esac 9384fi 9385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9386printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9388 CFLAGS="$xorg_testset_save_CFLAGS" 9389fi 9390 9391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9394 fi 9395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9397printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9398if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9399then : 9400 printf %s "(cached) " >&6 9401else case e in #( 9402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403/* end confdefs.h. */ 9404int i; 9405_ACEOF 9406if ac_fn_c_try_compile "$LINENO" 9407then : 9408 xorg_cv_cc_flag_unused_command_line_argument=yes 9409else case e in #( 9410 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9411esac 9412fi 9413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9414esac 9415fi 9416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9419 CFLAGS="$xorg_testset_save_CFLAGS" 9420fi 9421 9422found="no" 9423 9424 if test $found = "no" ; then 9425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9427 fi 9428 9429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9431 fi 9432 9433 CFLAGS="$CFLAGS -Winit-self" 9434 9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9436printf %s "checking if $CC supports -Winit-self... " >&6; } 9437 cacheid=xorg_cv_cc_flag__Winit_self 9438 if eval test \${$cacheid+y} 9439then : 9440 printf %s "(cached) " >&6 9441else case e in #( 9442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443/* end confdefs.h. */ 9444int i; 9445int 9446main (void) 9447{ 9448 9449 ; 9450 return 0; 9451} 9452_ACEOF 9453if ac_fn_c_try_link "$LINENO" 9454then : 9455 eval $cacheid=yes 9456else case e in #( 9457 e) eval $cacheid=no ;; 9458esac 9459fi 9460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9461 conftest$ac_exeext conftest.$ac_ext ;; 9462esac 9463fi 9464 9465 9466 CFLAGS="$xorg_testset_save_CFLAGS" 9467 9468 eval supported=\$$cacheid 9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9470printf "%s\n" "$supported" >&6; } 9471 if test "$supported" = "yes" ; then 9472 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9473 found="yes" 9474 fi 9475 fi 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491xorg_testset_save_CFLAGS="$CFLAGS" 9492 9493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9496printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9497if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9498then : 9499 printf %s "(cached) " >&6 9500else case e in #( 9501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9502/* end confdefs.h. */ 9503int i; 9504_ACEOF 9505if ac_fn_c_try_compile "$LINENO" 9506then : 9507 xorg_cv_cc_flag_unknown_warning_option=yes 9508else case e in #( 9509 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9510esac 9511fi 9512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9513esac 9514fi 9515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9518 CFLAGS="$xorg_testset_save_CFLAGS" 9519fi 9520 9521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9524 fi 9525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9528if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9529then : 9530 printf %s "(cached) " >&6 9531else case e in #( 9532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534int i; 9535_ACEOF 9536if ac_fn_c_try_compile "$LINENO" 9537then : 9538 xorg_cv_cc_flag_unused_command_line_argument=yes 9539else case e in #( 9540 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9541esac 9542fi 9543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9544esac 9545fi 9546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9547printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9549 CFLAGS="$xorg_testset_save_CFLAGS" 9550fi 9551 9552found="no" 9553 9554 if test $found = "no" ; then 9555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9557 fi 9558 9559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9561 fi 9562 9563 CFLAGS="$CFLAGS -Wmain" 9564 9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9566printf %s "checking if $CC supports -Wmain... " >&6; } 9567 cacheid=xorg_cv_cc_flag__Wmain 9568 if eval test \${$cacheid+y} 9569then : 9570 printf %s "(cached) " >&6 9571else case e in #( 9572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9573/* end confdefs.h. */ 9574int i; 9575int 9576main (void) 9577{ 9578 9579 ; 9580 return 0; 9581} 9582_ACEOF 9583if ac_fn_c_try_link "$LINENO" 9584then : 9585 eval $cacheid=yes 9586else case e in #( 9587 e) eval $cacheid=no ;; 9588esac 9589fi 9590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9591 conftest$ac_exeext conftest.$ac_ext ;; 9592esac 9593fi 9594 9595 9596 CFLAGS="$xorg_testset_save_CFLAGS" 9597 9598 eval supported=\$$cacheid 9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9600printf "%s\n" "$supported" >&6; } 9601 if test "$supported" = "yes" ; then 9602 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9603 found="yes" 9604 fi 9605 fi 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621xorg_testset_save_CFLAGS="$CFLAGS" 9622 9623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9627if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9628then : 9629 printf %s "(cached) " >&6 9630else case e in #( 9631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9632/* end confdefs.h. */ 9633int i; 9634_ACEOF 9635if ac_fn_c_try_compile "$LINENO" 9636then : 9637 xorg_cv_cc_flag_unknown_warning_option=yes 9638else case e in #( 9639 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9640esac 9641fi 9642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9643esac 9644fi 9645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9648 CFLAGS="$xorg_testset_save_CFLAGS" 9649fi 9650 9651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9654 fi 9655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9658if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9659then : 9660 printf %s "(cached) " >&6 9661else case e in #( 9662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663/* end confdefs.h. */ 9664int i; 9665_ACEOF 9666if ac_fn_c_try_compile "$LINENO" 9667then : 9668 xorg_cv_cc_flag_unused_command_line_argument=yes 9669else case e in #( 9670 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9671esac 9672fi 9673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9674esac 9675fi 9676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9679 CFLAGS="$xorg_testset_save_CFLAGS" 9680fi 9681 9682found="no" 9683 9684 if test $found = "no" ; then 9685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9687 fi 9688 9689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9691 fi 9692 9693 CFLAGS="$CFLAGS -Wmissing-braces" 9694 9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9696printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9697 cacheid=xorg_cv_cc_flag__Wmissing_braces 9698 if eval test \${$cacheid+y} 9699then : 9700 printf %s "(cached) " >&6 9701else case e in #( 9702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703/* end confdefs.h. */ 9704int i; 9705int 9706main (void) 9707{ 9708 9709 ; 9710 return 0; 9711} 9712_ACEOF 9713if ac_fn_c_try_link "$LINENO" 9714then : 9715 eval $cacheid=yes 9716else case e in #( 9717 e) eval $cacheid=no ;; 9718esac 9719fi 9720rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9721 conftest$ac_exeext conftest.$ac_ext ;; 9722esac 9723fi 9724 9725 9726 CFLAGS="$xorg_testset_save_CFLAGS" 9727 9728 eval supported=\$$cacheid 9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9730printf "%s\n" "$supported" >&6; } 9731 if test "$supported" = "yes" ; then 9732 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9733 found="yes" 9734 fi 9735 fi 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751xorg_testset_save_CFLAGS="$CFLAGS" 9752 9753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9756printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9757if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9758then : 9759 printf %s "(cached) " >&6 9760else case e in #( 9761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9762/* end confdefs.h. */ 9763int i; 9764_ACEOF 9765if ac_fn_c_try_compile "$LINENO" 9766then : 9767 xorg_cv_cc_flag_unknown_warning_option=yes 9768else case e in #( 9769 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9770esac 9771fi 9772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9773esac 9774fi 9775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9778 CFLAGS="$xorg_testset_save_CFLAGS" 9779fi 9780 9781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9784 fi 9785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9788if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9789then : 9790 printf %s "(cached) " >&6 9791else case e in #( 9792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794int i; 9795_ACEOF 9796if ac_fn_c_try_compile "$LINENO" 9797then : 9798 xorg_cv_cc_flag_unused_command_line_argument=yes 9799else case e in #( 9800 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9801esac 9802fi 9803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9804esac 9805fi 9806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9807printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810fi 9811 9812found="no" 9813 9814 if test $found = "no" ; then 9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9817 fi 9818 9819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9821 fi 9822 9823 CFLAGS="$CFLAGS -Wsequence-point" 9824 9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9826printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9827 cacheid=xorg_cv_cc_flag__Wsequence_point 9828 if eval test \${$cacheid+y} 9829then : 9830 printf %s "(cached) " >&6 9831else case e in #( 9832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9833/* end confdefs.h. */ 9834int i; 9835int 9836main (void) 9837{ 9838 9839 ; 9840 return 0; 9841} 9842_ACEOF 9843if ac_fn_c_try_link "$LINENO" 9844then : 9845 eval $cacheid=yes 9846else case e in #( 9847 e) eval $cacheid=no ;; 9848esac 9849fi 9850rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9851 conftest$ac_exeext conftest.$ac_ext ;; 9852esac 9853fi 9854 9855 9856 CFLAGS="$xorg_testset_save_CFLAGS" 9857 9858 eval supported=\$$cacheid 9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9860printf "%s\n" "$supported" >&6; } 9861 if test "$supported" = "yes" ; then 9862 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9863 found="yes" 9864 fi 9865 fi 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881xorg_testset_save_CFLAGS="$CFLAGS" 9882 9883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9887if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9888then : 9889 printf %s "(cached) " >&6 9890else case e in #( 9891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892/* end confdefs.h. */ 9893int i; 9894_ACEOF 9895if ac_fn_c_try_compile "$LINENO" 9896then : 9897 xorg_cv_cc_flag_unknown_warning_option=yes 9898else case e in #( 9899 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9900esac 9901fi 9902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9903esac 9904fi 9905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9906printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9908 CFLAGS="$xorg_testset_save_CFLAGS" 9909fi 9910 9911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9914 fi 9915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9917printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9918if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9919then : 9920 printf %s "(cached) " >&6 9921else case e in #( 9922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9923/* end confdefs.h. */ 9924int i; 9925_ACEOF 9926if ac_fn_c_try_compile "$LINENO" 9927then : 9928 xorg_cv_cc_flag_unused_command_line_argument=yes 9929else case e in #( 9930 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9931esac 9932fi 9933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9934esac 9935fi 9936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9937printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9939 CFLAGS="$xorg_testset_save_CFLAGS" 9940fi 9941 9942found="no" 9943 9944 if test $found = "no" ; then 9945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9947 fi 9948 9949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9951 fi 9952 9953 CFLAGS="$CFLAGS -Wreturn-type" 9954 9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9956printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9957 cacheid=xorg_cv_cc_flag__Wreturn_type 9958 if eval test \${$cacheid+y} 9959then : 9960 printf %s "(cached) " >&6 9961else case e in #( 9962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9963/* end confdefs.h. */ 9964int i; 9965int 9966main (void) 9967{ 9968 9969 ; 9970 return 0; 9971} 9972_ACEOF 9973if ac_fn_c_try_link "$LINENO" 9974then : 9975 eval $cacheid=yes 9976else case e in #( 9977 e) eval $cacheid=no ;; 9978esac 9979fi 9980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9981 conftest$ac_exeext conftest.$ac_ext ;; 9982esac 9983fi 9984 9985 9986 CFLAGS="$xorg_testset_save_CFLAGS" 9987 9988 eval supported=\$$cacheid 9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9990printf "%s\n" "$supported" >&6; } 9991 if test "$supported" = "yes" ; then 9992 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9993 found="yes" 9994 fi 9995 fi 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011xorg_testset_save_CFLAGS="$CFLAGS" 10012 10013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10017if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10018then : 10019 printf %s "(cached) " >&6 10020else case e in #( 10021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10022/* end confdefs.h. */ 10023int i; 10024_ACEOF 10025if ac_fn_c_try_compile "$LINENO" 10026then : 10027 xorg_cv_cc_flag_unknown_warning_option=yes 10028else case e in #( 10029 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10030esac 10031fi 10032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10033esac 10034fi 10035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10036printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039fi 10040 10041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10044 fi 10045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10047printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10048if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10049then : 10050 printf %s "(cached) " >&6 10051else case e in #( 10052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10053/* end confdefs.h. */ 10054int i; 10055_ACEOF 10056if ac_fn_c_try_compile "$LINENO" 10057then : 10058 xorg_cv_cc_flag_unused_command_line_argument=yes 10059else case e in #( 10060 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10061esac 10062fi 10063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10064esac 10065fi 10066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10067printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10069 CFLAGS="$xorg_testset_save_CFLAGS" 10070fi 10071 10072found="no" 10073 10074 if test $found = "no" ; then 10075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10077 fi 10078 10079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10081 fi 10082 10083 CFLAGS="$CFLAGS -Wtrigraphs" 10084 10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10086printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10087 cacheid=xorg_cv_cc_flag__Wtrigraphs 10088 if eval test \${$cacheid+y} 10089then : 10090 printf %s "(cached) " >&6 10091else case e in #( 10092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093/* end confdefs.h. */ 10094int i; 10095int 10096main (void) 10097{ 10098 10099 ; 10100 return 0; 10101} 10102_ACEOF 10103if ac_fn_c_try_link "$LINENO" 10104then : 10105 eval $cacheid=yes 10106else case e in #( 10107 e) eval $cacheid=no ;; 10108esac 10109fi 10110rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10111 conftest$ac_exeext conftest.$ac_ext ;; 10112esac 10113fi 10114 10115 10116 CFLAGS="$xorg_testset_save_CFLAGS" 10117 10118 eval supported=\$$cacheid 10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10120printf "%s\n" "$supported" >&6; } 10121 if test "$supported" = "yes" ; then 10122 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10123 found="yes" 10124 fi 10125 fi 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141xorg_testset_save_CFLAGS="$CFLAGS" 10142 10143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10147if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10148then : 10149 printf %s "(cached) " >&6 10150else case e in #( 10151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10152/* end confdefs.h. */ 10153int i; 10154_ACEOF 10155if ac_fn_c_try_compile "$LINENO" 10156then : 10157 xorg_cv_cc_flag_unknown_warning_option=yes 10158else case e in #( 10159 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10160esac 10161fi 10162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10163esac 10164fi 10165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10166printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10168 CFLAGS="$xorg_testset_save_CFLAGS" 10169fi 10170 10171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10174 fi 10175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10177printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10178if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10179then : 10180 printf %s "(cached) " >&6 10181else case e in #( 10182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10183/* end confdefs.h. */ 10184int i; 10185_ACEOF 10186if ac_fn_c_try_compile "$LINENO" 10187then : 10188 xorg_cv_cc_flag_unused_command_line_argument=yes 10189else case e in #( 10190 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10191esac 10192fi 10193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10194esac 10195fi 10196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10199 CFLAGS="$xorg_testset_save_CFLAGS" 10200fi 10201 10202found="no" 10203 10204 if test $found = "no" ; then 10205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10207 fi 10208 10209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10211 fi 10212 10213 CFLAGS="$CFLAGS -Warray-bounds" 10214 10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10216printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10217 cacheid=xorg_cv_cc_flag__Warray_bounds 10218 if eval test \${$cacheid+y} 10219then : 10220 printf %s "(cached) " >&6 10221else case e in #( 10222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223/* end confdefs.h. */ 10224int i; 10225int 10226main (void) 10227{ 10228 10229 ; 10230 return 0; 10231} 10232_ACEOF 10233if ac_fn_c_try_link "$LINENO" 10234then : 10235 eval $cacheid=yes 10236else case e in #( 10237 e) eval $cacheid=no ;; 10238esac 10239fi 10240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10241 conftest$ac_exeext conftest.$ac_ext ;; 10242esac 10243fi 10244 10245 10246 CFLAGS="$xorg_testset_save_CFLAGS" 10247 10248 eval supported=\$$cacheid 10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10250printf "%s\n" "$supported" >&6; } 10251 if test "$supported" = "yes" ; then 10252 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10253 found="yes" 10254 fi 10255 fi 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271xorg_testset_save_CFLAGS="$CFLAGS" 10272 10273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10276printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10277if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10278then : 10279 printf %s "(cached) " >&6 10280else case e in #( 10281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10282/* end confdefs.h. */ 10283int i; 10284_ACEOF 10285if ac_fn_c_try_compile "$LINENO" 10286then : 10287 xorg_cv_cc_flag_unknown_warning_option=yes 10288else case e in #( 10289 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10290esac 10291fi 10292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10293esac 10294fi 10295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10298 CFLAGS="$xorg_testset_save_CFLAGS" 10299fi 10300 10301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10304 fi 10305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10308if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10309then : 10310 printf %s "(cached) " >&6 10311else case e in #( 10312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313/* end confdefs.h. */ 10314int i; 10315_ACEOF 10316if ac_fn_c_try_compile "$LINENO" 10317then : 10318 xorg_cv_cc_flag_unused_command_line_argument=yes 10319else case e in #( 10320 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10321esac 10322fi 10323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10324esac 10325fi 10326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10327printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10329 CFLAGS="$xorg_testset_save_CFLAGS" 10330fi 10331 10332found="no" 10333 10334 if test $found = "no" ; then 10335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10337 fi 10338 10339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10341 fi 10342 10343 CFLAGS="$CFLAGS -Wwrite-strings" 10344 10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10346printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10347 cacheid=xorg_cv_cc_flag__Wwrite_strings 10348 if eval test \${$cacheid+y} 10349then : 10350 printf %s "(cached) " >&6 10351else case e in #( 10352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353/* end confdefs.h. */ 10354int i; 10355int 10356main (void) 10357{ 10358 10359 ; 10360 return 0; 10361} 10362_ACEOF 10363if ac_fn_c_try_link "$LINENO" 10364then : 10365 eval $cacheid=yes 10366else case e in #( 10367 e) eval $cacheid=no ;; 10368esac 10369fi 10370rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10371 conftest$ac_exeext conftest.$ac_ext ;; 10372esac 10373fi 10374 10375 10376 CFLAGS="$xorg_testset_save_CFLAGS" 10377 10378 eval supported=\$$cacheid 10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10380printf "%s\n" "$supported" >&6; } 10381 if test "$supported" = "yes" ; then 10382 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10383 found="yes" 10384 fi 10385 fi 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401xorg_testset_save_CFLAGS="$CFLAGS" 10402 10403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10407if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10408then : 10409 printf %s "(cached) " >&6 10410else case e in #( 10411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10412/* end confdefs.h. */ 10413int i; 10414_ACEOF 10415if ac_fn_c_try_compile "$LINENO" 10416then : 10417 xorg_cv_cc_flag_unknown_warning_option=yes 10418else case e in #( 10419 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10420esac 10421fi 10422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10423esac 10424fi 10425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10426printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10428 CFLAGS="$xorg_testset_save_CFLAGS" 10429fi 10430 10431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10434 fi 10435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10437printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10438if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10439then : 10440 printf %s "(cached) " >&6 10441else case e in #( 10442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443/* end confdefs.h. */ 10444int i; 10445_ACEOF 10446if ac_fn_c_try_compile "$LINENO" 10447then : 10448 xorg_cv_cc_flag_unused_command_line_argument=yes 10449else case e in #( 10450 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10451esac 10452fi 10453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10454esac 10455fi 10456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10457printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10459 CFLAGS="$xorg_testset_save_CFLAGS" 10460fi 10461 10462found="no" 10463 10464 if test $found = "no" ; then 10465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10467 fi 10468 10469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10471 fi 10472 10473 CFLAGS="$CFLAGS -Waddress" 10474 10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10476printf %s "checking if $CC supports -Waddress... " >&6; } 10477 cacheid=xorg_cv_cc_flag__Waddress 10478 if eval test \${$cacheid+y} 10479then : 10480 printf %s "(cached) " >&6 10481else case e in #( 10482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10483/* end confdefs.h. */ 10484int i; 10485int 10486main (void) 10487{ 10488 10489 ; 10490 return 0; 10491} 10492_ACEOF 10493if ac_fn_c_try_link "$LINENO" 10494then : 10495 eval $cacheid=yes 10496else case e in #( 10497 e) eval $cacheid=no ;; 10498esac 10499fi 10500rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10501 conftest$ac_exeext conftest.$ac_ext ;; 10502esac 10503fi 10504 10505 10506 CFLAGS="$xorg_testset_save_CFLAGS" 10507 10508 eval supported=\$$cacheid 10509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10510printf "%s\n" "$supported" >&6; } 10511 if test "$supported" = "yes" ; then 10512 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10513 found="yes" 10514 fi 10515 fi 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531xorg_testset_save_CFLAGS="$CFLAGS" 10532 10533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10536printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10537if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10538then : 10539 printf %s "(cached) " >&6 10540else case e in #( 10541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10542/* end confdefs.h. */ 10543int i; 10544_ACEOF 10545if ac_fn_c_try_compile "$LINENO" 10546then : 10547 xorg_cv_cc_flag_unknown_warning_option=yes 10548else case e in #( 10549 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10550esac 10551fi 10552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10553esac 10554fi 10555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10558 CFLAGS="$xorg_testset_save_CFLAGS" 10559fi 10560 10561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10564 fi 10565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10568if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10569then : 10570 printf %s "(cached) " >&6 10571else case e in #( 10572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10573/* end confdefs.h. */ 10574int i; 10575_ACEOF 10576if ac_fn_c_try_compile "$LINENO" 10577then : 10578 xorg_cv_cc_flag_unused_command_line_argument=yes 10579else case e in #( 10580 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10581esac 10582fi 10583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10584esac 10585fi 10586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10587printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10589 CFLAGS="$xorg_testset_save_CFLAGS" 10590fi 10591 10592found="no" 10593 10594 if test $found = "no" ; then 10595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10597 fi 10598 10599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10601 fi 10602 10603 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10604 10605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10606printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10607 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10608 if eval test \${$cacheid+y} 10609then : 10610 printf %s "(cached) " >&6 10611else case e in #( 10612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10613/* end confdefs.h. */ 10614int i; 10615int 10616main (void) 10617{ 10618 10619 ; 10620 return 0; 10621} 10622_ACEOF 10623if ac_fn_c_try_link "$LINENO" 10624then : 10625 eval $cacheid=yes 10626else case e in #( 10627 e) eval $cacheid=no ;; 10628esac 10629fi 10630rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10631 conftest$ac_exeext conftest.$ac_ext ;; 10632esac 10633fi 10634 10635 10636 CFLAGS="$xorg_testset_save_CFLAGS" 10637 10638 eval supported=\$$cacheid 10639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10640printf "%s\n" "$supported" >&6; } 10641 if test "$supported" = "yes" ; then 10642 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10643 found="yes" 10644 fi 10645 fi 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661xorg_testset_save_CFLAGS="$CFLAGS" 10662 10663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10667if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10668then : 10669 printf %s "(cached) " >&6 10670else case e in #( 10671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10672/* end confdefs.h. */ 10673int i; 10674_ACEOF 10675if ac_fn_c_try_compile "$LINENO" 10676then : 10677 xorg_cv_cc_flag_unknown_warning_option=yes 10678else case e in #( 10679 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10680esac 10681fi 10682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10683esac 10684fi 10685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10686printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10688 CFLAGS="$xorg_testset_save_CFLAGS" 10689fi 10690 10691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10694 fi 10695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10697printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10698if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10699then : 10700 printf %s "(cached) " >&6 10701else case e in #( 10702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703/* end confdefs.h. */ 10704int i; 10705_ACEOF 10706if ac_fn_c_try_compile "$LINENO" 10707then : 10708 xorg_cv_cc_flag_unused_command_line_argument=yes 10709else case e in #( 10710 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10711esac 10712fi 10713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10714esac 10715fi 10716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10717printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10719 CFLAGS="$xorg_testset_save_CFLAGS" 10720fi 10721 10722found="no" 10723 10724 if test $found = "no" ; then 10725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10727 fi 10728 10729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10731 fi 10732 10733 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10734 10735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10736printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10737 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10738 if eval test \${$cacheid+y} 10739then : 10740 printf %s "(cached) " >&6 10741else case e in #( 10742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10743/* end confdefs.h. */ 10744int i; 10745int 10746main (void) 10747{ 10748 10749 ; 10750 return 0; 10751} 10752_ACEOF 10753if ac_fn_c_try_link "$LINENO" 10754then : 10755 eval $cacheid=yes 10756else case e in #( 10757 e) eval $cacheid=no ;; 10758esac 10759fi 10760rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10761 conftest$ac_exeext conftest.$ac_ext ;; 10762esac 10763fi 10764 10765 10766 CFLAGS="$xorg_testset_save_CFLAGS" 10767 10768 eval supported=\$$cacheid 10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10770printf "%s\n" "$supported" >&6; } 10771 if test "$supported" = "yes" ; then 10772 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10773 found="yes" 10774 fi 10775 fi 10776 10777 10778fi 10779 10780 10781 10782 10783 10784 10785 10786 CWARNFLAGS="$BASE_CFLAGS" 10787 if test "x$GCC" = xyes ; then 10788 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10789 fi 10790 10791 10792 10793 10794 10795 10796 10797 10798# Check whether --enable-strict-compilation was given. 10799if test ${enable_strict_compilation+y} 10800then : 10801 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10802else case e in #( 10803 e) STRICT_COMPILE=no ;; 10804esac 10805fi 10806 10807 10808 10809 10810 10811 10812STRICT_CFLAGS="" 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826xorg_testset_save_CFLAGS="$CFLAGS" 10827 10828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10832if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10833then : 10834 printf %s "(cached) " >&6 10835else case e in #( 10836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10837/* end confdefs.h. */ 10838int i; 10839_ACEOF 10840if ac_fn_c_try_compile "$LINENO" 10841then : 10842 xorg_cv_cc_flag_unknown_warning_option=yes 10843else case e in #( 10844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10845esac 10846fi 10847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10848esac 10849fi 10850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10853 CFLAGS="$xorg_testset_save_CFLAGS" 10854fi 10855 10856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10859 fi 10860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10864then : 10865 printf %s "(cached) " >&6 10866else case e in #( 10867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10868/* end confdefs.h. */ 10869int i; 10870_ACEOF 10871if ac_fn_c_try_compile "$LINENO" 10872then : 10873 xorg_cv_cc_flag_unused_command_line_argument=yes 10874else case e in #( 10875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10876esac 10877fi 10878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10879esac 10880fi 10881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10884 CFLAGS="$xorg_testset_save_CFLAGS" 10885fi 10886 10887found="no" 10888 10889 if test $found = "no" ; then 10890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10892 fi 10893 10894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10896 fi 10897 10898 CFLAGS="$CFLAGS -pedantic" 10899 10900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10901printf %s "checking if $CC supports -pedantic... " >&6; } 10902 cacheid=xorg_cv_cc_flag__pedantic 10903 if eval test \${$cacheid+y} 10904then : 10905 printf %s "(cached) " >&6 10906else case e in #( 10907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10908/* end confdefs.h. */ 10909int i; 10910int 10911main (void) 10912{ 10913 10914 ; 10915 return 0; 10916} 10917_ACEOF 10918if ac_fn_c_try_link "$LINENO" 10919then : 10920 eval $cacheid=yes 10921else case e in #( 10922 e) eval $cacheid=no ;; 10923esac 10924fi 10925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10926 conftest$ac_exeext conftest.$ac_ext ;; 10927esac 10928fi 10929 10930 10931 CFLAGS="$xorg_testset_save_CFLAGS" 10932 10933 eval supported=\$$cacheid 10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10935printf "%s\n" "$supported" >&6; } 10936 if test "$supported" = "yes" ; then 10937 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10938 found="yes" 10939 fi 10940 fi 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956xorg_testset_save_CFLAGS="$CFLAGS" 10957 10958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10962if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10963then : 10964 printf %s "(cached) " >&6 10965else case e in #( 10966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10967/* end confdefs.h. */ 10968int i; 10969_ACEOF 10970if ac_fn_c_try_compile "$LINENO" 10971then : 10972 xorg_cv_cc_flag_unknown_warning_option=yes 10973else case e in #( 10974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10975esac 10976fi 10977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10978esac 10979fi 10980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10983 CFLAGS="$xorg_testset_save_CFLAGS" 10984fi 10985 10986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10989 fi 10990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10993if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10994then : 10995 printf %s "(cached) " >&6 10996else case e in #( 10997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10998/* end confdefs.h. */ 10999int i; 11000_ACEOF 11001if ac_fn_c_try_compile "$LINENO" 11002then : 11003 xorg_cv_cc_flag_unused_command_line_argument=yes 11004else case e in #( 11005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11006esac 11007fi 11008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11009esac 11010fi 11011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11014 CFLAGS="$xorg_testset_save_CFLAGS" 11015fi 11016 11017found="no" 11018 11019 if test $found = "no" ; then 11020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11022 fi 11023 11024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11026 fi 11027 11028 CFLAGS="$CFLAGS -Werror" 11029 11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11031printf %s "checking if $CC supports -Werror... " >&6; } 11032 cacheid=xorg_cv_cc_flag__Werror 11033 if eval test \${$cacheid+y} 11034then : 11035 printf %s "(cached) " >&6 11036else case e in #( 11037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11038/* end confdefs.h. */ 11039int i; 11040int 11041main (void) 11042{ 11043 11044 ; 11045 return 0; 11046} 11047_ACEOF 11048if ac_fn_c_try_link "$LINENO" 11049then : 11050 eval $cacheid=yes 11051else case e in #( 11052 e) eval $cacheid=no ;; 11053esac 11054fi 11055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11056 conftest$ac_exeext conftest.$ac_ext ;; 11057esac 11058fi 11059 11060 11061 CFLAGS="$xorg_testset_save_CFLAGS" 11062 11063 eval supported=\$$cacheid 11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11065printf "%s\n" "$supported" >&6; } 11066 if test "$supported" = "yes" ; then 11067 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11068 found="yes" 11069 fi 11070 fi 11071 11072 if test $found = "no" ; then 11073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11075 fi 11076 11077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11079 fi 11080 11081 CFLAGS="$CFLAGS -errwarn" 11082 11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11084printf %s "checking if $CC supports -errwarn... " >&6; } 11085 cacheid=xorg_cv_cc_flag__errwarn 11086 if eval test \${$cacheid+y} 11087then : 11088 printf %s "(cached) " >&6 11089else case e in #( 11090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11091/* end confdefs.h. */ 11092int i; 11093int 11094main (void) 11095{ 11096 11097 ; 11098 return 0; 11099} 11100_ACEOF 11101if ac_fn_c_try_link "$LINENO" 11102then : 11103 eval $cacheid=yes 11104else case e in #( 11105 e) eval $cacheid=no ;; 11106esac 11107fi 11108rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11109 conftest$ac_exeext conftest.$ac_ext ;; 11110esac 11111fi 11112 11113 11114 CFLAGS="$xorg_testset_save_CFLAGS" 11115 11116 eval supported=\$$cacheid 11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11118printf "%s\n" "$supported" >&6; } 11119 if test "$supported" = "yes" ; then 11120 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11121 found="yes" 11122 fi 11123 fi 11124 11125 11126 11127# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11128# activate it with -Werror, so we add it here explicitly. 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142xorg_testset_save_CFLAGS="$CFLAGS" 11143 11144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11147printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11148if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11149then : 11150 printf %s "(cached) " >&6 11151else case e in #( 11152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11153/* end confdefs.h. */ 11154int i; 11155_ACEOF 11156if ac_fn_c_try_compile "$LINENO" 11157then : 11158 xorg_cv_cc_flag_unknown_warning_option=yes 11159else case e in #( 11160 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11161esac 11162fi 11163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11164esac 11165fi 11166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11169 CFLAGS="$xorg_testset_save_CFLAGS" 11170fi 11171 11172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11175 fi 11176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11179if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11180then : 11181 printf %s "(cached) " >&6 11182else case e in #( 11183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11184/* end confdefs.h. */ 11185int i; 11186_ACEOF 11187if ac_fn_c_try_compile "$LINENO" 11188then : 11189 xorg_cv_cc_flag_unused_command_line_argument=yes 11190else case e in #( 11191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11192esac 11193fi 11194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11195esac 11196fi 11197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11200 CFLAGS="$xorg_testset_save_CFLAGS" 11201fi 11202 11203found="no" 11204 11205 if test $found = "no" ; then 11206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11208 fi 11209 11210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11212 fi 11213 11214 CFLAGS="$CFLAGS -Werror=attributes" 11215 11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11217printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11218 cacheid=xorg_cv_cc_flag__Werror_attributes 11219 if eval test \${$cacheid+y} 11220then : 11221 printf %s "(cached) " >&6 11222else case e in #( 11223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11224/* end confdefs.h. */ 11225int i; 11226int 11227main (void) 11228{ 11229 11230 ; 11231 return 0; 11232} 11233_ACEOF 11234if ac_fn_c_try_link "$LINENO" 11235then : 11236 eval $cacheid=yes 11237else case e in #( 11238 e) eval $cacheid=no ;; 11239esac 11240fi 11241rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11242 conftest$ac_exeext conftest.$ac_ext ;; 11243esac 11244fi 11245 11246 11247 CFLAGS="$xorg_testset_save_CFLAGS" 11248 11249 eval supported=\$$cacheid 11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11251printf "%s\n" "$supported" >&6; } 11252 if test "$supported" = "yes" ; then 11253 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11254 found="yes" 11255 fi 11256 fi 11257 11258 11259 11260if test "x$STRICT_COMPILE" = "xyes"; then 11261 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11262 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11263fi 11264 11265 11266 11267 11268 11269 11270 11271 11272cat >>confdefs.h <<_ACEOF 11273#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11274_ACEOF 11275 11276 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11277 if test "x$PVM" = "x"; then 11278 PVM="0" 11279 fi 11280 11281printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11282 11283 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11284 if test "x$PVP" = "x"; then 11285 PVP="0" 11286 fi 11287 11288printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11289 11290 11291 11292CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11293mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11294|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11295touch \$(top_srcdir)/ChangeLog; \ 11296echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11297 11298 11299 11300 11301macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11302INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11303mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11304|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11305touch \$(top_srcdir)/INSTALL; \ 11306echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11307 11308 11309 11310 11311 11312 11313case $host_os in 11314 solaris*) 11315 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11316 # check for a man page file found in later versions that use 11317 # traditional section numbers instead 11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11319printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11320if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11321then : 11322 printf %s "(cached) " >&6 11323else case e in #( 11324 e) test "$cross_compiling" = yes && 11325 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11326if test -r "/usr/share/man/man7/attributes.7"; then 11327 ac_cv_file__usr_share_man_man7_attributes_7=yes 11328else 11329 ac_cv_file__usr_share_man_man7_attributes_7=no 11330fi ;; 11331esac 11332fi 11333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11334printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11335if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11336then : 11337 SYSV_MAN_SECTIONS=false 11338else case e in #( 11339 e) SYSV_MAN_SECTIONS=true ;; 11340esac 11341fi 11342 11343 ;; 11344 *) SYSV_MAN_SECTIONS=false ;; 11345esac 11346 11347if test x$APP_MAN_SUFFIX = x ; then 11348 APP_MAN_SUFFIX=1 11349fi 11350if test x$APP_MAN_DIR = x ; then 11351 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11352fi 11353 11354if test x$LIB_MAN_SUFFIX = x ; then 11355 LIB_MAN_SUFFIX=3 11356fi 11357if test x$LIB_MAN_DIR = x ; then 11358 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11359fi 11360 11361if test x$FILE_MAN_SUFFIX = x ; then 11362 case $SYSV_MAN_SECTIONS in 11363 true) FILE_MAN_SUFFIX=4 ;; 11364 *) FILE_MAN_SUFFIX=5 ;; 11365 esac 11366fi 11367if test x$FILE_MAN_DIR = x ; then 11368 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11369fi 11370 11371if test x$MISC_MAN_SUFFIX = x ; then 11372 case $SYSV_MAN_SECTIONS in 11373 true) MISC_MAN_SUFFIX=5 ;; 11374 *) MISC_MAN_SUFFIX=7 ;; 11375 esac 11376fi 11377if test x$MISC_MAN_DIR = x ; then 11378 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11379fi 11380 11381if test x$DRIVER_MAN_SUFFIX = x ; then 11382 case $SYSV_MAN_SECTIONS in 11383 true) DRIVER_MAN_SUFFIX=7 ;; 11384 *) DRIVER_MAN_SUFFIX=4 ;; 11385 esac 11386fi 11387if test x$DRIVER_MAN_DIR = x ; then 11388 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11389fi 11390 11391if test x$ADMIN_MAN_SUFFIX = x ; then 11392 case $SYSV_MAN_SECTIONS in 11393 true) ADMIN_MAN_SUFFIX=1m ;; 11394 *) ADMIN_MAN_SUFFIX=8 ;; 11395 esac 11396fi 11397if test x$ADMIN_MAN_DIR = x ; then 11398 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11399fi 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415XORG_MAN_PAGE="X Version 11" 11416 11417MAN_SUBSTS="\ 11418 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11419 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11420 -e 's|__xservername__|Xorg|g' \ 11421 -e 's|__xconfigfile__|xorg.conf|g' \ 11422 -e 's|__projectroot__|\$(prefix)|g' \ 11423 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11424 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11425 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11426 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11427 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11428 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11429 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11430 11431 11432 11433 11434AM_DEFAULT_VERBOSITY=0 11435 11436 11437 11438for ac_prog in 'bison -y' byacc 11439do 11440 # Extract the first word of "$ac_prog", so it can be a program name with args. 11441set dummy $ac_prog; ac_word=$2 11442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11443printf %s "checking for $ac_word... " >&6; } 11444if test ${ac_cv_prog_YACC+y} 11445then : 11446 printf %s "(cached) " >&6 11447else case e in #( 11448 e) if test -n "$YACC"; then 11449 ac_cv_prog_YACC="$YACC" # Let the user override the test. 11450else 11451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11452for as_dir in $PATH 11453do 11454 IFS=$as_save_IFS 11455 case $as_dir in #((( 11456 '') as_dir=./ ;; 11457 */) ;; 11458 *) as_dir=$as_dir/ ;; 11459 esac 11460 for ac_exec_ext in '' $ac_executable_extensions; do 11461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11462 ac_cv_prog_YACC="$ac_prog" 11463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11464 break 2 11465 fi 11466done 11467 done 11468IFS=$as_save_IFS 11469 11470fi ;; 11471esac 11472fi 11473YACC=$ac_cv_prog_YACC 11474if test -n "$YACC"; then 11475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 11476printf "%s\n" "$YACC" >&6; } 11477else 11478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11479printf "%s\n" "no" >&6; } 11480fi 11481 11482 11483 test -n "$YACC" && break 11484done 11485test -n "$YACC" || YACC="yacc" 11486 11487# Extract the first word of "$YACC", so it can be a program name with args. 11488set dummy $YACC; ac_word=$2 11489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11490printf %s "checking for $ac_word... " >&6; } 11491if test ${ac_cv_path_YACC_INST+y} 11492then : 11493 printf %s "(cached) " >&6 11494else case e in #( 11495 e) case $YACC_INST in 11496 [\\/]* | ?:[\\/]*) 11497 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path. 11498 ;; 11499 *) 11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11501for as_dir in $PATH 11502do 11503 IFS=$as_save_IFS 11504 case $as_dir in #((( 11505 '') as_dir=./ ;; 11506 */) ;; 11507 *) as_dir=$as_dir/ ;; 11508 esac 11509 for ac_exec_ext in '' $ac_executable_extensions; do 11510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11511 ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext" 11512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11513 break 2 11514 fi 11515done 11516 done 11517IFS=$as_save_IFS 11518 11519 ;; 11520esac ;; 11521esac 11522fi 11523YACC_INST=$ac_cv_path_YACC_INST 11524if test -n "$YACC_INST"; then 11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5 11526printf "%s\n" "$YACC_INST" >&6; } 11527else 11528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11529printf "%s\n" "no" >&6; } 11530fi 11531 11532 11533if test ! -f "cfgparse.c"; then 11534 if test -z "$YACC_INST"; then 11535 as_fn_error $? "yacc not found - unable to compile cfgparse.y" "$LINENO" 5 11536 fi 11537fi 11538 11539# Checks for pkg-config packages 11540 11541pkg_failed=no 11542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBEVD" >&5 11543printf %s "checking for XKBEVD... " >&6; } 11544 11545if test -n "$XKBEVD_CFLAGS"; then 11546 pkg_cv_XKBEVD_CFLAGS="$XKBEVD_CFLAGS" 11547 elif test -n "$PKG_CONFIG"; then 11548 if test -n "$PKG_CONFIG" && \ 11549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5 11550 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5 11551 ac_status=$? 11552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11553 test $ac_status = 0; }; then 11554 pkg_cv_XKBEVD_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null` 11555 test "x$?" != "x0" && pkg_failed=yes 11556else 11557 pkg_failed=yes 11558fi 11559 else 11560 pkg_failed=untried 11561fi 11562if test -n "$XKBEVD_LIBS"; then 11563 pkg_cv_XKBEVD_LIBS="$XKBEVD_LIBS" 11564 elif test -n "$PKG_CONFIG"; then 11565 if test -n "$PKG_CONFIG" && \ 11566 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5 11567 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5 11568 ac_status=$? 11569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11570 test $ac_status = 0; }; then 11571 pkg_cv_XKBEVD_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null` 11572 test "x$?" != "x0" && pkg_failed=yes 11573else 11574 pkg_failed=yes 11575fi 11576 else 11577 pkg_failed=untried 11578fi 11579 11580 11581 11582if test $pkg_failed = yes; then 11583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11584printf "%s\n" "no" >&6; } 11585 11586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11587 _pkg_short_errors_supported=yes 11588else 11589 _pkg_short_errors_supported=no 11590fi 11591 if test $_pkg_short_errors_supported = yes; then 11592 XKBEVD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11" 2>&1` 11593 else 11594 XKBEVD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11" 2>&1` 11595 fi 11596 # Put the nasty error message in config.log where it belongs 11597 echo "$XKBEVD_PKG_ERRORS" >&5 11598 11599 as_fn_error $? "Package requirements (xkbfile x11) were not met: 11600 11601$XKBEVD_PKG_ERRORS 11602 11603Consider adjusting the PKG_CONFIG_PATH environment variable if you 11604installed software in a non-standard prefix. 11605 11606Alternatively, you may set the environment variables XKBEVD_CFLAGS 11607and XKBEVD_LIBS to avoid the need to call pkg-config. 11608See the pkg-config man page for more details." "$LINENO" 5 11609elif test $pkg_failed = untried; then 11610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11611printf "%s\n" "no" >&6; } 11612 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11613printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11614as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11615is in your PATH or set the PKG_CONFIG environment variable to the full 11616path to pkg-config. 11617 11618Alternatively, you may set the environment variables XKBEVD_CFLAGS 11619and XKBEVD_LIBS to avoid the need to call pkg-config. 11620See the pkg-config man page for more details. 11621 11622To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11623See 'config.log' for more details" "$LINENO" 5; } 11624else 11625 XKBEVD_CFLAGS=$pkg_cv_XKBEVD_CFLAGS 11626 XKBEVD_LIBS=$pkg_cv_XKBEVD_LIBS 11627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11628printf "%s\n" "yes" >&6; } 11629 11630fi 11631 11632ac_config_files="$ac_config_files Makefile man/Makefile" 11633 11634cat >confcache <<\_ACEOF 11635# This file is a shell script that caches the results of configure 11636# tests run on this system so they can be shared between configure 11637# scripts and configure runs, see configure's option --config-cache. 11638# It is not useful on other systems. If it contains results you don't 11639# want to keep, you may remove or edit it. 11640# 11641# config.status only pays attention to the cache file if you give it 11642# the --recheck option to rerun configure. 11643# 11644# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11645# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11646# following values. 11647 11648_ACEOF 11649 11650# The following way of writing the cache mishandles newlines in values, 11651# but we know of no workaround that is simple, portable, and efficient. 11652# So, we kill variables containing newlines. 11653# Ultrix sh set writes to stderr and can't be redirected directly, 11654# and sets the high bit in the cache file unless we assign to the vars. 11655( 11656 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11657 eval ac_val=\$$ac_var 11658 case $ac_val in #( 11659 *${as_nl}*) 11660 case $ac_var in #( 11661 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11662printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11663 esac 11664 case $ac_var in #( 11665 _ | IFS | as_nl) ;; #( 11666 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11667 *) { eval $ac_var=; unset $ac_var;} ;; 11668 esac ;; 11669 esac 11670 done 11671 11672 (set) 2>&1 | 11673 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11674 *${as_nl}ac_space=\ *) 11675 # 'set' does not quote correctly, so add quotes: double-quote 11676 # substitution turns \\\\ into \\, and sed turns \\ into \. 11677 sed -n \ 11678 "s/'/'\\\\''/g; 11679 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11680 ;; #( 11681 *) 11682 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11684 ;; 11685 esac | 11686 sort 11687) | 11688 sed ' 11689 /^ac_cv_env_/b end 11690 t clear 11691 :clear 11692 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11693 t end 11694 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11695 :end' >>confcache 11696if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11697 if test -w "$cache_file"; then 11698 if test "x$cache_file" != "x/dev/null"; then 11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11700printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11701 if test ! -f "$cache_file" || test -h "$cache_file"; then 11702 cat confcache >"$cache_file" 11703 else 11704 case $cache_file in #( 11705 */* | ?:*) 11706 mv -f confcache "$cache_file"$$ && 11707 mv -f "$cache_file"$$ "$cache_file" ;; #( 11708 *) 11709 mv -f confcache "$cache_file" ;; 11710 esac 11711 fi 11712 fi 11713 else 11714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11715printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11716 fi 11717fi 11718rm -f confcache 11719 11720test "x$prefix" = xNONE && prefix=$ac_default_prefix 11721# Let make expand exec_prefix. 11722test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11723 11724DEFS=-DHAVE_CONFIG_H 11725 11726ac_libobjs= 11727ac_ltlibobjs= 11728U= 11729for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11730 # 1. Remove the extension, and $U if already installed. 11731 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11732 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11733 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11734 # will be set to the directory where LIBOBJS objects are built. 11735 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11736 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11737done 11738LIBOBJS=$ac_libobjs 11739 11740LTLIBOBJS=$ac_ltlibobjs 11741 11742 11743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11744printf %s "checking that generated files are newer than configure... " >&6; } 11745 if test -n "$am_sleep_pid"; then 11746 # Hide warnings about reused PIDs. 11747 wait $am_sleep_pid 2>/dev/null 11748 fi 11749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11750printf "%s\n" "done" >&6; } 11751case $enable_silent_rules in # ((( 11752 yes) AM_DEFAULT_VERBOSITY=0;; 11753 no) AM_DEFAULT_VERBOSITY=1;; 11754esac 11755if test $am_cv_make_support_nested_variables = yes; then 11756 AM_V='$(V)' 11757 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11758else 11759 AM_V=$AM_DEFAULT_VERBOSITY 11760 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11761fi 11762 11763 if test -n "$EXEEXT"; then 11764 am__EXEEXT_TRUE= 11765 am__EXEEXT_FALSE='#' 11766else 11767 am__EXEEXT_TRUE='#' 11768 am__EXEEXT_FALSE= 11769fi 11770 11771if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11772 as_fn_error $? "conditional \"AMDEP\" was never defined. 11773Usually this means the macro was only invoked conditionally." "$LINENO" 5 11774fi 11775if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11776 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11777Usually this means the macro was only invoked conditionally." "$LINENO" 5 11778fi 11779 11780: "${CONFIG_STATUS=./config.status}" 11781ac_write_fail=0 11782ac_clean_files_save=$ac_clean_files 11783ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11785printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11786as_write_fail=0 11787cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11788#! $SHELL 11789# Generated by $as_me. 11790# Run this file to recreate the current configuration. 11791# Compiler output produced by configure, useful for debugging 11792# configure, is in config.log if it exists. 11793 11794debug=false 11795ac_cs_recheck=false 11796ac_cs_silent=false 11797 11798SHELL=\${CONFIG_SHELL-$SHELL} 11799export SHELL 11800_ASEOF 11801cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11802## -------------------- ## 11803## M4sh Initialization. ## 11804## -------------------- ## 11805 11806# Be more Bourne compatible 11807DUALCASE=1; export DUALCASE # for MKS sh 11808if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11809then : 11810 emulate sh 11811 NULLCMD=: 11812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11813 # is contrary to our usage. Disable this feature. 11814 alias -g '${1+"$@"}'='"$@"' 11815 setopt NO_GLOB_SUBST 11816else case e in #( 11817 e) case `(set -o) 2>/dev/null` in #( 11818 *posix*) : 11819 set -o posix ;; #( 11820 *) : 11821 ;; 11822esac ;; 11823esac 11824fi 11825 11826 11827 11828# Reset variables that may have inherited troublesome values from 11829# the environment. 11830 11831# IFS needs to be set, to space, tab, and newline, in precisely that order. 11832# (If _AS_PATH_WALK were called with IFS unset, it would have the 11833# side effect of setting IFS to empty, thus disabling word splitting.) 11834# Quoting is to prevent editors from complaining about space-tab. 11835as_nl=' 11836' 11837export as_nl 11838IFS=" "" $as_nl" 11839 11840PS1='$ ' 11841PS2='> ' 11842PS4='+ ' 11843 11844# Ensure predictable behavior from utilities with locale-dependent output. 11845LC_ALL=C 11846export LC_ALL 11847LANGUAGE=C 11848export LANGUAGE 11849 11850# We cannot yet rely on "unset" to work, but we need these variables 11851# to be unset--not just set to an empty or harmless value--now, to 11852# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11853# also avoids known problems related to "unset" and subshell syntax 11854# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11855for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11856do eval test \${$as_var+y} \ 11857 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11858done 11859 11860# Ensure that fds 0, 1, and 2 are open. 11861if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11862if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11863if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11864 11865# The user is always right. 11866if ${PATH_SEPARATOR+false} :; then 11867 PATH_SEPARATOR=: 11868 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11869 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11870 PATH_SEPARATOR=';' 11871 } 11872fi 11873 11874 11875# Find who we are. Look in the path if we contain no directory separator. 11876as_myself= 11877case $0 in #(( 11878 *[\\/]* ) as_myself=$0 ;; 11879 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11880for as_dir in $PATH 11881do 11882 IFS=$as_save_IFS 11883 case $as_dir in #((( 11884 '') as_dir=./ ;; 11885 */) ;; 11886 *) as_dir=$as_dir/ ;; 11887 esac 11888 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11889 done 11890IFS=$as_save_IFS 11891 11892 ;; 11893esac 11894# We did not find ourselves, most probably we were run as 'sh COMMAND' 11895# in which case we are not to be found in the path. 11896if test "x$as_myself" = x; then 11897 as_myself=$0 11898fi 11899if test ! -f "$as_myself"; then 11900 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11901 exit 1 11902fi 11903 11904 11905 11906# as_fn_error STATUS ERROR [LINENO LOG_FD] 11907# ---------------------------------------- 11908# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11909# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11910# script with STATUS, using 1 if that was 0. 11911as_fn_error () 11912{ 11913 as_status=$1; test $as_status -eq 0 && as_status=1 11914 if test "$4"; then 11915 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11917 fi 11918 printf "%s\n" "$as_me: error: $2" >&2 11919 as_fn_exit $as_status 11920} # as_fn_error 11921 11922 11923# as_fn_set_status STATUS 11924# ----------------------- 11925# Set $? to STATUS, without forking. 11926as_fn_set_status () 11927{ 11928 return $1 11929} # as_fn_set_status 11930 11931# as_fn_exit STATUS 11932# ----------------- 11933# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11934as_fn_exit () 11935{ 11936 set +e 11937 as_fn_set_status $1 11938 exit $1 11939} # as_fn_exit 11940 11941# as_fn_unset VAR 11942# --------------- 11943# Portably unset VAR. 11944as_fn_unset () 11945{ 11946 { eval $1=; unset $1;} 11947} 11948as_unset=as_fn_unset 11949 11950# as_fn_append VAR VALUE 11951# ---------------------- 11952# Append the text in VALUE to the end of the definition contained in VAR. Take 11953# advantage of any shell optimizations that allow amortized linear growth over 11954# repeated appends, instead of the typical quadratic growth present in naive 11955# implementations. 11956if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11957then : 11958 eval 'as_fn_append () 11959 { 11960 eval $1+=\$2 11961 }' 11962else case e in #( 11963 e) as_fn_append () 11964 { 11965 eval $1=\$$1\$2 11966 } ;; 11967esac 11968fi # as_fn_append 11969 11970# as_fn_arith ARG... 11971# ------------------ 11972# Perform arithmetic evaluation on the ARGs, and store the result in the 11973# global $as_val. Take advantage of shells that can avoid forks. The arguments 11974# must be portable across $(()) and expr. 11975if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11976then : 11977 eval 'as_fn_arith () 11978 { 11979 as_val=$(( $* )) 11980 }' 11981else case e in #( 11982 e) as_fn_arith () 11983 { 11984 as_val=`expr "$@" || test $? -eq 1` 11985 } ;; 11986esac 11987fi # as_fn_arith 11988 11989 11990if expr a : '\(a\)' >/dev/null 2>&1 && 11991 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11992 as_expr=expr 11993else 11994 as_expr=false 11995fi 11996 11997if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11998 as_basename=basename 11999else 12000 as_basename=false 12001fi 12002 12003if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12004 as_dirname=dirname 12005else 12006 as_dirname=false 12007fi 12008 12009as_me=`$as_basename -- "$0" || 12010$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12011 X"$0" : 'X\(//\)$' \| \ 12012 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12013printf "%s\n" X/"$0" | 12014 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12015 s//\1/ 12016 q 12017 } 12018 /^X\/\(\/\/\)$/{ 12019 s//\1/ 12020 q 12021 } 12022 /^X\/\(\/\).*/{ 12023 s//\1/ 12024 q 12025 } 12026 s/.*/./; q'` 12027 12028# Avoid depending upon Character Ranges. 12029as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12030as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12031as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12032as_cr_digits='0123456789' 12033as_cr_alnum=$as_cr_Letters$as_cr_digits 12034 12035 12036# Determine whether it's possible to make 'echo' print without a newline. 12037# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12038# for compatibility with existing Makefiles. 12039ECHO_C= ECHO_N= ECHO_T= 12040case `echo -n x` in #((((( 12041-n*) 12042 case `echo 'xy\c'` in 12043 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12044 xy) ECHO_C='\c';; 12045 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12046 ECHO_T=' ';; 12047 esac;; 12048*) 12049 ECHO_N='-n';; 12050esac 12051 12052# For backward compatibility with old third-party macros, we provide 12053# the shell variables $as_echo and $as_echo_n. New code should use 12054# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12055as_echo='printf %s\n' 12056as_echo_n='printf %s' 12057 12058rm -f conf$$ conf$$.exe conf$$.file 12059if test -d conf$$.dir; then 12060 rm -f conf$$.dir/conf$$.file 12061else 12062 rm -f conf$$.dir 12063 mkdir conf$$.dir 2>/dev/null 12064fi 12065if (echo >conf$$.file) 2>/dev/null; then 12066 if ln -s conf$$.file conf$$ 2>/dev/null; then 12067 as_ln_s='ln -s' 12068 # ... but there are two gotchas: 12069 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12070 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12071 # In both cases, we have to default to 'cp -pR'. 12072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12073 as_ln_s='cp -pR' 12074 elif ln conf$$.file conf$$ 2>/dev/null; then 12075 as_ln_s=ln 12076 else 12077 as_ln_s='cp -pR' 12078 fi 12079else 12080 as_ln_s='cp -pR' 12081fi 12082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12083rmdir conf$$.dir 2>/dev/null 12084 12085 12086# as_fn_mkdir_p 12087# ------------- 12088# Create "$as_dir" as a directory, including parents if necessary. 12089as_fn_mkdir_p () 12090{ 12091 12092 case $as_dir in #( 12093 -*) as_dir=./$as_dir;; 12094 esac 12095 test -d "$as_dir" || eval $as_mkdir_p || { 12096 as_dirs= 12097 while :; do 12098 case $as_dir in #( 12099 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12100 *) as_qdir=$as_dir;; 12101 esac 12102 as_dirs="'$as_qdir' $as_dirs" 12103 as_dir=`$as_dirname -- "$as_dir" || 12104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12105 X"$as_dir" : 'X\(//\)[^/]' \| \ 12106 X"$as_dir" : 'X\(//\)$' \| \ 12107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12108printf "%s\n" X"$as_dir" | 12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12110 s//\1/ 12111 q 12112 } 12113 /^X\(\/\/\)[^/].*/{ 12114 s//\1/ 12115 q 12116 } 12117 /^X\(\/\/\)$/{ 12118 s//\1/ 12119 q 12120 } 12121 /^X\(\/\).*/{ 12122 s//\1/ 12123 q 12124 } 12125 s/.*/./; q'` 12126 test -d "$as_dir" && break 12127 done 12128 test -z "$as_dirs" || eval "mkdir $as_dirs" 12129 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12130 12131 12132} # as_fn_mkdir_p 12133if mkdir -p . 2>/dev/null; then 12134 as_mkdir_p='mkdir -p "$as_dir"' 12135else 12136 test -d ./-p && rmdir ./-p 12137 as_mkdir_p=false 12138fi 12139 12140 12141# as_fn_executable_p FILE 12142# ----------------------- 12143# Test if FILE is an executable regular file. 12144as_fn_executable_p () 12145{ 12146 test -f "$1" && test -x "$1" 12147} # as_fn_executable_p 12148as_test_x='test -x' 12149as_executable_p=as_fn_executable_p 12150 12151# Sed expression to map a string onto a valid CPP name. 12152as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12153as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12154 12155# Sed expression to map a string onto a valid variable name. 12156as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12157as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12158 12159 12160exec 6>&1 12161## ----------------------------------- ## 12162## Main body of $CONFIG_STATUS script. ## 12163## ----------------------------------- ## 12164_ASEOF 12165test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12166 12167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12168# Save the log message, to keep $0 and so on meaningful, and to 12169# report actual input values of CONFIG_FILES etc. instead of their 12170# values after options handling. 12171ac_log=" 12172This file was extended by xkbevd $as_me 1.1.6, which was 12173generated by GNU Autoconf 2.72. Invocation command line was 12174 12175 CONFIG_FILES = $CONFIG_FILES 12176 CONFIG_HEADERS = $CONFIG_HEADERS 12177 CONFIG_LINKS = $CONFIG_LINKS 12178 CONFIG_COMMANDS = $CONFIG_COMMANDS 12179 $ $0 $@ 12180 12181on `(hostname || uname -n) 2>/dev/null | sed 1q` 12182" 12183 12184_ACEOF 12185 12186case $ac_config_files in *" 12187"*) set x $ac_config_files; shift; ac_config_files=$*;; 12188esac 12189 12190case $ac_config_headers in *" 12191"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12192esac 12193 12194 12195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12196# Files that config.status was made for. 12197config_files="$ac_config_files" 12198config_headers="$ac_config_headers" 12199config_commands="$ac_config_commands" 12200 12201_ACEOF 12202 12203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12204ac_cs_usage="\ 12205'$as_me' instantiates files and other configuration actions 12206from templates according to the current configuration. Unless the files 12207and actions are specified as TAGs, all are instantiated by default. 12208 12209Usage: $0 [OPTION]... [TAG]... 12210 12211 -h, --help print this help, then exit 12212 -V, --version print version number and configuration settings, then exit 12213 --config print configuration, then exit 12214 -q, --quiet, --silent 12215 do not print progress messages 12216 -d, --debug don't remove temporary files 12217 --recheck update $as_me by reconfiguring in the same conditions 12218 --file=FILE[:TEMPLATE] 12219 instantiate the configuration file FILE 12220 --header=FILE[:TEMPLATE] 12221 instantiate the configuration header FILE 12222 12223Configuration files: 12224$config_files 12225 12226Configuration headers: 12227$config_headers 12228 12229Configuration commands: 12230$config_commands 12231 12232Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>." 12233 12234_ACEOF 12235ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12236ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12238ac_cs_config='$ac_cs_config_escaped' 12239ac_cs_version="\\ 12240xkbevd config.status 1.1.6 12241configured by $0, generated by GNU Autoconf 2.72, 12242 with options \\"\$ac_cs_config\\" 12243 12244Copyright (C) 2023 Free Software Foundation, Inc. 12245This config.status script is free software; the Free Software Foundation 12246gives unlimited permission to copy, distribute and modify it." 12247 12248ac_pwd='$ac_pwd' 12249srcdir='$srcdir' 12250INSTALL='$INSTALL' 12251MKDIR_P='$MKDIR_P' 12252AWK='$AWK' 12253test -n "\$AWK" || AWK=awk 12254_ACEOF 12255 12256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12257# The default lists apply if the user does not specify any file. 12258ac_need_defaults=: 12259while test $# != 0 12260do 12261 case $1 in 12262 --*=?*) 12263 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12264 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12265 ac_shift=: 12266 ;; 12267 --*=) 12268 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12269 ac_optarg= 12270 ac_shift=: 12271 ;; 12272 *) 12273 ac_option=$1 12274 ac_optarg=$2 12275 ac_shift=shift 12276 ;; 12277 esac 12278 12279 case $ac_option in 12280 # Handling of the options. 12281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12282 ac_cs_recheck=: ;; 12283 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12284 printf "%s\n" "$ac_cs_version"; exit ;; 12285 --config | --confi | --conf | --con | --co | --c ) 12286 printf "%s\n" "$ac_cs_config"; exit ;; 12287 --debug | --debu | --deb | --de | --d | -d ) 12288 debug=: ;; 12289 --file | --fil | --fi | --f ) 12290 $ac_shift 12291 case $ac_optarg in 12292 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12293 '') as_fn_error $? "missing file argument" ;; 12294 esac 12295 as_fn_append CONFIG_FILES " '$ac_optarg'" 12296 ac_need_defaults=false;; 12297 --header | --heade | --head | --hea ) 12298 $ac_shift 12299 case $ac_optarg in 12300 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12301 esac 12302 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12303 ac_need_defaults=false;; 12304 --he | --h) 12305 # Conflict between --help and --header 12306 as_fn_error $? "ambiguous option: '$1' 12307Try '$0 --help' for more information.";; 12308 --help | --hel | -h ) 12309 printf "%s\n" "$ac_cs_usage"; exit ;; 12310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12311 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12312 ac_cs_silent=: ;; 12313 12314 # This is an error. 12315 -*) as_fn_error $? "unrecognized option: '$1' 12316Try '$0 --help' for more information." ;; 12317 12318 *) as_fn_append ac_config_targets " $1" 12319 ac_need_defaults=false ;; 12320 12321 esac 12322 shift 12323done 12324 12325ac_configure_extra_args= 12326 12327if $ac_cs_silent; then 12328 exec 6>/dev/null 12329 ac_configure_extra_args="$ac_configure_extra_args --silent" 12330fi 12331 12332_ACEOF 12333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12334if \$ac_cs_recheck; then 12335 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12336 shift 12337 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12338 CONFIG_SHELL='$SHELL' 12339 export CONFIG_SHELL 12340 exec "\$@" 12341fi 12342 12343_ACEOF 12344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12345exec 5>>config.log 12346{ 12347 echo 12348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12349## Running $as_me. ## 12350_ASBOX 12351 printf "%s\n" "$ac_log" 12352} >&5 12353 12354_ACEOF 12355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12356# 12357# INIT-COMMANDS 12358# 12359AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12360 12361_ACEOF 12362 12363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12364 12365# Handling of arguments. 12366for ac_config_target in $ac_config_targets 12367do 12368 case $ac_config_target in 12369 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12370 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12371 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12372 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12373 12374 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12375 esac 12376done 12377 12378 12379# If the user did not use the arguments to specify the items to instantiate, 12380# then the envvar interface is used. Set only those that are not. 12381# We use the long form for the default assignment because of an extremely 12382# bizarre bug on SunOS 4.1.3. 12383if $ac_need_defaults; then 12384 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12385 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12386 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12387fi 12388 12389# Have a temporary directory for convenience. Make it in the build tree 12390# simply because there is no reason against having it here, and in addition, 12391# creating and moving files from /tmp can sometimes cause problems. 12392# Hook for its removal unless debugging. 12393# Note that there is a small window in which the directory will not be cleaned: 12394# after its creation but before its name has been assigned to '$tmp'. 12395$debug || 12396{ 12397 tmp= ac_tmp= 12398 trap 'exit_status=$? 12399 : "${ac_tmp:=$tmp}" 12400 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12401' 0 12402 trap 'as_fn_exit 1' 1 2 13 15 12403} 12404# Create a (secure) tmp directory for tmp files. 12405 12406{ 12407 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12408 test -d "$tmp" 12409} || 12410{ 12411 tmp=./conf$$-$RANDOM 12412 (umask 077 && mkdir "$tmp") 12413} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12414ac_tmp=$tmp 12415 12416# Set up the scripts for CONFIG_FILES section. 12417# No need to generate them if there are no CONFIG_FILES. 12418# This happens for instance with './config.status config.h'. 12419if test -n "$CONFIG_FILES"; then 12420 12421 12422ac_cr=`echo X | tr X '\015'` 12423# On cygwin, bash can eat \r inside `` if the user requested igncr. 12424# But we know of no other shell where ac_cr would be empty at this 12425# point, so we can use a bashism as a fallback. 12426if test "x$ac_cr" = x; then 12427 eval ac_cr=\$\'\\r\' 12428fi 12429ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12430if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12431 ac_cs_awk_cr='\\r' 12432else 12433 ac_cs_awk_cr=$ac_cr 12434fi 12435 12436echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12437_ACEOF 12438 12439 12440{ 12441 echo "cat >conf$$subs.awk <<_ACEOF" && 12442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12443 echo "_ACEOF" 12444} >conf$$subs.sh || 12445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12446ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12447ac_delim='%!_!# ' 12448for ac_last_try in false false false false false :; do 12449 . ./conf$$subs.sh || 12450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12451 12452 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12453 if test $ac_delim_n = $ac_delim_num; then 12454 break 12455 elif $ac_last_try; then 12456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12457 else 12458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12459 fi 12460done 12461rm -f conf$$subs.sh 12462 12463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12464cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12465_ACEOF 12466sed -n ' 12467h 12468s/^/S["/; s/!.*/"]=/ 12469p 12470g 12471s/^[^!]*!// 12472:repl 12473t repl 12474s/'"$ac_delim"'$// 12475t delim 12476:nl 12477h 12478s/\(.\{148\}\)..*/\1/ 12479t more1 12480s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12481p 12482n 12483b repl 12484:more1 12485s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12486p 12487g 12488s/.\{148\}// 12489t nl 12490:delim 12491h 12492s/\(.\{148\}\)..*/\1/ 12493t more2 12494s/["\\]/\\&/g; s/^/"/; s/$/"/ 12495p 12496b 12497:more2 12498s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12499p 12500g 12501s/.\{148\}// 12502t delim 12503' <conf$$subs.awk | sed ' 12504/^[^""]/{ 12505 N 12506 s/\n// 12507} 12508' >>$CONFIG_STATUS || ac_write_fail=1 12509rm -f conf$$subs.awk 12510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12511_ACAWK 12512cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12513 for (key in S) S_is_set[key] = 1 12514 FS = "" 12515 12516} 12517{ 12518 line = $ 0 12519 nfields = split(line, field, "@") 12520 substed = 0 12521 len = length(field[1]) 12522 for (i = 2; i < nfields; i++) { 12523 key = field[i] 12524 keylen = length(key) 12525 if (S_is_set[key]) { 12526 value = S[key] 12527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12528 len += length(value) + length(field[++i]) 12529 substed = 1 12530 } else 12531 len += 1 + keylen 12532 } 12533 12534 print line 12535} 12536 12537_ACAWK 12538_ACEOF 12539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12540if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12541 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12542else 12543 cat 12544fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12545 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12546_ACEOF 12547 12548# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12549# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12550# trailing colons and then remove the whole line if VPATH becomes empty 12551# (actually we leave an empty line to preserve line numbers). 12552if test "x$srcdir" = x.; then 12553 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12554h 12555s/// 12556s/^/:/ 12557s/[ ]*$/:/ 12558s/:\$(srcdir):/:/g 12559s/:\${srcdir}:/:/g 12560s/:@srcdir@:/:/g 12561s/^:*// 12562s/:*$// 12563x 12564s/\(=[ ]*\).*/\1/ 12565G 12566s/\n// 12567s/^[^=]*=[ ]*$// 12568}' 12569fi 12570 12571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12572fi # test -n "$CONFIG_FILES" 12573 12574# Set up the scripts for CONFIG_HEADERS section. 12575# No need to generate them if there are no CONFIG_HEADERS. 12576# This happens for instance with './config.status Makefile'. 12577if test -n "$CONFIG_HEADERS"; then 12578cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12579BEGIN { 12580_ACEOF 12581 12582# Transform confdefs.h into an awk script 'defines.awk', embedded as 12583# here-document in config.status, that substitutes the proper values into 12584# config.h.in to produce config.h. 12585 12586# Create a delimiter string that does not exist in confdefs.h, to ease 12587# handling of long lines. 12588ac_delim='%!_!# ' 12589for ac_last_try in false false :; do 12590 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12591 if test -z "$ac_tt"; then 12592 break 12593 elif $ac_last_try; then 12594 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12595 else 12596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12597 fi 12598done 12599 12600# For the awk script, D is an array of macro values keyed by name, 12601# likewise P contains macro parameters if any. Preserve backslash 12602# newline sequences. 12603 12604ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12605sed -n ' 12606s/.\{148\}/&'"$ac_delim"'/g 12607t rset 12608:rset 12609s/^[ ]*#[ ]*define[ ][ ]*/ / 12610t def 12611d 12612:def 12613s/\\$// 12614t bsnl 12615s/["\\]/\\&/g 12616s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12617D["\1"]=" \3"/p 12618s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12619d 12620:bsnl 12621s/["\\]/\\&/g 12622s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12623D["\1"]=" \3\\\\\\n"\\/p 12624t cont 12625s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12626t cont 12627d 12628:cont 12629n 12630s/.\{148\}/&'"$ac_delim"'/g 12631t clear 12632:clear 12633s/\\$// 12634t bsnlc 12635s/["\\]/\\&/g; s/^/"/; s/$/"/p 12636d 12637:bsnlc 12638s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12639b cont 12640' <confdefs.h | sed ' 12641s/'"$ac_delim"'/"\\\ 12642"/g' >>$CONFIG_STATUS || ac_write_fail=1 12643 12644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12645 for (key in D) D_is_set[key] = 1 12646 FS = "" 12647} 12648/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12649 line = \$ 0 12650 split(line, arg, " ") 12651 if (arg[1] == "#") { 12652 defundef = arg[2] 12653 mac1 = arg[3] 12654 } else { 12655 defundef = substr(arg[1], 2) 12656 mac1 = arg[2] 12657 } 12658 split(mac1, mac2, "(") #) 12659 macro = mac2[1] 12660 prefix = substr(line, 1, index(line, defundef) - 1) 12661 if (D_is_set[macro]) { 12662 # Preserve the white space surrounding the "#". 12663 print prefix "define", macro P[macro] D[macro] 12664 next 12665 } else { 12666 # Replace #undef with comments. This is necessary, for example, 12667 # in the case of _POSIX_SOURCE, which is predefined and required 12668 # on some systems where configure will not decide to define it. 12669 if (defundef == "undef") { 12670 print "/*", prefix defundef, macro, "*/" 12671 next 12672 } 12673 } 12674} 12675{ print } 12676_ACAWK 12677_ACEOF 12678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12679 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12680fi # test -n "$CONFIG_HEADERS" 12681 12682 12683eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12684shift 12685for ac_tag 12686do 12687 case $ac_tag in 12688 :[FHLC]) ac_mode=$ac_tag; continue;; 12689 esac 12690 case $ac_mode$ac_tag in 12691 :[FHL]*:*);; 12692 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12693 :[FH]-) ac_tag=-:-;; 12694 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12695 esac 12696 ac_save_IFS=$IFS 12697 IFS=: 12698 set x $ac_tag 12699 IFS=$ac_save_IFS 12700 shift 12701 ac_file=$1 12702 shift 12703 12704 case $ac_mode in 12705 :L) ac_source=$1;; 12706 :[FH]) 12707 ac_file_inputs= 12708 for ac_f 12709 do 12710 case $ac_f in 12711 -) ac_f="$ac_tmp/stdin";; 12712 *) # Look for the file first in the build tree, then in the source tree 12713 # (if the path is not absolute). The absolute path cannot be DOS-style, 12714 # because $ac_f cannot contain ':'. 12715 test -f "$ac_f" || 12716 case $ac_f in 12717 [\\/$]*) false;; 12718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12719 esac || 12720 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12721 esac 12722 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12723 as_fn_append ac_file_inputs " '$ac_f'" 12724 done 12725 12726 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12727 # use $as_me), people would be surprised to read: 12728 # /* config.h. Generated by config.status. */ 12729 configure_input='Generated from '` 12730 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12731 `' by configure.' 12732 if test x"$ac_file" != x-; then 12733 configure_input="$ac_file. $configure_input" 12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12735printf "%s\n" "$as_me: creating $ac_file" >&6;} 12736 fi 12737 # Neutralize special characters interpreted by sed in replacement strings. 12738 case $configure_input in #( 12739 *\&* | *\|* | *\\* ) 12740 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12741 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12742 *) ac_sed_conf_input=$configure_input;; 12743 esac 12744 12745 case $ac_tag in 12746 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12748 esac 12749 ;; 12750 esac 12751 12752 ac_dir=`$as_dirname -- "$ac_file" || 12753$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12754 X"$ac_file" : 'X\(//\)[^/]' \| \ 12755 X"$ac_file" : 'X\(//\)$' \| \ 12756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12757printf "%s\n" X"$ac_file" | 12758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12759 s//\1/ 12760 q 12761 } 12762 /^X\(\/\/\)[^/].*/{ 12763 s//\1/ 12764 q 12765 } 12766 /^X\(\/\/\)$/{ 12767 s//\1/ 12768 q 12769 } 12770 /^X\(\/\).*/{ 12771 s//\1/ 12772 q 12773 } 12774 s/.*/./; q'` 12775 as_dir="$ac_dir"; as_fn_mkdir_p 12776 ac_builddir=. 12777 12778case "$ac_dir" in 12779.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12780*) 12781 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12782 # A ".." for each directory in $ac_dir_suffix. 12783 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12784 case $ac_top_builddir_sub in 12785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12787 esac ;; 12788esac 12789ac_abs_top_builddir=$ac_pwd 12790ac_abs_builddir=$ac_pwd$ac_dir_suffix 12791# for backward compatibility: 12792ac_top_builddir=$ac_top_build_prefix 12793 12794case $srcdir in 12795 .) # We are building in place. 12796 ac_srcdir=. 12797 ac_top_srcdir=$ac_top_builddir_sub 12798 ac_abs_top_srcdir=$ac_pwd ;; 12799 [\\/]* | ?:[\\/]* ) # Absolute name. 12800 ac_srcdir=$srcdir$ac_dir_suffix; 12801 ac_top_srcdir=$srcdir 12802 ac_abs_top_srcdir=$srcdir ;; 12803 *) # Relative name. 12804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12805 ac_top_srcdir=$ac_top_build_prefix$srcdir 12806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12807esac 12808ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12809 12810 12811 case $ac_mode in 12812 :F) 12813 # 12814 # CONFIG_FILE 12815 # 12816 12817 case $INSTALL in 12818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12820 esac 12821 ac_MKDIR_P=$MKDIR_P 12822 case $MKDIR_P in 12823 [\\/$]* | ?:[\\/]* ) ;; 12824 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12825 esac 12826_ACEOF 12827 12828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12829# If the template does not know about datarootdir, expand it. 12830# FIXME: This hack should be removed a few years after 2.60. 12831ac_datarootdir_hack=; ac_datarootdir_seen= 12832ac_sed_dataroot=' 12833/datarootdir/ { 12834 p 12835 q 12836} 12837/@datadir@/p 12838/@docdir@/p 12839/@infodir@/p 12840/@localedir@/p 12841/@mandir@/p' 12842case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12843*datarootdir*) ac_datarootdir_seen=yes;; 12844*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12846printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12847_ACEOF 12848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12849 ac_datarootdir_hack=' 12850 s&@datadir@&$datadir&g 12851 s&@docdir@&$docdir&g 12852 s&@infodir@&$infodir&g 12853 s&@localedir@&$localedir&g 12854 s&@mandir@&$mandir&g 12855 s&\\\${datarootdir}&$datarootdir&g' ;; 12856esac 12857_ACEOF 12858 12859# Neutralize VPATH when '$srcdir' = '.'. 12860# Shell code in configure.ac might set extrasub. 12861# FIXME: do we really want to maintain this feature? 12862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12863ac_sed_extra="$ac_vpsub 12864$extrasub 12865_ACEOF 12866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12867:t 12868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12869s|@configure_input@|$ac_sed_conf_input|;t t 12870s&@top_builddir@&$ac_top_builddir_sub&;t t 12871s&@top_build_prefix@&$ac_top_build_prefix&;t t 12872s&@srcdir@&$ac_srcdir&;t t 12873s&@abs_srcdir@&$ac_abs_srcdir&;t t 12874s&@top_srcdir@&$ac_top_srcdir&;t t 12875s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12876s&@builddir@&$ac_builddir&;t t 12877s&@abs_builddir@&$ac_abs_builddir&;t t 12878s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12879s&@INSTALL@&$ac_INSTALL&;t t 12880s&@MKDIR_P@&$ac_MKDIR_P&;t t 12881$ac_datarootdir_hack 12882" 12883eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12884 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12885 12886test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12887 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12889 "$ac_tmp/out"`; test -z "$ac_out"; } && 12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12891which seems to be undefined. Please make sure it is defined" >&5 12892printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12893which seems to be undefined. Please make sure it is defined" >&2;} 12894 12895 rm -f "$ac_tmp/stdin" 12896 case $ac_file in 12897 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12898 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12899 esac \ 12900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12901 ;; 12902 :H) 12903 # 12904 # CONFIG_HEADER 12905 # 12906 if test x"$ac_file" != x-; then 12907 { 12908 printf "%s\n" "/* $configure_input */" >&1 \ 12909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12910 } >"$ac_tmp/config.h" \ 12911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12912 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12914printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12915 else 12916 rm -f "$ac_file" 12917 mv "$ac_tmp/config.h" "$ac_file" \ 12918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12919 fi 12920 else 12921 printf "%s\n" "/* $configure_input */" >&1 \ 12922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12923 || as_fn_error $? "could not create -" "$LINENO" 5 12924 fi 12925# Compute "$ac_file"'s index in $config_headers. 12926_am_arg="$ac_file" 12927_am_stamp_count=1 12928for _am_header in $config_headers :; do 12929 case $_am_header in 12930 $_am_arg | $_am_arg:* ) 12931 break ;; 12932 * ) 12933 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12934 esac 12935done 12936echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12937$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12938 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12939 X"$_am_arg" : 'X\(//\)$' \| \ 12940 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12941printf "%s\n" X"$_am_arg" | 12942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12943 s//\1/ 12944 q 12945 } 12946 /^X\(\/\/\)[^/].*/{ 12947 s//\1/ 12948 q 12949 } 12950 /^X\(\/\/\)$/{ 12951 s//\1/ 12952 q 12953 } 12954 /^X\(\/\).*/{ 12955 s//\1/ 12956 q 12957 } 12958 s/.*/./; q'`/stamp-h$_am_stamp_count 12959 ;; 12960 12961 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12962printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12963 ;; 12964 esac 12965 12966 12967 case $ac_file$ac_mode in 12968 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12969 # Older Autoconf quotes --file arguments for eval, but not when files 12970 # are listed without --file. Let's play safe and only enable the eval 12971 # if we detect the quoting. 12972 # TODO: see whether this extra hack can be removed once we start 12973 # requiring Autoconf 2.70 or later. 12974 case $CONFIG_FILES in #( 12975 *\'*) : 12976 eval set x "$CONFIG_FILES" ;; #( 12977 *) : 12978 set x $CONFIG_FILES ;; #( 12979 *) : 12980 ;; 12981esac 12982 shift 12983 # Used to flag and report bootstrapping failures. 12984 am_rc=0 12985 for am_mf 12986 do 12987 # Strip MF so we end up with the name of the file. 12988 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12989 # Check whether this is an Automake generated Makefile which includes 12990 # dependency-tracking related rules and includes. 12991 # Grep'ing the whole file directly is not great: AIX grep has a line 12992 # limit of 2048, but all sed's we know have understand at least 4000. 12993 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12994 || continue 12995 am_dirpart=`$as_dirname -- "$am_mf" || 12996$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12997 X"$am_mf" : 'X\(//\)[^/]' \| \ 12998 X"$am_mf" : 'X\(//\)$' \| \ 12999 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13000printf "%s\n" X"$am_mf" | 13001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13002 s//\1/ 13003 q 13004 } 13005 /^X\(\/\/\)[^/].*/{ 13006 s//\1/ 13007 q 13008 } 13009 /^X\(\/\/\)$/{ 13010 s//\1/ 13011 q 13012 } 13013 /^X\(\/\).*/{ 13014 s//\1/ 13015 q 13016 } 13017 s/.*/./; q'` 13018 am_filepart=`$as_basename -- "$am_mf" || 13019$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13020 X"$am_mf" : 'X\(//\)$' \| \ 13021 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13022printf "%s\n" X/"$am_mf" | 13023 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13024 s//\1/ 13025 q 13026 } 13027 /^X\/\(\/\/\)$/{ 13028 s//\1/ 13029 q 13030 } 13031 /^X\/\(\/\).*/{ 13032 s//\1/ 13033 q 13034 } 13035 s/.*/./; q'` 13036 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13037 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13038 | $MAKE -f - am--depfiles" >&5 13039 (cd "$am_dirpart" \ 13040 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13041 | $MAKE -f - am--depfiles) >&5 2>&5 13042 ac_status=$? 13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13044 (exit $ac_status); } || am_rc=$? 13045 done 13046 if test $am_rc -ne 0; then 13047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13048printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13049as_fn_error $? "Something went wrong bootstrapping makefile fragments 13050 for automatic dependency tracking. If GNU make was not used, consider 13051 re-running the configure script with MAKE=\"gmake\" (or whatever is 13052 necessary). You can also try re-running configure with the 13053 '--disable-dependency-tracking' option to at least be able to build 13054 the package (albeit without support for automatic dependency tracking). 13055See 'config.log' for more details" "$LINENO" 5; } 13056 fi 13057 { am_dirpart=; unset am_dirpart;} 13058 { am_filepart=; unset am_filepart;} 13059 { am_mf=; unset am_mf;} 13060 { am_rc=; unset am_rc;} 13061 rm -f conftest-deps.mk 13062} 13063 ;; 13064 13065 esac 13066done # for ac_tag 13067 13068 13069as_fn_exit 0 13070_ACEOF 13071ac_clean_files=$ac_clean_files_save 13072 13073test $ac_write_fail = 0 || 13074 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13075 13076 13077# configure is writing to config.log, and then calls config.status. 13078# config.status does its own redirection, appending to config.log. 13079# Unfortunately, on DOS this fails, as config.log is still kept open 13080# by configure, so config.status won't be able to write to it; its 13081# output is simply discarded. So we exec the FD to /dev/null, 13082# effectively closing config.log, so it can be properly (re)opened and 13083# appended to by config.status. When coming back to configure, we 13084# need to make the FD available again. 13085if test "$no_create" != yes; then 13086 ac_cs_success=: 13087 ac_config_status_args= 13088 test "$silent" = yes && 13089 ac_config_status_args="$ac_config_status_args --quiet" 13090 exec 5>/dev/null 13091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13092 exec 5>>config.log 13093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13094 # would make configure fail if this is the last instruction. 13095 $ac_cs_success || as_fn_exit 1 13096fi 13097if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13099printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13100fi 13101 13102 13103