configure revision 83f4f7f0
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xload 1.2.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xload/-/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/xload/-/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='xload' 607PACKAGE_TARNAME='xload' 608PACKAGE_VERSION='1.2.0' 609PACKAGE_STRING='xload 1.2.0' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xload/-/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= 646enable_year2038=no 647ac_subst_vars='am__EXEEXT_FALSE 648am__EXEEXT_TRUE 649LTLIBOBJS 650LIBOBJS 651appdefaultdir 652APPDEFS_LIBS 653APPDEFS_CFLAGS 654XLOAD_LIBS 655XLOAD_CFLAGS 656USE_GETTEXT_FALSE 657USE_GETTEXT_TRUE 658LOCALEDIR 659MAN_SUBSTS 660XORG_MAN_PAGE 661ADMIN_MAN_DIR 662DRIVER_MAN_DIR 663MISC_MAN_DIR 664FILE_MAN_DIR 665LIB_MAN_DIR 666APP_MAN_DIR 667ADMIN_MAN_SUFFIX 668DRIVER_MAN_SUFFIX 669MISC_MAN_SUFFIX 670FILE_MAN_SUFFIX 671LIB_MAN_SUFFIX 672APP_MAN_SUFFIX 673SED 674host_os 675host_vendor 676host_cpu 677host 678build_os 679build_vendor 680build_cpu 681build 682INSTALL_CMD 683PKG_CONFIG_LIBDIR 684PKG_CONFIG_PATH 685PKG_CONFIG 686CHANGELOG_CMD 687STRICT_CFLAGS 688CWARNFLAGS 689BASE_CFLAGS 690AM_BACKSLASH 691AM_DEFAULT_VERBOSITY 692AM_DEFAULT_V 693AM_V 694CSCOPE 695ETAGS 696CTAGS 697am__fastdepCC_FALSE 698am__fastdepCC_TRUE 699CCDEPMODE 700am__nodep 701AMDEPBACKSLASH 702AMDEP_FALSE 703AMDEP_TRUE 704am__include 705DEPDIR 706am__untar 707am__tar 708AMTAR 709am__leading_dot 710SET_MAKE 711AWK 712mkdir_p 713MKDIR_P 714INSTALL_STRIP_PROGRAM 715STRIP 716install_sh 717MAKEINFO 718AUTOHEADER 719AUTOMAKE 720AUTOCONF 721ACLOCAL 722VERSION 723PACKAGE 724CYGPATH_W 725am__isrc 726INSTALL_DATA 727INSTALL_SCRIPT 728INSTALL_PROGRAM 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755runstatedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL 775am__quote' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_dependency_tracking 780enable_silent_rules 781enable_selective_werror 782enable_strict_compilation 783enable_largefile 784with_localedir 785with_appdefaultdir 786enable_year2038 787' 788 ac_precious_vars='build_alias 789host_alias 790target_alias 791CC 792CFLAGS 793LDFLAGS 794LIBS 795CPPFLAGS 796PKG_CONFIG 797PKG_CONFIG_PATH 798PKG_CONFIG_LIBDIR 799XLOAD_CFLAGS 800XLOAD_LIBS 801APPDEFS_CFLAGS 802APPDEFS_LIBS' 803 804 805# Initialize some variables set by options. 806ac_init_help= 807ac_init_version=false 808ac_unrecognized_opts= 809ac_unrecognized_sep= 810# The variables have the same names as the options, with 811# dashes changed to underlines. 812cache_file=/dev/null 813exec_prefix=NONE 814no_create= 815no_recursion= 816prefix=NONE 817program_prefix=NONE 818program_suffix=NONE 819program_transform_name=s,x,x, 820silent= 821site= 822srcdir= 823verbose= 824x_includes=NONE 825x_libraries=NONE 826 827# Installation directory options. 828# These are left unexpanded so users can "make install exec_prefix=/foo" 829# and all the variables that are supposed to be based on exec_prefix 830# by default will actually change. 831# Use braces instead of parens because sh, perl, etc. also accept them. 832# (The list follows the same order as the GNU Coding Standards.) 833bindir='${exec_prefix}/bin' 834sbindir='${exec_prefix}/sbin' 835libexecdir='${exec_prefix}/libexec' 836datarootdir='${prefix}/share' 837datadir='${datarootdir}' 838sysconfdir='${prefix}/etc' 839sharedstatedir='${prefix}/com' 840localstatedir='${prefix}/var' 841runstatedir='${localstatedir}/run' 842includedir='${prefix}/include' 843oldincludedir='/usr/include' 844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 845infodir='${datarootdir}/info' 846htmldir='${docdir}' 847dvidir='${docdir}' 848pdfdir='${docdir}' 849psdir='${docdir}' 850libdir='${exec_prefix}/lib' 851localedir='${datarootdir}/locale' 852mandir='${datarootdir}/man' 853 854ac_prev= 855ac_dashdash= 856for ac_option 857do 858 # If the previous option needs an argument, assign it. 859 if test -n "$ac_prev"; then 860 eval $ac_prev=\$ac_option 861 ac_prev= 862 continue 863 fi 864 865 case $ac_option in 866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 867 *=) ac_optarg= ;; 868 *) ac_optarg=yes ;; 869 esac 870 871 case $ac_dashdash$ac_option in 872 --) 873 ac_dashdash=yes ;; 874 875 -bindir | --bindir | --bindi | --bind | --bin | --bi) 876 ac_prev=bindir ;; 877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 878 bindir=$ac_optarg ;; 879 880 -build | --build | --buil | --bui | --bu) 881 ac_prev=build_alias ;; 882 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 883 build_alias=$ac_optarg ;; 884 885 -cache-file | --cache-file | --cache-fil | --cache-fi \ 886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 887 ac_prev=cache_file ;; 888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 890 cache_file=$ac_optarg ;; 891 892 --config-cache | -C) 893 cache_file=config.cache ;; 894 895 -datadir | --datadir | --datadi | --datad) 896 ac_prev=datadir ;; 897 -datadir=* | --datadir=* | --datadi=* | --datad=*) 898 datadir=$ac_optarg ;; 899 900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 901 | --dataroo | --dataro | --datar) 902 ac_prev=datarootdir ;; 903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 905 datarootdir=$ac_optarg ;; 906 907 -disable-* | --disable-*) 908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 909 # Reject names that are not valid shell variable names. 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 911 as_fn_error $? "invalid feature name: '$ac_useropt'" 912 ac_useropt_orig=$ac_useropt 913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 914 case $ac_user_opts in 915 *" 916"enable_$ac_useropt" 917"*) ;; 918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 919 ac_unrecognized_sep=', ';; 920 esac 921 eval enable_$ac_useropt=no ;; 922 923 -docdir | --docdir | --docdi | --doc | --do) 924 ac_prev=docdir ;; 925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 926 docdir=$ac_optarg ;; 927 928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 929 ac_prev=dvidir ;; 930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 931 dvidir=$ac_optarg ;; 932 933 -enable-* | --enable-*) 934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 935 # Reject names that are not valid shell variable names. 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 937 as_fn_error $? "invalid feature name: '$ac_useropt'" 938 ac_useropt_orig=$ac_useropt 939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 940 case $ac_user_opts in 941 *" 942"enable_$ac_useropt" 943"*) ;; 944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 945 ac_unrecognized_sep=', ';; 946 esac 947 eval enable_$ac_useropt=\$ac_optarg ;; 948 949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 951 | --exec | --exe | --ex) 952 ac_prev=exec_prefix ;; 953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 955 | --exec=* | --exe=* | --ex=*) 956 exec_prefix=$ac_optarg ;; 957 958 -gas | --gas | --ga | --g) 959 # Obsolete; use --with-gas. 960 with_gas=yes ;; 961 962 -help | --help | --hel | --he | -h) 963 ac_init_help=long ;; 964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 965 ac_init_help=recursive ;; 966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 967 ac_init_help=short ;; 968 969 -host | --host | --hos | --ho) 970 ac_prev=host_alias ;; 971 -host=* | --host=* | --hos=* | --ho=*) 972 host_alias=$ac_optarg ;; 973 974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 975 ac_prev=htmldir ;; 976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 977 | --ht=*) 978 htmldir=$ac_optarg ;; 979 980 -includedir | --includedir | --includedi | --included | --include \ 981 | --includ | --inclu | --incl | --inc) 982 ac_prev=includedir ;; 983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 984 | --includ=* | --inclu=* | --incl=* | --inc=*) 985 includedir=$ac_optarg ;; 986 987 -infodir | --infodir | --infodi | --infod | --info | --inf) 988 ac_prev=infodir ;; 989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 990 infodir=$ac_optarg ;; 991 992 -libdir | --libdir | --libdi | --libd) 993 ac_prev=libdir ;; 994 -libdir=* | --libdir=* | --libdi=* | --libd=*) 995 libdir=$ac_optarg ;; 996 997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 998 | --libexe | --libex | --libe) 999 ac_prev=libexecdir ;; 1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1001 | --libexe=* | --libex=* | --libe=*) 1002 libexecdir=$ac_optarg ;; 1003 1004 -localedir | --localedir | --localedi | --localed | --locale) 1005 ac_prev=localedir ;; 1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1007 localedir=$ac_optarg ;; 1008 1009 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1010 | --localstate | --localstat | --localsta | --localst | --locals) 1011 ac_prev=localstatedir ;; 1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1014 localstatedir=$ac_optarg ;; 1015 1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1017 ac_prev=mandir ;; 1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1019 mandir=$ac_optarg ;; 1020 1021 -nfp | --nfp | --nf) 1022 # Obsolete; use --without-fp. 1023 with_fp=no ;; 1024 1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1026 | --no-cr | --no-c | -n) 1027 no_create=yes ;; 1028 1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1031 no_recursion=yes ;; 1032 1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1035 | --oldin | --oldi | --old | --ol | --o) 1036 ac_prev=oldincludedir ;; 1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1040 oldincludedir=$ac_optarg ;; 1041 1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1043 ac_prev=prefix ;; 1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1045 prefix=$ac_optarg ;; 1046 1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1048 | --program-pre | --program-pr | --program-p) 1049 ac_prev=program_prefix ;; 1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1052 program_prefix=$ac_optarg ;; 1053 1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1055 | --program-suf | --program-su | --program-s) 1056 ac_prev=program_suffix ;; 1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1059 program_suffix=$ac_optarg ;; 1060 1061 -program-transform-name | --program-transform-name \ 1062 | --program-transform-nam | --program-transform-na \ 1063 | --program-transform-n | --program-transform- \ 1064 | --program-transform | --program-transfor \ 1065 | --program-transfo | --program-transf \ 1066 | --program-trans | --program-tran \ 1067 | --progr-tra | --program-tr | --program-t) 1068 ac_prev=program_transform_name ;; 1069 -program-transform-name=* | --program-transform-name=* \ 1070 | --program-transform-nam=* | --program-transform-na=* \ 1071 | --program-transform-n=* | --program-transform-=* \ 1072 | --program-transform=* | --program-transfor=* \ 1073 | --program-transfo=* | --program-transf=* \ 1074 | --program-trans=* | --program-tran=* \ 1075 | --progr-tra=* | --program-tr=* | --program-t=*) 1076 program_transform_name=$ac_optarg ;; 1077 1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1079 ac_prev=pdfdir ;; 1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1081 pdfdir=$ac_optarg ;; 1082 1083 -psdir | --psdir | --psdi | --psd | --ps) 1084 ac_prev=psdir ;; 1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1086 psdir=$ac_optarg ;; 1087 1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1089 | -silent | --silent | --silen | --sile | --sil) 1090 silent=yes ;; 1091 1092 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1093 | --runstate | --runstat | --runsta | --runst | --runs \ 1094 | --run | --ru | --r) 1095 ac_prev=runstatedir ;; 1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1098 | --run=* | --ru=* | --r=*) 1099 runstatedir=$ac_optarg ;; 1100 1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1102 ac_prev=sbindir ;; 1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1104 | --sbi=* | --sb=*) 1105 sbindir=$ac_optarg ;; 1106 1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1109 | --sharedst | --shareds | --shared | --share | --shar \ 1110 | --sha | --sh) 1111 ac_prev=sharedstatedir ;; 1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1115 | --sha=* | --sh=*) 1116 sharedstatedir=$ac_optarg ;; 1117 1118 -site | --site | --sit) 1119 ac_prev=site ;; 1120 -site=* | --site=* | --sit=*) 1121 site=$ac_optarg ;; 1122 1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1124 ac_prev=srcdir ;; 1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1126 srcdir=$ac_optarg ;; 1127 1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1129 | --syscon | --sysco | --sysc | --sys | --sy) 1130 ac_prev=sysconfdir ;; 1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1133 sysconfdir=$ac_optarg ;; 1134 1135 -target | --target | --targe | --targ | --tar | --ta | --t) 1136 ac_prev=target_alias ;; 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1138 target_alias=$ac_optarg ;; 1139 1140 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1141 verbose=yes ;; 1142 1143 -version | --version | --versio | --versi | --vers | -V) 1144 ac_init_version=: ;; 1145 1146 -with-* | --with-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: '$ac_useropt'" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=\$ac_optarg ;; 1161 1162 -without-* | --without-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error $? "invalid package name: '$ac_useropt'" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"with_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=no ;; 1177 1178 --x) 1179 # Obsolete; use --with-x. 1180 with_x=yes ;; 1181 1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1183 | --x-incl | --x-inc | --x-in | --x-i) 1184 ac_prev=x_includes ;; 1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1187 x_includes=$ac_optarg ;; 1188 1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1191 ac_prev=x_libraries ;; 1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1194 x_libraries=$ac_optarg ;; 1195 1196 -*) as_fn_error $? "unrecognized option: '$ac_option' 1197Try '$0 --help' for more information" 1198 ;; 1199 1200 *=*) 1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1202 # Reject names that are not valid shell variable names. 1203 case $ac_envvar in #( 1204 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1205 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1206 esac 1207 eval $ac_envvar=\$ac_optarg 1208 export $ac_envvar ;; 1209 1210 *) 1211 # FIXME: should be removed in autoconf 3.0. 1212 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1214 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1216 ;; 1217 1218 esac 1219done 1220 1221if test -n "$ac_prev"; then 1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1223 as_fn_error $? "missing argument to $ac_option" 1224fi 1225 1226if test -n "$ac_unrecognized_opts"; then 1227 case $enable_option_checking in 1228 no) ;; 1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1230 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1231 esac 1232fi 1233 1234# Check all directory arguments for consistency. 1235for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1236 datadir sysconfdir sharedstatedir localstatedir includedir \ 1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1238 libdir localedir mandir runstatedir 1239do 1240 eval ac_val=\$$ac_var 1241 # Remove trailing slashes. 1242 case $ac_val in 1243 */ ) 1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1245 eval $ac_var=\$ac_val;; 1246 esac 1247 # Be sure to have absolute directory names. 1248 case $ac_val in 1249 [\\/$]* | ?:[\\/]* ) continue;; 1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1251 esac 1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1253done 1254 1255# There might be people who depend on the old broken behavior: '$host' 1256# used to hold the argument of --host etc. 1257# FIXME: To remove some day. 1258build=$build_alias 1259host=$host_alias 1260target=$target_alias 1261 1262# FIXME: To remove some day. 1263if test "x$host_alias" != x; then 1264 if test "x$build_alias" = x; then 1265 cross_compiling=maybe 1266 elif test "x$build_alias" != "x$host_alias"; then 1267 cross_compiling=yes 1268 fi 1269fi 1270 1271ac_tool_prefix= 1272test -n "$host_alias" && ac_tool_prefix=$host_alias- 1273 1274test "$silent" = yes && exec 6>/dev/null 1275 1276 1277ac_pwd=`pwd` && test -n "$ac_pwd" && 1278ac_ls_di=`ls -di .` && 1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1280 as_fn_error $? "working directory cannot be determined" 1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1282 as_fn_error $? "pwd does not report name of working directory" 1283 1284 1285# Find the source files, if location was not specified. 1286if test -z "$srcdir"; then 1287 ac_srcdir_defaulted=yes 1288 # Try the directory containing this script, then the parent directory. 1289 ac_confdir=`$as_dirname -- "$as_myself" || 1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1291 X"$as_myself" : 'X\(//\)[^/]' \| \ 1292 X"$as_myself" : 'X\(//\)$' \| \ 1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1294printf "%s\n" X"$as_myself" | 1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)[^/].*/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\).*/{ 1308 s//\1/ 1309 q 1310 } 1311 s/.*/./; q'` 1312 srcdir=$ac_confdir 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 srcdir=.. 1315 fi 1316else 1317 ac_srcdir_defaulted=no 1318fi 1319if test ! -r "$srcdir/$ac_unique_file"; then 1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1322fi 1323ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1324ac_abs_confdir=`( 1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1326 pwd)` 1327# When building in place, set srcdir=. 1328if test "$ac_abs_confdir" = "$ac_pwd"; then 1329 srcdir=. 1330fi 1331# Remove unnecessary trailing slashes from srcdir. 1332# Double slashes in file names in object file debugging info 1333# mess up M-x gdb in Emacs. 1334case $srcdir in 1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1336esac 1337for ac_var in $ac_precious_vars; do 1338 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_env_${ac_var}_value=\$${ac_var} 1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1342done 1343 1344# 1345# Report the --help message. 1346# 1347if test "$ac_init_help" = "long"; then 1348 # Omit some internal or obsolete options to make the list less imposing. 1349 # This message is too long to be a string in the A/UX 3.1 sh. 1350 cat <<_ACEOF 1351'configure' configures xload 1.2.0 to adapt to many kinds of systems. 1352 1353Usage: $0 [OPTION]... [VAR=VALUE]... 1354 1355To assign environment variables (e.g., CC, CFLAGS...), specify them as 1356VAR=VALUE. See below for descriptions of some of the useful variables. 1357 1358Defaults for the options are specified in brackets. 1359 1360Configuration: 1361 -h, --help display this help and exit 1362 --help=short display options specific to this package 1363 --help=recursive display the short help of all the included packages 1364 -V, --version display version information and exit 1365 -q, --quiet, --silent do not print 'checking ...' messages 1366 --cache-file=FILE cache test results in FILE [disabled] 1367 -C, --config-cache alias for '--cache-file=config.cache' 1368 -n, --no-create do not create output files 1369 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1370 1371Installation directories: 1372 --prefix=PREFIX install architecture-independent files in PREFIX 1373 [$ac_default_prefix] 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1375 [PREFIX] 1376 1377By default, 'make install' will install all the files in 1378'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1379an installation prefix other than '$ac_default_prefix' using '--prefix', 1380for instance '--prefix=\$HOME'. 1381 1382For better control, use the options below. 1383 1384Fine tuning of the installation directories: 1385 --bindir=DIR user executables [EPREFIX/bin] 1386 --sbindir=DIR system admin executables [EPREFIX/sbin] 1387 --libexecdir=DIR program executables [EPREFIX/libexec] 1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1392 --libdir=DIR object code libraries [EPREFIX/lib] 1393 --includedir=DIR C header files [PREFIX/include] 1394 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397 --infodir=DIR info documentation [DATAROOTDIR/info] 1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399 --mandir=DIR man documentation [DATAROOTDIR/man] 1400 --docdir=DIR documentation root [DATAROOTDIR/doc/xload] 1401 --htmldir=DIR html documentation [DOCDIR] 1402 --dvidir=DIR dvi documentation [DOCDIR] 1403 --pdfdir=DIR pdf documentation [DOCDIR] 1404 --psdir=DIR ps documentation [DOCDIR] 1405_ACEOF 1406 1407 cat <<\_ACEOF 1408 1409Program names: 1410 --program-prefix=PREFIX prepend PREFIX to installed program names 1411 --program-suffix=SUFFIX append SUFFIX to installed program names 1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1413 1414System types: 1415 --build=BUILD configure for building on BUILD [guessed] 1416 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1417_ACEOF 1418fi 1419 1420if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of xload 1.2.0:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --enable-dependency-tracking 1431 do not reject slow dependency extractors 1432 --disable-dependency-tracking 1433 speeds up one-time build 1434 --enable-silent-rules less verbose build output (undo: "make V=1") 1435 --disable-silent-rules verbose build output (undo: "make V=0") 1436 --disable-selective-werror 1437 Turn off selective compiler errors. (default: 1438 enabled) 1439 --enable-strict-compilation 1440 Enable all warnings from compiler and make them 1441 errors (default: disabled) 1442 --disable-largefile omit support for large files 1443 --enable-year2038 support timestamps after 2038 1444 1445Optional Packages: 1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1448 --with-localedir=<path> Path to install message files in (default: 1449 datadir/locale) 1450 --with-appdefaultdir=<pathname> 1451 specify directory for app-defaults files (default is 1452 autodetected) 1453 1454Some influential environment variables: 1455 CC C compiler command 1456 CFLAGS C compiler flags 1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1458 nonstandard directory <lib dir> 1459 LIBS libraries to pass to the linker, e.g. -l<library> 1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1461 you have headers in a nonstandard directory <include dir> 1462 PKG_CONFIG path to pkg-config utility 1463 PKG_CONFIG_PATH 1464 directories to add to pkg-config's search path 1465 PKG_CONFIG_LIBDIR 1466 path overriding pkg-config's built-in search path 1467 XLOAD_CFLAGS 1468 C compiler flags for XLOAD, overriding pkg-config 1469 XLOAD_LIBS linker flags for XLOAD, overriding pkg-config 1470 APPDEFS_CFLAGS 1471 C compiler flags for APPDEFS, overriding pkg-config 1472 APPDEFS_LIBS 1473 linker flags for APPDEFS, overriding pkg-config 1474 1475Use these variables to override the choices made by 'configure' or to help 1476it to find libraries and programs with nonstandard names/locations. 1477 1478Report bugs to <https://gitlab.freedesktop.org/xorg/app/xload/-/issues>. 1479_ACEOF 1480ac_status=$? 1481fi 1482 1483if test "$ac_init_help" = "recursive"; then 1484 # If there are subdirs, report their specific --help. 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1486 test -d "$ac_dir" || 1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1488 continue 1489 ac_builddir=. 1490 1491case "$ac_dir" in 1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493*) 1494 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1495 # A ".." for each directory in $ac_dir_suffix. 1496 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1497 case $ac_top_builddir_sub in 1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1500 esac ;; 1501esac 1502ac_abs_top_builddir=$ac_pwd 1503ac_abs_builddir=$ac_pwd$ac_dir_suffix 1504# for backward compatibility: 1505ac_top_builddir=$ac_top_build_prefix 1506 1507case $srcdir in 1508 .) # We are building in place. 1509 ac_srcdir=. 1510 ac_top_srcdir=$ac_top_builddir_sub 1511 ac_abs_top_srcdir=$ac_pwd ;; 1512 [\\/]* | ?:[\\/]* ) # Absolute name. 1513 ac_srcdir=$srcdir$ac_dir_suffix; 1514 ac_top_srcdir=$srcdir 1515 ac_abs_top_srcdir=$srcdir ;; 1516 *) # Relative name. 1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1518 ac_top_srcdir=$ac_top_build_prefix$srcdir 1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1520esac 1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1522 1523 cd "$ac_dir" || { ac_status=$?; continue; } 1524 # Check for configure.gnu first; this name is used for a wrapper for 1525 # Metaconfig's "Configure" on case-insensitive file systems. 1526 if test -f "$ac_srcdir/configure.gnu"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1529 elif test -f "$ac_srcdir/configure"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure" --help=recursive 1532 else 1533 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1534 fi || ac_status=$? 1535 cd "$ac_pwd" || { ac_status=$?; break; } 1536 done 1537fi 1538 1539test -n "$ac_init_help" && exit $ac_status 1540if $ac_init_version; then 1541 cat <<\_ACEOF 1542xload configure 1.2.0 1543generated by GNU Autoconf 2.72 1544 1545Copyright (C) 2023 Free Software Foundation, Inc. 1546This configure script is free software; the Free Software Foundation 1547gives unlimited permission to copy, distribute and modify it. 1548_ACEOF 1549 exit 1550fi 1551 1552## ------------------------ ## 1553## Autoconf initialization. ## 1554## ------------------------ ## 1555 1556# ac_fn_c_try_compile LINENO 1557# -------------------------- 1558# Try to compile conftest.$ac_ext, and return whether this succeeded. 1559ac_fn_c_try_compile () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 rm -f conftest.$ac_objext conftest.beam 1563 if { { ac_try="$ac_compile" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569printf "%s\n" "$ac_try_echo"; } >&5 1570 (eval "$ac_compile") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } && { 1579 test -z "$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 } && test -s conftest.$ac_objext 1582then : 1583 ac_retval=0 1584else case e in #( 1585 e) printf "%s\n" "$as_me: failed program was:" >&5 1586sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 ;; 1589esac 1590fi 1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1592 as_fn_set_status $ac_retval 1593 1594} # ac_fn_c_try_compile 1595 1596# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1597# ------------------------------------------------------- 1598# Tests whether HEADER exists and can be compiled using the include files in 1599# INCLUDES, setting the cache variable VAR accordingly. 1600ac_fn_c_check_header_compile () 1601{ 1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1604printf %s "checking for $2... " >&6; } 1605if eval test \${$3+y} 1606then : 1607 printf %s "(cached) " >&6 1608else case e in #( 1609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1610/* end confdefs.h. */ 1611$4 1612#include <$2> 1613_ACEOF 1614if ac_fn_c_try_compile "$LINENO" 1615then : 1616 eval "$3=yes" 1617else case e in #( 1618 e) eval "$3=no" ;; 1619esac 1620fi 1621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1622esac 1623fi 1624eval ac_res=\$$3 1625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1626printf "%s\n" "$ac_res" >&6; } 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 1629} # ac_fn_c_check_header_compile 1630 1631# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1632# ------------------------------------------------------------------ 1633# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1634# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1635ac_fn_check_decl () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 as_decl_name=`echo $2|sed 's/ *(.*//'` 1639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1640printf %s "checking whether $as_decl_name is declared... " >&6; } 1641if eval test \${$3+y} 1642then : 1643 printf %s "(cached) " >&6 1644else case e in #( 1645 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1646 eval ac_save_FLAGS=\$$6 1647 as_fn_append $6 " $5" 1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1649/* end confdefs.h. */ 1650$4 1651int 1652main (void) 1653{ 1654#ifndef $as_decl_name 1655#ifdef __cplusplus 1656 (void) $as_decl_use; 1657#else 1658 (void) $as_decl_name; 1659#endif 1660#endif 1661 1662 ; 1663 return 0; 1664} 1665_ACEOF 1666if ac_fn_c_try_compile "$LINENO" 1667then : 1668 eval "$3=yes" 1669else case e in #( 1670 e) eval "$3=no" ;; 1671esac 1672fi 1673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1674 eval $6=\$ac_save_FLAGS 1675 ;; 1676esac 1677fi 1678eval ac_res=\$$3 1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1680printf "%s\n" "$ac_res" >&6; } 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 1683} # ac_fn_check_decl 1684 1685# ac_fn_c_try_link LINENO 1686# ----------------------- 1687# Try to link conftest.$ac_ext, and return whether this succeeded. 1688ac_fn_c_try_link () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1692 if { { ac_try="$ac_link" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698printf "%s\n" "$ac_try_echo"; } >&5 1699 (eval "$ac_link") 2>conftest.err 1700 ac_status=$? 1701 if test -s conftest.err; then 1702 grep -v '^ *+' conftest.err >conftest.er1 1703 cat conftest.er1 >&5 1704 mv -f conftest.er1 conftest.err 1705 fi 1706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { 1708 test -z "$ac_c_werror_flag" || 1709 test ! -s conftest.err 1710 } && test -s conftest$ac_exeext && { 1711 test "$cross_compiling" = yes || 1712 test -x conftest$ac_exeext 1713 } 1714then : 1715 ac_retval=0 1716else case e in #( 1717 e) printf "%s\n" "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 ;; 1721esac 1722fi 1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1725 # interfere with the next link command; also delete a directory that is 1726 # left behind by Apple's compiler. We do this before executing the actions. 1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 as_fn_set_status $ac_retval 1730 1731} # ac_fn_c_try_link 1732 1733# ac_fn_c_check_func LINENO FUNC VAR 1734# ---------------------------------- 1735# Tests whether FUNC exists, setting the cache variable VAR accordingly 1736ac_fn_c_check_func () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1740printf %s "checking for $2... " >&6; } 1741if eval test \${$3+y} 1742then : 1743 printf %s "(cached) " >&6 1744else case e in #( 1745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1746/* end confdefs.h. */ 1747/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1749#define $2 innocuous_$2 1750 1751/* System header to define __stub macros and hopefully few prototypes, 1752 which can conflict with char $2 (void); below. */ 1753 1754#include <limits.h> 1755#undef $2 1756 1757/* Override any GCC internal prototype to avoid an error. 1758 Use char because int might match the return type of a GCC 1759 builtin and then its argument prototype would still apply. */ 1760#ifdef __cplusplus 1761extern "C" 1762#endif 1763char $2 (void); 1764/* The GNU C library defines this for functions which it implements 1765 to always fail with ENOSYS. Some functions are actually named 1766 something starting with __ and the normal name is an alias. */ 1767#if defined __stub_$2 || defined __stub___$2 1768choke me 1769#endif 1770 1771int 1772main (void) 1773{ 1774return $2 (); 1775 ; 1776 return 0; 1777} 1778_ACEOF 1779if ac_fn_c_try_link "$LINENO" 1780then : 1781 eval "$3=yes" 1782else case e in #( 1783 e) eval "$3=no" ;; 1784esac 1785fi 1786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1787 conftest$ac_exeext conftest.$ac_ext ;; 1788esac 1789fi 1790eval ac_res=\$$3 1791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1792printf "%s\n" "$ac_res" >&6; } 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794 1795} # ac_fn_c_check_func 1796ac_configure_args_raw= 1797for ac_arg 1798do 1799 case $ac_arg in 1800 *\'*) 1801 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1802 esac 1803 as_fn_append ac_configure_args_raw " '$ac_arg'" 1804done 1805 1806case $ac_configure_args_raw in 1807 *$as_nl*) 1808 ac_safe_unquote= ;; 1809 *) 1810 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1811 ac_unsafe_a="$ac_unsafe_z#~" 1812 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1813 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1814esac 1815 1816cat >config.log <<_ACEOF 1817This file contains any messages produced by compilers while 1818running configure, to aid debugging if configure makes a mistake. 1819 1820It was created by xload $as_me 1.2.0, which was 1821generated by GNU Autoconf 2.72. Invocation command line was 1822 1823 $ $0$ac_configure_args_raw 1824 1825_ACEOF 1826exec 5>>config.log 1827{ 1828cat <<_ASUNAME 1829## --------- ## 1830## Platform. ## 1831## --------- ## 1832 1833hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1834uname -m = `(uname -m) 2>/dev/null || echo unknown` 1835uname -r = `(uname -r) 2>/dev/null || echo unknown` 1836uname -s = `(uname -s) 2>/dev/null || echo unknown` 1837uname -v = `(uname -v) 2>/dev/null || echo unknown` 1838 1839/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1840/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1841 1842/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1843/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1844/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1845/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1846/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1847/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1848/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1849 1850_ASUNAME 1851 1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1853for as_dir in $PATH 1854do 1855 IFS=$as_save_IFS 1856 case $as_dir in #((( 1857 '') as_dir=./ ;; 1858 */) ;; 1859 *) as_dir=$as_dir/ ;; 1860 esac 1861 printf "%s\n" "PATH: $as_dir" 1862 done 1863IFS=$as_save_IFS 1864 1865} >&5 1866 1867cat >&5 <<_ACEOF 1868 1869 1870## ----------- ## 1871## Core tests. ## 1872## ----------- ## 1873 1874_ACEOF 1875 1876 1877# Keep a trace of the command line. 1878# Strip out --no-create and --no-recursion so they do not pile up. 1879# Strip out --silent because we don't want to record it for future runs. 1880# Also quote any args containing shell meta-characters. 1881# Make two passes to allow for proper duplicate-argument suppression. 1882ac_configure_args= 1883ac_configure_args0= 1884ac_configure_args1= 1885ac_must_keep_next=false 1886for ac_pass in 1 2 1887do 1888 for ac_arg 1889 do 1890 case $ac_arg in 1891 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1893 | -silent | --silent | --silen | --sile | --sil) 1894 continue ;; 1895 *\'*) 1896 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1897 esac 1898 case $ac_pass in 1899 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1900 2) 1901 as_fn_append ac_configure_args1 " '$ac_arg'" 1902 if test $ac_must_keep_next = true; then 1903 ac_must_keep_next=false # Got value, back to normal. 1904 else 1905 case $ac_arg in 1906 *=* | --config-cache | -C | -disable-* | --disable-* \ 1907 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1908 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1909 | -with-* | --with-* | -without-* | --without-* | --x) 1910 case "$ac_configure_args0 " in 1911 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1912 esac 1913 ;; 1914 -* ) ac_must_keep_next=true ;; 1915 esac 1916 fi 1917 as_fn_append ac_configure_args " '$ac_arg'" 1918 ;; 1919 esac 1920 done 1921done 1922{ ac_configure_args0=; unset ac_configure_args0;} 1923{ ac_configure_args1=; unset ac_configure_args1;} 1924 1925# When interrupted or exit'd, cleanup temporary files, and complete 1926# config.log. We remove comments because anyway the quotes in there 1927# would cause problems or look ugly. 1928# WARNING: Use '\'' to represent an apostrophe within the trap. 1929# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1930trap 'exit_status=$? 1931 # Sanitize IFS. 1932 IFS=" "" $as_nl" 1933 # Save into config.log some information that might help in debugging. 1934 { 1935 echo 1936 1937 printf "%s\n" "## ---------------- ## 1938## Cache variables. ## 1939## ---------------- ##" 1940 echo 1941 # The following way of writing the cache mishandles newlines in values, 1942( 1943 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1944 eval ac_val=\$$ac_var 1945 case $ac_val in #( 1946 *${as_nl}*) 1947 case $ac_var in #( 1948 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1949printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1950 esac 1951 case $ac_var in #( 1952 _ | IFS | as_nl) ;; #( 1953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1954 *) { eval $ac_var=; unset $ac_var;} ;; 1955 esac ;; 1956 esac 1957 done 1958 (set) 2>&1 | 1959 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1960 *${as_nl}ac_space=\ *) 1961 sed -n \ 1962 "s/'\''/'\''\\\\'\'''\''/g; 1963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1964 ;; #( 1965 *) 1966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1967 ;; 1968 esac | 1969 sort 1970) 1971 echo 1972 1973 printf "%s\n" "## ----------------- ## 1974## Output variables. ## 1975## ----------------- ##" 1976 echo 1977 for ac_var in $ac_subst_vars 1978 do 1979 eval ac_val=\$$ac_var 1980 case $ac_val in 1981 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1982 esac 1983 printf "%s\n" "$ac_var='\''$ac_val'\''" 1984 done | sort 1985 echo 1986 1987 if test -n "$ac_subst_files"; then 1988 printf "%s\n" "## ------------------- ## 1989## File substitutions. ## 1990## ------------------- ##" 1991 echo 1992 for ac_var in $ac_subst_files 1993 do 1994 eval ac_val=\$$ac_var 1995 case $ac_val in 1996 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1997 esac 1998 printf "%s\n" "$ac_var='\''$ac_val'\''" 1999 done | sort 2000 echo 2001 fi 2002 2003 if test -s confdefs.h; then 2004 printf "%s\n" "## ----------- ## 2005## confdefs.h. ## 2006## ----------- ##" 2007 echo 2008 cat confdefs.h 2009 echo 2010 fi 2011 test "$ac_signal" != 0 && 2012 printf "%s\n" "$as_me: caught signal $ac_signal" 2013 printf "%s\n" "$as_me: exit $exit_status" 2014 } >&5 2015 rm -f core *.core core.conftest.* && 2016 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2017 exit $exit_status 2018' 0 2019for ac_signal in 1 2 13 15; do 2020 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2021done 2022ac_signal=0 2023 2024# confdefs.h avoids OS command line length limits that DEFS can exceed. 2025rm -f -r conftest* confdefs.h 2026 2027printf "%s\n" "/* confdefs.h */" > confdefs.h 2028 2029# Predefined preprocessor variables. 2030 2031printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2032 2033printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2034 2035printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2036 2037printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2038 2039printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2040 2041printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2042 2043 2044# Let the site file select an alternate cache file if it wants to. 2045# Prefer an explicitly selected file to automatically selected ones. 2046if test -n "$CONFIG_SITE"; then 2047 ac_site_files="$CONFIG_SITE" 2048elif test "x$prefix" != xNONE; then 2049 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2050else 2051 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2052fi 2053 2054for ac_site_file in $ac_site_files 2055do 2056 case $ac_site_file in #( 2057 */*) : 2058 ;; #( 2059 *) : 2060 ac_site_file=./$ac_site_file ;; 2061esac 2062 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2064printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2065 sed 's/^/| /' "$ac_site_file" >&5 2066 . "$ac_site_file" \ 2067 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2068printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2069as_fn_error $? "failed to load site script $ac_site_file 2070See 'config.log' for more details" "$LINENO" 5; } 2071 fi 2072done 2073 2074if test -r "$cache_file"; then 2075 # Some versions of bash will fail to source /dev/null (special files 2076 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2079printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2080 case $cache_file in 2081 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2082 *) . "./$cache_file";; 2083 esac 2084 fi 2085else 2086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2087printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2088 >$cache_file 2089fi 2090 2091as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2092# Test code for whether the C compiler supports C89 (global declarations) 2093ac_c_conftest_c89_globals=' 2094/* Does the compiler advertise C89 conformance? 2095 Do not test the value of __STDC__, because some compilers set it to 0 2096 while being otherwise adequately conformant. */ 2097#if !defined __STDC__ 2098# error "Compiler does not advertise C89 conformance" 2099#endif 2100 2101#include <stddef.h> 2102#include <stdarg.h> 2103struct stat; 2104/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2105struct buf { int x; }; 2106struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2107static char *e (char **p, int i) 2108{ 2109 return p[i]; 2110} 2111static char *f (char * (*g) (char **, int), char **p, ...) 2112{ 2113 char *s; 2114 va_list v; 2115 va_start (v,p); 2116 s = g (p, va_arg (v,int)); 2117 va_end (v); 2118 return s; 2119} 2120 2121/* C89 style stringification. */ 2122#define noexpand_stringify(a) #a 2123const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2124 2125/* C89 style token pasting. Exercises some of the corner cases that 2126 e.g. old MSVC gets wrong, but not very hard. */ 2127#define noexpand_concat(a,b) a##b 2128#define expand_concat(a,b) noexpand_concat(a,b) 2129extern int vA; 2130extern int vbee; 2131#define aye A 2132#define bee B 2133int *pvA = &expand_concat(v,aye); 2134int *pvbee = &noexpand_concat(v,bee); 2135 2136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2137 function prototypes and stuff, but not \xHH hex character constants. 2138 These do not provoke an error unfortunately, instead are silently treated 2139 as an "x". The following induces an error, until -std is added to get 2140 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2141 array size at least. It is necessary to write \x00 == 0 to get something 2142 that is true only with -std. */ 2143int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2144 2145/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2146 inside strings and character constants. */ 2147#define FOO(x) '\''x'\'' 2148int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2149 2150int test (int i, double x); 2151struct s1 {int (*f) (int a);}; 2152struct s2 {int (*f) (double a);}; 2153int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2154 int, int);' 2155 2156# Test code for whether the C compiler supports C89 (body of main). 2157ac_c_conftest_c89_main=' 2158ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2159' 2160 2161# Test code for whether the C compiler supports C99 (global declarations) 2162ac_c_conftest_c99_globals=' 2163/* Does the compiler advertise C99 conformance? */ 2164#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2165# error "Compiler does not advertise C99 conformance" 2166#endif 2167 2168// See if C++-style comments work. 2169 2170#include <stdbool.h> 2171extern int puts (const char *); 2172extern int printf (const char *, ...); 2173extern int dprintf (int, const char *, ...); 2174extern void *malloc (size_t); 2175extern void free (void *); 2176 2177// Check varargs macros. These examples are taken from C99 6.10.3.5. 2178// dprintf is used instead of fprintf to avoid needing to declare 2179// FILE and stderr. 2180#define debug(...) dprintf (2, __VA_ARGS__) 2181#define showlist(...) puts (#__VA_ARGS__) 2182#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2183static void 2184test_varargs_macros (void) 2185{ 2186 int x = 1234; 2187 int y = 5678; 2188 debug ("Flag"); 2189 debug ("X = %d\n", x); 2190 showlist (The first, second, and third items.); 2191 report (x>y, "x is %d but y is %d", x, y); 2192} 2193 2194// Check long long types. 2195#define BIG64 18446744073709551615ull 2196#define BIG32 4294967295ul 2197#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2198#if !BIG_OK 2199 #error "your preprocessor is broken" 2200#endif 2201#if BIG_OK 2202#else 2203 #error "your preprocessor is broken" 2204#endif 2205static long long int bignum = -9223372036854775807LL; 2206static unsigned long long int ubignum = BIG64; 2207 2208struct incomplete_array 2209{ 2210 int datasize; 2211 double data[]; 2212}; 2213 2214struct named_init { 2215 int number; 2216 const wchar_t *name; 2217 double average; 2218}; 2219 2220typedef const char *ccp; 2221 2222static inline int 2223test_restrict (ccp restrict text) 2224{ 2225 // Iterate through items via the restricted pointer. 2226 // Also check for declarations in for loops. 2227 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2228 continue; 2229 return 0; 2230} 2231 2232// Check varargs and va_copy. 2233static bool 2234test_varargs (const char *format, ...) 2235{ 2236 va_list args; 2237 va_start (args, format); 2238 va_list args_copy; 2239 va_copy (args_copy, args); 2240 2241 const char *str = ""; 2242 int number = 0; 2243 float fnumber = 0; 2244 2245 while (*format) 2246 { 2247 switch (*format++) 2248 { 2249 case '\''s'\'': // string 2250 str = va_arg (args_copy, const char *); 2251 break; 2252 case '\''d'\'': // int 2253 number = va_arg (args_copy, int); 2254 break; 2255 case '\''f'\'': // float 2256 fnumber = va_arg (args_copy, double); 2257 break; 2258 default: 2259 break; 2260 } 2261 } 2262 va_end (args_copy); 2263 va_end (args); 2264 2265 return *str && number && fnumber; 2266} 2267' 2268 2269# Test code for whether the C compiler supports C99 (body of main). 2270ac_c_conftest_c99_main=' 2271 // Check bool. 2272 _Bool success = false; 2273 success |= (argc != 0); 2274 2275 // Check restrict. 2276 if (test_restrict ("String literal") == 0) 2277 success = true; 2278 char *restrict newvar = "Another string"; 2279 2280 // Check varargs. 2281 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2282 test_varargs_macros (); 2283 2284 // Check flexible array members. 2285 struct incomplete_array *ia = 2286 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2287 ia->datasize = 10; 2288 for (int i = 0; i < ia->datasize; ++i) 2289 ia->data[i] = i * 1.234; 2290 // Work around memory leak warnings. 2291 free (ia); 2292 2293 // Check named initializers. 2294 struct named_init ni = { 2295 .number = 34, 2296 .name = L"Test wide string", 2297 .average = 543.34343, 2298 }; 2299 2300 ni.number = 58; 2301 2302 int dynamic_array[ni.number]; 2303 dynamic_array[0] = argv[0][0]; 2304 dynamic_array[ni.number - 1] = 543; 2305 2306 // work around unused variable warnings 2307 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2308 || dynamic_array[ni.number - 1] != 543); 2309' 2310 2311# Test code for whether the C compiler supports C11 (global declarations) 2312ac_c_conftest_c11_globals=' 2313/* Does the compiler advertise C11 conformance? */ 2314#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2315# error "Compiler does not advertise C11 conformance" 2316#endif 2317 2318// Check _Alignas. 2319char _Alignas (double) aligned_as_double; 2320char _Alignas (0) no_special_alignment; 2321extern char aligned_as_int; 2322char _Alignas (0) _Alignas (int) aligned_as_int; 2323 2324// Check _Alignof. 2325enum 2326{ 2327 int_alignment = _Alignof (int), 2328 int_array_alignment = _Alignof (int[100]), 2329 char_alignment = _Alignof (char) 2330}; 2331_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2332 2333// Check _Noreturn. 2334int _Noreturn does_not_return (void) { for (;;) continue; } 2335 2336// Check _Static_assert. 2337struct test_static_assert 2338{ 2339 int x; 2340 _Static_assert (sizeof (int) <= sizeof (long int), 2341 "_Static_assert does not work in struct"); 2342 long int y; 2343}; 2344 2345// Check UTF-8 literals. 2346#define u8 syntax error! 2347char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2348 2349// Check duplicate typedefs. 2350typedef long *long_ptr; 2351typedef long int *long_ptr; 2352typedef long_ptr long_ptr; 2353 2354// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2355struct anonymous 2356{ 2357 union { 2358 struct { int i; int j; }; 2359 struct { int k; long int l; } w; 2360 }; 2361 int m; 2362} v1; 2363' 2364 2365# Test code for whether the C compiler supports C11 (body of main). 2366ac_c_conftest_c11_main=' 2367 _Static_assert ((offsetof (struct anonymous, i) 2368 == offsetof (struct anonymous, w.k)), 2369 "Anonymous union alignment botch"); 2370 v1.i = 2; 2371 v1.w.k = 5; 2372 ok |= v1.i != 5; 2373' 2374 2375# Test code for whether the C compiler supports C11 (complete). 2376ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2377${ac_c_conftest_c99_globals} 2378${ac_c_conftest_c11_globals} 2379 2380int 2381main (int argc, char **argv) 2382{ 2383 int ok = 0; 2384 ${ac_c_conftest_c89_main} 2385 ${ac_c_conftest_c99_main} 2386 ${ac_c_conftest_c11_main} 2387 return ok; 2388} 2389" 2390 2391# Test code for whether the C compiler supports C99 (complete). 2392ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2393${ac_c_conftest_c99_globals} 2394 2395int 2396main (int argc, char **argv) 2397{ 2398 int ok = 0; 2399 ${ac_c_conftest_c89_main} 2400 ${ac_c_conftest_c99_main} 2401 return ok; 2402} 2403" 2404 2405# Test code for whether the C compiler supports C89 (complete). 2406ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2407 2408int 2409main (int argc, char **argv) 2410{ 2411 int ok = 0; 2412 ${ac_c_conftest_c89_main} 2413 return ok; 2414} 2415" 2416 2417as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2418as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2419as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2420as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2421as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2422as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2423as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2424as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2425as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2426as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2427 2428# Auxiliary files required by this configure script. 2429ac_aux_files="config.guess config.sub missing install-sh compile" 2430 2431# Locations in which to look for auxiliary files. 2432ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2433 2434# Search for a directory containing all of the required auxiliary files, 2435# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2436# If we don't find one directory that contains all the files we need, 2437# we report the set of missing files from the *first* directory in 2438# $ac_aux_dir_candidates and give up. 2439ac_missing_aux_files="" 2440ac_first_candidate=: 2441printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443as_found=false 2444for as_dir in $ac_aux_dir_candidates 2445do 2446 IFS=$as_save_IFS 2447 case $as_dir in #((( 2448 '') as_dir=./ ;; 2449 */) ;; 2450 *) as_dir=$as_dir/ ;; 2451 esac 2452 as_found=: 2453 2454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2455 ac_aux_dir_found=yes 2456 ac_install_sh= 2457 for ac_aux in $ac_aux_files 2458 do 2459 # As a special case, if "install-sh" is required, that requirement 2460 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2461 # and $ac_install_sh is set appropriately for whichever one is found. 2462 if test x"$ac_aux" = x"install-sh" 2463 then 2464 if test -f "${as_dir}install-sh"; then 2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2466 ac_install_sh="${as_dir}install-sh -c" 2467 elif test -f "${as_dir}install.sh"; then 2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2469 ac_install_sh="${as_dir}install.sh -c" 2470 elif test -f "${as_dir}shtool"; then 2471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2472 ac_install_sh="${as_dir}shtool install -c" 2473 else 2474 ac_aux_dir_found=no 2475 if $ac_first_candidate; then 2476 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2477 else 2478 break 2479 fi 2480 fi 2481 else 2482 if test -f "${as_dir}${ac_aux}"; then 2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2484 else 2485 ac_aux_dir_found=no 2486 if $ac_first_candidate; then 2487 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2488 else 2489 break 2490 fi 2491 fi 2492 fi 2493 done 2494 if test "$ac_aux_dir_found" = yes; then 2495 ac_aux_dir="$as_dir" 2496 break 2497 fi 2498 ac_first_candidate=false 2499 2500 as_found=false 2501done 2502IFS=$as_save_IFS 2503if $as_found 2504then : 2505 2506else case e in #( 2507 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2508esac 2509fi 2510 2511 2512# These three variables are undocumented and unsupported, 2513# and are intended to be withdrawn in a future Autoconf release. 2514# They can cause serious problems if a builder's source tree is in a directory 2515# whose full name contains unusual characters. 2516if test -f "${ac_aux_dir}config.guess"; then 2517 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2518fi 2519if test -f "${ac_aux_dir}config.sub"; then 2520 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2521fi 2522if test -f "$ac_aux_dir/configure"; then 2523 ac_configure="$SHELL ${ac_aux_dir}configure" 2524fi 2525 2526# Check that the precious variables saved in the cache have kept the same 2527# value. 2528ac_cache_corrupted=false 2529for ac_var in $ac_precious_vars; do 2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2531 eval ac_new_set=\$ac_env_${ac_var}_set 2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2533 eval ac_new_val=\$ac_env_${ac_var}_value 2534 case $ac_old_set,$ac_new_set in 2535 set,) 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2537printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2538 ac_cache_corrupted=: ;; 2539 ,set) 2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2541printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2542 ac_cache_corrupted=: ;; 2543 ,);; 2544 *) 2545 if test "x$ac_old_val" != "x$ac_new_val"; then 2546 # differences in whitespace do not lead to failure. 2547 ac_old_val_w=`echo x $ac_old_val` 2548 ac_new_val_w=`echo x $ac_new_val` 2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2551printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2552 ac_cache_corrupted=: 2553 else 2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2555printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2556 eval $ac_var=\$ac_old_val 2557 fi 2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2559printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2561printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2562 fi;; 2563 esac 2564 # Pass precious variables to config.status. 2565 if test "$ac_new_set" = set; then 2566 case $ac_new_val in 2567 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2568 *) ac_arg=$ac_var=$ac_new_val ;; 2569 esac 2570 case " $ac_configure_args " in 2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2573 esac 2574 fi 2575done 2576if $ac_cache_corrupted; then 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2578printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2580printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2581 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2582 and start over" "$LINENO" 5 2583fi 2584## -------------------- ## 2585## Main body of script. ## 2586## -------------------- ## 2587 2588ac_ext=c 2589ac_cpp='$CPP $CPPFLAGS' 2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2592ac_compiler_gnu=$ac_cv_c_compiler_gnu 2593 2594 2595 2596 2597ac_config_headers="$ac_config_headers config.h" 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610# Expand $ac_aux_dir to an absolute path. 2611am_aux_dir=`cd "$ac_aux_dir" && pwd` 2612 2613ac_ext=c 2614ac_cpp='$CPP $CPPFLAGS' 2615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2617ac_compiler_gnu=$ac_cv_c_compiler_gnu 2618if test -n "$ac_tool_prefix"; then 2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2620set dummy ${ac_tool_prefix}gcc; ac_word=$2 2621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2622printf %s "checking for $ac_word... " >&6; } 2623if test ${ac_cv_prog_CC+y} 2624then : 2625 printf %s "(cached) " >&6 2626else case e in #( 2627 e) if test -n "$CC"; then 2628 ac_cv_prog_CC="$CC" # Let the user override the test. 2629else 2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2631for as_dir in $PATH 2632do 2633 IFS=$as_save_IFS 2634 case $as_dir in #((( 2635 '') as_dir=./ ;; 2636 */) ;; 2637 *) as_dir=$as_dir/ ;; 2638 esac 2639 for ac_exec_ext in '' $ac_executable_extensions; do 2640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2641 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2643 break 2 2644 fi 2645done 2646 done 2647IFS=$as_save_IFS 2648 2649fi ;; 2650esac 2651fi 2652CC=$ac_cv_prog_CC 2653if test -n "$CC"; then 2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2655printf "%s\n" "$CC" >&6; } 2656else 2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2658printf "%s\n" "no" >&6; } 2659fi 2660 2661 2662fi 2663if test -z "$ac_cv_prog_CC"; then 2664 ac_ct_CC=$CC 2665 # Extract the first word of "gcc", so it can be a program name with args. 2666set dummy gcc; ac_word=$2 2667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2668printf %s "checking for $ac_word... " >&6; } 2669if test ${ac_cv_prog_ac_ct_CC+y} 2670then : 2671 printf %s "(cached) " >&6 2672else case e in #( 2673 e) if test -n "$ac_ct_CC"; then 2674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2675else 2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2677for as_dir in $PATH 2678do 2679 IFS=$as_save_IFS 2680 case $as_dir in #((( 2681 '') as_dir=./ ;; 2682 */) ;; 2683 *) as_dir=$as_dir/ ;; 2684 esac 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2687 ac_cv_prog_ac_ct_CC="gcc" 2688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2689 break 2 2690 fi 2691done 2692 done 2693IFS=$as_save_IFS 2694 2695fi ;; 2696esac 2697fi 2698ac_ct_CC=$ac_cv_prog_ac_ct_CC 2699if test -n "$ac_ct_CC"; then 2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2701printf "%s\n" "$ac_ct_CC" >&6; } 2702else 2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2704printf "%s\n" "no" >&6; } 2705fi 2706 2707 if test "x$ac_ct_CC" = x; then 2708 CC="" 2709 else 2710 case $cross_compiling:$ac_tool_warned in 2711yes:) 2712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2713printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2714ac_tool_warned=yes ;; 2715esac 2716 CC=$ac_ct_CC 2717 fi 2718else 2719 CC="$ac_cv_prog_CC" 2720fi 2721 2722if test -z "$CC"; then 2723 if test -n "$ac_tool_prefix"; then 2724 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2725set dummy ${ac_tool_prefix}cc; ac_word=$2 2726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2727printf %s "checking for $ac_word... " >&6; } 2728if test ${ac_cv_prog_CC+y} 2729then : 2730 printf %s "(cached) " >&6 2731else case e in #( 2732 e) if test -n "$CC"; then 2733 ac_cv_prog_CC="$CC" # Let the user override the test. 2734else 2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2736for as_dir in $PATH 2737do 2738 IFS=$as_save_IFS 2739 case $as_dir in #((( 2740 '') as_dir=./ ;; 2741 */) ;; 2742 *) as_dir=$as_dir/ ;; 2743 esac 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2746 ac_cv_prog_CC="${ac_tool_prefix}cc" 2747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2748 break 2 2749 fi 2750done 2751 done 2752IFS=$as_save_IFS 2753 2754fi ;; 2755esac 2756fi 2757CC=$ac_cv_prog_CC 2758if test -n "$CC"; then 2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2760printf "%s\n" "$CC" >&6; } 2761else 2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2763printf "%s\n" "no" >&6; } 2764fi 2765 2766 2767 fi 2768fi 2769if test -z "$CC"; then 2770 # Extract the first word of "cc", so it can be a program name with args. 2771set dummy cc; ac_word=$2 2772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2773printf %s "checking for $ac_word... " >&6; } 2774if test ${ac_cv_prog_CC+y} 2775then : 2776 printf %s "(cached) " >&6 2777else case e in #( 2778 e) if test -n "$CC"; then 2779 ac_cv_prog_CC="$CC" # Let the user override the test. 2780else 2781 ac_prog_rejected=no 2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2783for as_dir in $PATH 2784do 2785 IFS=$as_save_IFS 2786 case $as_dir in #((( 2787 '') as_dir=./ ;; 2788 */) ;; 2789 *) as_dir=$as_dir/ ;; 2790 esac 2791 for ac_exec_ext in '' $ac_executable_extensions; do 2792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2793 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2794 ac_prog_rejected=yes 2795 continue 2796 fi 2797 ac_cv_prog_CC="cc" 2798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2799 break 2 2800 fi 2801done 2802 done 2803IFS=$as_save_IFS 2804 2805if test $ac_prog_rejected = yes; then 2806 # We found a bogon in the path, so make sure we never use it. 2807 set dummy $ac_cv_prog_CC 2808 shift 2809 if test $# != 0; then 2810 # We chose a different compiler from the bogus one. 2811 # However, it has the same basename, so the bogon will be chosen 2812 # first if we set CC to just the basename; use the full file name. 2813 shift 2814 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2815 fi 2816fi 2817fi ;; 2818esac 2819fi 2820CC=$ac_cv_prog_CC 2821if test -n "$CC"; then 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2823printf "%s\n" "$CC" >&6; } 2824else 2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826printf "%s\n" "no" >&6; } 2827fi 2828 2829 2830fi 2831if test -z "$CC"; then 2832 if test -n "$ac_tool_prefix"; then 2833 for ac_prog in cl.exe 2834 do 2835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2836set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2838printf %s "checking for $ac_word... " >&6; } 2839if test ${ac_cv_prog_CC+y} 2840then : 2841 printf %s "(cached) " >&6 2842else case e in #( 2843 e) if test -n "$CC"; then 2844 ac_cv_prog_CC="$CC" # Let the user override the test. 2845else 2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2847for as_dir in $PATH 2848do 2849 IFS=$as_save_IFS 2850 case $as_dir in #((( 2851 '') as_dir=./ ;; 2852 */) ;; 2853 *) as_dir=$as_dir/ ;; 2854 esac 2855 for ac_exec_ext in '' $ac_executable_extensions; do 2856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2857 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2859 break 2 2860 fi 2861done 2862 done 2863IFS=$as_save_IFS 2864 2865fi ;; 2866esac 2867fi 2868CC=$ac_cv_prog_CC 2869if test -n "$CC"; then 2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2871printf "%s\n" "$CC" >&6; } 2872else 2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874printf "%s\n" "no" >&6; } 2875fi 2876 2877 2878 test -n "$CC" && break 2879 done 2880fi 2881if test -z "$CC"; then 2882 ac_ct_CC=$CC 2883 for ac_prog in cl.exe 2884do 2885 # Extract the first word of "$ac_prog", so it can be a program name with args. 2886set dummy $ac_prog; ac_word=$2 2887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888printf %s "checking for $ac_word... " >&6; } 2889if test ${ac_cv_prog_ac_ct_CC+y} 2890then : 2891 printf %s "(cached) " >&6 2892else case e in #( 2893 e) if test -n "$ac_ct_CC"; then 2894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 case $as_dir in #((( 2901 '') as_dir=./ ;; 2902 */) ;; 2903 *) as_dir=$as_dir/ ;; 2904 esac 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2907 ac_cv_prog_ac_ct_CC="$ac_prog" 2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911done 2912 done 2913IFS=$as_save_IFS 2914 2915fi ;; 2916esac 2917fi 2918ac_ct_CC=$ac_cv_prog_ac_ct_CC 2919if test -n "$ac_ct_CC"; then 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2921printf "%s\n" "$ac_ct_CC" >&6; } 2922else 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924printf "%s\n" "no" >&6; } 2925fi 2926 2927 2928 test -n "$ac_ct_CC" && break 2929done 2930 2931 if test "x$ac_ct_CC" = x; then 2932 CC="" 2933 else 2934 case $cross_compiling:$ac_tool_warned in 2935yes:) 2936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2937printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2938ac_tool_warned=yes ;; 2939esac 2940 CC=$ac_ct_CC 2941 fi 2942fi 2943 2944fi 2945if test -z "$CC"; then 2946 if test -n "$ac_tool_prefix"; then 2947 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2948set dummy ${ac_tool_prefix}clang; ac_word=$2 2949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950printf %s "checking for $ac_word... " >&6; } 2951if test ${ac_cv_prog_CC+y} 2952then : 2953 printf %s "(cached) " >&6 2954else case e in #( 2955 e) if test -n "$CC"; then 2956 ac_cv_prog_CC="$CC" # Let the user override the test. 2957else 2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH 2960do 2961 IFS=$as_save_IFS 2962 case $as_dir in #((( 2963 '') as_dir=./ ;; 2964 */) ;; 2965 *) as_dir=$as_dir/ ;; 2966 esac 2967 for ac_exec_ext in '' $ac_executable_extensions; do 2968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2969 ac_cv_prog_CC="${ac_tool_prefix}clang" 2970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2971 break 2 2972 fi 2973done 2974 done 2975IFS=$as_save_IFS 2976 2977fi ;; 2978esac 2979fi 2980CC=$ac_cv_prog_CC 2981if test -n "$CC"; then 2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2983printf "%s\n" "$CC" >&6; } 2984else 2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986printf "%s\n" "no" >&6; } 2987fi 2988 2989 2990fi 2991if test -z "$ac_cv_prog_CC"; then 2992 ac_ct_CC=$CC 2993 # Extract the first word of "clang", so it can be a program name with args. 2994set dummy clang; ac_word=$2 2995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2996printf %s "checking for $ac_word... " >&6; } 2997if test ${ac_cv_prog_ac_ct_CC+y} 2998then : 2999 printf %s "(cached) " >&6 3000else case e in #( 3001 e) if test -n "$ac_ct_CC"; then 3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 case $as_dir in #((( 3009 '') as_dir=./ ;; 3010 */) ;; 3011 *) as_dir=$as_dir/ ;; 3012 esac 3013 for ac_exec_ext in '' $ac_executable_extensions; do 3014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3015 ac_cv_prog_ac_ct_CC="clang" 3016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3017 break 2 3018 fi 3019done 3020 done 3021IFS=$as_save_IFS 3022 3023fi ;; 3024esac 3025fi 3026ac_ct_CC=$ac_cv_prog_ac_ct_CC 3027if test -n "$ac_ct_CC"; then 3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3029printf "%s\n" "$ac_ct_CC" >&6; } 3030else 3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032printf "%s\n" "no" >&6; } 3033fi 3034 3035 if test "x$ac_ct_CC" = x; then 3036 CC="" 3037 else 3038 case $cross_compiling:$ac_tool_warned in 3039yes:) 3040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3041printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3042ac_tool_warned=yes ;; 3043esac 3044 CC=$ac_ct_CC 3045 fi 3046else 3047 CC="$ac_cv_prog_CC" 3048fi 3049 3050fi 3051 3052 3053test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3054printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3055as_fn_error $? "no acceptable C compiler found in \$PATH 3056See 'config.log' for more details" "$LINENO" 5; } 3057 3058# Provide some information about the compiler. 3059printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3060set X $ac_compile 3061ac_compiler=$2 3062for ac_option in --version -v -V -qversion -version; do 3063 { { ac_try="$ac_compiler $ac_option >&5" 3064case "(($ac_try" in 3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3066 *) ac_try_echo=$ac_try;; 3067esac 3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3069printf "%s\n" "$ac_try_echo"; } >&5 3070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3071 ac_status=$? 3072 if test -s conftest.err; then 3073 sed '10a\ 3074... rest of stderr output deleted ... 3075 10q' conftest.err >conftest.er1 3076 cat conftest.er1 >&5 3077 fi 3078 rm -f conftest.er1 conftest.err 3079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3080 test $ac_status = 0; } 3081done 3082 3083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3084/* end confdefs.h. */ 3085 3086int 3087main (void) 3088{ 3089 3090 ; 3091 return 0; 3092} 3093_ACEOF 3094ac_clean_files_save=$ac_clean_files 3095ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3096# Try to create an executable without -o first, disregard a.out. 3097# It will help us diagnose broken compilers, and finding out an intuition 3098# of exeext. 3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3100printf %s "checking whether the C compiler works... " >&6; } 3101ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3102 3103# The possible output files: 3104ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3105 3106ac_rmfiles= 3107for ac_file in $ac_files 3108do 3109 case $ac_file in 3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3111 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3112 esac 3113done 3114rm -f $ac_rmfiles 3115 3116if { { ac_try="$ac_link_default" 3117case "(($ac_try" in 3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3119 *) ac_try_echo=$ac_try;; 3120esac 3121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3122printf "%s\n" "$ac_try_echo"; } >&5 3123 (eval "$ac_link_default") 2>&5 3124 ac_status=$? 3125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3126 test $ac_status = 0; } 3127then : 3128 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3129# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3130# in a Makefile. We should not override ac_cv_exeext if it was cached, 3131# so that the user can short-circuit this test for compilers unknown to 3132# Autoconf. 3133for ac_file in $ac_files '' 3134do 3135 test -f "$ac_file" || continue 3136 case $ac_file in 3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3138 ;; 3139 [ab].out ) 3140 # We found the default executable, but exeext='' is most 3141 # certainly right. 3142 break;; 3143 *.* ) 3144 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3145 then :; else 3146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3147 fi 3148 # We set ac_cv_exeext here because the later test for it is not 3149 # safe: cross compilers may not add the suffix if given an '-o' 3150 # argument, so we may need to know it at that point already. 3151 # Even if this section looks crufty: it has the advantage of 3152 # actually working. 3153 break;; 3154 * ) 3155 break;; 3156 esac 3157done 3158test "$ac_cv_exeext" = no && ac_cv_exeext= 3159 3160else case e in #( 3161 e) ac_file='' ;; 3162esac 3163fi 3164if test -z "$ac_file" 3165then : 3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167printf "%s\n" "no" >&6; } 3168printf "%s\n" "$as_me: failed program was:" >&5 3169sed 's/^/| /' conftest.$ac_ext >&5 3170 3171{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3172printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3173as_fn_error 77 "C compiler cannot create executables 3174See 'config.log' for more details" "$LINENO" 5; } 3175else case e in #( 3176 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3177printf "%s\n" "yes" >&6; } ;; 3178esac 3179fi 3180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3181printf %s "checking for C compiler default output file name... " >&6; } 3182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3183printf "%s\n" "$ac_file" >&6; } 3184ac_exeext=$ac_cv_exeext 3185 3186rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3187ac_clean_files=$ac_clean_files_save 3188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3189printf %s "checking for suffix of executables... " >&6; } 3190if { { ac_try="$ac_link" 3191case "(($ac_try" in 3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193 *) ac_try_echo=$ac_try;; 3194esac 3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3196printf "%s\n" "$ac_try_echo"; } >&5 3197 (eval "$ac_link") 2>&5 3198 ac_status=$? 3199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3200 test $ac_status = 0; } 3201then : 3202 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3203# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3204# work properly (i.e., refer to 'conftest.exe'), while it won't with 3205# 'rm'. 3206for ac_file in conftest.exe conftest conftest.*; do 3207 test -f "$ac_file" || continue 3208 case $ac_file in 3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3211 break;; 3212 * ) break;; 3213 esac 3214done 3215else case e in #( 3216 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3217printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3218as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3219See 'config.log' for more details" "$LINENO" 5; } ;; 3220esac 3221fi 3222rm -f conftest conftest$ac_cv_exeext 3223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3224printf "%s\n" "$ac_cv_exeext" >&6; } 3225 3226rm -f conftest.$ac_ext 3227EXEEXT=$ac_cv_exeext 3228ac_exeext=$EXEEXT 3229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3230/* end confdefs.h. */ 3231#include <stdio.h> 3232int 3233main (void) 3234{ 3235FILE *f = fopen ("conftest.out", "w"); 3236 if (!f) 3237 return 1; 3238 return ferror (f) || fclose (f) != 0; 3239 3240 ; 3241 return 0; 3242} 3243_ACEOF 3244ac_clean_files="$ac_clean_files conftest.out" 3245# Check that the compiler produces executables we can run. If not, either 3246# the compiler is broken, or we cross compile. 3247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3248printf %s "checking whether we are cross compiling... " >&6; } 3249if test "$cross_compiling" != yes; then 3250 { { ac_try="$ac_link" 3251case "(($ac_try" in 3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3253 *) ac_try_echo=$ac_try;; 3254esac 3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3256printf "%s\n" "$ac_try_echo"; } >&5 3257 (eval "$ac_link") 2>&5 3258 ac_status=$? 3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3260 test $ac_status = 0; } 3261 if { ac_try='./conftest$ac_cv_exeext' 3262 { { case "(($ac_try" in 3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3264 *) ac_try_echo=$ac_try;; 3265esac 3266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3267printf "%s\n" "$ac_try_echo"; } >&5 3268 (eval "$ac_try") 2>&5 3269 ac_status=$? 3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3271 test $ac_status = 0; }; }; then 3272 cross_compiling=no 3273 else 3274 if test "$cross_compiling" = maybe; then 3275 cross_compiling=yes 3276 else 3277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3278printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3279as_fn_error 77 "cannot run C compiled programs. 3280If you meant to cross compile, use '--host'. 3281See 'config.log' for more details" "$LINENO" 5; } 3282 fi 3283 fi 3284fi 3285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3286printf "%s\n" "$cross_compiling" >&6; } 3287 3288rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3289 conftest.o conftest.obj conftest.out 3290ac_clean_files=$ac_clean_files_save 3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3292printf %s "checking for suffix of object files... " >&6; } 3293if test ${ac_cv_objext+y} 3294then : 3295 printf %s "(cached) " >&6 3296else case e in #( 3297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299 3300int 3301main (void) 3302{ 3303 3304 ; 3305 return 0; 3306} 3307_ACEOF 3308rm -f conftest.o conftest.obj 3309if { { ac_try="$ac_compile" 3310case "(($ac_try" in 3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3312 *) ac_try_echo=$ac_try;; 3313esac 3314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3315printf "%s\n" "$ac_try_echo"; } >&5 3316 (eval "$ac_compile") 2>&5 3317 ac_status=$? 3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3319 test $ac_status = 0; } 3320then : 3321 for ac_file in conftest.o conftest.obj conftest.*; do 3322 test -f "$ac_file" || continue; 3323 case $ac_file in 3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3325 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3326 break;; 3327 esac 3328done 3329else case e in #( 3330 e) printf "%s\n" "$as_me: failed program was:" >&5 3331sed 's/^/| /' conftest.$ac_ext >&5 3332 3333{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3334printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3335as_fn_error $? "cannot compute suffix of object files: cannot compile 3336See 'config.log' for more details" "$LINENO" 5; } ;; 3337esac 3338fi 3339rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3340esac 3341fi 3342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3343printf "%s\n" "$ac_cv_objext" >&6; } 3344OBJEXT=$ac_cv_objext 3345ac_objext=$OBJEXT 3346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3347printf %s "checking whether the compiler supports GNU C... " >&6; } 3348if test ${ac_cv_c_compiler_gnu+y} 3349then : 3350 printf %s "(cached) " >&6 3351else case e in #( 3352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3353/* end confdefs.h. */ 3354 3355int 3356main (void) 3357{ 3358#ifndef __GNUC__ 3359 choke me 3360#endif 3361 3362 ; 3363 return 0; 3364} 3365_ACEOF 3366if ac_fn_c_try_compile "$LINENO" 3367then : 3368 ac_compiler_gnu=yes 3369else case e in #( 3370 e) ac_compiler_gnu=no ;; 3371esac 3372fi 3373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3374ac_cv_c_compiler_gnu=$ac_compiler_gnu 3375 ;; 3376esac 3377fi 3378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3379printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3380ac_compiler_gnu=$ac_cv_c_compiler_gnu 3381 3382if test $ac_compiler_gnu = yes; then 3383 GCC=yes 3384else 3385 GCC= 3386fi 3387ac_test_CFLAGS=${CFLAGS+y} 3388ac_save_CFLAGS=$CFLAGS 3389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3390printf %s "checking whether $CC accepts -g... " >&6; } 3391if test ${ac_cv_prog_cc_g+y} 3392then : 3393 printf %s "(cached) " >&6 3394else case e in #( 3395 e) ac_save_c_werror_flag=$ac_c_werror_flag 3396 ac_c_werror_flag=yes 3397 ac_cv_prog_cc_g=no 3398 CFLAGS="-g" 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3400/* end confdefs.h. */ 3401 3402int 3403main (void) 3404{ 3405 3406 ; 3407 return 0; 3408} 3409_ACEOF 3410if ac_fn_c_try_compile "$LINENO" 3411then : 3412 ac_cv_prog_cc_g=yes 3413else case e in #( 3414 e) CFLAGS="" 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416/* end confdefs.h. */ 3417 3418int 3419main (void) 3420{ 3421 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426if ac_fn_c_try_compile "$LINENO" 3427then : 3428 3429else case e in #( 3430 e) ac_c_werror_flag=$ac_save_c_werror_flag 3431 CFLAGS="-g" 3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3433/* end confdefs.h. */ 3434 3435int 3436main (void) 3437{ 3438 3439 ; 3440 return 0; 3441} 3442_ACEOF 3443if ac_fn_c_try_compile "$LINENO" 3444then : 3445 ac_cv_prog_cc_g=yes 3446fi 3447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3448esac 3449fi 3450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3451esac 3452fi 3453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3454 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3455esac 3456fi 3457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3458printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3459if test $ac_test_CFLAGS; then 3460 CFLAGS=$ac_save_CFLAGS 3461elif test $ac_cv_prog_cc_g = yes; then 3462 if test "$GCC" = yes; then 3463 CFLAGS="-g -O2" 3464 else 3465 CFLAGS="-g" 3466 fi 3467else 3468 if test "$GCC" = yes; then 3469 CFLAGS="-O2" 3470 else 3471 CFLAGS= 3472 fi 3473fi 3474ac_prog_cc_stdc=no 3475if test x$ac_prog_cc_stdc = xno 3476then : 3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3478printf %s "checking for $CC option to enable C11 features... " >&6; } 3479if test ${ac_cv_prog_cc_c11+y} 3480then : 3481 printf %s "(cached) " >&6 3482else case e in #( 3483 e) ac_cv_prog_cc_c11=no 3484ac_save_CC=$CC 3485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3486/* end confdefs.h. */ 3487$ac_c_conftest_c11_program 3488_ACEOF 3489for ac_arg in '' -std=gnu11 3490do 3491 CC="$ac_save_CC $ac_arg" 3492 if ac_fn_c_try_compile "$LINENO" 3493then : 3494 ac_cv_prog_cc_c11=$ac_arg 3495fi 3496rm -f core conftest.err conftest.$ac_objext conftest.beam 3497 test "x$ac_cv_prog_cc_c11" != "xno" && break 3498done 3499rm -f conftest.$ac_ext 3500CC=$ac_save_CC ;; 3501esac 3502fi 3503 3504if test "x$ac_cv_prog_cc_c11" = xno 3505then : 3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3507printf "%s\n" "unsupported" >&6; } 3508else case e in #( 3509 e) if test "x$ac_cv_prog_cc_c11" = x 3510then : 3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3512printf "%s\n" "none needed" >&6; } 3513else case e in #( 3514 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3515printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3516 CC="$CC $ac_cv_prog_cc_c11" ;; 3517esac 3518fi 3519 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3520 ac_prog_cc_stdc=c11 ;; 3521esac 3522fi 3523fi 3524if test x$ac_prog_cc_stdc = xno 3525then : 3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3527printf %s "checking for $CC option to enable C99 features... " >&6; } 3528if test ${ac_cv_prog_cc_c99+y} 3529then : 3530 printf %s "(cached) " >&6 3531else case e in #( 3532 e) ac_cv_prog_cc_c99=no 3533ac_save_CC=$CC 3534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535/* end confdefs.h. */ 3536$ac_c_conftest_c99_program 3537_ACEOF 3538for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3539do 3540 CC="$ac_save_CC $ac_arg" 3541 if ac_fn_c_try_compile "$LINENO" 3542then : 3543 ac_cv_prog_cc_c99=$ac_arg 3544fi 3545rm -f core conftest.err conftest.$ac_objext conftest.beam 3546 test "x$ac_cv_prog_cc_c99" != "xno" && break 3547done 3548rm -f conftest.$ac_ext 3549CC=$ac_save_CC ;; 3550esac 3551fi 3552 3553if test "x$ac_cv_prog_cc_c99" = xno 3554then : 3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3556printf "%s\n" "unsupported" >&6; } 3557else case e in #( 3558 e) if test "x$ac_cv_prog_cc_c99" = x 3559then : 3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3561printf "%s\n" "none needed" >&6; } 3562else case e in #( 3563 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3564printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3565 CC="$CC $ac_cv_prog_cc_c99" ;; 3566esac 3567fi 3568 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3569 ac_prog_cc_stdc=c99 ;; 3570esac 3571fi 3572fi 3573if test x$ac_prog_cc_stdc = xno 3574then : 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3576printf %s "checking for $CC option to enable C89 features... " >&6; } 3577if test ${ac_cv_prog_cc_c89+y} 3578then : 3579 printf %s "(cached) " >&6 3580else case e in #( 3581 e) ac_cv_prog_cc_c89=no 3582ac_save_CC=$CC 3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584/* end confdefs.h. */ 3585$ac_c_conftest_c89_program 3586_ACEOF 3587for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3588do 3589 CC="$ac_save_CC $ac_arg" 3590 if ac_fn_c_try_compile "$LINENO" 3591then : 3592 ac_cv_prog_cc_c89=$ac_arg 3593fi 3594rm -f core conftest.err conftest.$ac_objext conftest.beam 3595 test "x$ac_cv_prog_cc_c89" != "xno" && break 3596done 3597rm -f conftest.$ac_ext 3598CC=$ac_save_CC ;; 3599esac 3600fi 3601 3602if test "x$ac_cv_prog_cc_c89" = xno 3603then : 3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3605printf "%s\n" "unsupported" >&6; } 3606else case e in #( 3607 e) if test "x$ac_cv_prog_cc_c89" = x 3608then : 3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3610printf "%s\n" "none needed" >&6; } 3611else case e in #( 3612 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3613printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3614 CC="$CC $ac_cv_prog_cc_c89" ;; 3615esac 3616fi 3617 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3618 ac_prog_cc_stdc=c89 ;; 3619esac 3620fi 3621fi 3622 3623ac_ext=c 3624ac_cpp='$CPP $CPPFLAGS' 3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3627ac_compiler_gnu=$ac_cv_c_compiler_gnu 3628 3629 3630 ac_ext=c 3631ac_cpp='$CPP $CPPFLAGS' 3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3634ac_compiler_gnu=$ac_cv_c_compiler_gnu 3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3636printf %s "checking whether $CC understands -c and -o together... " >&6; } 3637if test ${am_cv_prog_cc_c_o+y} 3638then : 3639 printf %s "(cached) " >&6 3640else case e in #( 3641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3642/* end confdefs.h. */ 3643 3644int 3645main (void) 3646{ 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652 # Make sure it works both with $CC and with simple cc. 3653 # Following AC_PROG_CC_C_O, we do the test twice because some 3654 # compilers refuse to overwrite an existing .o file with -o, 3655 # though they will create one. 3656 am_cv_prog_cc_c_o=yes 3657 for am_i in 1 2; do 3658 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3659 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3660 ac_status=$? 3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3662 (exit $ac_status); } \ 3663 && test -f conftest2.$ac_objext; then 3664 : OK 3665 else 3666 am_cv_prog_cc_c_o=no 3667 break 3668 fi 3669 done 3670 rm -f core conftest* 3671 unset am_i ;; 3672esac 3673fi 3674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3675printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3676if test "$am_cv_prog_cc_c_o" != yes; then 3677 # Losing compiler, so override with the script. 3678 # FIXME: It is wrong to rewrite CC. 3679 # But if we don't then we get into trouble of one sort or another. 3680 # A longer-term fix would be to have automake use am__CC in this case, 3681 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3682 CC="$am_aux_dir/compile $CC" 3683fi 3684ac_ext=c 3685ac_cpp='$CPP $CPPFLAGS' 3686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3688ac_compiler_gnu=$ac_cv_c_compiler_gnu 3689 3690 3691 3692ac_header= ac_cache= 3693for ac_item in $ac_header_c_list 3694do 3695 if test $ac_cache; then 3696 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3697 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3698 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3699 fi 3700 ac_header= ac_cache= 3701 elif test $ac_header; then 3702 ac_cache=$ac_item 3703 else 3704 ac_header=$ac_item 3705 fi 3706done 3707 3708 3709 3710 3711 3712 3713 3714 3715if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3716then : 3717 3718printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3719 3720fi 3721 3722 3723 3724 3725 3726 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3728printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3729if test ${ac_cv_safe_to_define___extensions__+y} 3730then : 3731 printf %s "(cached) " >&6 3732else case e in #( 3733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3734/* end confdefs.h. */ 3735 3736# define __EXTENSIONS__ 1 3737 $ac_includes_default 3738int 3739main (void) 3740{ 3741 3742 ; 3743 return 0; 3744} 3745_ACEOF 3746if ac_fn_c_try_compile "$LINENO" 3747then : 3748 ac_cv_safe_to_define___extensions__=yes 3749else case e in #( 3750 e) ac_cv_safe_to_define___extensions__=no ;; 3751esac 3752fi 3753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3754esac 3755fi 3756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3757printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3758 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3760printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3761if test ${ac_cv_should_define__xopen_source+y} 3762then : 3763 printf %s "(cached) " >&6 3764else case e in #( 3765 e) ac_cv_should_define__xopen_source=no 3766 if test $ac_cv_header_wchar_h = yes 3767then : 3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770 3771 #include <wchar.h> 3772 mbstate_t x; 3773int 3774main (void) 3775{ 3776 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781if ac_fn_c_try_compile "$LINENO" 3782then : 3783 3784else case e in #( 3785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3786/* end confdefs.h. */ 3787 3788 #define _XOPEN_SOURCE 500 3789 #include <wchar.h> 3790 mbstate_t x; 3791int 3792main (void) 3793{ 3794 3795 ; 3796 return 0; 3797} 3798_ACEOF 3799if ac_fn_c_try_compile "$LINENO" 3800then : 3801 ac_cv_should_define__xopen_source=yes 3802fi 3803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3804esac 3805fi 3806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3807fi ;; 3808esac 3809fi 3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3811printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3812 3813 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3814 3815 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3816 3817 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3818 3819 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3820 3821 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3822 3823 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3824 3825 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3826 3827 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3828 3829 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3830 3831 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3832 3833 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3834 3835 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3836 3837 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3838 3839 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3840 3841 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3842 3843 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3844 3845 if test $ac_cv_header_minix_config_h = yes 3846then : 3847 MINIX=yes 3848 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3849 3850 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3851 3852 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3853 3854else case e in #( 3855 e) MINIX= ;; 3856esac 3857fi 3858 if test $ac_cv_safe_to_define___extensions__ = yes 3859then : 3860 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3861 3862fi 3863 if test $ac_cv_should_define__xopen_source = yes 3864then : 3865 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3866 3867fi 3868 3869 3870# Initialize Automake 3871am__api_version='1.16' 3872 3873 3874 # Find a good install program. We prefer a C program (faster), 3875# so one script is as good as another. But avoid the broken or 3876# incompatible versions: 3877# SysV /etc/install, /usr/sbin/install 3878# SunOS /usr/etc/install 3879# IRIX /sbin/install 3880# AIX /bin/install 3881# AmigaOS /C/install, which installs bootblocks on floppy discs 3882# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3883# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3884# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3885# OS/2's system install, which has a completely different semantic 3886# ./install, which can be erroneously created by make from ./install.sh. 3887# Reject install programs that cannot install multiple files. 3888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3889printf %s "checking for a BSD-compatible install... " >&6; } 3890if test -z "$INSTALL"; then 3891if test ${ac_cv_path_install+y} 3892then : 3893 printf %s "(cached) " >&6 3894else case e in #( 3895 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3896for as_dir in $PATH 3897do 3898 IFS=$as_save_IFS 3899 case $as_dir in #((( 3900 '') as_dir=./ ;; 3901 */) ;; 3902 *) as_dir=$as_dir/ ;; 3903 esac 3904 # Account for fact that we put trailing slashes in our PATH walk. 3905case $as_dir in #(( 3906 ./ | /[cC]/* | \ 3907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3908 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3909 /usr/ucb/* ) ;; 3910 *) 3911 # OSF1 and SCO ODT 3.0 have their own names for install. 3912 # Don't use installbsd from OSF since it installs stuff as root 3913 # by default. 3914 for ac_prog in ginstall scoinst install; do 3915 for ac_exec_ext in '' $ac_executable_extensions; do 3916 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3917 if test $ac_prog = install && 3918 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3919 # AIX install. It has an incompatible calling convention. 3920 : 3921 elif test $ac_prog = install && 3922 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3923 # program-specific install script used by HP pwplus--don't use. 3924 : 3925 else 3926 rm -rf conftest.one conftest.two conftest.dir 3927 echo one > conftest.one 3928 echo two > conftest.two 3929 mkdir conftest.dir 3930 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3931 test -s conftest.one && test -s conftest.two && 3932 test -s conftest.dir/conftest.one && 3933 test -s conftest.dir/conftest.two 3934 then 3935 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3936 break 3 3937 fi 3938 fi 3939 fi 3940 done 3941 done 3942 ;; 3943esac 3944 3945 done 3946IFS=$as_save_IFS 3947 3948rm -rf conftest.one conftest.two conftest.dir 3949 ;; 3950esac 3951fi 3952 if test ${ac_cv_path_install+y}; then 3953 INSTALL=$ac_cv_path_install 3954 else 3955 # As a last resort, use the slow shell script. Don't cache a 3956 # value for INSTALL within a source directory, because that will 3957 # break other packages using the cache if that directory is 3958 # removed, or if the value is a relative name. 3959 INSTALL=$ac_install_sh 3960 fi 3961fi 3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3963printf "%s\n" "$INSTALL" >&6; } 3964 3965# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3966# It thinks the first close brace ends the variable substitution. 3967test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3968 3969test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3970 3971test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3972 3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3974printf %s "checking whether build environment is sane... " >&6; } 3975# Reject unsafe characters in $srcdir or the absolute working directory 3976# name. Accept space and tab only in the latter. 3977am_lf=' 3978' 3979case `pwd` in 3980 *[\\\"\#\$\&\'\`$am_lf]*) 3981 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3982esac 3983case $srcdir in 3984 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3985 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3986esac 3987 3988# Do 'set' in a subshell so we don't clobber the current shell's 3989# arguments. Must try -L first in case configure is actually a 3990# symlink; some systems play weird games with the mod time of symlinks 3991# (eg FreeBSD returns the mod time of the symlink's containing 3992# directory). 3993if ( 3994 am_has_slept=no 3995 for am_try in 1 2; do 3996 echo "timestamp, slept: $am_has_slept" > conftest.file 3997 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3998 if test "$*" = "X"; then 3999 # -L didn't work. 4000 set X `ls -t "$srcdir/configure" conftest.file` 4001 fi 4002 if test "$*" != "X $srcdir/configure conftest.file" \ 4003 && test "$*" != "X conftest.file $srcdir/configure"; then 4004 4005 # If neither matched, then we have a broken ls. This can happen 4006 # if, for instance, CONFIG_SHELL is bash and it inherits a 4007 # broken ls alias from the environment. This has actually 4008 # happened. Such a system could not be considered "sane". 4009 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4010 alias in your environment" "$LINENO" 5 4011 fi 4012 if test "$2" = conftest.file || test $am_try -eq 2; then 4013 break 4014 fi 4015 # Just in case. 4016 sleep 1 4017 am_has_slept=yes 4018 done 4019 test "$2" = conftest.file 4020 ) 4021then 4022 # Ok. 4023 : 4024else 4025 as_fn_error $? "newly created file is older than distributed files! 4026Check your system clock" "$LINENO" 5 4027fi 4028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4029printf "%s\n" "yes" >&6; } 4030# If we didn't sleep, we still need to ensure time stamps of config.status and 4031# generated files are strictly newer. 4032am_sleep_pid= 4033if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4034 ( sleep 1 ) & 4035 am_sleep_pid=$! 4036fi 4037 4038rm -f conftest.file 4039 4040test "$program_prefix" != NONE && 4041 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4042# Use a double $ so make ignores it. 4043test "$program_suffix" != NONE && 4044 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4045# Double any \ or $. 4046# By default was 's,x,x', remove it if useless. 4047ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4048program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4049 4050 4051 if test x"${MISSING+set}" != xset; then 4052 MISSING="\${SHELL} '$am_aux_dir/missing'" 4053fi 4054# Use eval to expand $SHELL 4055if eval "$MISSING --is-lightweight"; then 4056 am_missing_run="$MISSING " 4057else 4058 am_missing_run= 4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4060printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4061fi 4062 4063if test x"${install_sh+set}" != xset; then 4064 case $am_aux_dir in 4065 *\ * | *\ *) 4066 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4067 *) 4068 install_sh="\${SHELL} $am_aux_dir/install-sh" 4069 esac 4070fi 4071 4072# Installed binaries are usually stripped using 'strip' when the user 4073# run "make install-strip". However 'strip' might not be the right 4074# tool to use in cross-compilation environments, therefore Automake 4075# will honor the 'STRIP' environment variable to overrule this program. 4076if test "$cross_compiling" != no; then 4077 if test -n "$ac_tool_prefix"; then 4078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4079set dummy ${ac_tool_prefix}strip; ac_word=$2 4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4081printf %s "checking for $ac_word... " >&6; } 4082if test ${ac_cv_prog_STRIP+y} 4083then : 4084 printf %s "(cached) " >&6 4085else case e in #( 4086 e) if test -n "$STRIP"; then 4087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4088else 4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4090for as_dir in $PATH 4091do 4092 IFS=$as_save_IFS 4093 case $as_dir in #((( 4094 '') as_dir=./ ;; 4095 */) ;; 4096 *) as_dir=$as_dir/ ;; 4097 esac 4098 for ac_exec_ext in '' $ac_executable_extensions; do 4099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4100 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4102 break 2 4103 fi 4104done 4105 done 4106IFS=$as_save_IFS 4107 4108fi ;; 4109esac 4110fi 4111STRIP=$ac_cv_prog_STRIP 4112if test -n "$STRIP"; then 4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4114printf "%s\n" "$STRIP" >&6; } 4115else 4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4117printf "%s\n" "no" >&6; } 4118fi 4119 4120 4121fi 4122if test -z "$ac_cv_prog_STRIP"; then 4123 ac_ct_STRIP=$STRIP 4124 # Extract the first word of "strip", so it can be a program name with args. 4125set dummy strip; ac_word=$2 4126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4127printf %s "checking for $ac_word... " >&6; } 4128if test ${ac_cv_prog_ac_ct_STRIP+y} 4129then : 4130 printf %s "(cached) " >&6 4131else case e in #( 4132 e) if test -n "$ac_ct_STRIP"; then 4133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4134else 4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4136for as_dir in $PATH 4137do 4138 IFS=$as_save_IFS 4139 case $as_dir in #((( 4140 '') as_dir=./ ;; 4141 */) ;; 4142 *) as_dir=$as_dir/ ;; 4143 esac 4144 for ac_exec_ext in '' $ac_executable_extensions; do 4145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4146 ac_cv_prog_ac_ct_STRIP="strip" 4147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4148 break 2 4149 fi 4150done 4151 done 4152IFS=$as_save_IFS 4153 4154fi ;; 4155esac 4156fi 4157ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4158if test -n "$ac_ct_STRIP"; then 4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4160printf "%s\n" "$ac_ct_STRIP" >&6; } 4161else 4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4163printf "%s\n" "no" >&6; } 4164fi 4165 4166 if test "x$ac_ct_STRIP" = x; then 4167 STRIP=":" 4168 else 4169 case $cross_compiling:$ac_tool_warned in 4170yes:) 4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4172printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4173ac_tool_warned=yes ;; 4174esac 4175 STRIP=$ac_ct_STRIP 4176 fi 4177else 4178 STRIP="$ac_cv_prog_STRIP" 4179fi 4180 4181fi 4182INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4183 4184 4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4186printf %s "checking for a race-free mkdir -p... " >&6; } 4187if test -z "$MKDIR_P"; then 4188 if test ${ac_cv_path_mkdir+y} 4189then : 4190 printf %s "(cached) " >&6 4191else case e in #( 4192 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4193for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4194do 4195 IFS=$as_save_IFS 4196 case $as_dir in #((( 4197 '') as_dir=./ ;; 4198 */) ;; 4199 *) as_dir=$as_dir/ ;; 4200 esac 4201 for ac_prog in mkdir gmkdir; do 4202 for ac_exec_ext in '' $ac_executable_extensions; do 4203 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4204 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4205 'mkdir ('*'coreutils) '* | \ 4206 *'BusyBox '* | \ 4207 'mkdir (fileutils) '4.1*) 4208 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4209 break 3;; 4210 esac 4211 done 4212 done 4213 done 4214IFS=$as_save_IFS 4215 ;; 4216esac 4217fi 4218 4219 test -d ./--version && rmdir ./--version 4220 if test ${ac_cv_path_mkdir+y}; then 4221 MKDIR_P="$ac_cv_path_mkdir -p" 4222 else 4223 # As a last resort, use plain mkdir -p, 4224 # in the hope it doesn't have the bugs of ancient mkdir. 4225 MKDIR_P='mkdir -p' 4226 fi 4227fi 4228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4229printf "%s\n" "$MKDIR_P" >&6; } 4230 4231for ac_prog in gawk mawk nawk awk 4232do 4233 # Extract the first word of "$ac_prog", so it can be a program name with args. 4234set dummy $ac_prog; ac_word=$2 4235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4236printf %s "checking for $ac_word... " >&6; } 4237if test ${ac_cv_prog_AWK+y} 4238then : 4239 printf %s "(cached) " >&6 4240else case e in #( 4241 e) if test -n "$AWK"; then 4242 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4243else 4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4245for as_dir in $PATH 4246do 4247 IFS=$as_save_IFS 4248 case $as_dir in #((( 4249 '') as_dir=./ ;; 4250 */) ;; 4251 *) as_dir=$as_dir/ ;; 4252 esac 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4255 ac_cv_prog_AWK="$ac_prog" 4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4257 break 2 4258 fi 4259done 4260 done 4261IFS=$as_save_IFS 4262 4263fi ;; 4264esac 4265fi 4266AWK=$ac_cv_prog_AWK 4267if test -n "$AWK"; then 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4269printf "%s\n" "$AWK" >&6; } 4270else 4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4272printf "%s\n" "no" >&6; } 4273fi 4274 4275 4276 test -n "$AWK" && break 4277done 4278 4279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4280printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4281set x ${MAKE-make} 4282ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4283if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4284then : 4285 printf %s "(cached) " >&6 4286else case e in #( 4287 e) cat >conftest.make <<\_ACEOF 4288SHELL = /bin/sh 4289all: 4290 @echo '@@@%%%=$(MAKE)=@@@%%%' 4291_ACEOF 4292# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4293case `${MAKE-make} -f conftest.make 2>/dev/null` in 4294 *@@@%%%=?*=@@@%%%*) 4295 eval ac_cv_prog_make_${ac_make}_set=yes;; 4296 *) 4297 eval ac_cv_prog_make_${ac_make}_set=no;; 4298esac 4299rm -f conftest.make ;; 4300esac 4301fi 4302if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4304printf "%s\n" "yes" >&6; } 4305 SET_MAKE= 4306else 4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4308printf "%s\n" "no" >&6; } 4309 SET_MAKE="MAKE=${MAKE-make}" 4310fi 4311 4312rm -rf .tst 2>/dev/null 4313mkdir .tst 2>/dev/null 4314if test -d .tst; then 4315 am__leading_dot=. 4316else 4317 am__leading_dot=_ 4318fi 4319rmdir .tst 2>/dev/null 4320 4321DEPDIR="${am__leading_dot}deps" 4322 4323ac_config_commands="$ac_config_commands depfiles" 4324 4325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4326printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4327cat > confinc.mk << 'END' 4328am__doit: 4329 @echo this is the am__doit target >confinc.out 4330.PHONY: am__doit 4331END 4332am__include="#" 4333am__quote= 4334# BSD make does it like this. 4335echo '.include "confinc.mk" # ignored' > confmf.BSD 4336# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4337echo 'include confinc.mk # ignored' > confmf.GNU 4338_am_result=no 4339for s in GNU BSD; do 4340 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4341 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4342 ac_status=$? 4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4344 (exit $ac_status); } 4345 case $?:`cat confinc.out 2>/dev/null` in #( 4346 '0:this is the am__doit target') : 4347 case $s in #( 4348 BSD) : 4349 am__include='.include' am__quote='"' ;; #( 4350 *) : 4351 am__include='include' am__quote='' ;; 4352esac ;; #( 4353 *) : 4354 ;; 4355esac 4356 if test "$am__include" != "#"; then 4357 _am_result="yes ($s style)" 4358 break 4359 fi 4360done 4361rm -f confinc.* confmf.* 4362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4363printf "%s\n" "${_am_result}" >&6; } 4364 4365# Check whether --enable-dependency-tracking was given. 4366if test ${enable_dependency_tracking+y} 4367then : 4368 enableval=$enable_dependency_tracking; 4369fi 4370 4371if test "x$enable_dependency_tracking" != xno; then 4372 am_depcomp="$ac_aux_dir/depcomp" 4373 AMDEPBACKSLASH='\' 4374 am__nodep='_no' 4375fi 4376 if test "x$enable_dependency_tracking" != xno; then 4377 AMDEP_TRUE= 4378 AMDEP_FALSE='#' 4379else 4380 AMDEP_TRUE='#' 4381 AMDEP_FALSE= 4382fi 4383 4384 4385# Check whether --enable-silent-rules was given. 4386if test ${enable_silent_rules+y} 4387then : 4388 enableval=$enable_silent_rules; 4389fi 4390 4391case $enable_silent_rules in # ((( 4392 yes) AM_DEFAULT_VERBOSITY=0;; 4393 no) AM_DEFAULT_VERBOSITY=1;; 4394 *) AM_DEFAULT_VERBOSITY=1;; 4395esac 4396am_make=${MAKE-make} 4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4398printf %s "checking whether $am_make supports nested variables... " >&6; } 4399if test ${am_cv_make_support_nested_variables+y} 4400then : 4401 printf %s "(cached) " >&6 4402else case e in #( 4403 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4404BAR0=false 4405BAR1=true 4406V=1 4407am__doit: 4408 @$(TRUE) 4409.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4410 am_cv_make_support_nested_variables=yes 4411else 4412 am_cv_make_support_nested_variables=no 4413fi ;; 4414esac 4415fi 4416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4417printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4418if test $am_cv_make_support_nested_variables = yes; then 4419 AM_V='$(V)' 4420 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4421else 4422 AM_V=$AM_DEFAULT_VERBOSITY 4423 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4424fi 4425AM_BACKSLASH='\' 4426 4427if test "`cd $srcdir && pwd`" != "`pwd`"; then 4428 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4429 # is not polluted with repeated "-I." 4430 am__isrc=' -I$(srcdir)' 4431 # test to see if srcdir already configured 4432 if test -f $srcdir/config.status; then 4433 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4434 fi 4435fi 4436 4437# test whether we have cygpath 4438if test -z "$CYGPATH_W"; then 4439 if (cygpath --version) >/dev/null 2>/dev/null; then 4440 CYGPATH_W='cygpath -w' 4441 else 4442 CYGPATH_W=echo 4443 fi 4444fi 4445 4446 4447# Define the identity of the package. 4448 PACKAGE='xload' 4449 VERSION='1.2.0' 4450 4451 4452printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4453 4454 4455printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4456 4457# Some tools Automake needs. 4458 4459ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4460 4461 4462AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4463 4464 4465AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4466 4467 4468AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4469 4470 4471MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4472 4473# For better backward compatibility. To be removed once Automake 1.9.x 4474# dies out for good. For more background, see: 4475# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4476# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4477mkdir_p='$(MKDIR_P)' 4478 4479# We need awk for the "check" target (and possibly the TAP driver). The 4480# system "awk" is bad on some platforms. 4481# Always define AMTAR for backward compatibility. Yes, it's still used 4482# in the wild :-( We should find a proper way to deprecate it ... 4483AMTAR='$${TAR-tar}' 4484 4485 4486# We'll loop over all known methods to create a tar archive until one works. 4487_am_tools='gnutar pax cpio none' 4488 4489am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4490 4491 4492 4493 4494 4495depcc="$CC" am_compiler_list= 4496 4497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4498printf %s "checking dependency style of $depcc... " >&6; } 4499if test ${am_cv_CC_dependencies_compiler_type+y} 4500then : 4501 printf %s "(cached) " >&6 4502else case e in #( 4503 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4504 # We make a subdir and do the tests there. Otherwise we can end up 4505 # making bogus files that we don't know about and never remove. For 4506 # instance it was reported that on HP-UX the gcc test will end up 4507 # making a dummy file named 'D' -- because '-MD' means "put the output 4508 # in D". 4509 rm -rf conftest.dir 4510 mkdir conftest.dir 4511 # Copy depcomp to subdir because otherwise we won't find it if we're 4512 # using a relative directory. 4513 cp "$am_depcomp" conftest.dir 4514 cd conftest.dir 4515 # We will build objects and dependencies in a subdirectory because 4516 # it helps to detect inapplicable dependency modes. For instance 4517 # both Tru64's cc and ICC support -MD to output dependencies as a 4518 # side effect of compilation, but ICC will put the dependencies in 4519 # the current directory while Tru64 will put them in the object 4520 # directory. 4521 mkdir sub 4522 4523 am_cv_CC_dependencies_compiler_type=none 4524 if test "$am_compiler_list" = ""; then 4525 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4526 fi 4527 am__universal=false 4528 case " $depcc " in #( 4529 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4530 esac 4531 4532 for depmode in $am_compiler_list; do 4533 # Setup a source with many dependencies, because some compilers 4534 # like to wrap large dependency lists on column 80 (with \), and 4535 # we should not choose a depcomp mode which is confused by this. 4536 # 4537 # We need to recreate these files for each test, as the compiler may 4538 # overwrite some of them when testing with obscure command lines. 4539 # This happens at least with the AIX C compiler. 4540 : > sub/conftest.c 4541 for i in 1 2 3 4 5 6; do 4542 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4543 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4544 # Solaris 10 /bin/sh. 4545 echo '/* dummy */' > sub/conftst$i.h 4546 done 4547 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4548 4549 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4550 # mode. It turns out that the SunPro C++ compiler does not properly 4551 # handle '-M -o', and we need to detect this. Also, some Intel 4552 # versions had trouble with output in subdirs. 4553 am__obj=sub/conftest.${OBJEXT-o} 4554 am__minus_obj="-o $am__obj" 4555 case $depmode in 4556 gcc) 4557 # This depmode causes a compiler race in universal mode. 4558 test "$am__universal" = false || continue 4559 ;; 4560 nosideeffect) 4561 # After this tag, mechanisms are not by side-effect, so they'll 4562 # only be used when explicitly requested. 4563 if test "x$enable_dependency_tracking" = xyes; then 4564 continue 4565 else 4566 break 4567 fi 4568 ;; 4569 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4570 # This compiler won't grok '-c -o', but also, the minuso test has 4571 # not run yet. These depmodes are late enough in the game, and 4572 # so weak that their functioning should not be impacted. 4573 am__obj=conftest.${OBJEXT-o} 4574 am__minus_obj= 4575 ;; 4576 none) break ;; 4577 esac 4578 if depmode=$depmode \ 4579 source=sub/conftest.c object=$am__obj \ 4580 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4581 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4582 >/dev/null 2>conftest.err && 4583 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4584 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4585 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4586 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4587 # icc doesn't choke on unknown options, it will just issue warnings 4588 # or remarks (even with -Werror). So we grep stderr for any message 4589 # that says an option was ignored or not supported. 4590 # When given -MP, icc 7.0 and 7.1 complain thusly: 4591 # icc: Command line warning: ignoring option '-M'; no argument required 4592 # The diagnosis changed in icc 8.0: 4593 # icc: Command line remark: option '-MP' not supported 4594 if (grep 'ignoring option' conftest.err || 4595 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4596 am_cv_CC_dependencies_compiler_type=$depmode 4597 break 4598 fi 4599 fi 4600 done 4601 4602 cd .. 4603 rm -rf conftest.dir 4604else 4605 am_cv_CC_dependencies_compiler_type=none 4606fi 4607 ;; 4608esac 4609fi 4610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4611printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4612CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4613 4614 if 4615 test "x$enable_dependency_tracking" != xno \ 4616 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4617 am__fastdepCC_TRUE= 4618 am__fastdepCC_FALSE='#' 4619else 4620 am__fastdepCC_TRUE='#' 4621 am__fastdepCC_FALSE= 4622fi 4623 4624 4625# Variables for tags utilities; see am/tags.am 4626if test -z "$CTAGS"; then 4627 CTAGS=ctags 4628fi 4629 4630if test -z "$ETAGS"; then 4631 ETAGS=etags 4632fi 4633 4634if test -z "$CSCOPE"; then 4635 CSCOPE=cscope 4636fi 4637 4638 4639 4640# POSIX will say in a future version that running "rm -f" with no argument 4641# is OK; and we want to be able to make that assumption in our Makefile 4642# recipes. So use an aggressive probe to check that the usage we want is 4643# actually supported "in the wild" to an acceptable degree. 4644# See automake bug#10828. 4645# To make any issue more visible, cause the running configure to be aborted 4646# by default if the 'rm' program in use doesn't match our expectations; the 4647# user can still override this though. 4648if rm -f && rm -fr && rm -rf; then : OK; else 4649 cat >&2 <<'END' 4650Oops! 4651 4652Your 'rm' program seems unable to run without file operands specified 4653on the command line, even when the '-f' option is present. This is contrary 4654to the behaviour of most rm programs out there, and not conforming with 4655the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4656 4657Please tell bug-automake@gnu.org about your system, including the value 4658of your $PATH and any error possibly output before this message. This 4659can help us improve future automake versions. 4660 4661END 4662 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4663 echo 'Configuration will proceed anyway, since you have set the' >&2 4664 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4665 echo >&2 4666 else 4667 cat >&2 <<'END' 4668Aborting the configuration process, to ensure you take notice of the issue. 4669 4670You can download and install GNU coreutils to get an 'rm' implementation 4671that behaves properly: <https://www.gnu.org/software/coreutils/>. 4672 4673If you want to complete the configuration process using your problematic 4674'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4675to "yes", and re-run configure. 4676 4677END 4678 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4679 fi 4680fi 4681 4682 4683# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4696printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4697if test ${ac_cv_c_undeclared_builtin_options+y} 4698then : 4699 printf %s "(cached) " >&6 4700else case e in #( 4701 e) ac_save_CFLAGS=$CFLAGS 4702 ac_cv_c_undeclared_builtin_options='cannot detect' 4703 for ac_arg in '' -fno-builtin; do 4704 CFLAGS="$ac_save_CFLAGS $ac_arg" 4705 # This test program should *not* compile successfully. 4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4707/* end confdefs.h. */ 4708 4709int 4710main (void) 4711{ 4712(void) strchr; 4713 ; 4714 return 0; 4715} 4716_ACEOF 4717if ac_fn_c_try_compile "$LINENO" 4718then : 4719 4720else case e in #( 4721 e) # This test program should compile successfully. 4722 # No library function is consistently available on 4723 # freestanding implementations, so test against a dummy 4724 # declaration. Include always-available headers on the 4725 # off chance that they somehow elicit warnings. 4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4727/* end confdefs.h. */ 4728#include <float.h> 4729#include <limits.h> 4730#include <stdarg.h> 4731#include <stddef.h> 4732extern void ac_decl (int, char *); 4733 4734int 4735main (void) 4736{ 4737(void) ac_decl (0, (char *) 0); 4738 (void) ac_decl; 4739 4740 ; 4741 return 0; 4742} 4743_ACEOF 4744if ac_fn_c_try_compile "$LINENO" 4745then : 4746 if test x"$ac_arg" = x 4747then : 4748 ac_cv_c_undeclared_builtin_options='none needed' 4749else case e in #( 4750 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4751esac 4752fi 4753 break 4754fi 4755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4756esac 4757fi 4758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4759 done 4760 CFLAGS=$ac_save_CFLAGS 4761 ;; 4762esac 4763fi 4764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4765printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4766 case $ac_cv_c_undeclared_builtin_options in #( 4767 'cannot detect') : 4768 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4769printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4770as_fn_error $? "cannot make $CC report undeclared builtins 4771See 'config.log' for more details" "$LINENO" 5; } ;; #( 4772 'none needed') : 4773 ac_c_undeclared_builtin_options='' ;; #( 4774 *) : 4775 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4776esac 4777 4778 4779 4780 4781 4782ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4783if test "x$ac_cv_have_decl___clang__" = xyes 4784then : 4785 CLANGCC="yes" 4786else case e in #( 4787 e) CLANGCC="no" ;; 4788esac 4789fi 4790ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4791if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4792then : 4793 INTELCC="yes" 4794else case e in #( 4795 e) INTELCC="no" ;; 4796esac 4797fi 4798ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4799if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4800then : 4801 SUNCC="yes" 4802else case e in #( 4803 e) SUNCC="no" ;; 4804esac 4805fi 4806 4807 4808 4809 4810 4811 4812 4813 4814if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4815 if test -n "$ac_tool_prefix"; then 4816 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4817set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4819printf %s "checking for $ac_word... " >&6; } 4820if test ${ac_cv_path_PKG_CONFIG+y} 4821then : 4822 printf %s "(cached) " >&6 4823else case e in #( 4824 e) case $PKG_CONFIG in 4825 [\\/]* | ?:[\\/]*) 4826 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4827 ;; 4828 *) 4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4830for as_dir in $PATH 4831do 4832 IFS=$as_save_IFS 4833 case $as_dir in #((( 4834 '') as_dir=./ ;; 4835 */) ;; 4836 *) as_dir=$as_dir/ ;; 4837 esac 4838 for ac_exec_ext in '' $ac_executable_extensions; do 4839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4840 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4842 break 2 4843 fi 4844done 4845 done 4846IFS=$as_save_IFS 4847 4848 ;; 4849esac ;; 4850esac 4851fi 4852PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4853if test -n "$PKG_CONFIG"; then 4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4855printf "%s\n" "$PKG_CONFIG" >&6; } 4856else 4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4858printf "%s\n" "no" >&6; } 4859fi 4860 4861 4862fi 4863if test -z "$ac_cv_path_PKG_CONFIG"; then 4864 ac_pt_PKG_CONFIG=$PKG_CONFIG 4865 # Extract the first word of "pkg-config", so it can be a program name with args. 4866set dummy pkg-config; ac_word=$2 4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4868printf %s "checking for $ac_word... " >&6; } 4869if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4870then : 4871 printf %s "(cached) " >&6 4872else case e in #( 4873 e) case $ac_pt_PKG_CONFIG in 4874 [\\/]* | ?:[\\/]*) 4875 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4876 ;; 4877 *) 4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4879for as_dir in $PATH 4880do 4881 IFS=$as_save_IFS 4882 case $as_dir in #((( 4883 '') as_dir=./ ;; 4884 */) ;; 4885 *) as_dir=$as_dir/ ;; 4886 esac 4887 for ac_exec_ext in '' $ac_executable_extensions; do 4888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4889 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4891 break 2 4892 fi 4893done 4894 done 4895IFS=$as_save_IFS 4896 4897 ;; 4898esac ;; 4899esac 4900fi 4901ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4902if test -n "$ac_pt_PKG_CONFIG"; then 4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4904printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4905else 4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4907printf "%s\n" "no" >&6; } 4908fi 4909 4910 if test "x$ac_pt_PKG_CONFIG" = x; then 4911 PKG_CONFIG="" 4912 else 4913 case $cross_compiling:$ac_tool_warned in 4914yes:) 4915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4916printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4917ac_tool_warned=yes ;; 4918esac 4919 PKG_CONFIG=$ac_pt_PKG_CONFIG 4920 fi 4921else 4922 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4923fi 4924 4925fi 4926if test -n "$PKG_CONFIG"; then 4927 _pkg_min_version=0.9.0 4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4929printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4930 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4932printf "%s\n" "yes" >&6; } 4933 else 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4935printf "%s\n" "no" >&6; } 4936 PKG_CONFIG="" 4937 fi 4938fi 4939 4940 4941 # Make sure we can run config.sub. 4942$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4943 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4944 4945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4946printf %s "checking build system type... " >&6; } 4947if test ${ac_cv_build+y} 4948then : 4949 printf %s "(cached) " >&6 4950else case e in #( 4951 e) ac_build_alias=$build_alias 4952test "x$ac_build_alias" = x && 4953 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4954test "x$ac_build_alias" = x && 4955 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4956ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4957 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4958 ;; 4959esac 4960fi 4961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4962printf "%s\n" "$ac_cv_build" >&6; } 4963case $ac_cv_build in 4964*-*-*) ;; 4965*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4966esac 4967build=$ac_cv_build 4968ac_save_IFS=$IFS; IFS='-' 4969set x $ac_cv_build 4970shift 4971build_cpu=$1 4972build_vendor=$2 4973shift; shift 4974# Remember, the first character of IFS is used to create $*, 4975# except with old shells: 4976build_os=$* 4977IFS=$ac_save_IFS 4978case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4979 4980 4981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4982printf %s "checking host system type... " >&6; } 4983if test ${ac_cv_host+y} 4984then : 4985 printf %s "(cached) " >&6 4986else case e in #( 4987 e) if test "x$host_alias" = x; then 4988 ac_cv_host=$ac_cv_build 4989else 4990 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4991 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4992fi 4993 ;; 4994esac 4995fi 4996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4997printf "%s\n" "$ac_cv_host" >&6; } 4998case $ac_cv_host in 4999*-*-*) ;; 5000*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5001esac 5002host=$ac_cv_host 5003ac_save_IFS=$IFS; IFS='-' 5004set x $ac_cv_host 5005shift 5006host_cpu=$1 5007host_vendor=$2 5008shift; shift 5009# Remember, the first character of IFS is used to create $*, 5010# except with old shells: 5011host_os=$* 5012IFS=$ac_save_IFS 5013case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5014 5015 5016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5017printf %s "checking for a sed that does not truncate output... " >&6; } 5018if test ${ac_cv_path_SED+y} 5019then : 5020 printf %s "(cached) " >&6 5021else case e in #( 5022 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5023 for ac_i in 1 2 3 4 5 6 7; do 5024 ac_script="$ac_script$as_nl$ac_script" 5025 done 5026 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5027 { ac_script=; unset ac_script;} 5028 if test -z "$SED"; then 5029 ac_path_SED_found=false 5030 # Loop through the user's path and test for each of PROGNAME-LIST 5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5032for as_dir in $PATH 5033do 5034 IFS=$as_save_IFS 5035 case $as_dir in #((( 5036 '') as_dir=./ ;; 5037 */) ;; 5038 *) as_dir=$as_dir/ ;; 5039 esac 5040 for ac_prog in sed gsed 5041 do 5042 for ac_exec_ext in '' $ac_executable_extensions; do 5043 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5044 as_fn_executable_p "$ac_path_SED" || continue 5045# Check for GNU ac_path_SED and select it if it is found. 5046 # Check for GNU $ac_path_SED 5047case `"$ac_path_SED" --version 2>&1` in #( 5048*GNU*) 5049 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5050#( 5051*) 5052 ac_count=0 5053 printf %s 0123456789 >"conftest.in" 5054 while : 5055 do 5056 cat "conftest.in" "conftest.in" >"conftest.tmp" 5057 mv "conftest.tmp" "conftest.in" 5058 cp "conftest.in" "conftest.nl" 5059 printf "%s\n" '' >> "conftest.nl" 5060 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5062 as_fn_arith $ac_count + 1 && ac_count=$as_val 5063 if test $ac_count -gt ${ac_path_SED_max-0}; then 5064 # Best one so far, save it but keep looking for a better one 5065 ac_cv_path_SED="$ac_path_SED" 5066 ac_path_SED_max=$ac_count 5067 fi 5068 # 10*(2^10) chars as input seems more than enough 5069 test $ac_count -gt 10 && break 5070 done 5071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5072esac 5073 5074 $ac_path_SED_found && break 3 5075 done 5076 done 5077 done 5078IFS=$as_save_IFS 5079 if test -z "$ac_cv_path_SED"; then 5080 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5081 fi 5082else 5083 ac_cv_path_SED=$SED 5084fi 5085 ;; 5086esac 5087fi 5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5089printf "%s\n" "$ac_cv_path_SED" >&6; } 5090 SED="$ac_cv_path_SED" 5091 rm -f conftest.sed 5092 5093 5094 5095 5096 5097 5098# Check whether --enable-selective-werror was given. 5099if test ${enable_selective_werror+y} 5100then : 5101 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5102else case e in #( 5103 e) SELECTIVE_WERROR=yes ;; 5104esac 5105fi 5106 5107 5108 5109 5110 5111# -v is too short to test reliably with XORG_TESTSET_CFLAG 5112if test "x$SUNCC" = "xyes"; then 5113 BASE_CFLAGS="-v" 5114else 5115 BASE_CFLAGS="" 5116fi 5117 5118# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132xorg_testset_save_CFLAGS="$CFLAGS" 5133 5134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5137printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5138if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5139then : 5140 printf %s "(cached) " >&6 5141else case e in #( 5142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143/* end confdefs.h. */ 5144int i; 5145_ACEOF 5146if ac_fn_c_try_compile "$LINENO" 5147then : 5148 xorg_cv_cc_flag_unknown_warning_option=yes 5149else case e in #( 5150 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5151esac 5152fi 5153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5154esac 5155fi 5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5159 CFLAGS="$xorg_testset_save_CFLAGS" 5160fi 5161 5162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5165 fi 5166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5169if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5170then : 5171 printf %s "(cached) " >&6 5172else case e in #( 5173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174/* end confdefs.h. */ 5175int i; 5176_ACEOF 5177if ac_fn_c_try_compile "$LINENO" 5178then : 5179 xorg_cv_cc_flag_unused_command_line_argument=yes 5180else case e in #( 5181 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5182esac 5183fi 5184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5185esac 5186fi 5187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5188printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5190 CFLAGS="$xorg_testset_save_CFLAGS" 5191fi 5192 5193found="no" 5194 5195 if test $found = "no" ; then 5196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5198 fi 5199 5200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5202 fi 5203 5204 CFLAGS="$CFLAGS -Wall" 5205 5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5207printf %s "checking if $CC supports -Wall... " >&6; } 5208 cacheid=xorg_cv_cc_flag__Wall 5209 if eval test \${$cacheid+y} 5210then : 5211 printf %s "(cached) " >&6 5212else case e in #( 5213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5214/* end confdefs.h. */ 5215int i; 5216int 5217main (void) 5218{ 5219 5220 ; 5221 return 0; 5222} 5223_ACEOF 5224if ac_fn_c_try_link "$LINENO" 5225then : 5226 eval $cacheid=yes 5227else case e in #( 5228 e) eval $cacheid=no ;; 5229esac 5230fi 5231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5232 conftest$ac_exeext conftest.$ac_ext ;; 5233esac 5234fi 5235 5236 5237 CFLAGS="$xorg_testset_save_CFLAGS" 5238 5239 eval supported=\$$cacheid 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5241printf "%s\n" "$supported" >&6; } 5242 if test "$supported" = "yes" ; then 5243 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5244 found="yes" 5245 fi 5246 fi 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262xorg_testset_save_CFLAGS="$CFLAGS" 5263 5264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5268if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5269then : 5270 printf %s "(cached) " >&6 5271else case e in #( 5272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273/* end confdefs.h. */ 5274int i; 5275_ACEOF 5276if ac_fn_c_try_compile "$LINENO" 5277then : 5278 xorg_cv_cc_flag_unknown_warning_option=yes 5279else case e in #( 5280 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5281esac 5282fi 5283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5284esac 5285fi 5286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5289 CFLAGS="$xorg_testset_save_CFLAGS" 5290fi 5291 5292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5295 fi 5296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5299if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5300then : 5301 printf %s "(cached) " >&6 5302else case e in #( 5303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5304/* end confdefs.h. */ 5305int i; 5306_ACEOF 5307if ac_fn_c_try_compile "$LINENO" 5308then : 5309 xorg_cv_cc_flag_unused_command_line_argument=yes 5310else case e in #( 5311 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5312esac 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5315esac 5316fi 5317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5320 CFLAGS="$xorg_testset_save_CFLAGS" 5321fi 5322 5323found="no" 5324 5325 if test $found = "no" ; then 5326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5328 fi 5329 5330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5332 fi 5333 5334 CFLAGS="$CFLAGS -Wpointer-arith" 5335 5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5337printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5338 cacheid=xorg_cv_cc_flag__Wpointer_arith 5339 if eval test \${$cacheid+y} 5340then : 5341 printf %s "(cached) " >&6 5342else case e in #( 5343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5344/* end confdefs.h. */ 5345int i; 5346int 5347main (void) 5348{ 5349 5350 ; 5351 return 0; 5352} 5353_ACEOF 5354if ac_fn_c_try_link "$LINENO" 5355then : 5356 eval $cacheid=yes 5357else case e in #( 5358 e) eval $cacheid=no ;; 5359esac 5360fi 5361rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5362 conftest$ac_exeext conftest.$ac_ext ;; 5363esac 5364fi 5365 5366 5367 CFLAGS="$xorg_testset_save_CFLAGS" 5368 5369 eval supported=\$$cacheid 5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5371printf "%s\n" "$supported" >&6; } 5372 if test "$supported" = "yes" ; then 5373 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5374 found="yes" 5375 fi 5376 fi 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392xorg_testset_save_CFLAGS="$CFLAGS" 5393 5394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5397printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5398if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5399then : 5400 printf %s "(cached) " >&6 5401else case e in #( 5402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5403/* end confdefs.h. */ 5404int i; 5405_ACEOF 5406if ac_fn_c_try_compile "$LINENO" 5407then : 5408 xorg_cv_cc_flag_unknown_warning_option=yes 5409else case e in #( 5410 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5411esac 5412fi 5413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5414esac 5415fi 5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5419 CFLAGS="$xorg_testset_save_CFLAGS" 5420fi 5421 5422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5425 fi 5426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5429if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5430then : 5431 printf %s "(cached) " >&6 5432else case e in #( 5433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435int i; 5436_ACEOF 5437if ac_fn_c_try_compile "$LINENO" 5438then : 5439 xorg_cv_cc_flag_unused_command_line_argument=yes 5440else case e in #( 5441 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5442esac 5443fi 5444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5445esac 5446fi 5447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5450 CFLAGS="$xorg_testset_save_CFLAGS" 5451fi 5452 5453found="no" 5454 5455 if test $found = "no" ; then 5456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5458 fi 5459 5460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5462 fi 5463 5464 CFLAGS="$CFLAGS -Wmissing-declarations" 5465 5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5467printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5468 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5469 if eval test \${$cacheid+y} 5470then : 5471 printf %s "(cached) " >&6 5472else case e in #( 5473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5474/* end confdefs.h. */ 5475int i; 5476int 5477main (void) 5478{ 5479 5480 ; 5481 return 0; 5482} 5483_ACEOF 5484if ac_fn_c_try_link "$LINENO" 5485then : 5486 eval $cacheid=yes 5487else case e in #( 5488 e) eval $cacheid=no ;; 5489esac 5490fi 5491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5492 conftest$ac_exeext conftest.$ac_ext ;; 5493esac 5494fi 5495 5496 5497 CFLAGS="$xorg_testset_save_CFLAGS" 5498 5499 eval supported=\$$cacheid 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5501printf "%s\n" "$supported" >&6; } 5502 if test "$supported" = "yes" ; then 5503 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5504 found="yes" 5505 fi 5506 fi 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522xorg_testset_save_CFLAGS="$CFLAGS" 5523 5524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5528if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5529then : 5530 printf %s "(cached) " >&6 5531else case e in #( 5532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5533/* end confdefs.h. */ 5534int i; 5535_ACEOF 5536if ac_fn_c_try_compile "$LINENO" 5537then : 5538 xorg_cv_cc_flag_unknown_warning_option=yes 5539else case e in #( 5540 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5541esac 5542fi 5543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5544esac 5545fi 5546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5549 CFLAGS="$xorg_testset_save_CFLAGS" 5550fi 5551 5552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 fi 5556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5559if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5560then : 5561 printf %s "(cached) " >&6 5562else case e in #( 5563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565int i; 5566_ACEOF 5567if ac_fn_c_try_compile "$LINENO" 5568then : 5569 xorg_cv_cc_flag_unused_command_line_argument=yes 5570else case e in #( 5571 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5572esac 5573fi 5574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5575esac 5576fi 5577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5580 CFLAGS="$xorg_testset_save_CFLAGS" 5581fi 5582 5583found="no" 5584 5585 if test $found = "no" ; then 5586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5588 fi 5589 5590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5592 fi 5593 5594 CFLAGS="$CFLAGS -Wformat=2" 5595 5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5597printf %s "checking if $CC supports -Wformat=2... " >&6; } 5598 cacheid=xorg_cv_cc_flag__Wformat_2 5599 if eval test \${$cacheid+y} 5600then : 5601 printf %s "(cached) " >&6 5602else case e in #( 5603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5604/* end confdefs.h. */ 5605int i; 5606int 5607main (void) 5608{ 5609 5610 ; 5611 return 0; 5612} 5613_ACEOF 5614if ac_fn_c_try_link "$LINENO" 5615then : 5616 eval $cacheid=yes 5617else case e in #( 5618 e) eval $cacheid=no ;; 5619esac 5620fi 5621rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5622 conftest$ac_exeext conftest.$ac_ext ;; 5623esac 5624fi 5625 5626 5627 CFLAGS="$xorg_testset_save_CFLAGS" 5628 5629 eval supported=\$$cacheid 5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5631printf "%s\n" "$supported" >&6; } 5632 if test "$supported" = "yes" ; then 5633 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5634 found="yes" 5635 fi 5636 fi 5637 5638 if test $found = "no" ; then 5639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5641 fi 5642 5643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5645 fi 5646 5647 CFLAGS="$CFLAGS -Wformat" 5648 5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5650printf %s "checking if $CC supports -Wformat... " >&6; } 5651 cacheid=xorg_cv_cc_flag__Wformat 5652 if eval test \${$cacheid+y} 5653then : 5654 printf %s "(cached) " >&6 5655else case e in #( 5656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5657/* end confdefs.h. */ 5658int i; 5659int 5660main (void) 5661{ 5662 5663 ; 5664 return 0; 5665} 5666_ACEOF 5667if ac_fn_c_try_link "$LINENO" 5668then : 5669 eval $cacheid=yes 5670else case e in #( 5671 e) eval $cacheid=no ;; 5672esac 5673fi 5674rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5675 conftest$ac_exeext conftest.$ac_ext ;; 5676esac 5677fi 5678 5679 5680 CFLAGS="$xorg_testset_save_CFLAGS" 5681 5682 eval supported=\$$cacheid 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5684printf "%s\n" "$supported" >&6; } 5685 if test "$supported" = "yes" ; then 5686 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5687 found="yes" 5688 fi 5689 fi 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707xorg_testset_save_CFLAGS="$CFLAGS" 5708 5709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5713if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5714then : 5715 printf %s "(cached) " >&6 5716else case e in #( 5717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5718/* end confdefs.h. */ 5719int i; 5720_ACEOF 5721if ac_fn_c_try_compile "$LINENO" 5722then : 5723 xorg_cv_cc_flag_unknown_warning_option=yes 5724else case e in #( 5725 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5726esac 5727fi 5728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5729esac 5730fi 5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5734 CFLAGS="$xorg_testset_save_CFLAGS" 5735fi 5736 5737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5740 fi 5741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5744if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5745then : 5746 printf %s "(cached) " >&6 5747else case e in #( 5748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749/* end confdefs.h. */ 5750int i; 5751_ACEOF 5752if ac_fn_c_try_compile "$LINENO" 5753then : 5754 xorg_cv_cc_flag_unused_command_line_argument=yes 5755else case e in #( 5756 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5757esac 5758fi 5759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5760esac 5761fi 5762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5765 CFLAGS="$xorg_testset_save_CFLAGS" 5766fi 5767 5768found="no" 5769 5770 if test $found = "no" ; then 5771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5773 fi 5774 5775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5777 fi 5778 5779 CFLAGS="$CFLAGS -Wstrict-prototypes" 5780 5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5782printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5783 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5784 if eval test \${$cacheid+y} 5785then : 5786 printf %s "(cached) " >&6 5787else case e in #( 5788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5789/* end confdefs.h. */ 5790int i; 5791int 5792main (void) 5793{ 5794 5795 ; 5796 return 0; 5797} 5798_ACEOF 5799if ac_fn_c_try_link "$LINENO" 5800then : 5801 eval $cacheid=yes 5802else case e in #( 5803 e) eval $cacheid=no ;; 5804esac 5805fi 5806rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5807 conftest$ac_exeext conftest.$ac_ext ;; 5808esac 5809fi 5810 5811 5812 CFLAGS="$xorg_testset_save_CFLAGS" 5813 5814 eval supported=\$$cacheid 5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5816printf "%s\n" "$supported" >&6; } 5817 if test "$supported" = "yes" ; then 5818 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5819 found="yes" 5820 fi 5821 fi 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837xorg_testset_save_CFLAGS="$CFLAGS" 5838 5839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5842printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5843if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5844then : 5845 printf %s "(cached) " >&6 5846else case e in #( 5847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5848/* end confdefs.h. */ 5849int i; 5850_ACEOF 5851if ac_fn_c_try_compile "$LINENO" 5852then : 5853 xorg_cv_cc_flag_unknown_warning_option=yes 5854else case e in #( 5855 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5856esac 5857fi 5858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5859esac 5860fi 5861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865fi 5866 5867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5870 fi 5871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5874if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5875then : 5876 printf %s "(cached) " >&6 5877else case e in #( 5878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879/* end confdefs.h. */ 5880int i; 5881_ACEOF 5882if ac_fn_c_try_compile "$LINENO" 5883then : 5884 xorg_cv_cc_flag_unused_command_line_argument=yes 5885else case e in #( 5886 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5887esac 5888fi 5889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5890esac 5891fi 5892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5895 CFLAGS="$xorg_testset_save_CFLAGS" 5896fi 5897 5898found="no" 5899 5900 if test $found = "no" ; then 5901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5903 fi 5904 5905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5907 fi 5908 5909 CFLAGS="$CFLAGS -Wmissing-prototypes" 5910 5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5912printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5913 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5914 if eval test \${$cacheid+y} 5915then : 5916 printf %s "(cached) " >&6 5917else case e in #( 5918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5919/* end confdefs.h. */ 5920int i; 5921int 5922main (void) 5923{ 5924 5925 ; 5926 return 0; 5927} 5928_ACEOF 5929if ac_fn_c_try_link "$LINENO" 5930then : 5931 eval $cacheid=yes 5932else case e in #( 5933 e) eval $cacheid=no ;; 5934esac 5935fi 5936rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5937 conftest$ac_exeext conftest.$ac_ext ;; 5938esac 5939fi 5940 5941 5942 CFLAGS="$xorg_testset_save_CFLAGS" 5943 5944 eval supported=\$$cacheid 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5946printf "%s\n" "$supported" >&6; } 5947 if test "$supported" = "yes" ; then 5948 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5949 found="yes" 5950 fi 5951 fi 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967xorg_testset_save_CFLAGS="$CFLAGS" 5968 5969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5973if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5974then : 5975 printf %s "(cached) " >&6 5976else case e in #( 5977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979int i; 5980_ACEOF 5981if ac_fn_c_try_compile "$LINENO" 5982then : 5983 xorg_cv_cc_flag_unknown_warning_option=yes 5984else case e in #( 5985 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5986esac 5987fi 5988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5989esac 5990fi 5991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5992printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5994 CFLAGS="$xorg_testset_save_CFLAGS" 5995fi 5996 5997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 fi 6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6003printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6004if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6005then : 6006 printf %s "(cached) " >&6 6007else case e in #( 6008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009/* end confdefs.h. */ 6010int i; 6011_ACEOF 6012if ac_fn_c_try_compile "$LINENO" 6013then : 6014 xorg_cv_cc_flag_unused_command_line_argument=yes 6015else case e in #( 6016 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6017esac 6018fi 6019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6020esac 6021fi 6022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6023printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6025 CFLAGS="$xorg_testset_save_CFLAGS" 6026fi 6027 6028found="no" 6029 6030 if test $found = "no" ; then 6031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6033 fi 6034 6035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6037 fi 6038 6039 CFLAGS="$CFLAGS -Wnested-externs" 6040 6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6042printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6043 cacheid=xorg_cv_cc_flag__Wnested_externs 6044 if eval test \${$cacheid+y} 6045then : 6046 printf %s "(cached) " >&6 6047else case e in #( 6048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6049/* end confdefs.h. */ 6050int i; 6051int 6052main (void) 6053{ 6054 6055 ; 6056 return 0; 6057} 6058_ACEOF 6059if ac_fn_c_try_link "$LINENO" 6060then : 6061 eval $cacheid=yes 6062else case e in #( 6063 e) eval $cacheid=no ;; 6064esac 6065fi 6066rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6067 conftest$ac_exeext conftest.$ac_ext ;; 6068esac 6069fi 6070 6071 6072 CFLAGS="$xorg_testset_save_CFLAGS" 6073 6074 eval supported=\$$cacheid 6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6076printf "%s\n" "$supported" >&6; } 6077 if test "$supported" = "yes" ; then 6078 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6079 found="yes" 6080 fi 6081 fi 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097xorg_testset_save_CFLAGS="$CFLAGS" 6098 6099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6103if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6104then : 6105 printf %s "(cached) " >&6 6106else case e in #( 6107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109int i; 6110_ACEOF 6111if ac_fn_c_try_compile "$LINENO" 6112then : 6113 xorg_cv_cc_flag_unknown_warning_option=yes 6114else case e in #( 6115 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6116esac 6117fi 6118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6119esac 6120fi 6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6122printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6124 CFLAGS="$xorg_testset_save_CFLAGS" 6125fi 6126 6127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6130 fi 6131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6133printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6134if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6135then : 6136 printf %s "(cached) " >&6 6137else case e in #( 6138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6139/* end confdefs.h. */ 6140int i; 6141_ACEOF 6142if ac_fn_c_try_compile "$LINENO" 6143then : 6144 xorg_cv_cc_flag_unused_command_line_argument=yes 6145else case e in #( 6146 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6147esac 6148fi 6149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6150esac 6151fi 6152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6155 CFLAGS="$xorg_testset_save_CFLAGS" 6156fi 6157 6158found="no" 6159 6160 if test $found = "no" ; then 6161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6163 fi 6164 6165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6167 fi 6168 6169 CFLAGS="$CFLAGS -Wbad-function-cast" 6170 6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6172printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6173 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6174 if eval test \${$cacheid+y} 6175then : 6176 printf %s "(cached) " >&6 6177else case e in #( 6178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6179/* end confdefs.h. */ 6180int i; 6181int 6182main (void) 6183{ 6184 6185 ; 6186 return 0; 6187} 6188_ACEOF 6189if ac_fn_c_try_link "$LINENO" 6190then : 6191 eval $cacheid=yes 6192else case e in #( 6193 e) eval $cacheid=no ;; 6194esac 6195fi 6196rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6197 conftest$ac_exeext conftest.$ac_ext ;; 6198esac 6199fi 6200 6201 6202 CFLAGS="$xorg_testset_save_CFLAGS" 6203 6204 eval supported=\$$cacheid 6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6206printf "%s\n" "$supported" >&6; } 6207 if test "$supported" = "yes" ; then 6208 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6209 found="yes" 6210 fi 6211 fi 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227xorg_testset_save_CFLAGS="$CFLAGS" 6228 6229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6233if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6234then : 6235 printf %s "(cached) " >&6 6236else case e in #( 6237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6238/* end confdefs.h. */ 6239int i; 6240_ACEOF 6241if ac_fn_c_try_compile "$LINENO" 6242then : 6243 xorg_cv_cc_flag_unknown_warning_option=yes 6244else case e in #( 6245 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6246esac 6247fi 6248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6249esac 6250fi 6251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6252printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6254 CFLAGS="$xorg_testset_save_CFLAGS" 6255fi 6256 6257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6260 fi 6261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6263printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6264if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6265then : 6266 printf %s "(cached) " >&6 6267else case e in #( 6268 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6269/* end confdefs.h. */ 6270int i; 6271_ACEOF 6272if ac_fn_c_try_compile "$LINENO" 6273then : 6274 xorg_cv_cc_flag_unused_command_line_argument=yes 6275else case e in #( 6276 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6277esac 6278fi 6279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6280esac 6281fi 6282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6283printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6285 CFLAGS="$xorg_testset_save_CFLAGS" 6286fi 6287 6288found="no" 6289 6290 if test $found = "no" ; then 6291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6293 fi 6294 6295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6297 fi 6298 6299 CFLAGS="$CFLAGS -Wold-style-definition" 6300 6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6302printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6303 cacheid=xorg_cv_cc_flag__Wold_style_definition 6304 if eval test \${$cacheid+y} 6305then : 6306 printf %s "(cached) " >&6 6307else case e in #( 6308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6309/* end confdefs.h. */ 6310int i; 6311int 6312main (void) 6313{ 6314 6315 ; 6316 return 0; 6317} 6318_ACEOF 6319if ac_fn_c_try_link "$LINENO" 6320then : 6321 eval $cacheid=yes 6322else case e in #( 6323 e) eval $cacheid=no ;; 6324esac 6325fi 6326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6327 conftest$ac_exeext conftest.$ac_ext ;; 6328esac 6329fi 6330 6331 6332 CFLAGS="$xorg_testset_save_CFLAGS" 6333 6334 eval supported=\$$cacheid 6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6336printf "%s\n" "$supported" >&6; } 6337 if test "$supported" = "yes" ; then 6338 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6339 found="yes" 6340 fi 6341 fi 6342 6343 if test $found = "no" ; then 6344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6346 fi 6347 6348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6350 fi 6351 6352 CFLAGS="$CFLAGS -fd" 6353 6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6355printf %s "checking if $CC supports -fd... " >&6; } 6356 cacheid=xorg_cv_cc_flag__fd 6357 if eval test \${$cacheid+y} 6358then : 6359 printf %s "(cached) " >&6 6360else case e in #( 6361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6362/* end confdefs.h. */ 6363int i; 6364int 6365main (void) 6366{ 6367 6368 ; 6369 return 0; 6370} 6371_ACEOF 6372if ac_fn_c_try_link "$LINENO" 6373then : 6374 eval $cacheid=yes 6375else case e in #( 6376 e) eval $cacheid=no ;; 6377esac 6378fi 6379rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6380 conftest$ac_exeext conftest.$ac_ext ;; 6381esac 6382fi 6383 6384 6385 CFLAGS="$xorg_testset_save_CFLAGS" 6386 6387 eval supported=\$$cacheid 6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6389printf "%s\n" "$supported" >&6; } 6390 if test "$supported" = "yes" ; then 6391 BASE_CFLAGS="$BASE_CFLAGS -fd" 6392 found="yes" 6393 fi 6394 fi 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410xorg_testset_save_CFLAGS="$CFLAGS" 6411 6412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6415printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6416if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6417then : 6418 printf %s "(cached) " >&6 6419else case e in #( 6420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421/* end confdefs.h. */ 6422int i; 6423_ACEOF 6424if ac_fn_c_try_compile "$LINENO" 6425then : 6426 xorg_cv_cc_flag_unknown_warning_option=yes 6427else case e in #( 6428 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6429esac 6430fi 6431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6432esac 6433fi 6434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6437 CFLAGS="$xorg_testset_save_CFLAGS" 6438fi 6439 6440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6443 fi 6444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6447if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6448then : 6449 printf %s "(cached) " >&6 6450else case e in #( 6451 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6452/* end confdefs.h. */ 6453int i; 6454_ACEOF 6455if ac_fn_c_try_compile "$LINENO" 6456then : 6457 xorg_cv_cc_flag_unused_command_line_argument=yes 6458else case e in #( 6459 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6460esac 6461fi 6462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6463esac 6464fi 6465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6468 CFLAGS="$xorg_testset_save_CFLAGS" 6469fi 6470 6471found="no" 6472 6473 if test $found = "no" ; then 6474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6476 fi 6477 6478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6480 fi 6481 6482 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6483 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6485printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6486 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6487 if eval test \${$cacheid+y} 6488then : 6489 printf %s "(cached) " >&6 6490else case e in #( 6491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6492/* end confdefs.h. */ 6493int i; 6494int 6495main (void) 6496{ 6497 6498 ; 6499 return 0; 6500} 6501_ACEOF 6502if ac_fn_c_try_link "$LINENO" 6503then : 6504 eval $cacheid=yes 6505else case e in #( 6506 e) eval $cacheid=no ;; 6507esac 6508fi 6509rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6510 conftest$ac_exeext conftest.$ac_ext ;; 6511esac 6512fi 6513 6514 6515 CFLAGS="$xorg_testset_save_CFLAGS" 6516 6517 eval supported=\$$cacheid 6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6519printf "%s\n" "$supported" >&6; } 6520 if test "$supported" = "yes" ; then 6521 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6522 found="yes" 6523 fi 6524 fi 6525 6526 6527 6528 6529 6530# This chunk adds additional warnings that could catch undesired effects. 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544xorg_testset_save_CFLAGS="$CFLAGS" 6545 6546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6550if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6551then : 6552 printf %s "(cached) " >&6 6553else case e in #( 6554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556int i; 6557_ACEOF 6558if ac_fn_c_try_compile "$LINENO" 6559then : 6560 xorg_cv_cc_flag_unknown_warning_option=yes 6561else case e in #( 6562 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6563esac 6564fi 6565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6566esac 6567fi 6568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6569printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6571 CFLAGS="$xorg_testset_save_CFLAGS" 6572fi 6573 6574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6577 fi 6578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6580printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6581if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6582then : 6583 printf %s "(cached) " >&6 6584else case e in #( 6585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587int i; 6588_ACEOF 6589if ac_fn_c_try_compile "$LINENO" 6590then : 6591 xorg_cv_cc_flag_unused_command_line_argument=yes 6592else case e in #( 6593 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6594esac 6595fi 6596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6597esac 6598fi 6599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6602 CFLAGS="$xorg_testset_save_CFLAGS" 6603fi 6604 6605found="no" 6606 6607 if test $found = "no" ; then 6608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6610 fi 6611 6612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6614 fi 6615 6616 CFLAGS="$CFLAGS -Wunused" 6617 6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6619printf %s "checking if $CC supports -Wunused... " >&6; } 6620 cacheid=xorg_cv_cc_flag__Wunused 6621 if eval test \${$cacheid+y} 6622then : 6623 printf %s "(cached) " >&6 6624else case e in #( 6625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6626/* end confdefs.h. */ 6627int i; 6628int 6629main (void) 6630{ 6631 6632 ; 6633 return 0; 6634} 6635_ACEOF 6636if ac_fn_c_try_link "$LINENO" 6637then : 6638 eval $cacheid=yes 6639else case e in #( 6640 e) eval $cacheid=no ;; 6641esac 6642fi 6643rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6644 conftest$ac_exeext conftest.$ac_ext ;; 6645esac 6646fi 6647 6648 6649 CFLAGS="$xorg_testset_save_CFLAGS" 6650 6651 eval supported=\$$cacheid 6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6653printf "%s\n" "$supported" >&6; } 6654 if test "$supported" = "yes" ; then 6655 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6656 found="yes" 6657 fi 6658 fi 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674xorg_testset_save_CFLAGS="$CFLAGS" 6675 6676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6679printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6680if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6681then : 6682 printf %s "(cached) " >&6 6683else case e in #( 6684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685/* end confdefs.h. */ 6686int i; 6687_ACEOF 6688if ac_fn_c_try_compile "$LINENO" 6689then : 6690 xorg_cv_cc_flag_unknown_warning_option=yes 6691else case e in #( 6692 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6693esac 6694fi 6695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6696esac 6697fi 6698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6699printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6701 CFLAGS="$xorg_testset_save_CFLAGS" 6702fi 6703 6704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6707 fi 6708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6710printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6711if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6712then : 6713 printf %s "(cached) " >&6 6714else case e in #( 6715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6716/* end confdefs.h. */ 6717int i; 6718_ACEOF 6719if ac_fn_c_try_compile "$LINENO" 6720then : 6721 xorg_cv_cc_flag_unused_command_line_argument=yes 6722else case e in #( 6723 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6724esac 6725fi 6726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6727esac 6728fi 6729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6730printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6732 CFLAGS="$xorg_testset_save_CFLAGS" 6733fi 6734 6735found="no" 6736 6737 if test $found = "no" ; then 6738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6740 fi 6741 6742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6744 fi 6745 6746 CFLAGS="$CFLAGS -Wuninitialized" 6747 6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6749printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6750 cacheid=xorg_cv_cc_flag__Wuninitialized 6751 if eval test \${$cacheid+y} 6752then : 6753 printf %s "(cached) " >&6 6754else case e in #( 6755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6756/* end confdefs.h. */ 6757int i; 6758int 6759main (void) 6760{ 6761 6762 ; 6763 return 0; 6764} 6765_ACEOF 6766if ac_fn_c_try_link "$LINENO" 6767then : 6768 eval $cacheid=yes 6769else case e in #( 6770 e) eval $cacheid=no ;; 6771esac 6772fi 6773rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6774 conftest$ac_exeext conftest.$ac_ext ;; 6775esac 6776fi 6777 6778 6779 CFLAGS="$xorg_testset_save_CFLAGS" 6780 6781 eval supported=\$$cacheid 6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6783printf "%s\n" "$supported" >&6; } 6784 if test "$supported" = "yes" ; then 6785 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6786 found="yes" 6787 fi 6788 fi 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804xorg_testset_save_CFLAGS="$CFLAGS" 6805 6806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6810if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6811then : 6812 printf %s "(cached) " >&6 6813else case e in #( 6814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817_ACEOF 6818if ac_fn_c_try_compile "$LINENO" 6819then : 6820 xorg_cv_cc_flag_unknown_warning_option=yes 6821else case e in #( 6822 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6823esac 6824fi 6825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6826esac 6827fi 6828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6831 CFLAGS="$xorg_testset_save_CFLAGS" 6832fi 6833 6834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6837 fi 6838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6841if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6842then : 6843 printf %s "(cached) " >&6 6844else case e in #( 6845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6846/* end confdefs.h. */ 6847int i; 6848_ACEOF 6849if ac_fn_c_try_compile "$LINENO" 6850then : 6851 xorg_cv_cc_flag_unused_command_line_argument=yes 6852else case e in #( 6853 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6854esac 6855fi 6856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6857esac 6858fi 6859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6860printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6862 CFLAGS="$xorg_testset_save_CFLAGS" 6863fi 6864 6865found="no" 6866 6867 if test $found = "no" ; then 6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6870 fi 6871 6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6874 fi 6875 6876 CFLAGS="$CFLAGS -Wshadow" 6877 6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6879printf %s "checking if $CC supports -Wshadow... " >&6; } 6880 cacheid=xorg_cv_cc_flag__Wshadow 6881 if eval test \${$cacheid+y} 6882then : 6883 printf %s "(cached) " >&6 6884else case e in #( 6885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6886/* end confdefs.h. */ 6887int i; 6888int 6889main (void) 6890{ 6891 6892 ; 6893 return 0; 6894} 6895_ACEOF 6896if ac_fn_c_try_link "$LINENO" 6897then : 6898 eval $cacheid=yes 6899else case e in #( 6900 e) eval $cacheid=no ;; 6901esac 6902fi 6903rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6904 conftest$ac_exeext conftest.$ac_ext ;; 6905esac 6906fi 6907 6908 6909 CFLAGS="$xorg_testset_save_CFLAGS" 6910 6911 eval supported=\$$cacheid 6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6913printf "%s\n" "$supported" >&6; } 6914 if test "$supported" = "yes" ; then 6915 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6916 found="yes" 6917 fi 6918 fi 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934xorg_testset_save_CFLAGS="$CFLAGS" 6935 6936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6939printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6940if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6941then : 6942 printf %s "(cached) " >&6 6943else case e in #( 6944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6945/* end confdefs.h. */ 6946int i; 6947_ACEOF 6948if ac_fn_c_try_compile "$LINENO" 6949then : 6950 xorg_cv_cc_flag_unknown_warning_option=yes 6951else case e in #( 6952 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6953esac 6954fi 6955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6956esac 6957fi 6958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6961 CFLAGS="$xorg_testset_save_CFLAGS" 6962fi 6963 6964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6967 fi 6968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6971if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6972then : 6973 printf %s "(cached) " >&6 6974else case e in #( 6975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6976/* end confdefs.h. */ 6977int i; 6978_ACEOF 6979if ac_fn_c_try_compile "$LINENO" 6980then : 6981 xorg_cv_cc_flag_unused_command_line_argument=yes 6982else case e in #( 6983 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6984esac 6985fi 6986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6987esac 6988fi 6989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6992 CFLAGS="$xorg_testset_save_CFLAGS" 6993fi 6994 6995found="no" 6996 6997 if test $found = "no" ; then 6998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7000 fi 7001 7002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7004 fi 7005 7006 CFLAGS="$CFLAGS -Wmissing-noreturn" 7007 7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7009printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7010 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7011 if eval test \${$cacheid+y} 7012then : 7013 printf %s "(cached) " >&6 7014else case e in #( 7015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7016/* end confdefs.h. */ 7017int i; 7018int 7019main (void) 7020{ 7021 7022 ; 7023 return 0; 7024} 7025_ACEOF 7026if ac_fn_c_try_link "$LINENO" 7027then : 7028 eval $cacheid=yes 7029else case e in #( 7030 e) eval $cacheid=no ;; 7031esac 7032fi 7033rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7034 conftest$ac_exeext conftest.$ac_ext ;; 7035esac 7036fi 7037 7038 7039 CFLAGS="$xorg_testset_save_CFLAGS" 7040 7041 eval supported=\$$cacheid 7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7043printf "%s\n" "$supported" >&6; } 7044 if test "$supported" = "yes" ; then 7045 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7046 found="yes" 7047 fi 7048 fi 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064xorg_testset_save_CFLAGS="$CFLAGS" 7065 7066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7069printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7070if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7071then : 7072 printf %s "(cached) " >&6 7073else case e in #( 7074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7075/* end confdefs.h. */ 7076int i; 7077_ACEOF 7078if ac_fn_c_try_compile "$LINENO" 7079then : 7080 xorg_cv_cc_flag_unknown_warning_option=yes 7081else case e in #( 7082 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7083esac 7084fi 7085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7086esac 7087fi 7088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7091 CFLAGS="$xorg_testset_save_CFLAGS" 7092fi 7093 7094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7097 fi 7098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7101if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7102then : 7103 printf %s "(cached) " >&6 7104else case e in #( 7105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107int i; 7108_ACEOF 7109if ac_fn_c_try_compile "$LINENO" 7110then : 7111 xorg_cv_cc_flag_unused_command_line_argument=yes 7112else case e in #( 7113 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7114esac 7115fi 7116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7117esac 7118fi 7119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7122 CFLAGS="$xorg_testset_save_CFLAGS" 7123fi 7124 7125found="no" 7126 7127 if test $found = "no" ; then 7128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7130 fi 7131 7132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7134 fi 7135 7136 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7137 7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7139printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7140 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7141 if eval test \${$cacheid+y} 7142then : 7143 printf %s "(cached) " >&6 7144else case e in #( 7145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7146/* end confdefs.h. */ 7147int i; 7148int 7149main (void) 7150{ 7151 7152 ; 7153 return 0; 7154} 7155_ACEOF 7156if ac_fn_c_try_link "$LINENO" 7157then : 7158 eval $cacheid=yes 7159else case e in #( 7160 e) eval $cacheid=no ;; 7161esac 7162fi 7163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7164 conftest$ac_exeext conftest.$ac_ext ;; 7165esac 7166fi 7167 7168 7169 CFLAGS="$xorg_testset_save_CFLAGS" 7170 7171 eval supported=\$$cacheid 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7173printf "%s\n" "$supported" >&6; } 7174 if test "$supported" = "yes" ; then 7175 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7176 found="yes" 7177 fi 7178 fi 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194xorg_testset_save_CFLAGS="$CFLAGS" 7195 7196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7200if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7201then : 7202 printf %s "(cached) " >&6 7203else case e in #( 7204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206int i; 7207_ACEOF 7208if ac_fn_c_try_compile "$LINENO" 7209then : 7210 xorg_cv_cc_flag_unknown_warning_option=yes 7211else case e in #( 7212 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7213esac 7214fi 7215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7216esac 7217fi 7218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7221 CFLAGS="$xorg_testset_save_CFLAGS" 7222fi 7223 7224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7227 fi 7228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7231if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7232then : 7233 printf %s "(cached) " >&6 7234else case e in #( 7235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7236/* end confdefs.h. */ 7237int i; 7238_ACEOF 7239if ac_fn_c_try_compile "$LINENO" 7240then : 7241 xorg_cv_cc_flag_unused_command_line_argument=yes 7242else case e in #( 7243 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7244esac 7245fi 7246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7247esac 7248fi 7249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7250printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7252 CFLAGS="$xorg_testset_save_CFLAGS" 7253fi 7254 7255found="no" 7256 7257 if test $found = "no" ; then 7258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7260 fi 7261 7262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7264 fi 7265 7266 CFLAGS="$CFLAGS -Wredundant-decls" 7267 7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7269printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7270 cacheid=xorg_cv_cc_flag__Wredundant_decls 7271 if eval test \${$cacheid+y} 7272then : 7273 printf %s "(cached) " >&6 7274else case e in #( 7275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7276/* end confdefs.h. */ 7277int i; 7278int 7279main (void) 7280{ 7281 7282 ; 7283 return 0; 7284} 7285_ACEOF 7286if ac_fn_c_try_link "$LINENO" 7287then : 7288 eval $cacheid=yes 7289else case e in #( 7290 e) eval $cacheid=no ;; 7291esac 7292fi 7293rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7294 conftest$ac_exeext conftest.$ac_ext ;; 7295esac 7296fi 7297 7298 7299 CFLAGS="$xorg_testset_save_CFLAGS" 7300 7301 eval supported=\$$cacheid 7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7303printf "%s\n" "$supported" >&6; } 7304 if test "$supported" = "yes" ; then 7305 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7306 found="yes" 7307 fi 7308 fi 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324xorg_testset_save_CFLAGS="$CFLAGS" 7325 7326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7330if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7331then : 7332 printf %s "(cached) " >&6 7333else case e in #( 7334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336int i; 7337_ACEOF 7338if ac_fn_c_try_compile "$LINENO" 7339then : 7340 xorg_cv_cc_flag_unknown_warning_option=yes 7341else case e in #( 7342 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7343esac 7344fi 7345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7346esac 7347fi 7348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7351 CFLAGS="$xorg_testset_save_CFLAGS" 7352fi 7353 7354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7357 fi 7358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7361if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7362then : 7363 printf %s "(cached) " >&6 7364else case e in #( 7365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367int i; 7368_ACEOF 7369if ac_fn_c_try_compile "$LINENO" 7370then : 7371 xorg_cv_cc_flag_unused_command_line_argument=yes 7372else case e in #( 7373 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7374esac 7375fi 7376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7377esac 7378fi 7379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7380printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7382 CFLAGS="$xorg_testset_save_CFLAGS" 7383fi 7384 7385found="no" 7386 7387 if test $found = "no" ; then 7388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7390 fi 7391 7392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7394 fi 7395 7396 CFLAGS="$CFLAGS -Wlogical-op" 7397 7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7399printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7400 cacheid=xorg_cv_cc_flag__Wlogical_op 7401 if eval test \${$cacheid+y} 7402then : 7403 printf %s "(cached) " >&6 7404else case e in #( 7405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406/* end confdefs.h. */ 7407int i; 7408int 7409main (void) 7410{ 7411 7412 ; 7413 return 0; 7414} 7415_ACEOF 7416if ac_fn_c_try_link "$LINENO" 7417then : 7418 eval $cacheid=yes 7419else case e in #( 7420 e) eval $cacheid=no ;; 7421esac 7422fi 7423rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7424 conftest$ac_exeext conftest.$ac_ext ;; 7425esac 7426fi 7427 7428 7429 CFLAGS="$xorg_testset_save_CFLAGS" 7430 7431 eval supported=\$$cacheid 7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7433printf "%s\n" "$supported" >&6; } 7434 if test "$supported" = "yes" ; then 7435 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7436 found="yes" 7437 fi 7438 fi 7439 7440 7441 7442# These are currently disabled because they are noisy. They will be enabled 7443# in the future once the codebase is sufficiently modernized to silence 7444# them. For now, I don't want them to drown out the other warnings. 7445# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7446# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7447# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7448 7449# Turn some warnings into errors, so we don't accidentally get successful builds 7450# when there are problems that should be fixed. 7451 7452if test "x$SELECTIVE_WERROR" = "xyes" ; then 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466xorg_testset_save_CFLAGS="$CFLAGS" 7467 7468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7472if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7473then : 7474 printf %s "(cached) " >&6 7475else case e in #( 7476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477/* end confdefs.h. */ 7478int i; 7479_ACEOF 7480if ac_fn_c_try_compile "$LINENO" 7481then : 7482 xorg_cv_cc_flag_unknown_warning_option=yes 7483else case e in #( 7484 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7485esac 7486fi 7487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7488esac 7489fi 7490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7491printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7493 CFLAGS="$xorg_testset_save_CFLAGS" 7494fi 7495 7496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7499 fi 7500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7502printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7503if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7504then : 7505 printf %s "(cached) " >&6 7506else case e in #( 7507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509int i; 7510_ACEOF 7511if ac_fn_c_try_compile "$LINENO" 7512then : 7513 xorg_cv_cc_flag_unused_command_line_argument=yes 7514else case e in #( 7515 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7516esac 7517fi 7518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7519esac 7520fi 7521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7524 CFLAGS="$xorg_testset_save_CFLAGS" 7525fi 7526 7527found="no" 7528 7529 if test $found = "no" ; then 7530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7532 fi 7533 7534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7536 fi 7537 7538 CFLAGS="$CFLAGS -Werror=implicit" 7539 7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7541printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7542 cacheid=xorg_cv_cc_flag__Werror_implicit 7543 if eval test \${$cacheid+y} 7544then : 7545 printf %s "(cached) " >&6 7546else case e in #( 7547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549int i; 7550int 7551main (void) 7552{ 7553 7554 ; 7555 return 0; 7556} 7557_ACEOF 7558if ac_fn_c_try_link "$LINENO" 7559then : 7560 eval $cacheid=yes 7561else case e in #( 7562 e) eval $cacheid=no ;; 7563esac 7564fi 7565rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7566 conftest$ac_exeext conftest.$ac_ext ;; 7567esac 7568fi 7569 7570 7571 CFLAGS="$xorg_testset_save_CFLAGS" 7572 7573 eval supported=\$$cacheid 7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7575printf "%s\n" "$supported" >&6; } 7576 if test "$supported" = "yes" ; then 7577 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7578 found="yes" 7579 fi 7580 fi 7581 7582 if test $found = "no" ; then 7583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7585 fi 7586 7587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7589 fi 7590 7591 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7592 7593 { 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 7594printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7595 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7596 if eval test \${$cacheid+y} 7597then : 7598 printf %s "(cached) " >&6 7599else case e in #( 7600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7601/* end confdefs.h. */ 7602int i; 7603int 7604main (void) 7605{ 7606 7607 ; 7608 return 0; 7609} 7610_ACEOF 7611if ac_fn_c_try_link "$LINENO" 7612then : 7613 eval $cacheid=yes 7614else case e in #( 7615 e) eval $cacheid=no ;; 7616esac 7617fi 7618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7619 conftest$ac_exeext conftest.$ac_ext ;; 7620esac 7621fi 7622 7623 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625 7626 eval supported=\$$cacheid 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7628printf "%s\n" "$supported" >&6; } 7629 if test "$supported" = "yes" ; then 7630 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7631 found="yes" 7632 fi 7633 fi 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649xorg_testset_save_CFLAGS="$CFLAGS" 7650 7651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7655if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7656then : 7657 printf %s "(cached) " >&6 7658else case e in #( 7659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660/* end confdefs.h. */ 7661int i; 7662_ACEOF 7663if ac_fn_c_try_compile "$LINENO" 7664then : 7665 xorg_cv_cc_flag_unknown_warning_option=yes 7666else case e in #( 7667 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7668esac 7669fi 7670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7671esac 7672fi 7673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7676 CFLAGS="$xorg_testset_save_CFLAGS" 7677fi 7678 7679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7682 fi 7683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7686if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7687then : 7688 printf %s "(cached) " >&6 7689else case e in #( 7690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7691/* end confdefs.h. */ 7692int i; 7693_ACEOF 7694if ac_fn_c_try_compile "$LINENO" 7695then : 7696 xorg_cv_cc_flag_unused_command_line_argument=yes 7697else case e in #( 7698 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7699esac 7700fi 7701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7702esac 7703fi 7704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7705printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7707 CFLAGS="$xorg_testset_save_CFLAGS" 7708fi 7709 7710found="no" 7711 7712 if test $found = "no" ; then 7713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7715 fi 7716 7717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7719 fi 7720 7721 CFLAGS="$CFLAGS -Werror=nonnull" 7722 7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7724printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7725 cacheid=xorg_cv_cc_flag__Werror_nonnull 7726 if eval test \${$cacheid+y} 7727then : 7728 printf %s "(cached) " >&6 7729else case e in #( 7730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7731/* end confdefs.h. */ 7732int i; 7733int 7734main (void) 7735{ 7736 7737 ; 7738 return 0; 7739} 7740_ACEOF 7741if ac_fn_c_try_link "$LINENO" 7742then : 7743 eval $cacheid=yes 7744else case e in #( 7745 e) eval $cacheid=no ;; 7746esac 7747fi 7748rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7749 conftest$ac_exeext conftest.$ac_ext ;; 7750esac 7751fi 7752 7753 7754 CFLAGS="$xorg_testset_save_CFLAGS" 7755 7756 eval supported=\$$cacheid 7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7758printf "%s\n" "$supported" >&6; } 7759 if test "$supported" = "yes" ; then 7760 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7761 found="yes" 7762 fi 7763 fi 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779xorg_testset_save_CFLAGS="$CFLAGS" 7780 7781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7785if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7786then : 7787 printf %s "(cached) " >&6 7788else case e in #( 7789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7790/* end confdefs.h. */ 7791int i; 7792_ACEOF 7793if ac_fn_c_try_compile "$LINENO" 7794then : 7795 xorg_cv_cc_flag_unknown_warning_option=yes 7796else case e in #( 7797 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7798esac 7799fi 7800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7801esac 7802fi 7803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7804printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7806 CFLAGS="$xorg_testset_save_CFLAGS" 7807fi 7808 7809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7812 fi 7813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7815printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7816if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7817then : 7818 printf %s "(cached) " >&6 7819else case e in #( 7820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7821/* end confdefs.h. */ 7822int i; 7823_ACEOF 7824if ac_fn_c_try_compile "$LINENO" 7825then : 7826 xorg_cv_cc_flag_unused_command_line_argument=yes 7827else case e in #( 7828 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7829esac 7830fi 7831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7832esac 7833fi 7834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7835printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7837 CFLAGS="$xorg_testset_save_CFLAGS" 7838fi 7839 7840found="no" 7841 7842 if test $found = "no" ; then 7843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7845 fi 7846 7847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7849 fi 7850 7851 CFLAGS="$CFLAGS -Werror=init-self" 7852 7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7854printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7855 cacheid=xorg_cv_cc_flag__Werror_init_self 7856 if eval test \${$cacheid+y} 7857then : 7858 printf %s "(cached) " >&6 7859else case e in #( 7860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7861/* end confdefs.h. */ 7862int i; 7863int 7864main (void) 7865{ 7866 7867 ; 7868 return 0; 7869} 7870_ACEOF 7871if ac_fn_c_try_link "$LINENO" 7872then : 7873 eval $cacheid=yes 7874else case e in #( 7875 e) eval $cacheid=no ;; 7876esac 7877fi 7878rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7879 conftest$ac_exeext conftest.$ac_ext ;; 7880esac 7881fi 7882 7883 7884 CFLAGS="$xorg_testset_save_CFLAGS" 7885 7886 eval supported=\$$cacheid 7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7888printf "%s\n" "$supported" >&6; } 7889 if test "$supported" = "yes" ; then 7890 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7891 found="yes" 7892 fi 7893 fi 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909xorg_testset_save_CFLAGS="$CFLAGS" 7910 7911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7914printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7915if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7916then : 7917 printf %s "(cached) " >&6 7918else case e in #( 7919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7920/* end confdefs.h. */ 7921int i; 7922_ACEOF 7923if ac_fn_c_try_compile "$LINENO" 7924then : 7925 xorg_cv_cc_flag_unknown_warning_option=yes 7926else case e in #( 7927 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7928esac 7929fi 7930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7931esac 7932fi 7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7934printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7936 CFLAGS="$xorg_testset_save_CFLAGS" 7937fi 7938 7939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7942 fi 7943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7945printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7946if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7947then : 7948 printf %s "(cached) " >&6 7949else case e in #( 7950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7951/* end confdefs.h. */ 7952int i; 7953_ACEOF 7954if ac_fn_c_try_compile "$LINENO" 7955then : 7956 xorg_cv_cc_flag_unused_command_line_argument=yes 7957else case e in #( 7958 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7959esac 7960fi 7961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7962esac 7963fi 7964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7965printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7967 CFLAGS="$xorg_testset_save_CFLAGS" 7968fi 7969 7970found="no" 7971 7972 if test $found = "no" ; then 7973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7975 fi 7976 7977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7979 fi 7980 7981 CFLAGS="$CFLAGS -Werror=main" 7982 7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7984printf %s "checking if $CC supports -Werror=main... " >&6; } 7985 cacheid=xorg_cv_cc_flag__Werror_main 7986 if eval test \${$cacheid+y} 7987then : 7988 printf %s "(cached) " >&6 7989else case e in #( 7990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7991/* end confdefs.h. */ 7992int i; 7993int 7994main (void) 7995{ 7996 7997 ; 7998 return 0; 7999} 8000_ACEOF 8001if ac_fn_c_try_link "$LINENO" 8002then : 8003 eval $cacheid=yes 8004else case e in #( 8005 e) eval $cacheid=no ;; 8006esac 8007fi 8008rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8009 conftest$ac_exeext conftest.$ac_ext ;; 8010esac 8011fi 8012 8013 8014 CFLAGS="$xorg_testset_save_CFLAGS" 8015 8016 eval supported=\$$cacheid 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8018printf "%s\n" "$supported" >&6; } 8019 if test "$supported" = "yes" ; then 8020 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8021 found="yes" 8022 fi 8023 fi 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039xorg_testset_save_CFLAGS="$CFLAGS" 8040 8041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8045if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8046then : 8047 printf %s "(cached) " >&6 8048else case e in #( 8049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8050/* end confdefs.h. */ 8051int i; 8052_ACEOF 8053if ac_fn_c_try_compile "$LINENO" 8054then : 8055 xorg_cv_cc_flag_unknown_warning_option=yes 8056else case e in #( 8057 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8058esac 8059fi 8060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8061esac 8062fi 8063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8066 CFLAGS="$xorg_testset_save_CFLAGS" 8067fi 8068 8069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8072 fi 8073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8076if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8077then : 8078 printf %s "(cached) " >&6 8079else case e in #( 8080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8081/* end confdefs.h. */ 8082int i; 8083_ACEOF 8084if ac_fn_c_try_compile "$LINENO" 8085then : 8086 xorg_cv_cc_flag_unused_command_line_argument=yes 8087else case e in #( 8088 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8089esac 8090fi 8091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8092esac 8093fi 8094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8095printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8097 CFLAGS="$xorg_testset_save_CFLAGS" 8098fi 8099 8100found="no" 8101 8102 if test $found = "no" ; then 8103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8105 fi 8106 8107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8109 fi 8110 8111 CFLAGS="$CFLAGS -Werror=missing-braces" 8112 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8114printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8115 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8116 if eval test \${$cacheid+y} 8117then : 8118 printf %s "(cached) " >&6 8119else case e in #( 8120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8121/* end confdefs.h. */ 8122int i; 8123int 8124main (void) 8125{ 8126 8127 ; 8128 return 0; 8129} 8130_ACEOF 8131if ac_fn_c_try_link "$LINENO" 8132then : 8133 eval $cacheid=yes 8134else case e in #( 8135 e) eval $cacheid=no ;; 8136esac 8137fi 8138rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8139 conftest$ac_exeext conftest.$ac_ext ;; 8140esac 8141fi 8142 8143 8144 CFLAGS="$xorg_testset_save_CFLAGS" 8145 8146 eval supported=\$$cacheid 8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8148printf "%s\n" "$supported" >&6; } 8149 if test "$supported" = "yes" ; then 8150 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8151 found="yes" 8152 fi 8153 fi 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169xorg_testset_save_CFLAGS="$CFLAGS" 8170 8171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8175if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8176then : 8177 printf %s "(cached) " >&6 8178else case e in #( 8179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180/* end confdefs.h. */ 8181int i; 8182_ACEOF 8183if ac_fn_c_try_compile "$LINENO" 8184then : 8185 xorg_cv_cc_flag_unknown_warning_option=yes 8186else case e in #( 8187 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8188esac 8189fi 8190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8191esac 8192fi 8193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8196 CFLAGS="$xorg_testset_save_CFLAGS" 8197fi 8198 8199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8202 fi 8203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8206if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8207then : 8208 printf %s "(cached) " >&6 8209else case e in #( 8210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8211/* end confdefs.h. */ 8212int i; 8213_ACEOF 8214if ac_fn_c_try_compile "$LINENO" 8215then : 8216 xorg_cv_cc_flag_unused_command_line_argument=yes 8217else case e in #( 8218 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8219esac 8220fi 8221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8222esac 8223fi 8224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8227 CFLAGS="$xorg_testset_save_CFLAGS" 8228fi 8229 8230found="no" 8231 8232 if test $found = "no" ; then 8233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8235 fi 8236 8237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8239 fi 8240 8241 CFLAGS="$CFLAGS -Werror=sequence-point" 8242 8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8244printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8245 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8246 if eval test \${$cacheid+y} 8247then : 8248 printf %s "(cached) " >&6 8249else case e in #( 8250 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8251/* end confdefs.h. */ 8252int i; 8253int 8254main (void) 8255{ 8256 8257 ; 8258 return 0; 8259} 8260_ACEOF 8261if ac_fn_c_try_link "$LINENO" 8262then : 8263 eval $cacheid=yes 8264else case e in #( 8265 e) eval $cacheid=no ;; 8266esac 8267fi 8268rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8269 conftest$ac_exeext conftest.$ac_ext ;; 8270esac 8271fi 8272 8273 8274 CFLAGS="$xorg_testset_save_CFLAGS" 8275 8276 eval supported=\$$cacheid 8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8278printf "%s\n" "$supported" >&6; } 8279 if test "$supported" = "yes" ; then 8280 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8281 found="yes" 8282 fi 8283 fi 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299xorg_testset_save_CFLAGS="$CFLAGS" 8300 8301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8304printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8305if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8306then : 8307 printf %s "(cached) " >&6 8308else case e in #( 8309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8310/* end confdefs.h. */ 8311int i; 8312_ACEOF 8313if ac_fn_c_try_compile "$LINENO" 8314then : 8315 xorg_cv_cc_flag_unknown_warning_option=yes 8316else case e in #( 8317 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8318esac 8319fi 8320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8321esac 8322fi 8323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8324printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8326 CFLAGS="$xorg_testset_save_CFLAGS" 8327fi 8328 8329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8332 fi 8333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8335printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8336if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8337then : 8338 printf %s "(cached) " >&6 8339else case e in #( 8340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8341/* end confdefs.h. */ 8342int i; 8343_ACEOF 8344if ac_fn_c_try_compile "$LINENO" 8345then : 8346 xorg_cv_cc_flag_unused_command_line_argument=yes 8347else case e in #( 8348 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8349esac 8350fi 8351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8352esac 8353fi 8354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8355printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8357 CFLAGS="$xorg_testset_save_CFLAGS" 8358fi 8359 8360found="no" 8361 8362 if test $found = "no" ; then 8363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8365 fi 8366 8367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8369 fi 8370 8371 CFLAGS="$CFLAGS -Werror=return-type" 8372 8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8374printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8375 cacheid=xorg_cv_cc_flag__Werror_return_type 8376 if eval test \${$cacheid+y} 8377then : 8378 printf %s "(cached) " >&6 8379else case e in #( 8380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8381/* end confdefs.h. */ 8382int i; 8383int 8384main (void) 8385{ 8386 8387 ; 8388 return 0; 8389} 8390_ACEOF 8391if ac_fn_c_try_link "$LINENO" 8392then : 8393 eval $cacheid=yes 8394else case e in #( 8395 e) eval $cacheid=no ;; 8396esac 8397fi 8398rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8399 conftest$ac_exeext conftest.$ac_ext ;; 8400esac 8401fi 8402 8403 8404 CFLAGS="$xorg_testset_save_CFLAGS" 8405 8406 eval supported=\$$cacheid 8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8408printf "%s\n" "$supported" >&6; } 8409 if test "$supported" = "yes" ; then 8410 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8411 found="yes" 8412 fi 8413 fi 8414 8415 if test $found = "no" ; then 8416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8418 fi 8419 8420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8422 fi 8423 8424 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8425 8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8427printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8428 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8429 if eval test \${$cacheid+y} 8430then : 8431 printf %s "(cached) " >&6 8432else case e in #( 8433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434/* end confdefs.h. */ 8435int i; 8436int 8437main (void) 8438{ 8439 8440 ; 8441 return 0; 8442} 8443_ACEOF 8444if ac_fn_c_try_link "$LINENO" 8445then : 8446 eval $cacheid=yes 8447else case e in #( 8448 e) eval $cacheid=no ;; 8449esac 8450fi 8451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8452 conftest$ac_exeext conftest.$ac_ext ;; 8453esac 8454fi 8455 8456 8457 CFLAGS="$xorg_testset_save_CFLAGS" 8458 8459 eval supported=\$$cacheid 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8461printf "%s\n" "$supported" >&6; } 8462 if test "$supported" = "yes" ; then 8463 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8464 found="yes" 8465 fi 8466 fi 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482xorg_testset_save_CFLAGS="$CFLAGS" 8483 8484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8488if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8489then : 8490 printf %s "(cached) " >&6 8491else case e in #( 8492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495_ACEOF 8496if ac_fn_c_try_compile "$LINENO" 8497then : 8498 xorg_cv_cc_flag_unknown_warning_option=yes 8499else case e in #( 8500 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8501esac 8502fi 8503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8504esac 8505fi 8506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8509 CFLAGS="$xorg_testset_save_CFLAGS" 8510fi 8511 8512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8515 fi 8516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8519if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8520then : 8521 printf %s "(cached) " >&6 8522else case e in #( 8523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8524/* end confdefs.h. */ 8525int i; 8526_ACEOF 8527if ac_fn_c_try_compile "$LINENO" 8528then : 8529 xorg_cv_cc_flag_unused_command_line_argument=yes 8530else case e in #( 8531 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8532esac 8533fi 8534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8535esac 8536fi 8537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8540 CFLAGS="$xorg_testset_save_CFLAGS" 8541fi 8542 8543found="no" 8544 8545 if test $found = "no" ; then 8546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8548 fi 8549 8550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8552 fi 8553 8554 CFLAGS="$CFLAGS -Werror=trigraphs" 8555 8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8557printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8558 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8559 if eval test \${$cacheid+y} 8560then : 8561 printf %s "(cached) " >&6 8562else case e in #( 8563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8564/* end confdefs.h. */ 8565int i; 8566int 8567main (void) 8568{ 8569 8570 ; 8571 return 0; 8572} 8573_ACEOF 8574if ac_fn_c_try_link "$LINENO" 8575then : 8576 eval $cacheid=yes 8577else case e in #( 8578 e) eval $cacheid=no ;; 8579esac 8580fi 8581rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8582 conftest$ac_exeext conftest.$ac_ext ;; 8583esac 8584fi 8585 8586 8587 CFLAGS="$xorg_testset_save_CFLAGS" 8588 8589 eval supported=\$$cacheid 8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8591printf "%s\n" "$supported" >&6; } 8592 if test "$supported" = "yes" ; then 8593 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8594 found="yes" 8595 fi 8596 fi 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612xorg_testset_save_CFLAGS="$CFLAGS" 8613 8614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8618if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8619then : 8620 printf %s "(cached) " >&6 8621else case e in #( 8622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8623/* end confdefs.h. */ 8624int i; 8625_ACEOF 8626if ac_fn_c_try_compile "$LINENO" 8627then : 8628 xorg_cv_cc_flag_unknown_warning_option=yes 8629else case e in #( 8630 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8631esac 8632fi 8633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8634esac 8635fi 8636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8640fi 8641 8642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8645 fi 8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8649if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8650then : 8651 printf %s "(cached) " >&6 8652else case e in #( 8653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8654/* end confdefs.h. */ 8655int i; 8656_ACEOF 8657if ac_fn_c_try_compile "$LINENO" 8658then : 8659 xorg_cv_cc_flag_unused_command_line_argument=yes 8660else case e in #( 8661 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8662esac 8663fi 8664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8665esac 8666fi 8667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8670 CFLAGS="$xorg_testset_save_CFLAGS" 8671fi 8672 8673found="no" 8674 8675 if test $found = "no" ; then 8676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8678 fi 8679 8680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8682 fi 8683 8684 CFLAGS="$CFLAGS -Werror=array-bounds" 8685 8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8687printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8688 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8689 if eval test \${$cacheid+y} 8690then : 8691 printf %s "(cached) " >&6 8692else case e in #( 8693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695int i; 8696int 8697main (void) 8698{ 8699 8700 ; 8701 return 0; 8702} 8703_ACEOF 8704if ac_fn_c_try_link "$LINENO" 8705then : 8706 eval $cacheid=yes 8707else case e in #( 8708 e) eval $cacheid=no ;; 8709esac 8710fi 8711rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8712 conftest$ac_exeext conftest.$ac_ext ;; 8713esac 8714fi 8715 8716 8717 CFLAGS="$xorg_testset_save_CFLAGS" 8718 8719 eval supported=\$$cacheid 8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8721printf "%s\n" "$supported" >&6; } 8722 if test "$supported" = "yes" ; then 8723 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8724 found="yes" 8725 fi 8726 fi 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742xorg_testset_save_CFLAGS="$CFLAGS" 8743 8744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8748if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8749then : 8750 printf %s "(cached) " >&6 8751else case e in #( 8752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753/* end confdefs.h. */ 8754int i; 8755_ACEOF 8756if ac_fn_c_try_compile "$LINENO" 8757then : 8758 xorg_cv_cc_flag_unknown_warning_option=yes 8759else case e in #( 8760 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8761esac 8762fi 8763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8764esac 8765fi 8766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8769 CFLAGS="$xorg_testset_save_CFLAGS" 8770fi 8771 8772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8775 fi 8776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8779if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8780then : 8781 printf %s "(cached) " >&6 8782else case e in #( 8783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8784/* end confdefs.h. */ 8785int i; 8786_ACEOF 8787if ac_fn_c_try_compile "$LINENO" 8788then : 8789 xorg_cv_cc_flag_unused_command_line_argument=yes 8790else case e in #( 8791 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8792esac 8793fi 8794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8795esac 8796fi 8797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8800 CFLAGS="$xorg_testset_save_CFLAGS" 8801fi 8802 8803found="no" 8804 8805 if test $found = "no" ; then 8806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8808 fi 8809 8810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8812 fi 8813 8814 CFLAGS="$CFLAGS -Werror=write-strings" 8815 8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8817printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8818 cacheid=xorg_cv_cc_flag__Werror_write_strings 8819 if eval test \${$cacheid+y} 8820then : 8821 printf %s "(cached) " >&6 8822else case e in #( 8823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8824/* end confdefs.h. */ 8825int i; 8826int 8827main (void) 8828{ 8829 8830 ; 8831 return 0; 8832} 8833_ACEOF 8834if ac_fn_c_try_link "$LINENO" 8835then : 8836 eval $cacheid=yes 8837else case e in #( 8838 e) eval $cacheid=no ;; 8839esac 8840fi 8841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8842 conftest$ac_exeext conftest.$ac_ext ;; 8843esac 8844fi 8845 8846 8847 CFLAGS="$xorg_testset_save_CFLAGS" 8848 8849 eval supported=\$$cacheid 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8851printf "%s\n" "$supported" >&6; } 8852 if test "$supported" = "yes" ; then 8853 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8854 found="yes" 8855 fi 8856 fi 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872xorg_testset_save_CFLAGS="$CFLAGS" 8873 8874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8877printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8878if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8879then : 8880 printf %s "(cached) " >&6 8881else case e in #( 8882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883/* end confdefs.h. */ 8884int i; 8885_ACEOF 8886if ac_fn_c_try_compile "$LINENO" 8887then : 8888 xorg_cv_cc_flag_unknown_warning_option=yes 8889else case e in #( 8890 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8891esac 8892fi 8893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8894esac 8895fi 8896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8899 CFLAGS="$xorg_testset_save_CFLAGS" 8900fi 8901 8902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8905 fi 8906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8909if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8910then : 8911 printf %s "(cached) " >&6 8912else case e in #( 8913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8914/* end confdefs.h. */ 8915int i; 8916_ACEOF 8917if ac_fn_c_try_compile "$LINENO" 8918then : 8919 xorg_cv_cc_flag_unused_command_line_argument=yes 8920else case e in #( 8921 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8922esac 8923fi 8924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8925esac 8926fi 8927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8930 CFLAGS="$xorg_testset_save_CFLAGS" 8931fi 8932 8933found="no" 8934 8935 if test $found = "no" ; then 8936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8938 fi 8939 8940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8942 fi 8943 8944 CFLAGS="$CFLAGS -Werror=address" 8945 8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8947printf %s "checking if $CC supports -Werror=address... " >&6; } 8948 cacheid=xorg_cv_cc_flag__Werror_address 8949 if eval test \${$cacheid+y} 8950then : 8951 printf %s "(cached) " >&6 8952else case e in #( 8953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8954/* end confdefs.h. */ 8955int i; 8956int 8957main (void) 8958{ 8959 8960 ; 8961 return 0; 8962} 8963_ACEOF 8964if ac_fn_c_try_link "$LINENO" 8965then : 8966 eval $cacheid=yes 8967else case e in #( 8968 e) eval $cacheid=no ;; 8969esac 8970fi 8971rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8972 conftest$ac_exeext conftest.$ac_ext ;; 8973esac 8974fi 8975 8976 8977 CFLAGS="$xorg_testset_save_CFLAGS" 8978 8979 eval supported=\$$cacheid 8980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8981printf "%s\n" "$supported" >&6; } 8982 if test "$supported" = "yes" ; then 8983 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8984 found="yes" 8985 fi 8986 fi 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002xorg_testset_save_CFLAGS="$CFLAGS" 9003 9004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9007printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9008if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9009then : 9010 printf %s "(cached) " >&6 9011else case e in #( 9012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9013/* end confdefs.h. */ 9014int i; 9015_ACEOF 9016if ac_fn_c_try_compile "$LINENO" 9017then : 9018 xorg_cv_cc_flag_unknown_warning_option=yes 9019else case e in #( 9020 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9021esac 9022fi 9023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9024esac 9025fi 9026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9027printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9029 CFLAGS="$xorg_testset_save_CFLAGS" 9030fi 9031 9032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9035 fi 9036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9038printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9039if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9040then : 9041 printf %s "(cached) " >&6 9042else case e in #( 9043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9044/* end confdefs.h. */ 9045int i; 9046_ACEOF 9047if ac_fn_c_try_compile "$LINENO" 9048then : 9049 xorg_cv_cc_flag_unused_command_line_argument=yes 9050else case e in #( 9051 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9052esac 9053fi 9054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9055esac 9056fi 9057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9060 CFLAGS="$xorg_testset_save_CFLAGS" 9061fi 9062 9063found="no" 9064 9065 if test $found = "no" ; then 9066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9068 fi 9069 9070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9072 fi 9073 9074 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9075 9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9077printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9078 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9079 if eval test \${$cacheid+y} 9080then : 9081 printf %s "(cached) " >&6 9082else case e in #( 9083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9084/* end confdefs.h. */ 9085int i; 9086int 9087main (void) 9088{ 9089 9090 ; 9091 return 0; 9092} 9093_ACEOF 9094if ac_fn_c_try_link "$LINENO" 9095then : 9096 eval $cacheid=yes 9097else case e in #( 9098 e) eval $cacheid=no ;; 9099esac 9100fi 9101rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9102 conftest$ac_exeext conftest.$ac_ext ;; 9103esac 9104fi 9105 9106 9107 CFLAGS="$xorg_testset_save_CFLAGS" 9108 9109 eval supported=\$$cacheid 9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9111printf "%s\n" "$supported" >&6; } 9112 if test "$supported" = "yes" ; then 9113 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9114 found="yes" 9115 fi 9116 fi 9117 9118 if test $found = "no" ; then 9119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9121 fi 9122 9123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9125 fi 9126 9127 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9128 9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9130printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9131 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9132 if eval test \${$cacheid+y} 9133then : 9134 printf %s "(cached) " >&6 9135else case e in #( 9136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9137/* end confdefs.h. */ 9138int i; 9139int 9140main (void) 9141{ 9142 9143 ; 9144 return 0; 9145} 9146_ACEOF 9147if ac_fn_c_try_link "$LINENO" 9148then : 9149 eval $cacheid=yes 9150else case e in #( 9151 e) eval $cacheid=no ;; 9152esac 9153fi 9154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9155 conftest$ac_exeext conftest.$ac_ext ;; 9156esac 9157fi 9158 9159 9160 CFLAGS="$xorg_testset_save_CFLAGS" 9161 9162 eval supported=\$$cacheid 9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9164printf "%s\n" "$supported" >&6; } 9165 if test "$supported" = "yes" ; then 9166 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9167 found="yes" 9168 fi 9169 fi 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185xorg_testset_save_CFLAGS="$CFLAGS" 9186 9187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9190printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9191if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9192then : 9193 printf %s "(cached) " >&6 9194else case e in #( 9195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9196/* end confdefs.h. */ 9197int i; 9198_ACEOF 9199if ac_fn_c_try_compile "$LINENO" 9200then : 9201 xorg_cv_cc_flag_unknown_warning_option=yes 9202else case e in #( 9203 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9204esac 9205fi 9206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9207esac 9208fi 9209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9212 CFLAGS="$xorg_testset_save_CFLAGS" 9213fi 9214 9215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9218 fi 9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9222if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9223then : 9224 printf %s "(cached) " >&6 9225else case e in #( 9226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9227/* end confdefs.h. */ 9228int i; 9229_ACEOF 9230if ac_fn_c_try_compile "$LINENO" 9231then : 9232 xorg_cv_cc_flag_unused_command_line_argument=yes 9233else case e in #( 9234 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9235esac 9236fi 9237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9238esac 9239fi 9240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9241printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9243 CFLAGS="$xorg_testset_save_CFLAGS" 9244fi 9245 9246found="no" 9247 9248 if test $found = "no" ; then 9249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9251 fi 9252 9253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9255 fi 9256 9257 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9258 9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9260printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9261 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9262 if eval test \${$cacheid+y} 9263then : 9264 printf %s "(cached) " >&6 9265else case e in #( 9266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9267/* end confdefs.h. */ 9268int i; 9269int 9270main (void) 9271{ 9272 9273 ; 9274 return 0; 9275} 9276_ACEOF 9277if ac_fn_c_try_link "$LINENO" 9278then : 9279 eval $cacheid=yes 9280else case e in #( 9281 e) eval $cacheid=no ;; 9282esac 9283fi 9284rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9285 conftest$ac_exeext conftest.$ac_ext ;; 9286esac 9287fi 9288 9289 9290 CFLAGS="$xorg_testset_save_CFLAGS" 9291 9292 eval supported=\$$cacheid 9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9294printf "%s\n" "$supported" >&6; } 9295 if test "$supported" = "yes" ; then 9296 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9297 found="yes" 9298 fi 9299 fi 9300 9301 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9302else 9303{ 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 9304printf "%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;} 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318xorg_testset_save_CFLAGS="$CFLAGS" 9319 9320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9324if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9325then : 9326 printf %s "(cached) " >&6 9327else case e in #( 9328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329/* end confdefs.h. */ 9330int i; 9331_ACEOF 9332if ac_fn_c_try_compile "$LINENO" 9333then : 9334 xorg_cv_cc_flag_unknown_warning_option=yes 9335else case e in #( 9336 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9337esac 9338fi 9339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9340esac 9341fi 9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9345 CFLAGS="$xorg_testset_save_CFLAGS" 9346fi 9347 9348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9351 fi 9352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9356then : 9357 printf %s "(cached) " >&6 9358else case e in #( 9359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361int i; 9362_ACEOF 9363if ac_fn_c_try_compile "$LINENO" 9364then : 9365 xorg_cv_cc_flag_unused_command_line_argument=yes 9366else case e in #( 9367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9368esac 9369fi 9370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9371esac 9372fi 9373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9376 CFLAGS="$xorg_testset_save_CFLAGS" 9377fi 9378 9379found="no" 9380 9381 if test $found = "no" ; then 9382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9384 fi 9385 9386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9388 fi 9389 9390 CFLAGS="$CFLAGS -Wimplicit" 9391 9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9393printf %s "checking if $CC supports -Wimplicit... " >&6; } 9394 cacheid=xorg_cv_cc_flag__Wimplicit 9395 if eval test \${$cacheid+y} 9396then : 9397 printf %s "(cached) " >&6 9398else case e in #( 9399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9400/* end confdefs.h. */ 9401int i; 9402int 9403main (void) 9404{ 9405 9406 ; 9407 return 0; 9408} 9409_ACEOF 9410if ac_fn_c_try_link "$LINENO" 9411then : 9412 eval $cacheid=yes 9413else case e in #( 9414 e) eval $cacheid=no ;; 9415esac 9416fi 9417rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9418 conftest$ac_exeext conftest.$ac_ext ;; 9419esac 9420fi 9421 9422 9423 CFLAGS="$xorg_testset_save_CFLAGS" 9424 9425 eval supported=\$$cacheid 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9427printf "%s\n" "$supported" >&6; } 9428 if test "$supported" = "yes" ; then 9429 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9430 found="yes" 9431 fi 9432 fi 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448xorg_testset_save_CFLAGS="$CFLAGS" 9449 9450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9454if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9455then : 9456 printf %s "(cached) " >&6 9457else case e in #( 9458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459/* end confdefs.h. */ 9460int i; 9461_ACEOF 9462if ac_fn_c_try_compile "$LINENO" 9463then : 9464 xorg_cv_cc_flag_unknown_warning_option=yes 9465else case e in #( 9466 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9467esac 9468fi 9469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9470esac 9471fi 9472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9475 CFLAGS="$xorg_testset_save_CFLAGS" 9476fi 9477 9478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9481 fi 9482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9485if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9486then : 9487 printf %s "(cached) " >&6 9488else case e in #( 9489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9490/* end confdefs.h. */ 9491int i; 9492_ACEOF 9493if ac_fn_c_try_compile "$LINENO" 9494then : 9495 xorg_cv_cc_flag_unused_command_line_argument=yes 9496else case e in #( 9497 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9498esac 9499fi 9500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9501esac 9502fi 9503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9504printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9506 CFLAGS="$xorg_testset_save_CFLAGS" 9507fi 9508 9509found="no" 9510 9511 if test $found = "no" ; then 9512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9514 fi 9515 9516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9518 fi 9519 9520 CFLAGS="$CFLAGS -Wnonnull" 9521 9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9523printf %s "checking if $CC supports -Wnonnull... " >&6; } 9524 cacheid=xorg_cv_cc_flag__Wnonnull 9525 if eval test \${$cacheid+y} 9526then : 9527 printf %s "(cached) " >&6 9528else case e in #( 9529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9530/* end confdefs.h. */ 9531int i; 9532int 9533main (void) 9534{ 9535 9536 ; 9537 return 0; 9538} 9539_ACEOF 9540if ac_fn_c_try_link "$LINENO" 9541then : 9542 eval $cacheid=yes 9543else case e in #( 9544 e) eval $cacheid=no ;; 9545esac 9546fi 9547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9548 conftest$ac_exeext conftest.$ac_ext ;; 9549esac 9550fi 9551 9552 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554 9555 eval supported=\$$cacheid 9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9557printf "%s\n" "$supported" >&6; } 9558 if test "$supported" = "yes" ; then 9559 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9560 found="yes" 9561 fi 9562 fi 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578xorg_testset_save_CFLAGS="$CFLAGS" 9579 9580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9584if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9585then : 9586 printf %s "(cached) " >&6 9587else case e in #( 9588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9589/* end confdefs.h. */ 9590int i; 9591_ACEOF 9592if ac_fn_c_try_compile "$LINENO" 9593then : 9594 xorg_cv_cc_flag_unknown_warning_option=yes 9595else case e in #( 9596 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9597esac 9598fi 9599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9600esac 9601fi 9602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9603printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9605 CFLAGS="$xorg_testset_save_CFLAGS" 9606fi 9607 9608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9611 fi 9612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9614printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9615if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9616then : 9617 printf %s "(cached) " >&6 9618else case e in #( 9619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9620/* end confdefs.h. */ 9621int i; 9622_ACEOF 9623if ac_fn_c_try_compile "$LINENO" 9624then : 9625 xorg_cv_cc_flag_unused_command_line_argument=yes 9626else case e in #( 9627 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9628esac 9629fi 9630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9631esac 9632fi 9633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9634printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9636 CFLAGS="$xorg_testset_save_CFLAGS" 9637fi 9638 9639found="no" 9640 9641 if test $found = "no" ; then 9642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9644 fi 9645 9646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9648 fi 9649 9650 CFLAGS="$CFLAGS -Winit-self" 9651 9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9653printf %s "checking if $CC supports -Winit-self... " >&6; } 9654 cacheid=xorg_cv_cc_flag__Winit_self 9655 if eval test \${$cacheid+y} 9656then : 9657 printf %s "(cached) " >&6 9658else case e in #( 9659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9660/* end confdefs.h. */ 9661int i; 9662int 9663main (void) 9664{ 9665 9666 ; 9667 return 0; 9668} 9669_ACEOF 9670if ac_fn_c_try_link "$LINENO" 9671then : 9672 eval $cacheid=yes 9673else case e in #( 9674 e) eval $cacheid=no ;; 9675esac 9676fi 9677rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9678 conftest$ac_exeext conftest.$ac_ext ;; 9679esac 9680fi 9681 9682 9683 CFLAGS="$xorg_testset_save_CFLAGS" 9684 9685 eval supported=\$$cacheid 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9687printf "%s\n" "$supported" >&6; } 9688 if test "$supported" = "yes" ; then 9689 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9690 found="yes" 9691 fi 9692 fi 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708xorg_testset_save_CFLAGS="$CFLAGS" 9709 9710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9713printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9714if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9715then : 9716 printf %s "(cached) " >&6 9717else case e in #( 9718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719/* end confdefs.h. */ 9720int i; 9721_ACEOF 9722if ac_fn_c_try_compile "$LINENO" 9723then : 9724 xorg_cv_cc_flag_unknown_warning_option=yes 9725else case e in #( 9726 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9727esac 9728fi 9729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9730esac 9731fi 9732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9735 CFLAGS="$xorg_testset_save_CFLAGS" 9736fi 9737 9738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9741 fi 9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9745if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9746then : 9747 printf %s "(cached) " >&6 9748else case e in #( 9749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9750/* end confdefs.h. */ 9751int i; 9752_ACEOF 9753if ac_fn_c_try_compile "$LINENO" 9754then : 9755 xorg_cv_cc_flag_unused_command_line_argument=yes 9756else case e in #( 9757 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9758esac 9759fi 9760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9761esac 9762fi 9763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9766 CFLAGS="$xorg_testset_save_CFLAGS" 9767fi 9768 9769found="no" 9770 9771 if test $found = "no" ; then 9772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9774 fi 9775 9776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9778 fi 9779 9780 CFLAGS="$CFLAGS -Wmain" 9781 9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9783printf %s "checking if $CC supports -Wmain... " >&6; } 9784 cacheid=xorg_cv_cc_flag__Wmain 9785 if eval test \${$cacheid+y} 9786then : 9787 printf %s "(cached) " >&6 9788else case e in #( 9789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9790/* end confdefs.h. */ 9791int i; 9792int 9793main (void) 9794{ 9795 9796 ; 9797 return 0; 9798} 9799_ACEOF 9800if ac_fn_c_try_link "$LINENO" 9801then : 9802 eval $cacheid=yes 9803else case e in #( 9804 e) eval $cacheid=no ;; 9805esac 9806fi 9807rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9808 conftest$ac_exeext conftest.$ac_ext ;; 9809esac 9810fi 9811 9812 9813 CFLAGS="$xorg_testset_save_CFLAGS" 9814 9815 eval supported=\$$cacheid 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9817printf "%s\n" "$supported" >&6; } 9818 if test "$supported" = "yes" ; then 9819 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9820 found="yes" 9821 fi 9822 fi 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838xorg_testset_save_CFLAGS="$CFLAGS" 9839 9840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9844if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9845then : 9846 printf %s "(cached) " >&6 9847else case e in #( 9848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9849/* end confdefs.h. */ 9850int i; 9851_ACEOF 9852if ac_fn_c_try_compile "$LINENO" 9853then : 9854 xorg_cv_cc_flag_unknown_warning_option=yes 9855else case e in #( 9856 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9857esac 9858fi 9859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9860esac 9861fi 9862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9865 CFLAGS="$xorg_testset_save_CFLAGS" 9866fi 9867 9868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9871 fi 9872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9875if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9876then : 9877 printf %s "(cached) " >&6 9878else case e in #( 9879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9880/* end confdefs.h. */ 9881int i; 9882_ACEOF 9883if ac_fn_c_try_compile "$LINENO" 9884then : 9885 xorg_cv_cc_flag_unused_command_line_argument=yes 9886else case e in #( 9887 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9888esac 9889fi 9890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9891esac 9892fi 9893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9896 CFLAGS="$xorg_testset_save_CFLAGS" 9897fi 9898 9899found="no" 9900 9901 if test $found = "no" ; then 9902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9904 fi 9905 9906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9908 fi 9909 9910 CFLAGS="$CFLAGS -Wmissing-braces" 9911 9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9913printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9914 cacheid=xorg_cv_cc_flag__Wmissing_braces 9915 if eval test \${$cacheid+y} 9916then : 9917 printf %s "(cached) " >&6 9918else case e in #( 9919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9920/* end confdefs.h. */ 9921int i; 9922int 9923main (void) 9924{ 9925 9926 ; 9927 return 0; 9928} 9929_ACEOF 9930if ac_fn_c_try_link "$LINENO" 9931then : 9932 eval $cacheid=yes 9933else case e in #( 9934 e) eval $cacheid=no ;; 9935esac 9936fi 9937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9938 conftest$ac_exeext conftest.$ac_ext ;; 9939esac 9940fi 9941 9942 9943 CFLAGS="$xorg_testset_save_CFLAGS" 9944 9945 eval supported=\$$cacheid 9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9947printf "%s\n" "$supported" >&6; } 9948 if test "$supported" = "yes" ; then 9949 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9950 found="yes" 9951 fi 9952 fi 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968xorg_testset_save_CFLAGS="$CFLAGS" 9969 9970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9974if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9975then : 9976 printf %s "(cached) " >&6 9977else case e in #( 9978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979/* end confdefs.h. */ 9980int i; 9981_ACEOF 9982if ac_fn_c_try_compile "$LINENO" 9983then : 9984 xorg_cv_cc_flag_unknown_warning_option=yes 9985else case e in #( 9986 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9987esac 9988fi 9989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9990esac 9991fi 9992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9995 CFLAGS="$xorg_testset_save_CFLAGS" 9996fi 9997 9998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10001 fi 10002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10006then : 10007 printf %s "(cached) " >&6 10008else case e in #( 10009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10010/* end confdefs.h. */ 10011int i; 10012_ACEOF 10013if ac_fn_c_try_compile "$LINENO" 10014then : 10015 xorg_cv_cc_flag_unused_command_line_argument=yes 10016else case e in #( 10017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10018esac 10019fi 10020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10021esac 10022fi 10023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10026 CFLAGS="$xorg_testset_save_CFLAGS" 10027fi 10028 10029found="no" 10030 10031 if test $found = "no" ; then 10032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10034 fi 10035 10036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10038 fi 10039 10040 CFLAGS="$CFLAGS -Wsequence-point" 10041 10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10043printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10044 cacheid=xorg_cv_cc_flag__Wsequence_point 10045 if eval test \${$cacheid+y} 10046then : 10047 printf %s "(cached) " >&6 10048else case e in #( 10049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10050/* end confdefs.h. */ 10051int i; 10052int 10053main (void) 10054{ 10055 10056 ; 10057 return 0; 10058} 10059_ACEOF 10060if ac_fn_c_try_link "$LINENO" 10061then : 10062 eval $cacheid=yes 10063else case e in #( 10064 e) eval $cacheid=no ;; 10065esac 10066fi 10067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10068 conftest$ac_exeext conftest.$ac_ext ;; 10069esac 10070fi 10071 10072 10073 CFLAGS="$xorg_testset_save_CFLAGS" 10074 10075 eval supported=\$$cacheid 10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10077printf "%s\n" "$supported" >&6; } 10078 if test "$supported" = "yes" ; then 10079 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10080 found="yes" 10081 fi 10082 fi 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098xorg_testset_save_CFLAGS="$CFLAGS" 10099 10100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10104if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10105then : 10106 printf %s "(cached) " >&6 10107else case e in #( 10108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10109/* end confdefs.h. */ 10110int i; 10111_ACEOF 10112if ac_fn_c_try_compile "$LINENO" 10113then : 10114 xorg_cv_cc_flag_unknown_warning_option=yes 10115else case e in #( 10116 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10117esac 10118fi 10119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10120esac 10121fi 10122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10125 CFLAGS="$xorg_testset_save_CFLAGS" 10126fi 10127 10128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10131 fi 10132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10135if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10136then : 10137 printf %s "(cached) " >&6 10138else case e in #( 10139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10140/* end confdefs.h. */ 10141int i; 10142_ACEOF 10143if ac_fn_c_try_compile "$LINENO" 10144then : 10145 xorg_cv_cc_flag_unused_command_line_argument=yes 10146else case e in #( 10147 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10148esac 10149fi 10150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10151esac 10152fi 10153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10156 CFLAGS="$xorg_testset_save_CFLAGS" 10157fi 10158 10159found="no" 10160 10161 if test $found = "no" ; then 10162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10164 fi 10165 10166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10168 fi 10169 10170 CFLAGS="$CFLAGS -Wreturn-type" 10171 10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10173printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10174 cacheid=xorg_cv_cc_flag__Wreturn_type 10175 if eval test \${$cacheid+y} 10176then : 10177 printf %s "(cached) " >&6 10178else case e in #( 10179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10180/* end confdefs.h. */ 10181int i; 10182int 10183main (void) 10184{ 10185 10186 ; 10187 return 0; 10188} 10189_ACEOF 10190if ac_fn_c_try_link "$LINENO" 10191then : 10192 eval $cacheid=yes 10193else case e in #( 10194 e) eval $cacheid=no ;; 10195esac 10196fi 10197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10198 conftest$ac_exeext conftest.$ac_ext ;; 10199esac 10200fi 10201 10202 10203 CFLAGS="$xorg_testset_save_CFLAGS" 10204 10205 eval supported=\$$cacheid 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10207printf "%s\n" "$supported" >&6; } 10208 if test "$supported" = "yes" ; then 10209 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10210 found="yes" 10211 fi 10212 fi 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228xorg_testset_save_CFLAGS="$CFLAGS" 10229 10230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10233printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10234if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10235then : 10236 printf %s "(cached) " >&6 10237else case e in #( 10238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239/* end confdefs.h. */ 10240int i; 10241_ACEOF 10242if ac_fn_c_try_compile "$LINENO" 10243then : 10244 xorg_cv_cc_flag_unknown_warning_option=yes 10245else case e in #( 10246 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10247esac 10248fi 10249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10250esac 10251fi 10252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10255 CFLAGS="$xorg_testset_save_CFLAGS" 10256fi 10257 10258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10261 fi 10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10265if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10266then : 10267 printf %s "(cached) " >&6 10268else case e in #( 10269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10270/* end confdefs.h. */ 10271int i; 10272_ACEOF 10273if ac_fn_c_try_compile "$LINENO" 10274then : 10275 xorg_cv_cc_flag_unused_command_line_argument=yes 10276else case e in #( 10277 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10278esac 10279fi 10280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10281esac 10282fi 10283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10286 CFLAGS="$xorg_testset_save_CFLAGS" 10287fi 10288 10289found="no" 10290 10291 if test $found = "no" ; then 10292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10294 fi 10295 10296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10298 fi 10299 10300 CFLAGS="$CFLAGS -Wtrigraphs" 10301 10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10303printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10304 cacheid=xorg_cv_cc_flag__Wtrigraphs 10305 if eval test \${$cacheid+y} 10306then : 10307 printf %s "(cached) " >&6 10308else case e in #( 10309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311int i; 10312int 10313main (void) 10314{ 10315 10316 ; 10317 return 0; 10318} 10319_ACEOF 10320if ac_fn_c_try_link "$LINENO" 10321then : 10322 eval $cacheid=yes 10323else case e in #( 10324 e) eval $cacheid=no ;; 10325esac 10326fi 10327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10328 conftest$ac_exeext conftest.$ac_ext ;; 10329esac 10330fi 10331 10332 10333 CFLAGS="$xorg_testset_save_CFLAGS" 10334 10335 eval supported=\$$cacheid 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10337printf "%s\n" "$supported" >&6; } 10338 if test "$supported" = "yes" ; then 10339 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10340 found="yes" 10341 fi 10342 fi 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358xorg_testset_save_CFLAGS="$CFLAGS" 10359 10360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10364if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10365then : 10366 printf %s "(cached) " >&6 10367else case e in #( 10368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369/* end confdefs.h. */ 10370int i; 10371_ACEOF 10372if ac_fn_c_try_compile "$LINENO" 10373then : 10374 xorg_cv_cc_flag_unknown_warning_option=yes 10375else case e in #( 10376 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10377esac 10378fi 10379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10380esac 10381fi 10382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10383printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386fi 10387 10388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10391 fi 10392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10394printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10395if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10396then : 10397 printf %s "(cached) " >&6 10398else case e in #( 10399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10400/* end confdefs.h. */ 10401int i; 10402_ACEOF 10403if ac_fn_c_try_compile "$LINENO" 10404then : 10405 xorg_cv_cc_flag_unused_command_line_argument=yes 10406else case e in #( 10407 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10408esac 10409fi 10410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10411esac 10412fi 10413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10416 CFLAGS="$xorg_testset_save_CFLAGS" 10417fi 10418 10419found="no" 10420 10421 if test $found = "no" ; then 10422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10424 fi 10425 10426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10428 fi 10429 10430 CFLAGS="$CFLAGS -Warray-bounds" 10431 10432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10433printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10434 cacheid=xorg_cv_cc_flag__Warray_bounds 10435 if eval test \${$cacheid+y} 10436then : 10437 printf %s "(cached) " >&6 10438else case e in #( 10439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440/* end confdefs.h. */ 10441int i; 10442int 10443main (void) 10444{ 10445 10446 ; 10447 return 0; 10448} 10449_ACEOF 10450if ac_fn_c_try_link "$LINENO" 10451then : 10452 eval $cacheid=yes 10453else case e in #( 10454 e) eval $cacheid=no ;; 10455esac 10456fi 10457rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10458 conftest$ac_exeext conftest.$ac_ext ;; 10459esac 10460fi 10461 10462 10463 CFLAGS="$xorg_testset_save_CFLAGS" 10464 10465 eval supported=\$$cacheid 10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10467printf "%s\n" "$supported" >&6; } 10468 if test "$supported" = "yes" ; then 10469 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10470 found="yes" 10471 fi 10472 fi 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488xorg_testset_save_CFLAGS="$CFLAGS" 10489 10490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10494if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10495then : 10496 printf %s "(cached) " >&6 10497else case e in #( 10498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499/* end confdefs.h. */ 10500int i; 10501_ACEOF 10502if ac_fn_c_try_compile "$LINENO" 10503then : 10504 xorg_cv_cc_flag_unknown_warning_option=yes 10505else case e in #( 10506 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10507esac 10508fi 10509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10510esac 10511fi 10512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10515 CFLAGS="$xorg_testset_save_CFLAGS" 10516fi 10517 10518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10521 fi 10522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10525if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10526then : 10527 printf %s "(cached) " >&6 10528else case e in #( 10529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10530/* end confdefs.h. */ 10531int i; 10532_ACEOF 10533if ac_fn_c_try_compile "$LINENO" 10534then : 10535 xorg_cv_cc_flag_unused_command_line_argument=yes 10536else case e in #( 10537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10538esac 10539fi 10540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10541esac 10542fi 10543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10546 CFLAGS="$xorg_testset_save_CFLAGS" 10547fi 10548 10549found="no" 10550 10551 if test $found = "no" ; then 10552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10554 fi 10555 10556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10558 fi 10559 10560 CFLAGS="$CFLAGS -Wwrite-strings" 10561 10562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10563printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10564 cacheid=xorg_cv_cc_flag__Wwrite_strings 10565 if eval test \${$cacheid+y} 10566then : 10567 printf %s "(cached) " >&6 10568else case e in #( 10569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570/* end confdefs.h. */ 10571int i; 10572int 10573main (void) 10574{ 10575 10576 ; 10577 return 0; 10578} 10579_ACEOF 10580if ac_fn_c_try_link "$LINENO" 10581then : 10582 eval $cacheid=yes 10583else case e in #( 10584 e) eval $cacheid=no ;; 10585esac 10586fi 10587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10588 conftest$ac_exeext conftest.$ac_ext ;; 10589esac 10590fi 10591 10592 10593 CFLAGS="$xorg_testset_save_CFLAGS" 10594 10595 eval supported=\$$cacheid 10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10597printf "%s\n" "$supported" >&6; } 10598 if test "$supported" = "yes" ; then 10599 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10600 found="yes" 10601 fi 10602 fi 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618xorg_testset_save_CFLAGS="$CFLAGS" 10619 10620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10624if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10625then : 10626 printf %s "(cached) " >&6 10627else case e in #( 10628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10629/* end confdefs.h. */ 10630int i; 10631_ACEOF 10632if ac_fn_c_try_compile "$LINENO" 10633then : 10634 xorg_cv_cc_flag_unknown_warning_option=yes 10635else case e in #( 10636 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10637esac 10638fi 10639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10640esac 10641fi 10642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10645 CFLAGS="$xorg_testset_save_CFLAGS" 10646fi 10647 10648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10651 fi 10652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10655if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10656then : 10657 printf %s "(cached) " >&6 10658else case e in #( 10659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10660/* end confdefs.h. */ 10661int i; 10662_ACEOF 10663if ac_fn_c_try_compile "$LINENO" 10664then : 10665 xorg_cv_cc_flag_unused_command_line_argument=yes 10666else case e in #( 10667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10668esac 10669fi 10670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10671esac 10672fi 10673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10676 CFLAGS="$xorg_testset_save_CFLAGS" 10677fi 10678 10679found="no" 10680 10681 if test $found = "no" ; then 10682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10684 fi 10685 10686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10688 fi 10689 10690 CFLAGS="$CFLAGS -Waddress" 10691 10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10693printf %s "checking if $CC supports -Waddress... " >&6; } 10694 cacheid=xorg_cv_cc_flag__Waddress 10695 if eval test \${$cacheid+y} 10696then : 10697 printf %s "(cached) " >&6 10698else case e in #( 10699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10700/* end confdefs.h. */ 10701int i; 10702int 10703main (void) 10704{ 10705 10706 ; 10707 return 0; 10708} 10709_ACEOF 10710if ac_fn_c_try_link "$LINENO" 10711then : 10712 eval $cacheid=yes 10713else case e in #( 10714 e) eval $cacheid=no ;; 10715esac 10716fi 10717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10718 conftest$ac_exeext conftest.$ac_ext ;; 10719esac 10720fi 10721 10722 10723 CFLAGS="$xorg_testset_save_CFLAGS" 10724 10725 eval supported=\$$cacheid 10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10727printf "%s\n" "$supported" >&6; } 10728 if test "$supported" = "yes" ; then 10729 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10730 found="yes" 10731 fi 10732 fi 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748xorg_testset_save_CFLAGS="$CFLAGS" 10749 10750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10754if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10755then : 10756 printf %s "(cached) " >&6 10757else case e in #( 10758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10759/* end confdefs.h. */ 10760int i; 10761_ACEOF 10762if ac_fn_c_try_compile "$LINENO" 10763then : 10764 xorg_cv_cc_flag_unknown_warning_option=yes 10765else case e in #( 10766 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10767esac 10768fi 10769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10770esac 10771fi 10772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10775 CFLAGS="$xorg_testset_save_CFLAGS" 10776fi 10777 10778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10781 fi 10782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10785if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10786then : 10787 printf %s "(cached) " >&6 10788else case e in #( 10789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10790/* end confdefs.h. */ 10791int i; 10792_ACEOF 10793if ac_fn_c_try_compile "$LINENO" 10794then : 10795 xorg_cv_cc_flag_unused_command_line_argument=yes 10796else case e in #( 10797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10798esac 10799fi 10800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10801esac 10802fi 10803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10806 CFLAGS="$xorg_testset_save_CFLAGS" 10807fi 10808 10809found="no" 10810 10811 if test $found = "no" ; then 10812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10814 fi 10815 10816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10818 fi 10819 10820 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10821 10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10823printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10824 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10825 if eval test \${$cacheid+y} 10826then : 10827 printf %s "(cached) " >&6 10828else case e in #( 10829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10830/* end confdefs.h. */ 10831int i; 10832int 10833main (void) 10834{ 10835 10836 ; 10837 return 0; 10838} 10839_ACEOF 10840if ac_fn_c_try_link "$LINENO" 10841then : 10842 eval $cacheid=yes 10843else case e in #( 10844 e) eval $cacheid=no ;; 10845esac 10846fi 10847rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10848 conftest$ac_exeext conftest.$ac_ext ;; 10849esac 10850fi 10851 10852 10853 CFLAGS="$xorg_testset_save_CFLAGS" 10854 10855 eval supported=\$$cacheid 10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10857printf "%s\n" "$supported" >&6; } 10858 if test "$supported" = "yes" ; then 10859 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10860 found="yes" 10861 fi 10862 fi 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878xorg_testset_save_CFLAGS="$CFLAGS" 10879 10880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10884if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10885then : 10886 printf %s "(cached) " >&6 10887else case e in #( 10888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10889/* end confdefs.h. */ 10890int i; 10891_ACEOF 10892if ac_fn_c_try_compile "$LINENO" 10893then : 10894 xorg_cv_cc_flag_unknown_warning_option=yes 10895else case e in #( 10896 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10897esac 10898fi 10899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10900esac 10901fi 10902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10905 CFLAGS="$xorg_testset_save_CFLAGS" 10906fi 10907 10908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10911 fi 10912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10915if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10916then : 10917 printf %s "(cached) " >&6 10918else case e in #( 10919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10920/* end confdefs.h. */ 10921int i; 10922_ACEOF 10923if ac_fn_c_try_compile "$LINENO" 10924then : 10925 xorg_cv_cc_flag_unused_command_line_argument=yes 10926else case e in #( 10927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10928esac 10929fi 10930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10931esac 10932fi 10933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10936 CFLAGS="$xorg_testset_save_CFLAGS" 10937fi 10938 10939found="no" 10940 10941 if test $found = "no" ; then 10942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10944 fi 10945 10946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10948 fi 10949 10950 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10951 10952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10953printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10954 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10955 if eval test \${$cacheid+y} 10956then : 10957 printf %s "(cached) " >&6 10958else case e in #( 10959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10960/* end confdefs.h. */ 10961int i; 10962int 10963main (void) 10964{ 10965 10966 ; 10967 return 0; 10968} 10969_ACEOF 10970if ac_fn_c_try_link "$LINENO" 10971then : 10972 eval $cacheid=yes 10973else case e in #( 10974 e) eval $cacheid=no ;; 10975esac 10976fi 10977rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10978 conftest$ac_exeext conftest.$ac_ext ;; 10979esac 10980fi 10981 10982 10983 CFLAGS="$xorg_testset_save_CFLAGS" 10984 10985 eval supported=\$$cacheid 10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10987printf "%s\n" "$supported" >&6; } 10988 if test "$supported" = "yes" ; then 10989 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10990 found="yes" 10991 fi 10992 fi 10993 10994 10995fi 10996 10997 10998 10999 11000 11001 11002 11003 CWARNFLAGS="$BASE_CFLAGS" 11004 if test "x$GCC" = xyes ; then 11005 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11006 fi 11007 11008 11009 11010 11011 11012 11013 11014 11015# Check whether --enable-strict-compilation was given. 11016if test ${enable_strict_compilation+y} 11017then : 11018 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11019else case e in #( 11020 e) STRICT_COMPILE=no ;; 11021esac 11022fi 11023 11024 11025 11026 11027 11028 11029STRICT_CFLAGS="" 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043xorg_testset_save_CFLAGS="$CFLAGS" 11044 11045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11049if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11050then : 11051 printf %s "(cached) " >&6 11052else case e in #( 11053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054/* end confdefs.h. */ 11055int i; 11056_ACEOF 11057if ac_fn_c_try_compile "$LINENO" 11058then : 11059 xorg_cv_cc_flag_unknown_warning_option=yes 11060else case e in #( 11061 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11062esac 11063fi 11064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11065esac 11066fi 11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11070 CFLAGS="$xorg_testset_save_CFLAGS" 11071fi 11072 11073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11076 fi 11077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11080if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11081then : 11082 printf %s "(cached) " >&6 11083else case e in #( 11084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11085/* end confdefs.h. */ 11086int i; 11087_ACEOF 11088if ac_fn_c_try_compile "$LINENO" 11089then : 11090 xorg_cv_cc_flag_unused_command_line_argument=yes 11091else case e in #( 11092 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11093esac 11094fi 11095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11096esac 11097fi 11098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11099printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11101 CFLAGS="$xorg_testset_save_CFLAGS" 11102fi 11103 11104found="no" 11105 11106 if test $found = "no" ; then 11107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11109 fi 11110 11111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11113 fi 11114 11115 CFLAGS="$CFLAGS -pedantic" 11116 11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11118printf %s "checking if $CC supports -pedantic... " >&6; } 11119 cacheid=xorg_cv_cc_flag__pedantic 11120 if eval test \${$cacheid+y} 11121then : 11122 printf %s "(cached) " >&6 11123else case e in #( 11124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11125/* end confdefs.h. */ 11126int i; 11127int 11128main (void) 11129{ 11130 11131 ; 11132 return 0; 11133} 11134_ACEOF 11135if ac_fn_c_try_link "$LINENO" 11136then : 11137 eval $cacheid=yes 11138else case e in #( 11139 e) eval $cacheid=no ;; 11140esac 11141fi 11142rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11143 conftest$ac_exeext conftest.$ac_ext ;; 11144esac 11145fi 11146 11147 11148 CFLAGS="$xorg_testset_save_CFLAGS" 11149 11150 eval supported=\$$cacheid 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11152printf "%s\n" "$supported" >&6; } 11153 if test "$supported" = "yes" ; then 11154 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11155 found="yes" 11156 fi 11157 fi 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173xorg_testset_save_CFLAGS="$CFLAGS" 11174 11175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11178printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11179if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes 11190else case e in #( 11191 e) xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 11198printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11200 CFLAGS="$xorg_testset_save_CFLAGS" 11201fi 11202 11203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11206 fi 11207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11209printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11210if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11211then : 11212 printf %s "(cached) " >&6 11213else case e in #( 11214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11215/* end confdefs.h. */ 11216int i; 11217_ACEOF 11218if ac_fn_c_try_compile "$LINENO" 11219then : 11220 xorg_cv_cc_flag_unused_command_line_argument=yes 11221else case e in #( 11222 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11223esac 11224fi 11225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11226esac 11227fi 11228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11229printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11231 CFLAGS="$xorg_testset_save_CFLAGS" 11232fi 11233 11234found="no" 11235 11236 if test $found = "no" ; then 11237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11239 fi 11240 11241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11243 fi 11244 11245 CFLAGS="$CFLAGS -Werror" 11246 11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11248printf %s "checking if $CC supports -Werror... " >&6; } 11249 cacheid=xorg_cv_cc_flag__Werror 11250 if eval test \${$cacheid+y} 11251then : 11252 printf %s "(cached) " >&6 11253else case e in #( 11254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11255/* end confdefs.h. */ 11256int i; 11257int 11258main (void) 11259{ 11260 11261 ; 11262 return 0; 11263} 11264_ACEOF 11265if ac_fn_c_try_link "$LINENO" 11266then : 11267 eval $cacheid=yes 11268else case e in #( 11269 e) eval $cacheid=no ;; 11270esac 11271fi 11272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11273 conftest$ac_exeext conftest.$ac_ext ;; 11274esac 11275fi 11276 11277 11278 CFLAGS="$xorg_testset_save_CFLAGS" 11279 11280 eval supported=\$$cacheid 11281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11282printf "%s\n" "$supported" >&6; } 11283 if test "$supported" = "yes" ; then 11284 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11285 found="yes" 11286 fi 11287 fi 11288 11289 if test $found = "no" ; then 11290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11292 fi 11293 11294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11296 fi 11297 11298 CFLAGS="$CFLAGS -errwarn" 11299 11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11301printf %s "checking if $CC supports -errwarn... " >&6; } 11302 cacheid=xorg_cv_cc_flag__errwarn 11303 if eval test \${$cacheid+y} 11304then : 11305 printf %s "(cached) " >&6 11306else case e in #( 11307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11308/* end confdefs.h. */ 11309int i; 11310int 11311main (void) 11312{ 11313 11314 ; 11315 return 0; 11316} 11317_ACEOF 11318if ac_fn_c_try_link "$LINENO" 11319then : 11320 eval $cacheid=yes 11321else case e in #( 11322 e) eval $cacheid=no ;; 11323esac 11324fi 11325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11326 conftest$ac_exeext conftest.$ac_ext ;; 11327esac 11328fi 11329 11330 11331 CFLAGS="$xorg_testset_save_CFLAGS" 11332 11333 eval supported=\$$cacheid 11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11335printf "%s\n" "$supported" >&6; } 11336 if test "$supported" = "yes" ; then 11337 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11338 found="yes" 11339 fi 11340 fi 11341 11342 11343 11344# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11345# activate it with -Werror, so we add it here explicitly. 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359xorg_testset_save_CFLAGS="$CFLAGS" 11360 11361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11365if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11366then : 11367 printf %s "(cached) " >&6 11368else case e in #( 11369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11370/* end confdefs.h. */ 11371int i; 11372_ACEOF 11373if ac_fn_c_try_compile "$LINENO" 11374then : 11375 xorg_cv_cc_flag_unknown_warning_option=yes 11376else case e in #( 11377 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11378esac 11379fi 11380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11381esac 11382fi 11383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11384printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11386 CFLAGS="$xorg_testset_save_CFLAGS" 11387fi 11388 11389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11392 fi 11393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11395printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11396if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11397then : 11398 printf %s "(cached) " >&6 11399else case e in #( 11400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11401/* end confdefs.h. */ 11402int i; 11403_ACEOF 11404if ac_fn_c_try_compile "$LINENO" 11405then : 11406 xorg_cv_cc_flag_unused_command_line_argument=yes 11407else case e in #( 11408 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11409esac 11410fi 11411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11412esac 11413fi 11414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11415printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11417 CFLAGS="$xorg_testset_save_CFLAGS" 11418fi 11419 11420found="no" 11421 11422 if test $found = "no" ; then 11423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11425 fi 11426 11427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11429 fi 11430 11431 CFLAGS="$CFLAGS -Werror=attributes" 11432 11433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11434printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11435 cacheid=xorg_cv_cc_flag__Werror_attributes 11436 if eval test \${$cacheid+y} 11437then : 11438 printf %s "(cached) " >&6 11439else case e in #( 11440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11441/* end confdefs.h. */ 11442int i; 11443int 11444main (void) 11445{ 11446 11447 ; 11448 return 0; 11449} 11450_ACEOF 11451if ac_fn_c_try_link "$LINENO" 11452then : 11453 eval $cacheid=yes 11454else case e in #( 11455 e) eval $cacheid=no ;; 11456esac 11457fi 11458rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11459 conftest$ac_exeext conftest.$ac_ext ;; 11460esac 11461fi 11462 11463 11464 CFLAGS="$xorg_testset_save_CFLAGS" 11465 11466 eval supported=\$$cacheid 11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11468printf "%s\n" "$supported" >&6; } 11469 if test "$supported" = "yes" ; then 11470 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11471 found="yes" 11472 fi 11473 fi 11474 11475 11476 11477if test "x$STRICT_COMPILE" = "xyes"; then 11478 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11479 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11480fi 11481 11482 11483 11484 11485 11486 11487 11488 11489cat >>confdefs.h <<_ACEOF 11490#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11491_ACEOF 11492 11493 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11494 if test "x$PVM" = "x"; then 11495 PVM="0" 11496 fi 11497 11498printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11499 11500 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11501 if test "x$PVP" = "x"; then 11502 PVP="0" 11503 fi 11504 11505printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11506 11507 11508 11509CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11510mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11511|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11512touch \$(top_srcdir)/ChangeLog; \ 11513echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11514 11515 11516 11517 11518macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11519INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11520mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11521|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11522touch \$(top_srcdir)/INSTALL; \ 11523echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11524 11525 11526 11527 11528 11529 11530case $host_os in 11531 solaris*) 11532 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11533 # check for a man page file found in later versions that use 11534 # traditional section numbers instead 11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11536printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11537if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11538then : 11539 printf %s "(cached) " >&6 11540else case e in #( 11541 e) test "$cross_compiling" = yes && 11542 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11543if test -r "/usr/share/man/man7/attributes.7"; then 11544 ac_cv_file__usr_share_man_man7_attributes_7=yes 11545else 11546 ac_cv_file__usr_share_man_man7_attributes_7=no 11547fi ;; 11548esac 11549fi 11550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11551printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11552if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11553then : 11554 SYSV_MAN_SECTIONS=false 11555else case e in #( 11556 e) SYSV_MAN_SECTIONS=true ;; 11557esac 11558fi 11559 11560 ;; 11561 *) SYSV_MAN_SECTIONS=false ;; 11562esac 11563 11564if test x$APP_MAN_SUFFIX = x ; then 11565 APP_MAN_SUFFIX=1 11566fi 11567if test x$APP_MAN_DIR = x ; then 11568 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11569fi 11570 11571if test x$LIB_MAN_SUFFIX = x ; then 11572 LIB_MAN_SUFFIX=3 11573fi 11574if test x$LIB_MAN_DIR = x ; then 11575 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11576fi 11577 11578if test x$FILE_MAN_SUFFIX = x ; then 11579 case $SYSV_MAN_SECTIONS in 11580 true) FILE_MAN_SUFFIX=4 ;; 11581 *) FILE_MAN_SUFFIX=5 ;; 11582 esac 11583fi 11584if test x$FILE_MAN_DIR = x ; then 11585 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11586fi 11587 11588if test x$MISC_MAN_SUFFIX = x ; then 11589 case $SYSV_MAN_SECTIONS in 11590 true) MISC_MAN_SUFFIX=5 ;; 11591 *) MISC_MAN_SUFFIX=7 ;; 11592 esac 11593fi 11594if test x$MISC_MAN_DIR = x ; then 11595 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11596fi 11597 11598if test x$DRIVER_MAN_SUFFIX = x ; then 11599 case $SYSV_MAN_SECTIONS in 11600 true) DRIVER_MAN_SUFFIX=7 ;; 11601 *) DRIVER_MAN_SUFFIX=4 ;; 11602 esac 11603fi 11604if test x$DRIVER_MAN_DIR = x ; then 11605 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11606fi 11607 11608if test x$ADMIN_MAN_SUFFIX = x ; then 11609 case $SYSV_MAN_SECTIONS in 11610 true) ADMIN_MAN_SUFFIX=1m ;; 11611 *) ADMIN_MAN_SUFFIX=8 ;; 11612 esac 11613fi 11614if test x$ADMIN_MAN_DIR = x ; then 11615 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11616fi 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632XORG_MAN_PAGE="X Version 11" 11633 11634MAN_SUBSTS="\ 11635 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11636 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11637 -e 's|__xservername__|Xorg|g' \ 11638 -e 's|__xconfigfile__|xorg.conf|g' \ 11639 -e 's|__projectroot__|\$(prefix)|g' \ 11640 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11641 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11642 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11643 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11644 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11645 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11646 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11647 11648 11649 11650# Check whether --enable-silent-rules was given. 11651if test ${enable_silent_rules+y} 11652then : 11653 enableval=$enable_silent_rules; 11654fi 11655 11656case $enable_silent_rules in # ((( 11657 yes) AM_DEFAULT_VERBOSITY=0;; 11658 no) AM_DEFAULT_VERBOSITY=1;; 11659 *) AM_DEFAULT_VERBOSITY=0;; 11660esac 11661am_make=${MAKE-make} 11662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11663printf %s "checking whether $am_make supports nested variables... " >&6; } 11664if test ${am_cv_make_support_nested_variables+y} 11665then : 11666 printf %s "(cached) " >&6 11667else case e in #( 11668 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11669BAR0=false 11670BAR1=true 11671V=1 11672am__doit: 11673 @$(TRUE) 11674.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11675 am_cv_make_support_nested_variables=yes 11676else 11677 am_cv_make_support_nested_variables=no 11678fi ;; 11679esac 11680fi 11681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11682printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11683if test $am_cv_make_support_nested_variables = yes; then 11684 AM_V='$(V)' 11685 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11686else 11687 AM_V=$AM_DEFAULT_VERBOSITY 11688 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11689fi 11690AM_BACKSLASH='\' 11691 11692 11693 11694 11695# Checks for typedefs, structures, and compiler characteristics. 11696# Check whether --enable-largefile was given. 11697if test ${enable_largefile+y} 11698then : 11699 enableval=$enable_largefile; 11700fi 11701if test "$enable_largefile,$enable_year2038" != no,no 11702then : 11703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11704printf %s "checking for $CC option to enable large file support... " >&6; } 11705if test ${ac_cv_sys_largefile_opts+y} 11706then : 11707 printf %s "(cached) " >&6 11708else case e in #( 11709 e) ac_save_CC="$CC" 11710 ac_opt_found=no 11711 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11712 if test x"$ac_opt" != x"none needed" 11713then : 11714 CC="$ac_save_CC $ac_opt" 11715fi 11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11717/* end confdefs.h. */ 11718#include <sys/types.h> 11719#ifndef FTYPE 11720# define FTYPE off_t 11721#endif 11722 /* Check that FTYPE can represent 2**63 - 1 correctly. 11723 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11724 since some C++ compilers masquerading as C compilers 11725 incorrectly reject 9223372036854775807. */ 11726#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11727 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11728 && LARGE_FTYPE % 2147483647 == 1) 11729 ? 1 : -1]; 11730int 11731main (void) 11732{ 11733 11734 ; 11735 return 0; 11736} 11737_ACEOF 11738if ac_fn_c_try_compile "$LINENO" 11739then : 11740 if test x"$ac_opt" = x"none needed" 11741then : 11742 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11743 CC="$CC -DFTYPE=ino_t" 11744 if ac_fn_c_try_compile "$LINENO" 11745then : 11746 11747else case e in #( 11748 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11749 if ac_fn_c_try_compile "$LINENO" 11750then : 11751 ac_opt='-D_FILE_OFFSET_BITS=64' 11752fi 11753rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11754esac 11755fi 11756rm -f core conftest.err conftest.$ac_objext conftest.beam 11757fi 11758 ac_cv_sys_largefile_opts=$ac_opt 11759 ac_opt_found=yes 11760fi 11761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11762 test $ac_opt_found = no || break 11763 done 11764 CC="$ac_save_CC" 11765 11766 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11767esac 11768fi 11769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11770printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11771 11772ac_have_largefile=yes 11773case $ac_cv_sys_largefile_opts in #( 11774 "none needed") : 11775 ;; #( 11776 "supported through gnulib") : 11777 ;; #( 11778 "support not detected") : 11779 ac_have_largefile=no ;; #( 11780 "-D_FILE_OFFSET_BITS=64") : 11781 11782printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11783 ;; #( 11784 "-D_LARGE_FILES=1") : 11785 11786printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11787 ;; #( 11788 "-n32") : 11789 CC="$CC -n32" ;; #( 11790 *) : 11791 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11792esac 11793 11794if test "$enable_year2038" != no 11795then : 11796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11797printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11798if test ${ac_cv_sys_year2038_opts+y} 11799then : 11800 printf %s "(cached) " >&6 11801else case e in #( 11802 e) ac_save_CPPFLAGS="$CPPFLAGS" 11803 ac_opt_found=no 11804 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 11805 if test x"$ac_opt" != x"none needed" 11806then : 11807 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11808fi 11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11810/* end confdefs.h. */ 11811 11812 #include <time.h> 11813 /* Check that time_t can represent 2**32 - 1 correctly. */ 11814 #define LARGE_TIME_T \\ 11815 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11816 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11817 && LARGE_TIME_T % 65537 == 0) 11818 ? 1 : -1]; 11819 11820int 11821main (void) 11822{ 11823 11824 ; 11825 return 0; 11826} 11827_ACEOF 11828if ac_fn_c_try_compile "$LINENO" 11829then : 11830 ac_cv_sys_year2038_opts="$ac_opt" 11831 ac_opt_found=yes 11832fi 11833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11834 test $ac_opt_found = no || break 11835 done 11836 CPPFLAGS="$ac_save_CPPFLAGS" 11837 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11838esac 11839fi 11840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11841printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11842 11843ac_have_year2038=yes 11844case $ac_cv_sys_year2038_opts in #( 11845 "none needed") : 11846 ;; #( 11847 "support not detected") : 11848 ac_have_year2038=no ;; #( 11849 "-D_TIME_BITS=64") : 11850 11851printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11852 ;; #( 11853 "-D__MINGW_USE_VC2005_COMPAT") : 11854 11855printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11856 ;; #( 11857 "-U_USE_32_BIT_TIME_T"*) : 11858 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11859printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11860as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11861will stop working after mid-January 2038. Remove 11862_USE_32BIT_TIME_T from the compiler flags. 11863See 'config.log' for more details" "$LINENO" 5; } ;; #( 11864 *) : 11865 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11866esac 11867 11868fi 11869 11870fi 11871 11872# Checks for library functions. 11873ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11874if test "x$ac_cv_func_asprintf" = xyes 11875then : 11876 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11877 11878fi 11879 11880 11881# Internationalization & localization support 11882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 11883printf %s "checking for library containing gettext... " >&6; } 11884if test ${ac_cv_search_gettext+y} 11885then : 11886 printf %s "(cached) " >&6 11887else case e in #( 11888 e) ac_func_search_save_LIBS=$LIBS 11889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11890/* end confdefs.h. */ 11891 11892/* Override any GCC internal prototype to avoid an error. 11893 Use char because int might match the return type of a GCC 11894 builtin and then its argument prototype would still apply. 11895 The 'extern "C"' is for builds by C++ compilers; 11896 although this is not generally supported in C code supporting it here 11897 has little cost and some practical benefit (sr 110532). */ 11898#ifdef __cplusplus 11899extern "C" 11900#endif 11901char gettext (void); 11902int 11903main (void) 11904{ 11905return gettext (); 11906 ; 11907 return 0; 11908} 11909_ACEOF 11910for ac_lib in '' intl 11911do 11912 if test -z "$ac_lib"; then 11913 ac_res="none required" 11914 else 11915 ac_res=-l$ac_lib 11916 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11917 fi 11918 if ac_fn_c_try_link "$LINENO" 11919then : 11920 ac_cv_search_gettext=$ac_res 11921fi 11922rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11923 conftest$ac_exeext 11924 if test ${ac_cv_search_gettext+y} 11925then : 11926 break 11927fi 11928done 11929if test ${ac_cv_search_gettext+y} 11930then : 11931 11932else case e in #( 11933 e) ac_cv_search_gettext=no ;; 11934esac 11935fi 11936rm conftest.$ac_ext 11937LIBS=$ac_func_search_save_LIBS ;; 11938esac 11939fi 11940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 11941printf "%s\n" "$ac_cv_search_gettext" >&6; } 11942ac_res=$ac_cv_search_gettext 11943if test "$ac_res" != no 11944then : 11945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11946 USE_GETTEXT="yes" 11947else case e in #( 11948 e) USE_GETTEXT="no" ;; 11949esac 11950fi 11951 11952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5 11953printf %s "checking where to install localized messages... " >&6; } 11954 11955# Check whether --with-localedir was given. 11956if test ${with_localedir+y} 11957then : 11958 withval=$with_localedir; LOCALEDIR=${withval} 11959else case e in #( 11960 e) LOCALEDIR=${datadir}/locale ;; 11961esac 11962fi 11963 11964 11965 prefix_NONE= 11966 exec_prefix_NONE= 11967 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 11968 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 11969 eval ax_define_dir="\"$LOCALEDIR\"" 11970 eval ax_define_dir="\"$ax_define_dir\"" 11971 LOCALEDIR="$ax_define_dir" 11972 11973 11974printf "%s\n" "#define LOCALEDIR \"$ax_define_dir\"" >>confdefs.h 11975 11976 test "$prefix_NONE" && prefix=NONE 11977 test "$exec_prefix_NONE" && exec_prefix=NONE 11978 11979if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 11980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5 11981printf "%s\n" "nowhere" >&6; } 11982 USE_GETTEXT="no" 11983else 11984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5 11985printf "%s\n" "$LOCALEDIR" >&6; } 11986fi 11987 11988if test "x$USE_GETTEXT" = "xyes" ; then 11989 11990printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h 11991 11992fi 11993 if test "x$USE_GETTEXT" = "xyes"; then 11994 USE_GETTEXT_TRUE= 11995 USE_GETTEXT_FALSE='#' 11996else 11997 USE_GETTEXT_TRUE='#' 11998 USE_GETTEXT_FALSE= 11999fi 12000 12001 12002 12003### How to check load average on various OS'es: 12004 12005# getloadavg: 4.3BSD-Reno & later, glibc 2.2 & later, Solaris 7 & later 12006# BSD & GNU libc use <stdlib.h>, Solaris requires <sys/loadavg.h> 12007 12008 for ac_func in getloadavg 12009do : 12010 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 12011if test "x$ac_cv_func_getloadavg" = xyes 12012then : 12013 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h 12014 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" 12015if test "x$ac_cv_header_sys_loadavg_h" = xyes 12016then : 12017 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h 12018 12019fi 12020 12021fi 12022 12023done 12024 12025ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" 12026if test "x$ac_cv_header_paths_h" = xyes 12027then : 12028 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h 12029 12030fi 12031ac_fn_c_check_header_compile "$LINENO" "protocols/rwhod.h" "ac_cv_header_protocols_rwhod_h" "$ac_includes_default" 12032if test "x$ac_cv_header_protocols_rwhod_h" = xyes 12033then : 12034 printf "%s\n" "#define HAVE_PROTOCOLS_RWHOD_H 1" >>confdefs.h 12035 12036fi 12037 12038 12039# Checks for pkg-config packages 12040 12041pkg_failed=no 12042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLOAD" >&5 12043printf %s "checking for XLOAD... " >&6; } 12044 12045if test -n "$XLOAD_CFLAGS"; then 12046 pkg_cv_XLOAD_CFLAGS="$XLOAD_CFLAGS" 12047 elif test -n "$PKG_CONFIG"; then 12048 if test -n "$PKG_CONFIG" && \ 12049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5 12050 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5 12051 ac_status=$? 12052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12053 test $ac_status = 0; }; then 12054 pkg_cv_XLOAD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null` 12055 test "x$?" != "x0" && pkg_failed=yes 12056else 12057 pkg_failed=yes 12058fi 12059 else 12060 pkg_failed=untried 12061fi 12062if test -n "$XLOAD_LIBS"; then 12063 pkg_cv_XLOAD_LIBS="$XLOAD_LIBS" 12064 elif test -n "$PKG_CONFIG"; then 12065 if test -n "$PKG_CONFIG" && \ 12066 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5 12067 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5 12068 ac_status=$? 12069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12070 test $ac_status = 0; }; then 12071 pkg_cv_XLOAD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null` 12072 test "x$?" != "x0" && pkg_failed=yes 12073else 12074 pkg_failed=yes 12075fi 12076 else 12077 pkg_failed=untried 12078fi 12079 12080 12081 12082if test $pkg_failed = yes; then 12083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12084printf "%s\n" "no" >&6; } 12085 12086if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12087 _pkg_short_errors_supported=yes 12088else 12089 _pkg_short_errors_supported=no 12090fi 12091 if test $_pkg_short_errors_supported = yes; then 12092 XLOAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1` 12093 else 12094 XLOAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1` 12095 fi 12096 # Put the nasty error message in config.log where it belongs 12097 echo "$XLOAD_PKG_ERRORS" >&5 12098 12099 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.17) were not met: 12100 12101$XLOAD_PKG_ERRORS 12102 12103Consider adjusting the PKG_CONFIG_PATH environment variable if you 12104installed software in a non-standard prefix. 12105 12106Alternatively, you may set the environment variables XLOAD_CFLAGS 12107and XLOAD_LIBS to avoid the need to call pkg-config. 12108See the pkg-config man page for more details." "$LINENO" 5 12109elif test $pkg_failed = untried; then 12110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12111printf "%s\n" "no" >&6; } 12112 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12113printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12114as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12115is in your PATH or set the PKG_CONFIG environment variable to the full 12116path to pkg-config. 12117 12118Alternatively, you may set the environment variables XLOAD_CFLAGS 12119and XLOAD_LIBS to avoid the need to call pkg-config. 12120See the pkg-config man page for more details. 12121 12122To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12123See 'config.log' for more details" "$LINENO" 5; } 12124else 12125 XLOAD_CFLAGS=$pkg_cv_XLOAD_CFLAGS 12126 XLOAD_LIBS=$pkg_cv_XLOAD_LIBS 12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12128printf "%s\n" "yes" >&6; } 12129 12130fi 12131 12132 12133pkg_failed=no 12134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 12135printf %s "checking for APPDEFS... " >&6; } 12136 12137if test -n "$APPDEFS_CFLAGS"; then 12138 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 12139 elif test -n "$PKG_CONFIG"; then 12140 if test -n "$PKG_CONFIG" && \ 12141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 12142 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 12143 ac_status=$? 12144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12145 test $ac_status = 0; }; then 12146 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 12147 test "x$?" != "x0" && pkg_failed=yes 12148else 12149 pkg_failed=yes 12150fi 12151 else 12152 pkg_failed=untried 12153fi 12154if test -n "$APPDEFS_LIBS"; then 12155 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 12156 elif test -n "$PKG_CONFIG"; then 12157 if test -n "$PKG_CONFIG" && \ 12158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 12159 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 12160 ac_status=$? 12161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12162 test $ac_status = 0; }; then 12163 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 12164 test "x$?" != "x0" && pkg_failed=yes 12165else 12166 pkg_failed=yes 12167fi 12168 else 12169 pkg_failed=untried 12170fi 12171 12172 12173 12174if test $pkg_failed = yes; then 12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12176printf "%s\n" "no" >&6; } 12177 12178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12179 _pkg_short_errors_supported=yes 12180else 12181 _pkg_short_errors_supported=no 12182fi 12183 if test $_pkg_short_errors_supported = yes; then 12184 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 12185 else 12186 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 12187 fi 12188 # Put the nasty error message in config.log where it belongs 12189 echo "$APPDEFS_PKG_ERRORS" >&5 12190 12191 as_fn_error $? "Package requirements (xt) were not met: 12192 12193$APPDEFS_PKG_ERRORS 12194 12195Consider adjusting the PKG_CONFIG_PATH environment variable if you 12196installed software in a non-standard prefix. 12197 12198Alternatively, you may set the environment variables APPDEFS_CFLAGS 12199and APPDEFS_LIBS to avoid the need to call pkg-config. 12200See the pkg-config man page for more details." "$LINENO" 5 12201elif test $pkg_failed = untried; then 12202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12203printf "%s\n" "no" >&6; } 12204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12205printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12206as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12207is in your PATH or set the PKG_CONFIG environment variable to the full 12208path to pkg-config. 12209 12210Alternatively, you may set the environment variables APPDEFS_CFLAGS 12211and APPDEFS_LIBS to avoid the need to call pkg-config. 12212See the pkg-config man page for more details. 12213 12214To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12215See 'config.log' for more details" "$LINENO" 5; } 12216else 12217 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 12218 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12220printf "%s\n" "yes" >&6; } 12221 12222fi 12223xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 12224 12225# Check whether --with-appdefaultdir was given. 12226if test ${with_appdefaultdir+y} 12227then : 12228 withval=$with_appdefaultdir; appdefaultdir="$withval" 12229else case e in #( 12230 e) appdefaultdir="${xt_appdefaultdir}" ;; 12231esac 12232fi 12233 12234 12235 12236 12237ac_config_files="$ac_config_files Makefile man/Makefile" 12238 12239cat >confcache <<\_ACEOF 12240# This file is a shell script that caches the results of configure 12241# tests run on this system so they can be shared between configure 12242# scripts and configure runs, see configure's option --config-cache. 12243# It is not useful on other systems. If it contains results you don't 12244# want to keep, you may remove or edit it. 12245# 12246# config.status only pays attention to the cache file if you give it 12247# the --recheck option to rerun configure. 12248# 12249# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12250# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12251# following values. 12252 12253_ACEOF 12254 12255# The following way of writing the cache mishandles newlines in values, 12256# but we know of no workaround that is simple, portable, and efficient. 12257# So, we kill variables containing newlines. 12258# Ultrix sh set writes to stderr and can't be redirected directly, 12259# and sets the high bit in the cache file unless we assign to the vars. 12260( 12261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12262 eval ac_val=\$$ac_var 12263 case $ac_val in #( 12264 *${as_nl}*) 12265 case $ac_var in #( 12266 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12267printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12268 esac 12269 case $ac_var in #( 12270 _ | IFS | as_nl) ;; #( 12271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12272 *) { eval $ac_var=; unset $ac_var;} ;; 12273 esac ;; 12274 esac 12275 done 12276 12277 (set) 2>&1 | 12278 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12279 *${as_nl}ac_space=\ *) 12280 # 'set' does not quote correctly, so add quotes: double-quote 12281 # substitution turns \\\\ into \\, and sed turns \\ into \. 12282 sed -n \ 12283 "s/'/'\\\\''/g; 12284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12285 ;; #( 12286 *) 12287 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12289 ;; 12290 esac | 12291 sort 12292) | 12293 sed ' 12294 /^ac_cv_env_/b end 12295 t clear 12296 :clear 12297 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12298 t end 12299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12300 :end' >>confcache 12301if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12302 if test -w "$cache_file"; then 12303 if test "x$cache_file" != "x/dev/null"; then 12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12305printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12306 if test ! -f "$cache_file" || test -h "$cache_file"; then 12307 cat confcache >"$cache_file" 12308 else 12309 case $cache_file in #( 12310 */* | ?:*) 12311 mv -f confcache "$cache_file"$$ && 12312 mv -f "$cache_file"$$ "$cache_file" ;; #( 12313 *) 12314 mv -f confcache "$cache_file" ;; 12315 esac 12316 fi 12317 fi 12318 else 12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12320printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12321 fi 12322fi 12323rm -f confcache 12324 12325test "x$prefix" = xNONE && prefix=$ac_default_prefix 12326# Let make expand exec_prefix. 12327test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12328 12329DEFS=-DHAVE_CONFIG_H 12330 12331ac_libobjs= 12332ac_ltlibobjs= 12333U= 12334for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12335 # 1. Remove the extension, and $U if already installed. 12336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12337 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12339 # will be set to the directory where LIBOBJS objects are built. 12340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12342done 12343LIBOBJS=$ac_libobjs 12344 12345LTLIBOBJS=$ac_ltlibobjs 12346 12347 12348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12349printf %s "checking that generated files are newer than configure... " >&6; } 12350 if test -n "$am_sleep_pid"; then 12351 # Hide warnings about reused PIDs. 12352 wait $am_sleep_pid 2>/dev/null 12353 fi 12354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12355printf "%s\n" "done" >&6; } 12356if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12357 as_fn_error $? "conditional \"AMDEP\" was never defined. 12358Usually this means the macro was only invoked conditionally." "$LINENO" 5 12359fi 12360if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12361 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12362Usually this means the macro was only invoked conditionally." "$LINENO" 5 12363fi 12364 if test -n "$EXEEXT"; then 12365 am__EXEEXT_TRUE= 12366 am__EXEEXT_FALSE='#' 12367else 12368 am__EXEEXT_TRUE='#' 12369 am__EXEEXT_FALSE= 12370fi 12371 12372# Check whether --enable-year2038 was given. 12373if test ${enable_year2038+y} 12374then : 12375 enableval=$enable_year2038; 12376fi 12377 12378if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then 12379 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined. 12380Usually this means the macro was only invoked conditionally." "$LINENO" 5 12381fi 12382 12383: "${CONFIG_STATUS=./config.status}" 12384ac_write_fail=0 12385ac_clean_files_save=$ac_clean_files 12386ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12388printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12389as_write_fail=0 12390cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12391#! $SHELL 12392# Generated by $as_me. 12393# Run this file to recreate the current configuration. 12394# Compiler output produced by configure, useful for debugging 12395# configure, is in config.log if it exists. 12396 12397debug=false 12398ac_cs_recheck=false 12399ac_cs_silent=false 12400 12401SHELL=\${CONFIG_SHELL-$SHELL} 12402export SHELL 12403_ASEOF 12404cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12405## -------------------- ## 12406## M4sh Initialization. ## 12407## -------------------- ## 12408 12409# Be more Bourne compatible 12410DUALCASE=1; export DUALCASE # for MKS sh 12411if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12412then : 12413 emulate sh 12414 NULLCMD=: 12415 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12416 # is contrary to our usage. Disable this feature. 12417 alias -g '${1+"$@"}'='"$@"' 12418 setopt NO_GLOB_SUBST 12419else case e in #( 12420 e) case `(set -o) 2>/dev/null` in #( 12421 *posix*) : 12422 set -o posix ;; #( 12423 *) : 12424 ;; 12425esac ;; 12426esac 12427fi 12428 12429 12430 12431# Reset variables that may have inherited troublesome values from 12432# the environment. 12433 12434# IFS needs to be set, to space, tab, and newline, in precisely that order. 12435# (If _AS_PATH_WALK were called with IFS unset, it would have the 12436# side effect of setting IFS to empty, thus disabling word splitting.) 12437# Quoting is to prevent editors from complaining about space-tab. 12438as_nl=' 12439' 12440export as_nl 12441IFS=" "" $as_nl" 12442 12443PS1='$ ' 12444PS2='> ' 12445PS4='+ ' 12446 12447# Ensure predictable behavior from utilities with locale-dependent output. 12448LC_ALL=C 12449export LC_ALL 12450LANGUAGE=C 12451export LANGUAGE 12452 12453# We cannot yet rely on "unset" to work, but we need these variables 12454# to be unset--not just set to an empty or harmless value--now, to 12455# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12456# also avoids known problems related to "unset" and subshell syntax 12457# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12458for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12459do eval test \${$as_var+y} \ 12460 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12461done 12462 12463# Ensure that fds 0, 1, and 2 are open. 12464if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12465if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12466if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12467 12468# The user is always right. 12469if ${PATH_SEPARATOR+false} :; then 12470 PATH_SEPARATOR=: 12471 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12472 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12473 PATH_SEPARATOR=';' 12474 } 12475fi 12476 12477 12478# Find who we are. Look in the path if we contain no directory separator. 12479as_myself= 12480case $0 in #(( 12481 *[\\/]* ) as_myself=$0 ;; 12482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12483for as_dir in $PATH 12484do 12485 IFS=$as_save_IFS 12486 case $as_dir in #((( 12487 '') as_dir=./ ;; 12488 */) ;; 12489 *) as_dir=$as_dir/ ;; 12490 esac 12491 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12492 done 12493IFS=$as_save_IFS 12494 12495 ;; 12496esac 12497# We did not find ourselves, most probably we were run as 'sh COMMAND' 12498# in which case we are not to be found in the path. 12499if test "x$as_myself" = x; then 12500 as_myself=$0 12501fi 12502if test ! -f "$as_myself"; then 12503 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12504 exit 1 12505fi 12506 12507 12508 12509# as_fn_error STATUS ERROR [LINENO LOG_FD] 12510# ---------------------------------------- 12511# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12512# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12513# script with STATUS, using 1 if that was 0. 12514as_fn_error () 12515{ 12516 as_status=$1; test $as_status -eq 0 && as_status=1 12517 if test "$4"; then 12518 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12520 fi 12521 printf "%s\n" "$as_me: error: $2" >&2 12522 as_fn_exit $as_status 12523} # as_fn_error 12524 12525 12526# as_fn_set_status STATUS 12527# ----------------------- 12528# Set $? to STATUS, without forking. 12529as_fn_set_status () 12530{ 12531 return $1 12532} # as_fn_set_status 12533 12534# as_fn_exit STATUS 12535# ----------------- 12536# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12537as_fn_exit () 12538{ 12539 set +e 12540 as_fn_set_status $1 12541 exit $1 12542} # as_fn_exit 12543 12544# as_fn_unset VAR 12545# --------------- 12546# Portably unset VAR. 12547as_fn_unset () 12548{ 12549 { eval $1=; unset $1;} 12550} 12551as_unset=as_fn_unset 12552 12553# as_fn_append VAR VALUE 12554# ---------------------- 12555# Append the text in VALUE to the end of the definition contained in VAR. Take 12556# advantage of any shell optimizations that allow amortized linear growth over 12557# repeated appends, instead of the typical quadratic growth present in naive 12558# implementations. 12559if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12560then : 12561 eval 'as_fn_append () 12562 { 12563 eval $1+=\$2 12564 }' 12565else case e in #( 12566 e) as_fn_append () 12567 { 12568 eval $1=\$$1\$2 12569 } ;; 12570esac 12571fi # as_fn_append 12572 12573# as_fn_arith ARG... 12574# ------------------ 12575# Perform arithmetic evaluation on the ARGs, and store the result in the 12576# global $as_val. Take advantage of shells that can avoid forks. The arguments 12577# must be portable across $(()) and expr. 12578if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12579then : 12580 eval 'as_fn_arith () 12581 { 12582 as_val=$(( $* )) 12583 }' 12584else case e in #( 12585 e) as_fn_arith () 12586 { 12587 as_val=`expr "$@" || test $? -eq 1` 12588 } ;; 12589esac 12590fi # as_fn_arith 12591 12592 12593if expr a : '\(a\)' >/dev/null 2>&1 && 12594 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12595 as_expr=expr 12596else 12597 as_expr=false 12598fi 12599 12600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12601 as_basename=basename 12602else 12603 as_basename=false 12604fi 12605 12606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12607 as_dirname=dirname 12608else 12609 as_dirname=false 12610fi 12611 12612as_me=`$as_basename -- "$0" || 12613$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12614 X"$0" : 'X\(//\)$' \| \ 12615 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12616printf "%s\n" X/"$0" | 12617 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12618 s//\1/ 12619 q 12620 } 12621 /^X\/\(\/\/\)$/{ 12622 s//\1/ 12623 q 12624 } 12625 /^X\/\(\/\).*/{ 12626 s//\1/ 12627 q 12628 } 12629 s/.*/./; q'` 12630 12631# Avoid depending upon Character Ranges. 12632as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12633as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12634as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12635as_cr_digits='0123456789' 12636as_cr_alnum=$as_cr_Letters$as_cr_digits 12637 12638 12639# Determine whether it's possible to make 'echo' print without a newline. 12640# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12641# for compatibility with existing Makefiles. 12642ECHO_C= ECHO_N= ECHO_T= 12643case `echo -n x` in #((((( 12644-n*) 12645 case `echo 'xy\c'` in 12646 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12647 xy) ECHO_C='\c';; 12648 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12649 ECHO_T=' ';; 12650 esac;; 12651*) 12652 ECHO_N='-n';; 12653esac 12654 12655# For backward compatibility with old third-party macros, we provide 12656# the shell variables $as_echo and $as_echo_n. New code should use 12657# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12658as_echo='printf %s\n' 12659as_echo_n='printf %s' 12660 12661rm -f conf$$ conf$$.exe conf$$.file 12662if test -d conf$$.dir; then 12663 rm -f conf$$.dir/conf$$.file 12664else 12665 rm -f conf$$.dir 12666 mkdir conf$$.dir 2>/dev/null 12667fi 12668if (echo >conf$$.file) 2>/dev/null; then 12669 if ln -s conf$$.file conf$$ 2>/dev/null; then 12670 as_ln_s='ln -s' 12671 # ... but there are two gotchas: 12672 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12673 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12674 # In both cases, we have to default to 'cp -pR'. 12675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12676 as_ln_s='cp -pR' 12677 elif ln conf$$.file conf$$ 2>/dev/null; then 12678 as_ln_s=ln 12679 else 12680 as_ln_s='cp -pR' 12681 fi 12682else 12683 as_ln_s='cp -pR' 12684fi 12685rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12686rmdir conf$$.dir 2>/dev/null 12687 12688 12689# as_fn_mkdir_p 12690# ------------- 12691# Create "$as_dir" as a directory, including parents if necessary. 12692as_fn_mkdir_p () 12693{ 12694 12695 case $as_dir in #( 12696 -*) as_dir=./$as_dir;; 12697 esac 12698 test -d "$as_dir" || eval $as_mkdir_p || { 12699 as_dirs= 12700 while :; do 12701 case $as_dir in #( 12702 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12703 *) as_qdir=$as_dir;; 12704 esac 12705 as_dirs="'$as_qdir' $as_dirs" 12706 as_dir=`$as_dirname -- "$as_dir" || 12707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12708 X"$as_dir" : 'X\(//\)[^/]' \| \ 12709 X"$as_dir" : 'X\(//\)$' \| \ 12710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12711printf "%s\n" X"$as_dir" | 12712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12713 s//\1/ 12714 q 12715 } 12716 /^X\(\/\/\)[^/].*/{ 12717 s//\1/ 12718 q 12719 } 12720 /^X\(\/\/\)$/{ 12721 s//\1/ 12722 q 12723 } 12724 /^X\(\/\).*/{ 12725 s//\1/ 12726 q 12727 } 12728 s/.*/./; q'` 12729 test -d "$as_dir" && break 12730 done 12731 test -z "$as_dirs" || eval "mkdir $as_dirs" 12732 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12733 12734 12735} # as_fn_mkdir_p 12736if mkdir -p . 2>/dev/null; then 12737 as_mkdir_p='mkdir -p "$as_dir"' 12738else 12739 test -d ./-p && rmdir ./-p 12740 as_mkdir_p=false 12741fi 12742 12743 12744# as_fn_executable_p FILE 12745# ----------------------- 12746# Test if FILE is an executable regular file. 12747as_fn_executable_p () 12748{ 12749 test -f "$1" && test -x "$1" 12750} # as_fn_executable_p 12751as_test_x='test -x' 12752as_executable_p=as_fn_executable_p 12753 12754# Sed expression to map a string onto a valid CPP name. 12755as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12756as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12757 12758# Sed expression to map a string onto a valid variable name. 12759as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12760as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12761 12762 12763exec 6>&1 12764## ----------------------------------- ## 12765## Main body of $CONFIG_STATUS script. ## 12766## ----------------------------------- ## 12767_ASEOF 12768test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12769 12770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12771# Save the log message, to keep $0 and so on meaningful, and to 12772# report actual input values of CONFIG_FILES etc. instead of their 12773# values after options handling. 12774ac_log=" 12775This file was extended by xload $as_me 1.2.0, which was 12776generated by GNU Autoconf 2.72. Invocation command line was 12777 12778 CONFIG_FILES = $CONFIG_FILES 12779 CONFIG_HEADERS = $CONFIG_HEADERS 12780 CONFIG_LINKS = $CONFIG_LINKS 12781 CONFIG_COMMANDS = $CONFIG_COMMANDS 12782 $ $0 $@ 12783 12784on `(hostname || uname -n) 2>/dev/null | sed 1q` 12785" 12786 12787_ACEOF 12788 12789case $ac_config_files in *" 12790"*) set x $ac_config_files; shift; ac_config_files=$*;; 12791esac 12792 12793case $ac_config_headers in *" 12794"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12795esac 12796 12797 12798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12799# Files that config.status was made for. 12800config_files="$ac_config_files" 12801config_headers="$ac_config_headers" 12802config_commands="$ac_config_commands" 12803 12804_ACEOF 12805 12806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12807ac_cs_usage="\ 12808'$as_me' instantiates files and other configuration actions 12809from templates according to the current configuration. Unless the files 12810and actions are specified as TAGs, all are instantiated by default. 12811 12812Usage: $0 [OPTION]... [TAG]... 12813 12814 -h, --help print this help, then exit 12815 -V, --version print version number and configuration settings, then exit 12816 --config print configuration, then exit 12817 -q, --quiet, --silent 12818 do not print progress messages 12819 -d, --debug don't remove temporary files 12820 --recheck update $as_me by reconfiguring in the same conditions 12821 --file=FILE[:TEMPLATE] 12822 instantiate the configuration file FILE 12823 --header=FILE[:TEMPLATE] 12824 instantiate the configuration header FILE 12825 12826Configuration files: 12827$config_files 12828 12829Configuration headers: 12830$config_headers 12831 12832Configuration commands: 12833$config_commands 12834 12835Report bugs to <https://gitlab.freedesktop.org/xorg/app/xload/-/issues>." 12836 12837_ACEOF 12838ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12839ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12841ac_cs_config='$ac_cs_config_escaped' 12842ac_cs_version="\\ 12843xload config.status 1.2.0 12844configured by $0, generated by GNU Autoconf 2.72, 12845 with options \\"\$ac_cs_config\\" 12846 12847Copyright (C) 2023 Free Software Foundation, Inc. 12848This config.status script is free software; the Free Software Foundation 12849gives unlimited permission to copy, distribute and modify it." 12850 12851ac_pwd='$ac_pwd' 12852srcdir='$srcdir' 12853INSTALL='$INSTALL' 12854MKDIR_P='$MKDIR_P' 12855AWK='$AWK' 12856test -n "\$AWK" || AWK=awk 12857_ACEOF 12858 12859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12860# The default lists apply if the user does not specify any file. 12861ac_need_defaults=: 12862while test $# != 0 12863do 12864 case $1 in 12865 --*=?*) 12866 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12867 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12868 ac_shift=: 12869 ;; 12870 --*=) 12871 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12872 ac_optarg= 12873 ac_shift=: 12874 ;; 12875 *) 12876 ac_option=$1 12877 ac_optarg=$2 12878 ac_shift=shift 12879 ;; 12880 esac 12881 12882 case $ac_option in 12883 # Handling of the options. 12884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12885 ac_cs_recheck=: ;; 12886 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12887 printf "%s\n" "$ac_cs_version"; exit ;; 12888 --config | --confi | --conf | --con | --co | --c ) 12889 printf "%s\n" "$ac_cs_config"; exit ;; 12890 --debug | --debu | --deb | --de | --d | -d ) 12891 debug=: ;; 12892 --file | --fil | --fi | --f ) 12893 $ac_shift 12894 case $ac_optarg in 12895 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12896 '') as_fn_error $? "missing file argument" ;; 12897 esac 12898 as_fn_append CONFIG_FILES " '$ac_optarg'" 12899 ac_need_defaults=false;; 12900 --header | --heade | --head | --hea ) 12901 $ac_shift 12902 case $ac_optarg in 12903 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12904 esac 12905 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12906 ac_need_defaults=false;; 12907 --he | --h) 12908 # Conflict between --help and --header 12909 as_fn_error $? "ambiguous option: '$1' 12910Try '$0 --help' for more information.";; 12911 --help | --hel | -h ) 12912 printf "%s\n" "$ac_cs_usage"; exit ;; 12913 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12914 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12915 ac_cs_silent=: ;; 12916 12917 # This is an error. 12918 -*) as_fn_error $? "unrecognized option: '$1' 12919Try '$0 --help' for more information." ;; 12920 12921 *) as_fn_append ac_config_targets " $1" 12922 ac_need_defaults=false ;; 12923 12924 esac 12925 shift 12926done 12927 12928ac_configure_extra_args= 12929 12930if $ac_cs_silent; then 12931 exec 6>/dev/null 12932 ac_configure_extra_args="$ac_configure_extra_args --silent" 12933fi 12934 12935_ACEOF 12936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12937if \$ac_cs_recheck; then 12938 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12939 shift 12940 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12941 CONFIG_SHELL='$SHELL' 12942 export CONFIG_SHELL 12943 exec "\$@" 12944fi 12945 12946_ACEOF 12947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12948exec 5>>config.log 12949{ 12950 echo 12951 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12952## Running $as_me. ## 12953_ASBOX 12954 printf "%s\n" "$ac_log" 12955} >&5 12956 12957_ACEOF 12958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12959# 12960# INIT-COMMANDS 12961# 12962AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12963 12964_ACEOF 12965 12966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12967 12968# Handling of arguments. 12969for ac_config_target in $ac_config_targets 12970do 12971 case $ac_config_target in 12972 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12973 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12974 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12975 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12976 12977 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12978 esac 12979done 12980 12981 12982# If the user did not use the arguments to specify the items to instantiate, 12983# then the envvar interface is used. Set only those that are not. 12984# We use the long form for the default assignment because of an extremely 12985# bizarre bug on SunOS 4.1.3. 12986if $ac_need_defaults; then 12987 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12988 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12989 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12990fi 12991 12992# Have a temporary directory for convenience. Make it in the build tree 12993# simply because there is no reason against having it here, and in addition, 12994# creating and moving files from /tmp can sometimes cause problems. 12995# Hook for its removal unless debugging. 12996# Note that there is a small window in which the directory will not be cleaned: 12997# after its creation but before its name has been assigned to '$tmp'. 12998$debug || 12999{ 13000 tmp= ac_tmp= 13001 trap 'exit_status=$? 13002 : "${ac_tmp:=$tmp}" 13003 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13004' 0 13005 trap 'as_fn_exit 1' 1 2 13 15 13006} 13007# Create a (secure) tmp directory for tmp files. 13008 13009{ 13010 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13011 test -d "$tmp" 13012} || 13013{ 13014 tmp=./conf$$-$RANDOM 13015 (umask 077 && mkdir "$tmp") 13016} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13017ac_tmp=$tmp 13018 13019# Set up the scripts for CONFIG_FILES section. 13020# No need to generate them if there are no CONFIG_FILES. 13021# This happens for instance with './config.status config.h'. 13022if test -n "$CONFIG_FILES"; then 13023 13024 13025ac_cr=`echo X | tr X '\015'` 13026# On cygwin, bash can eat \r inside `` if the user requested igncr. 13027# But we know of no other shell where ac_cr would be empty at this 13028# point, so we can use a bashism as a fallback. 13029if test "x$ac_cr" = x; then 13030 eval ac_cr=\$\'\\r\' 13031fi 13032ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13033if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13034 ac_cs_awk_cr='\\r' 13035else 13036 ac_cs_awk_cr=$ac_cr 13037fi 13038 13039echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13040_ACEOF 13041 13042 13043{ 13044 echo "cat >conf$$subs.awk <<_ACEOF" && 13045 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13046 echo "_ACEOF" 13047} >conf$$subs.sh || 13048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13049ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13050ac_delim='%!_!# ' 13051for ac_last_try in false false false false false :; do 13052 . ./conf$$subs.sh || 13053 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13054 13055 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13056 if test $ac_delim_n = $ac_delim_num; then 13057 break 13058 elif $ac_last_try; then 13059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13060 else 13061 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13062 fi 13063done 13064rm -f conf$$subs.sh 13065 13066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13067cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13068_ACEOF 13069sed -n ' 13070h 13071s/^/S["/; s/!.*/"]=/ 13072p 13073g 13074s/^[^!]*!// 13075:repl 13076t repl 13077s/'"$ac_delim"'$// 13078t delim 13079:nl 13080h 13081s/\(.\{148\}\)..*/\1/ 13082t more1 13083s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13084p 13085n 13086b repl 13087:more1 13088s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13089p 13090g 13091s/.\{148\}// 13092t nl 13093:delim 13094h 13095s/\(.\{148\}\)..*/\1/ 13096t more2 13097s/["\\]/\\&/g; s/^/"/; s/$/"/ 13098p 13099b 13100:more2 13101s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13102p 13103g 13104s/.\{148\}// 13105t delim 13106' <conf$$subs.awk | sed ' 13107/^[^""]/{ 13108 N 13109 s/\n// 13110} 13111' >>$CONFIG_STATUS || ac_write_fail=1 13112rm -f conf$$subs.awk 13113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13114_ACAWK 13115cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13116 for (key in S) S_is_set[key] = 1 13117 FS = "" 13118 13119} 13120{ 13121 line = $ 0 13122 nfields = split(line, field, "@") 13123 substed = 0 13124 len = length(field[1]) 13125 for (i = 2; i < nfields; i++) { 13126 key = field[i] 13127 keylen = length(key) 13128 if (S_is_set[key]) { 13129 value = S[key] 13130 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13131 len += length(value) + length(field[++i]) 13132 substed = 1 13133 } else 13134 len += 1 + keylen 13135 } 13136 13137 print line 13138} 13139 13140_ACAWK 13141_ACEOF 13142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13143if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13144 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13145else 13146 cat 13147fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13148 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13149_ACEOF 13150 13151# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13152# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13153# trailing colons and then remove the whole line if VPATH becomes empty 13154# (actually we leave an empty line to preserve line numbers). 13155if test "x$srcdir" = x.; then 13156 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13157h 13158s/// 13159s/^/:/ 13160s/[ ]*$/:/ 13161s/:\$(srcdir):/:/g 13162s/:\${srcdir}:/:/g 13163s/:@srcdir@:/:/g 13164s/^:*// 13165s/:*$// 13166x 13167s/\(=[ ]*\).*/\1/ 13168G 13169s/\n// 13170s/^[^=]*=[ ]*$// 13171}' 13172fi 13173 13174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13175fi # test -n "$CONFIG_FILES" 13176 13177# Set up the scripts for CONFIG_HEADERS section. 13178# No need to generate them if there are no CONFIG_HEADERS. 13179# This happens for instance with './config.status Makefile'. 13180if test -n "$CONFIG_HEADERS"; then 13181cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13182BEGIN { 13183_ACEOF 13184 13185# Transform confdefs.h into an awk script 'defines.awk', embedded as 13186# here-document in config.status, that substitutes the proper values into 13187# config.h.in to produce config.h. 13188 13189# Create a delimiter string that does not exist in confdefs.h, to ease 13190# handling of long lines. 13191ac_delim='%!_!# ' 13192for ac_last_try in false false :; do 13193 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13194 if test -z "$ac_tt"; then 13195 break 13196 elif $ac_last_try; then 13197 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13198 else 13199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13200 fi 13201done 13202 13203# For the awk script, D is an array of macro values keyed by name, 13204# likewise P contains macro parameters if any. Preserve backslash 13205# newline sequences. 13206 13207ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13208sed -n ' 13209s/.\{148\}/&'"$ac_delim"'/g 13210t rset 13211:rset 13212s/^[ ]*#[ ]*define[ ][ ]*/ / 13213t def 13214d 13215:def 13216s/\\$// 13217t bsnl 13218s/["\\]/\\&/g 13219s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13220D["\1"]=" \3"/p 13221s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13222d 13223:bsnl 13224s/["\\]/\\&/g 13225s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13226D["\1"]=" \3\\\\\\n"\\/p 13227t cont 13228s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13229t cont 13230d 13231:cont 13232n 13233s/.\{148\}/&'"$ac_delim"'/g 13234t clear 13235:clear 13236s/\\$// 13237t bsnlc 13238s/["\\]/\\&/g; s/^/"/; s/$/"/p 13239d 13240:bsnlc 13241s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13242b cont 13243' <confdefs.h | sed ' 13244s/'"$ac_delim"'/"\\\ 13245"/g' >>$CONFIG_STATUS || ac_write_fail=1 13246 13247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13248 for (key in D) D_is_set[key] = 1 13249 FS = "" 13250} 13251/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13252 line = \$ 0 13253 split(line, arg, " ") 13254 if (arg[1] == "#") { 13255 defundef = arg[2] 13256 mac1 = arg[3] 13257 } else { 13258 defundef = substr(arg[1], 2) 13259 mac1 = arg[2] 13260 } 13261 split(mac1, mac2, "(") #) 13262 macro = mac2[1] 13263 prefix = substr(line, 1, index(line, defundef) - 1) 13264 if (D_is_set[macro]) { 13265 # Preserve the white space surrounding the "#". 13266 print prefix "define", macro P[macro] D[macro] 13267 next 13268 } else { 13269 # Replace #undef with comments. This is necessary, for example, 13270 # in the case of _POSIX_SOURCE, which is predefined and required 13271 # on some systems where configure will not decide to define it. 13272 if (defundef == "undef") { 13273 print "/*", prefix defundef, macro, "*/" 13274 next 13275 } 13276 } 13277} 13278{ print } 13279_ACAWK 13280_ACEOF 13281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13282 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13283fi # test -n "$CONFIG_HEADERS" 13284 13285 13286eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13287shift 13288for ac_tag 13289do 13290 case $ac_tag in 13291 :[FHLC]) ac_mode=$ac_tag; continue;; 13292 esac 13293 case $ac_mode$ac_tag in 13294 :[FHL]*:*);; 13295 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13296 :[FH]-) ac_tag=-:-;; 13297 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13298 esac 13299 ac_save_IFS=$IFS 13300 IFS=: 13301 set x $ac_tag 13302 IFS=$ac_save_IFS 13303 shift 13304 ac_file=$1 13305 shift 13306 13307 case $ac_mode in 13308 :L) ac_source=$1;; 13309 :[FH]) 13310 ac_file_inputs= 13311 for ac_f 13312 do 13313 case $ac_f in 13314 -) ac_f="$ac_tmp/stdin";; 13315 *) # Look for the file first in the build tree, then in the source tree 13316 # (if the path is not absolute). The absolute path cannot be DOS-style, 13317 # because $ac_f cannot contain ':'. 13318 test -f "$ac_f" || 13319 case $ac_f in 13320 [\\/$]*) false;; 13321 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13322 esac || 13323 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13324 esac 13325 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13326 as_fn_append ac_file_inputs " '$ac_f'" 13327 done 13328 13329 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13330 # use $as_me), people would be surprised to read: 13331 # /* config.h. Generated by config.status. */ 13332 configure_input='Generated from '` 13333 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13334 `' by configure.' 13335 if test x"$ac_file" != x-; then 13336 configure_input="$ac_file. $configure_input" 13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13338printf "%s\n" "$as_me: creating $ac_file" >&6;} 13339 fi 13340 # Neutralize special characters interpreted by sed in replacement strings. 13341 case $configure_input in #( 13342 *\&* | *\|* | *\\* ) 13343 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13344 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13345 *) ac_sed_conf_input=$configure_input;; 13346 esac 13347 13348 case $ac_tag in 13349 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13351 esac 13352 ;; 13353 esac 13354 13355 ac_dir=`$as_dirname -- "$ac_file" || 13356$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13357 X"$ac_file" : 'X\(//\)[^/]' \| \ 13358 X"$ac_file" : 'X\(//\)$' \| \ 13359 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13360printf "%s\n" X"$ac_file" | 13361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13362 s//\1/ 13363 q 13364 } 13365 /^X\(\/\/\)[^/].*/{ 13366 s//\1/ 13367 q 13368 } 13369 /^X\(\/\/\)$/{ 13370 s//\1/ 13371 q 13372 } 13373 /^X\(\/\).*/{ 13374 s//\1/ 13375 q 13376 } 13377 s/.*/./; q'` 13378 as_dir="$ac_dir"; as_fn_mkdir_p 13379 ac_builddir=. 13380 13381case "$ac_dir" in 13382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13383*) 13384 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13385 # A ".." for each directory in $ac_dir_suffix. 13386 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13387 case $ac_top_builddir_sub in 13388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13390 esac ;; 13391esac 13392ac_abs_top_builddir=$ac_pwd 13393ac_abs_builddir=$ac_pwd$ac_dir_suffix 13394# for backward compatibility: 13395ac_top_builddir=$ac_top_build_prefix 13396 13397case $srcdir in 13398 .) # We are building in place. 13399 ac_srcdir=. 13400 ac_top_srcdir=$ac_top_builddir_sub 13401 ac_abs_top_srcdir=$ac_pwd ;; 13402 [\\/]* | ?:[\\/]* ) # Absolute name. 13403 ac_srcdir=$srcdir$ac_dir_suffix; 13404 ac_top_srcdir=$srcdir 13405 ac_abs_top_srcdir=$srcdir ;; 13406 *) # Relative name. 13407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13408 ac_top_srcdir=$ac_top_build_prefix$srcdir 13409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13410esac 13411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13412 13413 13414 case $ac_mode in 13415 :F) 13416 # 13417 # CONFIG_FILE 13418 # 13419 13420 case $INSTALL in 13421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13423 esac 13424 ac_MKDIR_P=$MKDIR_P 13425 case $MKDIR_P in 13426 [\\/$]* | ?:[\\/]* ) ;; 13427 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13428 esac 13429_ACEOF 13430 13431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13432# If the template does not know about datarootdir, expand it. 13433# FIXME: This hack should be removed a few years after 2.60. 13434ac_datarootdir_hack=; ac_datarootdir_seen= 13435ac_sed_dataroot=' 13436/datarootdir/ { 13437 p 13438 q 13439} 13440/@datadir@/p 13441/@docdir@/p 13442/@infodir@/p 13443/@localedir@/p 13444/@mandir@/p' 13445case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13446*datarootdir*) ac_datarootdir_seen=yes;; 13447*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13449printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13450_ACEOF 13451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13452 ac_datarootdir_hack=' 13453 s&@datadir@&$datadir&g 13454 s&@docdir@&$docdir&g 13455 s&@infodir@&$infodir&g 13456 s&@localedir@&$localedir&g 13457 s&@mandir@&$mandir&g 13458 s&\\\${datarootdir}&$datarootdir&g' ;; 13459esac 13460_ACEOF 13461 13462# Neutralize VPATH when '$srcdir' = '.'. 13463# Shell code in configure.ac might set extrasub. 13464# FIXME: do we really want to maintain this feature? 13465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13466ac_sed_extra="$ac_vpsub 13467$extrasub 13468_ACEOF 13469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13470:t 13471/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13472s|@configure_input@|$ac_sed_conf_input|;t t 13473s&@top_builddir@&$ac_top_builddir_sub&;t t 13474s&@top_build_prefix@&$ac_top_build_prefix&;t t 13475s&@srcdir@&$ac_srcdir&;t t 13476s&@abs_srcdir@&$ac_abs_srcdir&;t t 13477s&@top_srcdir@&$ac_top_srcdir&;t t 13478s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13479s&@builddir@&$ac_builddir&;t t 13480s&@abs_builddir@&$ac_abs_builddir&;t t 13481s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13482s&@INSTALL@&$ac_INSTALL&;t t 13483s&@MKDIR_P@&$ac_MKDIR_P&;t t 13484$ac_datarootdir_hack 13485" 13486eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13487 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13488 13489test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13490 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13491 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13492 "$ac_tmp/out"`; test -z "$ac_out"; } && 13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13494which seems to be undefined. Please make sure it is defined" >&5 13495printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13496which seems to be undefined. Please make sure it is defined" >&2;} 13497 13498 rm -f "$ac_tmp/stdin" 13499 case $ac_file in 13500 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13501 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13502 esac \ 13503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13504 ;; 13505 :H) 13506 # 13507 # CONFIG_HEADER 13508 # 13509 if test x"$ac_file" != x-; then 13510 { 13511 printf "%s\n" "/* $configure_input */" >&1 \ 13512 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13513 } >"$ac_tmp/config.h" \ 13514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13515 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13517printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13518 else 13519 rm -f "$ac_file" 13520 mv "$ac_tmp/config.h" "$ac_file" \ 13521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13522 fi 13523 else 13524 printf "%s\n" "/* $configure_input */" >&1 \ 13525 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13526 || as_fn_error $? "could not create -" "$LINENO" 5 13527 fi 13528# Compute "$ac_file"'s index in $config_headers. 13529_am_arg="$ac_file" 13530_am_stamp_count=1 13531for _am_header in $config_headers :; do 13532 case $_am_header in 13533 $_am_arg | $_am_arg:* ) 13534 break ;; 13535 * ) 13536 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13537 esac 13538done 13539echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13540$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13541 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13542 X"$_am_arg" : 'X\(//\)$' \| \ 13543 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13544printf "%s\n" X"$_am_arg" | 13545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13546 s//\1/ 13547 q 13548 } 13549 /^X\(\/\/\)[^/].*/{ 13550 s//\1/ 13551 q 13552 } 13553 /^X\(\/\/\)$/{ 13554 s//\1/ 13555 q 13556 } 13557 /^X\(\/\).*/{ 13558 s//\1/ 13559 q 13560 } 13561 s/.*/./; q'`/stamp-h$_am_stamp_count 13562 ;; 13563 13564 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13565printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13566 ;; 13567 esac 13568 13569 13570 case $ac_file$ac_mode in 13571 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13572 # Older Autoconf quotes --file arguments for eval, but not when files 13573 # are listed without --file. Let's play safe and only enable the eval 13574 # if we detect the quoting. 13575 # TODO: see whether this extra hack can be removed once we start 13576 # requiring Autoconf 2.70 or later. 13577 case $CONFIG_FILES in #( 13578 *\'*) : 13579 eval set x "$CONFIG_FILES" ;; #( 13580 *) : 13581 set x $CONFIG_FILES ;; #( 13582 *) : 13583 ;; 13584esac 13585 shift 13586 # Used to flag and report bootstrapping failures. 13587 am_rc=0 13588 for am_mf 13589 do 13590 # Strip MF so we end up with the name of the file. 13591 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13592 # Check whether this is an Automake generated Makefile which includes 13593 # dependency-tracking related rules and includes. 13594 # Grep'ing the whole file directly is not great: AIX grep has a line 13595 # limit of 2048, but all sed's we know have understand at least 4000. 13596 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13597 || continue 13598 am_dirpart=`$as_dirname -- "$am_mf" || 13599$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13600 X"$am_mf" : 'X\(//\)[^/]' \| \ 13601 X"$am_mf" : 'X\(//\)$' \| \ 13602 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13603printf "%s\n" X"$am_mf" | 13604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13605 s//\1/ 13606 q 13607 } 13608 /^X\(\/\/\)[^/].*/{ 13609 s//\1/ 13610 q 13611 } 13612 /^X\(\/\/\)$/{ 13613 s//\1/ 13614 q 13615 } 13616 /^X\(\/\).*/{ 13617 s//\1/ 13618 q 13619 } 13620 s/.*/./; q'` 13621 am_filepart=`$as_basename -- "$am_mf" || 13622$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13623 X"$am_mf" : 'X\(//\)$' \| \ 13624 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13625printf "%s\n" X/"$am_mf" | 13626 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13627 s//\1/ 13628 q 13629 } 13630 /^X\/\(\/\/\)$/{ 13631 s//\1/ 13632 q 13633 } 13634 /^X\/\(\/\).*/{ 13635 s//\1/ 13636 q 13637 } 13638 s/.*/./; q'` 13639 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13640 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13641 | $MAKE -f - am--depfiles" >&5 13642 (cd "$am_dirpart" \ 13643 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13644 | $MAKE -f - am--depfiles) >&5 2>&5 13645 ac_status=$? 13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13647 (exit $ac_status); } || am_rc=$? 13648 done 13649 if test $am_rc -ne 0; then 13650 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13651printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13652as_fn_error $? "Something went wrong bootstrapping makefile fragments 13653 for automatic dependency tracking. If GNU make was not used, consider 13654 re-running the configure script with MAKE=\"gmake\" (or whatever is 13655 necessary). You can also try re-running configure with the 13656 '--disable-dependency-tracking' option to at least be able to build 13657 the package (albeit without support for automatic dependency tracking). 13658See 'config.log' for more details" "$LINENO" 5; } 13659 fi 13660 { am_dirpart=; unset am_dirpart;} 13661 { am_filepart=; unset am_filepart;} 13662 { am_mf=; unset am_mf;} 13663 { am_rc=; unset am_rc;} 13664 rm -f conftest-deps.mk 13665} 13666 ;; 13667 13668 esac 13669done # for ac_tag 13670 13671 13672as_fn_exit 0 13673_ACEOF 13674ac_clean_files=$ac_clean_files_save 13675 13676test $ac_write_fail = 0 || 13677 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13678 13679 13680# configure is writing to config.log, and then calls config.status. 13681# config.status does its own redirection, appending to config.log. 13682# Unfortunately, on DOS this fails, as config.log is still kept open 13683# by configure, so config.status won't be able to write to it; its 13684# output is simply discarded. So we exec the FD to /dev/null, 13685# effectively closing config.log, so it can be properly (re)opened and 13686# appended to by config.status. When coming back to configure, we 13687# need to make the FD available again. 13688if test "$no_create" != yes; then 13689 ac_cs_success=: 13690 ac_config_status_args= 13691 test "$silent" = yes && 13692 ac_config_status_args="$ac_config_status_args --quiet" 13693 exec 5>/dev/null 13694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13695 exec 5>>config.log 13696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13697 # would make configure fail if this is the last instruction. 13698 $ac_cs_success || as_fn_exit 1 13699fi 13700if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13702printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13703fi 13704 13705 13706