configure revision 14a67432
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xmessage 1.0.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmessage/-/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/xmessage/-/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='xmessage' 607PACKAGE_TARNAME='xmessage' 608PACKAGE_VERSION='1.0.7' 609PACKAGE_STRING='xmessage 1.0.7' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmessage/-/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 654XMESSAGE_LIBS 655XMESSAGE_CFLAGS 656MAN_SUBSTS 657XORG_MAN_PAGE 658ADMIN_MAN_DIR 659DRIVER_MAN_DIR 660MISC_MAN_DIR 661FILE_MAN_DIR 662LIB_MAN_DIR 663APP_MAN_DIR 664ADMIN_MAN_SUFFIX 665DRIVER_MAN_SUFFIX 666MISC_MAN_SUFFIX 667FILE_MAN_SUFFIX 668LIB_MAN_SUFFIX 669APP_MAN_SUFFIX 670SED 671host_os 672host_vendor 673host_cpu 674host 675build_os 676build_vendor 677build_cpu 678build 679INSTALL_CMD 680PKG_CONFIG_LIBDIR 681PKG_CONFIG_PATH 682PKG_CONFIG 683CHANGELOG_CMD 684STRICT_CFLAGS 685CWARNFLAGS 686BASE_CFLAGS 687am__fastdepCC_FALSE 688am__fastdepCC_TRUE 689CCDEPMODE 690am__nodep 691AMDEPBACKSLASH 692AMDEP_FALSE 693AMDEP_TRUE 694am__include 695DEPDIR 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703AM_BACKSLASH 704AM_DEFAULT_VERBOSITY 705AM_DEFAULT_V 706AM_V 707CSCOPE 708ETAGS 709CTAGS 710am__untar 711am__tar 712AMTAR 713am__leading_dot 714SET_MAKE 715AWK 716mkdir_p 717MKDIR_P 718INSTALL_STRIP_PROGRAM 719STRIP 720install_sh 721MAKEINFO 722AUTOHEADER 723AUTOMAKE 724AUTOCONF 725ACLOCAL 726VERSION 727PACKAGE 728CYGPATH_W 729am__isrc 730INSTALL_DATA 731INSTALL_SCRIPT 732INSTALL_PROGRAM 733target_alias 734host_alias 735build_alias 736LIBS 737ECHO_T 738ECHO_N 739ECHO_C 740DEFS 741mandir 742localedir 743libdir 744psdir 745pdfdir 746dvidir 747htmldir 748infodir 749docdir 750oldincludedir 751includedir 752runstatedir 753localstatedir 754sharedstatedir 755sysconfdir 756datadir 757datarootdir 758libexecdir 759sbindir 760bindir 761program_transform_name 762prefix 763exec_prefix 764PACKAGE_URL 765PACKAGE_BUGREPORT 766PACKAGE_STRING 767PACKAGE_VERSION 768PACKAGE_TARNAME 769PACKAGE_NAME 770PATH_SEPARATOR 771SHELL 772am__quote' 773ac_subst_files='' 774ac_user_opts=' 775enable_option_checking 776enable_silent_rules 777enable_dependency_tracking 778enable_selective_werror 779enable_strict_compilation 780enable_largefile 781with_appdefaultdir 782enable_year2038 783' 784 ac_precious_vars='build_alias 785host_alias 786target_alias 787CC 788CFLAGS 789LDFLAGS 790LIBS 791CPPFLAGS 792PKG_CONFIG 793PKG_CONFIG_PATH 794PKG_CONFIG_LIBDIR 795XMESSAGE_CFLAGS 796XMESSAGE_LIBS 797APPDEFS_CFLAGS 798APPDEFS_LIBS' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837runstatedir='${localstatedir}/run' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: '$ac_useropt'" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: '$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089 | --runstate | --runstat | --runsta | --runst | --runs \ 1090 | --run | --ru | --r) 1091 ac_prev=runstatedir ;; 1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094 | --run=* | --ru=* | --r=*) 1095 runstatedir=$ac_optarg ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: '$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: '$ac_useropt'" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: '$ac_option' 1193Try '$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir runstatedir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: '$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265fi 1266 1267ac_tool_prefix= 1268test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270test "$silent" = yes && exec 6>/dev/null 1271 1272 1273ac_pwd=`pwd` && test -n "$ac_pwd" && 1274ac_ls_di=`ls -di .` && 1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281# Find the source files, if location was not specified. 1282if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290printf "%s\n" X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312else 1313 ac_srcdir_defaulted=no 1314fi 1315if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318fi 1319ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1320ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323# When building in place, set srcdir=. 1324if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326fi 1327# Remove unnecessary trailing slashes from srcdir. 1328# Double slashes in file names in object file debugging info 1329# mess up M-x gdb in Emacs. 1330case $srcdir in 1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332esac 1333for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338done 1339 1340# 1341# Report the --help message. 1342# 1343if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347'configure' configures xmessage 1.0.7 to adapt to many kinds of systems. 1348 1349Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354Defaults for the options are specified in brackets. 1355 1356Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print 'checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for '--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1366 1367Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373By default, 'make install' will install all the files in 1374'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1375an installation prefix other than '$ac_default_prefix' using '--prefix', 1376for instance '--prefix=\$HOME'. 1377 1378For better control, use the options below. 1379 1380Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xmessage] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of xmessage 1.0.7:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-selective-werror 1433 Turn off selective compiler errors. (default: 1434 enabled) 1435 --enable-strict-compilation 1436 Enable all warnings from compiler and make them 1437 errors (default: disabled) 1438 --disable-largefile omit support for large files 1439 --enable-year2038 support timestamps after 2038 1440 1441Optional Packages: 1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1444 --with-appdefaultdir=<pathname> 1445 specify directory for app-defaults files (default is 1446 autodetected) 1447 1448Some influential environment variables: 1449 CC C compiler command 1450 CFLAGS C compiler flags 1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1452 nonstandard directory <lib dir> 1453 LIBS libraries to pass to the linker, e.g. -l<library> 1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1455 you have headers in a nonstandard directory <include dir> 1456 PKG_CONFIG path to pkg-config utility 1457 PKG_CONFIG_PATH 1458 directories to add to pkg-config's search path 1459 PKG_CONFIG_LIBDIR 1460 path overriding pkg-config's built-in search path 1461 XMESSAGE_CFLAGS 1462 C compiler flags for XMESSAGE, overriding pkg-config 1463 XMESSAGE_LIBS 1464 linker flags for XMESSAGE, overriding pkg-config 1465 APPDEFS_CFLAGS 1466 C compiler flags for APPDEFS, overriding pkg-config 1467 APPDEFS_LIBS 1468 linker flags for APPDEFS, overriding pkg-config 1469 1470Use these variables to override the choices made by 'configure' or to help 1471it to find libraries and programs with nonstandard names/locations. 1472 1473Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmessage/-/issues>. 1474_ACEOF 1475ac_status=$? 1476fi 1477 1478if test "$ac_init_help" = "recursive"; then 1479 # If there are subdirs, report their specific --help. 1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1481 test -d "$ac_dir" || 1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1483 continue 1484 ac_builddir=. 1485 1486case "$ac_dir" in 1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488*) 1489 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1490 # A ".." for each directory in $ac_dir_suffix. 1491 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1492 case $ac_top_builddir_sub in 1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1495 esac ;; 1496esac 1497ac_abs_top_builddir=$ac_pwd 1498ac_abs_builddir=$ac_pwd$ac_dir_suffix 1499# for backward compatibility: 1500ac_top_builddir=$ac_top_build_prefix 1501 1502case $srcdir in 1503 .) # We are building in place. 1504 ac_srcdir=. 1505 ac_top_srcdir=$ac_top_builddir_sub 1506 ac_abs_top_srcdir=$ac_pwd ;; 1507 [\\/]* | ?:[\\/]* ) # Absolute name. 1508 ac_srcdir=$srcdir$ac_dir_suffix; 1509 ac_top_srcdir=$srcdir 1510 ac_abs_top_srcdir=$srcdir ;; 1511 *) # Relative name. 1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1513 ac_top_srcdir=$ac_top_build_prefix$srcdir 1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1515esac 1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1517 1518 cd "$ac_dir" || { ac_status=$?; continue; } 1519 # Check for configure.gnu first; this name is used for a wrapper for 1520 # Metaconfig's "Configure" on case-insensitive file systems. 1521 if test -f "$ac_srcdir/configure.gnu"; then 1522 echo && 1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1524 elif test -f "$ac_srcdir/configure"; then 1525 echo && 1526 $SHELL "$ac_srcdir/configure" --help=recursive 1527 else 1528 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1529 fi || ac_status=$? 1530 cd "$ac_pwd" || { ac_status=$?; break; } 1531 done 1532fi 1533 1534test -n "$ac_init_help" && exit $ac_status 1535if $ac_init_version; then 1536 cat <<\_ACEOF 1537xmessage configure 1.0.7 1538generated by GNU Autoconf 2.72 1539 1540Copyright (C) 2023 Free Software Foundation, Inc. 1541This configure script is free software; the Free Software Foundation 1542gives unlimited permission to copy, distribute and modify it. 1543_ACEOF 1544 exit 1545fi 1546 1547## ------------------------ ## 1548## Autoconf initialization. ## 1549## ------------------------ ## 1550 1551# ac_fn_c_try_compile LINENO 1552# -------------------------- 1553# Try to compile conftest.$ac_ext, and return whether this succeeded. 1554ac_fn_c_try_compile () 1555{ 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 rm -f conftest.$ac_objext conftest.beam 1558 if { { ac_try="$ac_compile" 1559case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562esac 1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564printf "%s\n" "$ac_try_echo"; } >&5 1565 (eval "$ac_compile") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } && { 1574 test -z "$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 } && test -s conftest.$ac_objext 1577then : 1578 ac_retval=0 1579else case e in #( 1580 e) printf "%s\n" "$as_me: failed program was:" >&5 1581sed 's/^/| /' conftest.$ac_ext >&5 1582 1583 ac_retval=1 ;; 1584esac 1585fi 1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1587 as_fn_set_status $ac_retval 1588 1589} # ac_fn_c_try_compile 1590 1591# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1592# ------------------------------------------------------------------ 1593# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1594# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1595ac_fn_check_decl () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 as_decl_name=`echo $2|sed 's/ *(.*//'` 1599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1600printf %s "checking whether $as_decl_name is declared... " >&6; } 1601if eval test \${$3+y} 1602then : 1603 printf %s "(cached) " >&6 1604else case e in #( 1605 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1606 eval ac_save_FLAGS=\$$6 1607 as_fn_append $6 " $5" 1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1609/* end confdefs.h. */ 1610$4 1611int 1612main (void) 1613{ 1614#ifndef $as_decl_name 1615#ifdef __cplusplus 1616 (void) $as_decl_use; 1617#else 1618 (void) $as_decl_name; 1619#endif 1620#endif 1621 1622 ; 1623 return 0; 1624} 1625_ACEOF 1626if ac_fn_c_try_compile "$LINENO" 1627then : 1628 eval "$3=yes" 1629else case e in #( 1630 e) eval "$3=no" ;; 1631esac 1632fi 1633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1634 eval $6=\$ac_save_FLAGS 1635 ;; 1636esac 1637fi 1638eval ac_res=\$$3 1639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1640printf "%s\n" "$ac_res" >&6; } 1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1642 1643} # ac_fn_check_decl 1644 1645# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1646# ------------------------------------------------------- 1647# Tests whether HEADER exists and can be compiled using the include files in 1648# INCLUDES, setting the cache variable VAR accordingly. 1649ac_fn_c_check_header_compile () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1653printf %s "checking for $2... " >&6; } 1654if eval test \${$3+y} 1655then : 1656 printf %s "(cached) " >&6 1657else case e in #( 1658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1659/* end confdefs.h. */ 1660$4 1661#include <$2> 1662_ACEOF 1663if ac_fn_c_try_compile "$LINENO" 1664then : 1665 eval "$3=yes" 1666else case e in #( 1667 e) eval "$3=no" ;; 1668esac 1669fi 1670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1671esac 1672fi 1673eval ac_res=\$$3 1674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1675printf "%s\n" "$ac_res" >&6; } 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 1678} # ac_fn_c_check_header_compile 1679 1680# ac_fn_c_try_link LINENO 1681# ----------------------- 1682# Try to link conftest.$ac_ext, and return whether this succeeded. 1683ac_fn_c_try_link () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1687 if { { ac_try="$ac_link" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693printf "%s\n" "$ac_try_echo"; } >&5 1694 (eval "$ac_link") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { 1703 test -z "$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 } && test -s conftest$ac_exeext && { 1706 test "$cross_compiling" = yes || 1707 test -x conftest$ac_exeext 1708 } 1709then : 1710 ac_retval=0 1711else case e in #( 1712 e) printf "%s\n" "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 ;; 1716esac 1717fi 1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1720 # interfere with the next link command; also delete a directory that is 1721 # left behind by Apple's compiler. We do this before executing the actions. 1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1724 as_fn_set_status $ac_retval 1725 1726} # ac_fn_c_try_link 1727ac_configure_args_raw= 1728for ac_arg 1729do 1730 case $ac_arg in 1731 *\'*) 1732 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1733 esac 1734 as_fn_append ac_configure_args_raw " '$ac_arg'" 1735done 1736 1737case $ac_configure_args_raw in 1738 *$as_nl*) 1739 ac_safe_unquote= ;; 1740 *) 1741 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1742 ac_unsafe_a="$ac_unsafe_z#~" 1743 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1744 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1745esac 1746 1747cat >config.log <<_ACEOF 1748This file contains any messages produced by compilers while 1749running configure, to aid debugging if configure makes a mistake. 1750 1751It was created by xmessage $as_me 1.0.7, which was 1752generated by GNU Autoconf 2.72. Invocation command line was 1753 1754 $ $0$ac_configure_args_raw 1755 1756_ACEOF 1757exec 5>>config.log 1758{ 1759cat <<_ASUNAME 1760## --------- ## 1761## Platform. ## 1762## --------- ## 1763 1764hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1765uname -m = `(uname -m) 2>/dev/null || echo unknown` 1766uname -r = `(uname -r) 2>/dev/null || echo unknown` 1767uname -s = `(uname -s) 2>/dev/null || echo unknown` 1768uname -v = `(uname -v) 2>/dev/null || echo unknown` 1769 1770/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1771/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1772 1773/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1774/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1775/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1776/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1777/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1778/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1779/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1780 1781_ASUNAME 1782 1783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1784for as_dir in $PATH 1785do 1786 IFS=$as_save_IFS 1787 case $as_dir in #((( 1788 '') as_dir=./ ;; 1789 */) ;; 1790 *) as_dir=$as_dir/ ;; 1791 esac 1792 printf "%s\n" "PATH: $as_dir" 1793 done 1794IFS=$as_save_IFS 1795 1796} >&5 1797 1798cat >&5 <<_ACEOF 1799 1800 1801## ----------- ## 1802## Core tests. ## 1803## ----------- ## 1804 1805_ACEOF 1806 1807 1808# Keep a trace of the command line. 1809# Strip out --no-create and --no-recursion so they do not pile up. 1810# Strip out --silent because we don't want to record it for future runs. 1811# Also quote any args containing shell meta-characters. 1812# Make two passes to allow for proper duplicate-argument suppression. 1813ac_configure_args= 1814ac_configure_args0= 1815ac_configure_args1= 1816ac_must_keep_next=false 1817for ac_pass in 1 2 1818do 1819 for ac_arg 1820 do 1821 case $ac_arg in 1822 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1823 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1824 | -silent | --silent | --silen | --sile | --sil) 1825 continue ;; 1826 *\'*) 1827 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1828 esac 1829 case $ac_pass in 1830 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1831 2) 1832 as_fn_append ac_configure_args1 " '$ac_arg'" 1833 if test $ac_must_keep_next = true; then 1834 ac_must_keep_next=false # Got value, back to normal. 1835 else 1836 case $ac_arg in 1837 *=* | --config-cache | -C | -disable-* | --disable-* \ 1838 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1839 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1840 | -with-* | --with-* | -without-* | --without-* | --x) 1841 case "$ac_configure_args0 " in 1842 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1843 esac 1844 ;; 1845 -* ) ac_must_keep_next=true ;; 1846 esac 1847 fi 1848 as_fn_append ac_configure_args " '$ac_arg'" 1849 ;; 1850 esac 1851 done 1852done 1853{ ac_configure_args0=; unset ac_configure_args0;} 1854{ ac_configure_args1=; unset ac_configure_args1;} 1855 1856# When interrupted or exit'd, cleanup temporary files, and complete 1857# config.log. We remove comments because anyway the quotes in there 1858# would cause problems or look ugly. 1859# WARNING: Use '\'' to represent an apostrophe within the trap. 1860# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1861trap 'exit_status=$? 1862 # Sanitize IFS. 1863 IFS=" "" $as_nl" 1864 # Save into config.log some information that might help in debugging. 1865 { 1866 echo 1867 1868 printf "%s\n" "## ---------------- ## 1869## Cache variables. ## 1870## ---------------- ##" 1871 echo 1872 # The following way of writing the cache mishandles newlines in values, 1873( 1874 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1875 eval ac_val=\$$ac_var 1876 case $ac_val in #( 1877 *${as_nl}*) 1878 case $ac_var in #( 1879 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1880printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1881 esac 1882 case $ac_var in #( 1883 _ | IFS | as_nl) ;; #( 1884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1885 *) { eval $ac_var=; unset $ac_var;} ;; 1886 esac ;; 1887 esac 1888 done 1889 (set) 2>&1 | 1890 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1891 *${as_nl}ac_space=\ *) 1892 sed -n \ 1893 "s/'\''/'\''\\\\'\'''\''/g; 1894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1895 ;; #( 1896 *) 1897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1898 ;; 1899 esac | 1900 sort 1901) 1902 echo 1903 1904 printf "%s\n" "## ----------------- ## 1905## Output variables. ## 1906## ----------------- ##" 1907 echo 1908 for ac_var in $ac_subst_vars 1909 do 1910 eval ac_val=\$$ac_var 1911 case $ac_val in 1912 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1913 esac 1914 printf "%s\n" "$ac_var='\''$ac_val'\''" 1915 done | sort 1916 echo 1917 1918 if test -n "$ac_subst_files"; then 1919 printf "%s\n" "## ------------------- ## 1920## File substitutions. ## 1921## ------------------- ##" 1922 echo 1923 for ac_var in $ac_subst_files 1924 do 1925 eval ac_val=\$$ac_var 1926 case $ac_val in 1927 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1928 esac 1929 printf "%s\n" "$ac_var='\''$ac_val'\''" 1930 done | sort 1931 echo 1932 fi 1933 1934 if test -s confdefs.h; then 1935 printf "%s\n" "## ----------- ## 1936## confdefs.h. ## 1937## ----------- ##" 1938 echo 1939 cat confdefs.h 1940 echo 1941 fi 1942 test "$ac_signal" != 0 && 1943 printf "%s\n" "$as_me: caught signal $ac_signal" 1944 printf "%s\n" "$as_me: exit $exit_status" 1945 } >&5 1946 rm -f core *.core core.conftest.* && 1947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1948 exit $exit_status 1949' 0 1950for ac_signal in 1 2 13 15; do 1951 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1952done 1953ac_signal=0 1954 1955# confdefs.h avoids OS command line length limits that DEFS can exceed. 1956rm -f -r conftest* confdefs.h 1957 1958printf "%s\n" "/* confdefs.h */" > confdefs.h 1959 1960# Predefined preprocessor variables. 1961 1962printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1963 1964printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1965 1966printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1967 1968printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1969 1970printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1971 1972printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1973 1974 1975# Let the site file select an alternate cache file if it wants to. 1976# Prefer an explicitly selected file to automatically selected ones. 1977if test -n "$CONFIG_SITE"; then 1978 ac_site_files="$CONFIG_SITE" 1979elif test "x$prefix" != xNONE; then 1980 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1981else 1982 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1983fi 1984 1985for ac_site_file in $ac_site_files 1986do 1987 case $ac_site_file in #( 1988 */*) : 1989 ;; #( 1990 *) : 1991 ac_site_file=./$ac_site_file ;; 1992esac 1993 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1995printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1996 sed 's/^/| /' "$ac_site_file" >&5 1997 . "$ac_site_file" \ 1998 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1999printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2000as_fn_error $? "failed to load site script $ac_site_file 2001See 'config.log' for more details" "$LINENO" 5; } 2002 fi 2003done 2004 2005if test -r "$cache_file"; then 2006 # Some versions of bash will fail to source /dev/null (special files 2007 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2008 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2010printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2011 case $cache_file in 2012 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2013 *) . "./$cache_file";; 2014 esac 2015 fi 2016else 2017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2018printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2019 >$cache_file 2020fi 2021 2022# Test code for whether the C compiler supports C89 (global declarations) 2023ac_c_conftest_c89_globals=' 2024/* Does the compiler advertise C89 conformance? 2025 Do not test the value of __STDC__, because some compilers set it to 0 2026 while being otherwise adequately conformant. */ 2027#if !defined __STDC__ 2028# error "Compiler does not advertise C89 conformance" 2029#endif 2030 2031#include <stddef.h> 2032#include <stdarg.h> 2033struct stat; 2034/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2035struct buf { int x; }; 2036struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2037static char *e (char **p, int i) 2038{ 2039 return p[i]; 2040} 2041static char *f (char * (*g) (char **, int), char **p, ...) 2042{ 2043 char *s; 2044 va_list v; 2045 va_start (v,p); 2046 s = g (p, va_arg (v,int)); 2047 va_end (v); 2048 return s; 2049} 2050 2051/* C89 style stringification. */ 2052#define noexpand_stringify(a) #a 2053const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2054 2055/* C89 style token pasting. Exercises some of the corner cases that 2056 e.g. old MSVC gets wrong, but not very hard. */ 2057#define noexpand_concat(a,b) a##b 2058#define expand_concat(a,b) noexpand_concat(a,b) 2059extern int vA; 2060extern int vbee; 2061#define aye A 2062#define bee B 2063int *pvA = &expand_concat(v,aye); 2064int *pvbee = &noexpand_concat(v,bee); 2065 2066/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2067 function prototypes and stuff, but not \xHH hex character constants. 2068 These do not provoke an error unfortunately, instead are silently treated 2069 as an "x". The following induces an error, until -std is added to get 2070 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2071 array size at least. It is necessary to write \x00 == 0 to get something 2072 that is true only with -std. */ 2073int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2074 2075/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2076 inside strings and character constants. */ 2077#define FOO(x) '\''x'\'' 2078int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2079 2080int test (int i, double x); 2081struct s1 {int (*f) (int a);}; 2082struct s2 {int (*f) (double a);}; 2083int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2084 int, int);' 2085 2086# Test code for whether the C compiler supports C89 (body of main). 2087ac_c_conftest_c89_main=' 2088ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2089' 2090 2091# Test code for whether the C compiler supports C99 (global declarations) 2092ac_c_conftest_c99_globals=' 2093/* Does the compiler advertise C99 conformance? */ 2094#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2095# error "Compiler does not advertise C99 conformance" 2096#endif 2097 2098// See if C++-style comments work. 2099 2100#include <stdbool.h> 2101extern int puts (const char *); 2102extern int printf (const char *, ...); 2103extern int dprintf (int, const char *, ...); 2104extern void *malloc (size_t); 2105extern void free (void *); 2106 2107// Check varargs macros. These examples are taken from C99 6.10.3.5. 2108// dprintf is used instead of fprintf to avoid needing to declare 2109// FILE and stderr. 2110#define debug(...) dprintf (2, __VA_ARGS__) 2111#define showlist(...) puts (#__VA_ARGS__) 2112#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2113static void 2114test_varargs_macros (void) 2115{ 2116 int x = 1234; 2117 int y = 5678; 2118 debug ("Flag"); 2119 debug ("X = %d\n", x); 2120 showlist (The first, second, and third items.); 2121 report (x>y, "x is %d but y is %d", x, y); 2122} 2123 2124// Check long long types. 2125#define BIG64 18446744073709551615ull 2126#define BIG32 4294967295ul 2127#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2128#if !BIG_OK 2129 #error "your preprocessor is broken" 2130#endif 2131#if BIG_OK 2132#else 2133 #error "your preprocessor is broken" 2134#endif 2135static long long int bignum = -9223372036854775807LL; 2136static unsigned long long int ubignum = BIG64; 2137 2138struct incomplete_array 2139{ 2140 int datasize; 2141 double data[]; 2142}; 2143 2144struct named_init { 2145 int number; 2146 const wchar_t *name; 2147 double average; 2148}; 2149 2150typedef const char *ccp; 2151 2152static inline int 2153test_restrict (ccp restrict text) 2154{ 2155 // Iterate through items via the restricted pointer. 2156 // Also check for declarations in for loops. 2157 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2158 continue; 2159 return 0; 2160} 2161 2162// Check varargs and va_copy. 2163static bool 2164test_varargs (const char *format, ...) 2165{ 2166 va_list args; 2167 va_start (args, format); 2168 va_list args_copy; 2169 va_copy (args_copy, args); 2170 2171 const char *str = ""; 2172 int number = 0; 2173 float fnumber = 0; 2174 2175 while (*format) 2176 { 2177 switch (*format++) 2178 { 2179 case '\''s'\'': // string 2180 str = va_arg (args_copy, const char *); 2181 break; 2182 case '\''d'\'': // int 2183 number = va_arg (args_copy, int); 2184 break; 2185 case '\''f'\'': // float 2186 fnumber = va_arg (args_copy, double); 2187 break; 2188 default: 2189 break; 2190 } 2191 } 2192 va_end (args_copy); 2193 va_end (args); 2194 2195 return *str && number && fnumber; 2196} 2197' 2198 2199# Test code for whether the C compiler supports C99 (body of main). 2200ac_c_conftest_c99_main=' 2201 // Check bool. 2202 _Bool success = false; 2203 success |= (argc != 0); 2204 2205 // Check restrict. 2206 if (test_restrict ("String literal") == 0) 2207 success = true; 2208 char *restrict newvar = "Another string"; 2209 2210 // Check varargs. 2211 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2212 test_varargs_macros (); 2213 2214 // Check flexible array members. 2215 struct incomplete_array *ia = 2216 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2217 ia->datasize = 10; 2218 for (int i = 0; i < ia->datasize; ++i) 2219 ia->data[i] = i * 1.234; 2220 // Work around memory leak warnings. 2221 free (ia); 2222 2223 // Check named initializers. 2224 struct named_init ni = { 2225 .number = 34, 2226 .name = L"Test wide string", 2227 .average = 543.34343, 2228 }; 2229 2230 ni.number = 58; 2231 2232 int dynamic_array[ni.number]; 2233 dynamic_array[0] = argv[0][0]; 2234 dynamic_array[ni.number - 1] = 543; 2235 2236 // work around unused variable warnings 2237 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2238 || dynamic_array[ni.number - 1] != 543); 2239' 2240 2241# Test code for whether the C compiler supports C11 (global declarations) 2242ac_c_conftest_c11_globals=' 2243/* Does the compiler advertise C11 conformance? */ 2244#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2245# error "Compiler does not advertise C11 conformance" 2246#endif 2247 2248// Check _Alignas. 2249char _Alignas (double) aligned_as_double; 2250char _Alignas (0) no_special_alignment; 2251extern char aligned_as_int; 2252char _Alignas (0) _Alignas (int) aligned_as_int; 2253 2254// Check _Alignof. 2255enum 2256{ 2257 int_alignment = _Alignof (int), 2258 int_array_alignment = _Alignof (int[100]), 2259 char_alignment = _Alignof (char) 2260}; 2261_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2262 2263// Check _Noreturn. 2264int _Noreturn does_not_return (void) { for (;;) continue; } 2265 2266// Check _Static_assert. 2267struct test_static_assert 2268{ 2269 int x; 2270 _Static_assert (sizeof (int) <= sizeof (long int), 2271 "_Static_assert does not work in struct"); 2272 long int y; 2273}; 2274 2275// Check UTF-8 literals. 2276#define u8 syntax error! 2277char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2278 2279// Check duplicate typedefs. 2280typedef long *long_ptr; 2281typedef long int *long_ptr; 2282typedef long_ptr long_ptr; 2283 2284// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2285struct anonymous 2286{ 2287 union { 2288 struct { int i; int j; }; 2289 struct { int k; long int l; } w; 2290 }; 2291 int m; 2292} v1; 2293' 2294 2295# Test code for whether the C compiler supports C11 (body of main). 2296ac_c_conftest_c11_main=' 2297 _Static_assert ((offsetof (struct anonymous, i) 2298 == offsetof (struct anonymous, w.k)), 2299 "Anonymous union alignment botch"); 2300 v1.i = 2; 2301 v1.w.k = 5; 2302 ok |= v1.i != 5; 2303' 2304 2305# Test code for whether the C compiler supports C11 (complete). 2306ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2307${ac_c_conftest_c99_globals} 2308${ac_c_conftest_c11_globals} 2309 2310int 2311main (int argc, char **argv) 2312{ 2313 int ok = 0; 2314 ${ac_c_conftest_c89_main} 2315 ${ac_c_conftest_c99_main} 2316 ${ac_c_conftest_c11_main} 2317 return ok; 2318} 2319" 2320 2321# Test code for whether the C compiler supports C99 (complete). 2322ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2323${ac_c_conftest_c99_globals} 2324 2325int 2326main (int argc, char **argv) 2327{ 2328 int ok = 0; 2329 ${ac_c_conftest_c89_main} 2330 ${ac_c_conftest_c99_main} 2331 return ok; 2332} 2333" 2334 2335# Test code for whether the C compiler supports C89 (complete). 2336ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2337 2338int 2339main (int argc, char **argv) 2340{ 2341 int ok = 0; 2342 ${ac_c_conftest_c89_main} 2343 return ok; 2344} 2345" 2346 2347as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2348as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2349as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2350as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2351as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2352as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2353as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2354as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2355as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2356 2357# Auxiliary files required by this configure script. 2358ac_aux_files="config.guess config.sub compile missing install-sh" 2359 2360# Locations in which to look for auxiliary files. 2361ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2362 2363# Search for a directory containing all of the required auxiliary files, 2364# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2365# If we don't find one directory that contains all the files we need, 2366# we report the set of missing files from the *first* directory in 2367# $ac_aux_dir_candidates and give up. 2368ac_missing_aux_files="" 2369ac_first_candidate=: 2370printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2372as_found=false 2373for as_dir in $ac_aux_dir_candidates 2374do 2375 IFS=$as_save_IFS 2376 case $as_dir in #((( 2377 '') as_dir=./ ;; 2378 */) ;; 2379 *) as_dir=$as_dir/ ;; 2380 esac 2381 as_found=: 2382 2383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2384 ac_aux_dir_found=yes 2385 ac_install_sh= 2386 for ac_aux in $ac_aux_files 2387 do 2388 # As a special case, if "install-sh" is required, that requirement 2389 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2390 # and $ac_install_sh is set appropriately for whichever one is found. 2391 if test x"$ac_aux" = x"install-sh" 2392 then 2393 if test -f "${as_dir}install-sh"; then 2394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2395 ac_install_sh="${as_dir}install-sh -c" 2396 elif test -f "${as_dir}install.sh"; then 2397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2398 ac_install_sh="${as_dir}install.sh -c" 2399 elif test -f "${as_dir}shtool"; then 2400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2401 ac_install_sh="${as_dir}shtool install -c" 2402 else 2403 ac_aux_dir_found=no 2404 if $ac_first_candidate; then 2405 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2406 else 2407 break 2408 fi 2409 fi 2410 else 2411 if test -f "${as_dir}${ac_aux}"; then 2412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2413 else 2414 ac_aux_dir_found=no 2415 if $ac_first_candidate; then 2416 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2417 else 2418 break 2419 fi 2420 fi 2421 fi 2422 done 2423 if test "$ac_aux_dir_found" = yes; then 2424 ac_aux_dir="$as_dir" 2425 break 2426 fi 2427 ac_first_candidate=false 2428 2429 as_found=false 2430done 2431IFS=$as_save_IFS 2432if $as_found 2433then : 2434 2435else case e in #( 2436 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2437esac 2438fi 2439 2440 2441# These three variables are undocumented and unsupported, 2442# and are intended to be withdrawn in a future Autoconf release. 2443# They can cause serious problems if a builder's source tree is in a directory 2444# whose full name contains unusual characters. 2445if test -f "${ac_aux_dir}config.guess"; then 2446 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2447fi 2448if test -f "${ac_aux_dir}config.sub"; then 2449 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2450fi 2451if test -f "$ac_aux_dir/configure"; then 2452 ac_configure="$SHELL ${ac_aux_dir}configure" 2453fi 2454 2455# Check that the precious variables saved in the cache have kept the same 2456# value. 2457ac_cache_corrupted=false 2458for ac_var in $ac_precious_vars; do 2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2460 eval ac_new_set=\$ac_env_${ac_var}_set 2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2462 eval ac_new_val=\$ac_env_${ac_var}_value 2463 case $ac_old_set,$ac_new_set in 2464 set,) 2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2466printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2467 ac_cache_corrupted=: ;; 2468 ,set) 2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2470printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2471 ac_cache_corrupted=: ;; 2472 ,);; 2473 *) 2474 if test "x$ac_old_val" != "x$ac_new_val"; then 2475 # differences in whitespace do not lead to failure. 2476 ac_old_val_w=`echo x $ac_old_val` 2477 ac_new_val_w=`echo x $ac_new_val` 2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2480printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2481 ac_cache_corrupted=: 2482 else 2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2484printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2485 eval $ac_var=\$ac_old_val 2486 fi 2487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2488printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2490printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2491 fi;; 2492 esac 2493 # Pass precious variables to config.status. 2494 if test "$ac_new_set" = set; then 2495 case $ac_new_val in 2496 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2497 *) ac_arg=$ac_var=$ac_new_val ;; 2498 esac 2499 case " $ac_configure_args " in 2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2502 esac 2503 fi 2504done 2505if $ac_cache_corrupted; then 2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2507printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2509printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2510 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2511 and start over" "$LINENO" 5 2512fi 2513## -------------------- ## 2514## Main body of script. ## 2515## -------------------- ## 2516 2517ac_ext=c 2518ac_cpp='$CPP $CPPFLAGS' 2519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2521ac_compiler_gnu=$ac_cv_c_compiler_gnu 2522 2523 2524 2525ac_config_headers="$ac_config_headers config.h" 2526 2527 2528# Initialize Automake 2529am__api_version='1.16' 2530 2531 2532 2533 # Find a good install program. We prefer a C program (faster), 2534# so one script is as good as another. But avoid the broken or 2535# incompatible versions: 2536# SysV /etc/install, /usr/sbin/install 2537# SunOS /usr/etc/install 2538# IRIX /sbin/install 2539# AIX /bin/install 2540# AmigaOS /C/install, which installs bootblocks on floppy discs 2541# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2542# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2543# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2544# OS/2's system install, which has a completely different semantic 2545# ./install, which can be erroneously created by make from ./install.sh. 2546# Reject install programs that cannot install multiple files. 2547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2548printf %s "checking for a BSD-compatible install... " >&6; } 2549if test -z "$INSTALL"; then 2550if test ${ac_cv_path_install+y} 2551then : 2552 printf %s "(cached) " >&6 2553else case e in #( 2554 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2555for as_dir in $PATH 2556do 2557 IFS=$as_save_IFS 2558 case $as_dir in #((( 2559 '') as_dir=./ ;; 2560 */) ;; 2561 *) as_dir=$as_dir/ ;; 2562 esac 2563 # Account for fact that we put trailing slashes in our PATH walk. 2564case $as_dir in #(( 2565 ./ | /[cC]/* | \ 2566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2567 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2568 /usr/ucb/* ) ;; 2569 *) 2570 # OSF1 and SCO ODT 3.0 have their own names for install. 2571 # Don't use installbsd from OSF since it installs stuff as root 2572 # by default. 2573 for ac_prog in ginstall scoinst install; do 2574 for ac_exec_ext in '' $ac_executable_extensions; do 2575 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2576 if test $ac_prog = install && 2577 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2578 # AIX install. It has an incompatible calling convention. 2579 : 2580 elif test $ac_prog = install && 2581 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2582 # program-specific install script used by HP pwplus--don't use. 2583 : 2584 else 2585 rm -rf conftest.one conftest.two conftest.dir 2586 echo one > conftest.one 2587 echo two > conftest.two 2588 mkdir conftest.dir 2589 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2590 test -s conftest.one && test -s conftest.two && 2591 test -s conftest.dir/conftest.one && 2592 test -s conftest.dir/conftest.two 2593 then 2594 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2595 break 3 2596 fi 2597 fi 2598 fi 2599 done 2600 done 2601 ;; 2602esac 2603 2604 done 2605IFS=$as_save_IFS 2606 2607rm -rf conftest.one conftest.two conftest.dir 2608 ;; 2609esac 2610fi 2611 if test ${ac_cv_path_install+y}; then 2612 INSTALL=$ac_cv_path_install 2613 else 2614 # As a last resort, use the slow shell script. Don't cache a 2615 # value for INSTALL within a source directory, because that will 2616 # break other packages using the cache if that directory is 2617 # removed, or if the value is a relative name. 2618 INSTALL=$ac_install_sh 2619 fi 2620fi 2621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2622printf "%s\n" "$INSTALL" >&6; } 2623 2624# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2625# It thinks the first close brace ends the variable substitution. 2626test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2627 2628test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2629 2630test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2631 2632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2633printf %s "checking whether build environment is sane... " >&6; } 2634# Reject unsafe characters in $srcdir or the absolute working directory 2635# name. Accept space and tab only in the latter. 2636am_lf=' 2637' 2638case `pwd` in 2639 *[\\\"\#\$\&\'\`$am_lf]*) 2640 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2641esac 2642case $srcdir in 2643 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2644 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2645esac 2646 2647# Do 'set' in a subshell so we don't clobber the current shell's 2648# arguments. Must try -L first in case configure is actually a 2649# symlink; some systems play weird games with the mod time of symlinks 2650# (eg FreeBSD returns the mod time of the symlink's containing 2651# directory). 2652if ( 2653 am_has_slept=no 2654 for am_try in 1 2; do 2655 echo "timestamp, slept: $am_has_slept" > conftest.file 2656 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2657 if test "$*" = "X"; then 2658 # -L didn't work. 2659 set X `ls -t "$srcdir/configure" conftest.file` 2660 fi 2661 if test "$*" != "X $srcdir/configure conftest.file" \ 2662 && test "$*" != "X conftest.file $srcdir/configure"; then 2663 2664 # If neither matched, then we have a broken ls. This can happen 2665 # if, for instance, CONFIG_SHELL is bash and it inherits a 2666 # broken ls alias from the environment. This has actually 2667 # happened. Such a system could not be considered "sane". 2668 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2669 alias in your environment" "$LINENO" 5 2670 fi 2671 if test "$2" = conftest.file || test $am_try -eq 2; then 2672 break 2673 fi 2674 # Just in case. 2675 sleep 1 2676 am_has_slept=yes 2677 done 2678 test "$2" = conftest.file 2679 ) 2680then 2681 # Ok. 2682 : 2683else 2684 as_fn_error $? "newly created file is older than distributed files! 2685Check your system clock" "$LINENO" 5 2686fi 2687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2688printf "%s\n" "yes" >&6; } 2689# If we didn't sleep, we still need to ensure time stamps of config.status and 2690# generated files are strictly newer. 2691am_sleep_pid= 2692if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2693 ( sleep 1 ) & 2694 am_sleep_pid=$! 2695fi 2696 2697rm -f conftest.file 2698 2699test "$program_prefix" != NONE && 2700 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2701# Use a double $ so make ignores it. 2702test "$program_suffix" != NONE && 2703 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2704# Double any \ or $. 2705# By default was 's,x,x', remove it if useless. 2706ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2707program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2708 2709 2710# Expand $ac_aux_dir to an absolute path. 2711am_aux_dir=`cd "$ac_aux_dir" && pwd` 2712 2713 2714 if test x"${MISSING+set}" != xset; then 2715 MISSING="\${SHELL} '$am_aux_dir/missing'" 2716fi 2717# Use eval to expand $SHELL 2718if eval "$MISSING --is-lightweight"; then 2719 am_missing_run="$MISSING " 2720else 2721 am_missing_run= 2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2723printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2724fi 2725 2726if test x"${install_sh+set}" != xset; then 2727 case $am_aux_dir in 2728 *\ * | *\ *) 2729 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2730 *) 2731 install_sh="\${SHELL} $am_aux_dir/install-sh" 2732 esac 2733fi 2734 2735# Installed binaries are usually stripped using 'strip' when the user 2736# run "make install-strip". However 'strip' might not be the right 2737# tool to use in cross-compilation environments, therefore Automake 2738# will honor the 'STRIP' environment variable to overrule this program. 2739if test "$cross_compiling" != no; then 2740 if test -n "$ac_tool_prefix"; then 2741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2742set dummy ${ac_tool_prefix}strip; ac_word=$2 2743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2744printf %s "checking for $ac_word... " >&6; } 2745if test ${ac_cv_prog_STRIP+y} 2746then : 2747 printf %s "(cached) " >&6 2748else case e in #( 2749 e) if test -n "$STRIP"; then 2750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2751else 2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753for as_dir in $PATH 2754do 2755 IFS=$as_save_IFS 2756 case $as_dir in #((( 2757 '') as_dir=./ ;; 2758 */) ;; 2759 *) as_dir=$as_dir/ ;; 2760 esac 2761 for ac_exec_ext in '' $ac_executable_extensions; do 2762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2763 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2765 break 2 2766 fi 2767done 2768 done 2769IFS=$as_save_IFS 2770 2771fi ;; 2772esac 2773fi 2774STRIP=$ac_cv_prog_STRIP 2775if test -n "$STRIP"; then 2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2777printf "%s\n" "$STRIP" >&6; } 2778else 2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2780printf "%s\n" "no" >&6; } 2781fi 2782 2783 2784fi 2785if test -z "$ac_cv_prog_STRIP"; then 2786 ac_ct_STRIP=$STRIP 2787 # Extract the first word of "strip", so it can be a program name with args. 2788set dummy strip; ac_word=$2 2789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2790printf %s "checking for $ac_word... " >&6; } 2791if test ${ac_cv_prog_ac_ct_STRIP+y} 2792then : 2793 printf %s "(cached) " >&6 2794else case e in #( 2795 e) if test -n "$ac_ct_STRIP"; then 2796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2797else 2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799for as_dir in $PATH 2800do 2801 IFS=$as_save_IFS 2802 case $as_dir in #((( 2803 '') as_dir=./ ;; 2804 */) ;; 2805 *) as_dir=$as_dir/ ;; 2806 esac 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2809 ac_cv_prog_ac_ct_STRIP="strip" 2810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2811 break 2 2812 fi 2813done 2814 done 2815IFS=$as_save_IFS 2816 2817fi ;; 2818esac 2819fi 2820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2821if test -n "$ac_ct_STRIP"; then 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2823printf "%s\n" "$ac_ct_STRIP" >&6; } 2824else 2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826printf "%s\n" "no" >&6; } 2827fi 2828 2829 if test "x$ac_ct_STRIP" = x; then 2830 STRIP=":" 2831 else 2832 case $cross_compiling:$ac_tool_warned in 2833yes:) 2834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2835printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2836ac_tool_warned=yes ;; 2837esac 2838 STRIP=$ac_ct_STRIP 2839 fi 2840else 2841 STRIP="$ac_cv_prog_STRIP" 2842fi 2843 2844fi 2845INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2846 2847 2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2849printf %s "checking for a race-free mkdir -p... " >&6; } 2850if test -z "$MKDIR_P"; then 2851 if test ${ac_cv_path_mkdir+y} 2852then : 2853 printf %s "(cached) " >&6 2854else case e in #( 2855 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2857do 2858 IFS=$as_save_IFS 2859 case $as_dir in #((( 2860 '') as_dir=./ ;; 2861 */) ;; 2862 *) as_dir=$as_dir/ ;; 2863 esac 2864 for ac_prog in mkdir gmkdir; do 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2867 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2868 'mkdir ('*'coreutils) '* | \ 2869 *'BusyBox '* | \ 2870 'mkdir (fileutils) '4.1*) 2871 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2872 break 3;; 2873 esac 2874 done 2875 done 2876 done 2877IFS=$as_save_IFS 2878 ;; 2879esac 2880fi 2881 2882 test -d ./--version && rmdir ./--version 2883 if test ${ac_cv_path_mkdir+y}; then 2884 MKDIR_P="$ac_cv_path_mkdir -p" 2885 else 2886 # As a last resort, use plain mkdir -p, 2887 # in the hope it doesn't have the bugs of ancient mkdir. 2888 MKDIR_P='mkdir -p' 2889 fi 2890fi 2891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2892printf "%s\n" "$MKDIR_P" >&6; } 2893 2894for ac_prog in gawk mawk nawk awk 2895do 2896 # Extract the first word of "$ac_prog", so it can be a program name with args. 2897set dummy $ac_prog; ac_word=$2 2898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2899printf %s "checking for $ac_word... " >&6; } 2900if test ${ac_cv_prog_AWK+y} 2901then : 2902 printf %s "(cached) " >&6 2903else case e in #( 2904 e) if test -n "$AWK"; then 2905 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2906else 2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2908for as_dir in $PATH 2909do 2910 IFS=$as_save_IFS 2911 case $as_dir in #((( 2912 '') as_dir=./ ;; 2913 */) ;; 2914 *) as_dir=$as_dir/ ;; 2915 esac 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2918 ac_cv_prog_AWK="$ac_prog" 2919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2920 break 2 2921 fi 2922done 2923 done 2924IFS=$as_save_IFS 2925 2926fi ;; 2927esac 2928fi 2929AWK=$ac_cv_prog_AWK 2930if test -n "$AWK"; then 2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2932printf "%s\n" "$AWK" >&6; } 2933else 2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2935printf "%s\n" "no" >&6; } 2936fi 2937 2938 2939 test -n "$AWK" && break 2940done 2941 2942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2943printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2944set x ${MAKE-make} 2945ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2946if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2947then : 2948 printf %s "(cached) " >&6 2949else case e in #( 2950 e) cat >conftest.make <<\_ACEOF 2951SHELL = /bin/sh 2952all: 2953 @echo '@@@%%%=$(MAKE)=@@@%%%' 2954_ACEOF 2955# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2956case `${MAKE-make} -f conftest.make 2>/dev/null` in 2957 *@@@%%%=?*=@@@%%%*) 2958 eval ac_cv_prog_make_${ac_make}_set=yes;; 2959 *) 2960 eval ac_cv_prog_make_${ac_make}_set=no;; 2961esac 2962rm -f conftest.make ;; 2963esac 2964fi 2965if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2967printf "%s\n" "yes" >&6; } 2968 SET_MAKE= 2969else 2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971printf "%s\n" "no" >&6; } 2972 SET_MAKE="MAKE=${MAKE-make}" 2973fi 2974 2975rm -rf .tst 2>/dev/null 2976mkdir .tst 2>/dev/null 2977if test -d .tst; then 2978 am__leading_dot=. 2979else 2980 am__leading_dot=_ 2981fi 2982rmdir .tst 2>/dev/null 2983 2984# Check whether --enable-silent-rules was given. 2985if test ${enable_silent_rules+y} 2986then : 2987 enableval=$enable_silent_rules; 2988fi 2989 2990case $enable_silent_rules in # ((( 2991 yes) AM_DEFAULT_VERBOSITY=0;; 2992 no) AM_DEFAULT_VERBOSITY=1;; 2993 *) AM_DEFAULT_VERBOSITY=1;; 2994esac 2995am_make=${MAKE-make} 2996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2997printf %s "checking whether $am_make supports nested variables... " >&6; } 2998if test ${am_cv_make_support_nested_variables+y} 2999then : 3000 printf %s "(cached) " >&6 3001else case e in #( 3002 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3003BAR0=false 3004BAR1=true 3005V=1 3006am__doit: 3007 @$(TRUE) 3008.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3009 am_cv_make_support_nested_variables=yes 3010else 3011 am_cv_make_support_nested_variables=no 3012fi ;; 3013esac 3014fi 3015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3016printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3017if test $am_cv_make_support_nested_variables = yes; then 3018 AM_V='$(V)' 3019 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3020else 3021 AM_V=$AM_DEFAULT_VERBOSITY 3022 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3023fi 3024AM_BACKSLASH='\' 3025 3026if test "`cd $srcdir && pwd`" != "`pwd`"; then 3027 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3028 # is not polluted with repeated "-I." 3029 am__isrc=' -I$(srcdir)' 3030 # test to see if srcdir already configured 3031 if test -f $srcdir/config.status; then 3032 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3033 fi 3034fi 3035 3036# test whether we have cygpath 3037if test -z "$CYGPATH_W"; then 3038 if (cygpath --version) >/dev/null 2>/dev/null; then 3039 CYGPATH_W='cygpath -w' 3040 else 3041 CYGPATH_W=echo 3042 fi 3043fi 3044 3045 3046# Define the identity of the package. 3047 PACKAGE='xmessage' 3048 VERSION='1.0.7' 3049 3050 3051printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3052 3053 3054printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3055 3056# Some tools Automake needs. 3057 3058ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3059 3060 3061AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3062 3063 3064AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3065 3066 3067AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3068 3069 3070MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3071 3072# For better backward compatibility. To be removed once Automake 1.9.x 3073# dies out for good. For more background, see: 3074# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3075# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3076mkdir_p='$(MKDIR_P)' 3077 3078# We need awk for the "check" target (and possibly the TAP driver). The 3079# system "awk" is bad on some platforms. 3080# Always define AMTAR for backward compatibility. Yes, it's still used 3081# in the wild :-( We should find a proper way to deprecate it ... 3082AMTAR='$${TAR-tar}' 3083 3084 3085# We'll loop over all known methods to create a tar archive until one works. 3086_am_tools='gnutar pax cpio none' 3087 3088am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3089 3090 3091 3092 3093 3094# Variables for tags utilities; see am/tags.am 3095if test -z "$CTAGS"; then 3096 CTAGS=ctags 3097fi 3098 3099if test -z "$ETAGS"; then 3100 ETAGS=etags 3101fi 3102 3103if test -z "$CSCOPE"; then 3104 CSCOPE=cscope 3105fi 3106 3107 3108 3109# POSIX will say in a future version that running "rm -f" with no argument 3110# is OK; and we want to be able to make that assumption in our Makefile 3111# recipes. So use an aggressive probe to check that the usage we want is 3112# actually supported "in the wild" to an acceptable degree. 3113# See automake bug#10828. 3114# To make any issue more visible, cause the running configure to be aborted 3115# by default if the 'rm' program in use doesn't match our expectations; the 3116# user can still override this though. 3117if rm -f && rm -fr && rm -rf; then : OK; else 3118 cat >&2 <<'END' 3119Oops! 3120 3121Your 'rm' program seems unable to run without file operands specified 3122on the command line, even when the '-f' option is present. This is contrary 3123to the behaviour of most rm programs out there, and not conforming with 3124the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3125 3126Please tell bug-automake@gnu.org about your system, including the value 3127of your $PATH and any error possibly output before this message. This 3128can help us improve future automake versions. 3129 3130END 3131 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3132 echo 'Configuration will proceed anyway, since you have set the' >&2 3133 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3134 echo >&2 3135 else 3136 cat >&2 <<'END' 3137Aborting the configuration process, to ensure you take notice of the issue. 3138 3139You can download and install GNU coreutils to get an 'rm' implementation 3140that behaves properly: <https://www.gnu.org/software/coreutils/>. 3141 3142If you want to complete the configuration process using your problematic 3143'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3144to "yes", and re-run configure. 3145 3146END 3147 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3148 fi 3149fi 3150 3151 3152# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173DEPDIR="${am__leading_dot}deps" 3174 3175ac_config_commands="$ac_config_commands depfiles" 3176 3177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3178printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3179cat > confinc.mk << 'END' 3180am__doit: 3181 @echo this is the am__doit target >confinc.out 3182.PHONY: am__doit 3183END 3184am__include="#" 3185am__quote= 3186# BSD make does it like this. 3187echo '.include "confinc.mk" # ignored' > confmf.BSD 3188# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3189echo 'include confinc.mk # ignored' > confmf.GNU 3190_am_result=no 3191for s in GNU BSD; do 3192 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3193 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3194 ac_status=$? 3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); } 3197 case $?:`cat confinc.out 2>/dev/null` in #( 3198 '0:this is the am__doit target') : 3199 case $s in #( 3200 BSD) : 3201 am__include='.include' am__quote='"' ;; #( 3202 *) : 3203 am__include='include' am__quote='' ;; 3204esac ;; #( 3205 *) : 3206 ;; 3207esac 3208 if test "$am__include" != "#"; then 3209 _am_result="yes ($s style)" 3210 break 3211 fi 3212done 3213rm -f confinc.* confmf.* 3214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3215printf "%s\n" "${_am_result}" >&6; } 3216 3217# Check whether --enable-dependency-tracking was given. 3218if test ${enable_dependency_tracking+y} 3219then : 3220 enableval=$enable_dependency_tracking; 3221fi 3222 3223if test "x$enable_dependency_tracking" != xno; then 3224 am_depcomp="$ac_aux_dir/depcomp" 3225 AMDEPBACKSLASH='\' 3226 am__nodep='_no' 3227fi 3228 if test "x$enable_dependency_tracking" != xno; then 3229 AMDEP_TRUE= 3230 AMDEP_FALSE='#' 3231else 3232 AMDEP_TRUE='#' 3233 AMDEP_FALSE= 3234fi 3235 3236 3237ac_ext=c 3238ac_cpp='$CPP $CPPFLAGS' 3239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3241ac_compiler_gnu=$ac_cv_c_compiler_gnu 3242if test -n "$ac_tool_prefix"; then 3243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3244set dummy ${ac_tool_prefix}gcc; ac_word=$2 3245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3246printf %s "checking for $ac_word... " >&6; } 3247if test ${ac_cv_prog_CC+y} 3248then : 3249 printf %s "(cached) " >&6 3250else case e in #( 3251 e) if test -n "$CC"; then 3252 ac_cv_prog_CC="$CC" # Let the user override the test. 3253else 3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255for as_dir in $PATH 3256do 3257 IFS=$as_save_IFS 3258 case $as_dir in #((( 3259 '') as_dir=./ ;; 3260 */) ;; 3261 *) as_dir=$as_dir/ ;; 3262 esac 3263 for ac_exec_ext in '' $ac_executable_extensions; do 3264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3265 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3267 break 2 3268 fi 3269done 3270 done 3271IFS=$as_save_IFS 3272 3273fi ;; 3274esac 3275fi 3276CC=$ac_cv_prog_CC 3277if test -n "$CC"; then 3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3279printf "%s\n" "$CC" >&6; } 3280else 3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3282printf "%s\n" "no" >&6; } 3283fi 3284 3285 3286fi 3287if test -z "$ac_cv_prog_CC"; then 3288 ac_ct_CC=$CC 3289 # Extract the first word of "gcc", so it can be a program name with args. 3290set dummy gcc; ac_word=$2 3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3292printf %s "checking for $ac_word... " >&6; } 3293if test ${ac_cv_prog_ac_ct_CC+y} 3294then : 3295 printf %s "(cached) " >&6 3296else case e in #( 3297 e) if test -n "$ac_ct_CC"; then 3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3299else 3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301for as_dir in $PATH 3302do 3303 IFS=$as_save_IFS 3304 case $as_dir in #((( 3305 '') as_dir=./ ;; 3306 */) ;; 3307 *) as_dir=$as_dir/ ;; 3308 esac 3309 for ac_exec_ext in '' $ac_executable_extensions; do 3310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3311 ac_cv_prog_ac_ct_CC="gcc" 3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3313 break 2 3314 fi 3315done 3316 done 3317IFS=$as_save_IFS 3318 3319fi ;; 3320esac 3321fi 3322ac_ct_CC=$ac_cv_prog_ac_ct_CC 3323if test -n "$ac_ct_CC"; then 3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3325printf "%s\n" "$ac_ct_CC" >&6; } 3326else 3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3328printf "%s\n" "no" >&6; } 3329fi 3330 3331 if test "x$ac_ct_CC" = x; then 3332 CC="" 3333 else 3334 case $cross_compiling:$ac_tool_warned in 3335yes:) 3336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3337printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3338ac_tool_warned=yes ;; 3339esac 3340 CC=$ac_ct_CC 3341 fi 3342else 3343 CC="$ac_cv_prog_CC" 3344fi 3345 3346if test -z "$CC"; then 3347 if test -n "$ac_tool_prefix"; then 3348 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3349set dummy ${ac_tool_prefix}cc; ac_word=$2 3350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3351printf %s "checking for $ac_word... " >&6; } 3352if test ${ac_cv_prog_CC+y} 3353then : 3354 printf %s "(cached) " >&6 3355else case e in #( 3356 e) if test -n "$CC"; then 3357 ac_cv_prog_CC="$CC" # Let the user override the test. 3358else 3359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3360for as_dir in $PATH 3361do 3362 IFS=$as_save_IFS 3363 case $as_dir in #((( 3364 '') as_dir=./ ;; 3365 */) ;; 3366 *) as_dir=$as_dir/ ;; 3367 esac 3368 for ac_exec_ext in '' $ac_executable_extensions; do 3369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3370 ac_cv_prog_CC="${ac_tool_prefix}cc" 3371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3372 break 2 3373 fi 3374done 3375 done 3376IFS=$as_save_IFS 3377 3378fi ;; 3379esac 3380fi 3381CC=$ac_cv_prog_CC 3382if test -n "$CC"; then 3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3384printf "%s\n" "$CC" >&6; } 3385else 3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3387printf "%s\n" "no" >&6; } 3388fi 3389 3390 3391 fi 3392fi 3393if test -z "$CC"; then 3394 # Extract the first word of "cc", so it can be a program name with args. 3395set dummy cc; ac_word=$2 3396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3397printf %s "checking for $ac_word... " >&6; } 3398if test ${ac_cv_prog_CC+y} 3399then : 3400 printf %s "(cached) " >&6 3401else case e in #( 3402 e) if test -n "$CC"; then 3403 ac_cv_prog_CC="$CC" # Let the user override the test. 3404else 3405 ac_prog_rejected=no 3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3407for as_dir in $PATH 3408do 3409 IFS=$as_save_IFS 3410 case $as_dir in #((( 3411 '') as_dir=./ ;; 3412 */) ;; 3413 *) as_dir=$as_dir/ ;; 3414 esac 3415 for ac_exec_ext in '' $ac_executable_extensions; do 3416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3417 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3418 ac_prog_rejected=yes 3419 continue 3420 fi 3421 ac_cv_prog_CC="cc" 3422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3423 break 2 3424 fi 3425done 3426 done 3427IFS=$as_save_IFS 3428 3429if test $ac_prog_rejected = yes; then 3430 # We found a bogon in the path, so make sure we never use it. 3431 set dummy $ac_cv_prog_CC 3432 shift 3433 if test $# != 0; then 3434 # We chose a different compiler from the bogus one. 3435 # However, it has the same basename, so the bogon will be chosen 3436 # first if we set CC to just the basename; use the full file name. 3437 shift 3438 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3439 fi 3440fi 3441fi ;; 3442esac 3443fi 3444CC=$ac_cv_prog_CC 3445if test -n "$CC"; then 3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3447printf "%s\n" "$CC" >&6; } 3448else 3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3450printf "%s\n" "no" >&6; } 3451fi 3452 3453 3454fi 3455if test -z "$CC"; then 3456 if test -n "$ac_tool_prefix"; then 3457 for ac_prog in cl.exe 3458 do 3459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3460set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3462printf %s "checking for $ac_word... " >&6; } 3463if test ${ac_cv_prog_CC+y} 3464then : 3465 printf %s "(cached) " >&6 3466else case e in #( 3467 e) if test -n "$CC"; then 3468 ac_cv_prog_CC="$CC" # Let the user override the test. 3469else 3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3471for as_dir in $PATH 3472do 3473 IFS=$as_save_IFS 3474 case $as_dir in #((( 3475 '') as_dir=./ ;; 3476 */) ;; 3477 *) as_dir=$as_dir/ ;; 3478 esac 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3483 break 2 3484 fi 3485done 3486 done 3487IFS=$as_save_IFS 3488 3489fi ;; 3490esac 3491fi 3492CC=$ac_cv_prog_CC 3493if test -n "$CC"; then 3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3495printf "%s\n" "$CC" >&6; } 3496else 3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3498printf "%s\n" "no" >&6; } 3499fi 3500 3501 3502 test -n "$CC" && break 3503 done 3504fi 3505if test -z "$CC"; then 3506 ac_ct_CC=$CC 3507 for ac_prog in cl.exe 3508do 3509 # Extract the first word of "$ac_prog", so it can be a program name with args. 3510set dummy $ac_prog; ac_word=$2 3511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3512printf %s "checking for $ac_word... " >&6; } 3513if test ${ac_cv_prog_ac_ct_CC+y} 3514then : 3515 printf %s "(cached) " >&6 3516else case e in #( 3517 e) if test -n "$ac_ct_CC"; then 3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3519else 3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3521for as_dir in $PATH 3522do 3523 IFS=$as_save_IFS 3524 case $as_dir in #((( 3525 '') as_dir=./ ;; 3526 */) ;; 3527 *) as_dir=$as_dir/ ;; 3528 esac 3529 for ac_exec_ext in '' $ac_executable_extensions; do 3530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3531 ac_cv_prog_ac_ct_CC="$ac_prog" 3532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3533 break 2 3534 fi 3535done 3536 done 3537IFS=$as_save_IFS 3538 3539fi ;; 3540esac 3541fi 3542ac_ct_CC=$ac_cv_prog_ac_ct_CC 3543if test -n "$ac_ct_CC"; then 3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3545printf "%s\n" "$ac_ct_CC" >&6; } 3546else 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548printf "%s\n" "no" >&6; } 3549fi 3550 3551 3552 test -n "$ac_ct_CC" && break 3553done 3554 3555 if test "x$ac_ct_CC" = x; then 3556 CC="" 3557 else 3558 case $cross_compiling:$ac_tool_warned in 3559yes:) 3560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3561printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3562ac_tool_warned=yes ;; 3563esac 3564 CC=$ac_ct_CC 3565 fi 3566fi 3567 3568fi 3569if test -z "$CC"; then 3570 if test -n "$ac_tool_prefix"; then 3571 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3572set dummy ${ac_tool_prefix}clang; ac_word=$2 3573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3574printf %s "checking for $ac_word... " >&6; } 3575if test ${ac_cv_prog_CC+y} 3576then : 3577 printf %s "(cached) " >&6 3578else case e in #( 3579 e) if test -n "$CC"; then 3580 ac_cv_prog_CC="$CC" # Let the user override the test. 3581else 3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3583for as_dir in $PATH 3584do 3585 IFS=$as_save_IFS 3586 case $as_dir in #((( 3587 '') as_dir=./ ;; 3588 */) ;; 3589 *) as_dir=$as_dir/ ;; 3590 esac 3591 for ac_exec_ext in '' $ac_executable_extensions; do 3592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3593 ac_cv_prog_CC="${ac_tool_prefix}clang" 3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3595 break 2 3596 fi 3597done 3598 done 3599IFS=$as_save_IFS 3600 3601fi ;; 3602esac 3603fi 3604CC=$ac_cv_prog_CC 3605if test -n "$CC"; then 3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3607printf "%s\n" "$CC" >&6; } 3608else 3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3610printf "%s\n" "no" >&6; } 3611fi 3612 3613 3614fi 3615if test -z "$ac_cv_prog_CC"; then 3616 ac_ct_CC=$CC 3617 # Extract the first word of "clang", so it can be a program name with args. 3618set dummy clang; ac_word=$2 3619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3620printf %s "checking for $ac_word... " >&6; } 3621if test ${ac_cv_prog_ac_ct_CC+y} 3622then : 3623 printf %s "(cached) " >&6 3624else case e in #( 3625 e) if test -n "$ac_ct_CC"; then 3626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3627else 3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3629for as_dir in $PATH 3630do 3631 IFS=$as_save_IFS 3632 case $as_dir in #((( 3633 '') as_dir=./ ;; 3634 */) ;; 3635 *) as_dir=$as_dir/ ;; 3636 esac 3637 for ac_exec_ext in '' $ac_executable_extensions; do 3638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3639 ac_cv_prog_ac_ct_CC="clang" 3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3641 break 2 3642 fi 3643done 3644 done 3645IFS=$as_save_IFS 3646 3647fi ;; 3648esac 3649fi 3650ac_ct_CC=$ac_cv_prog_ac_ct_CC 3651if test -n "$ac_ct_CC"; then 3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3653printf "%s\n" "$ac_ct_CC" >&6; } 3654else 3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3656printf "%s\n" "no" >&6; } 3657fi 3658 3659 if test "x$ac_ct_CC" = x; then 3660 CC="" 3661 else 3662 case $cross_compiling:$ac_tool_warned in 3663yes:) 3664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3665printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3666ac_tool_warned=yes ;; 3667esac 3668 CC=$ac_ct_CC 3669 fi 3670else 3671 CC="$ac_cv_prog_CC" 3672fi 3673 3674fi 3675 3676 3677test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3678printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3679as_fn_error $? "no acceptable C compiler found in \$PATH 3680See 'config.log' for more details" "$LINENO" 5; } 3681 3682# Provide some information about the compiler. 3683printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3684set X $ac_compile 3685ac_compiler=$2 3686for ac_option in --version -v -V -qversion -version; do 3687 { { ac_try="$ac_compiler $ac_option >&5" 3688case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3693printf "%s\n" "$ac_try_echo"; } >&5 3694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3695 ac_status=$? 3696 if test -s conftest.err; then 3697 sed '10a\ 3698... rest of stderr output deleted ... 3699 10q' conftest.err >conftest.er1 3700 cat conftest.er1 >&5 3701 fi 3702 rm -f conftest.er1 conftest.err 3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3704 test $ac_status = 0; } 3705done 3706 3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708/* end confdefs.h. */ 3709 3710int 3711main (void) 3712{ 3713 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718ac_clean_files_save=$ac_clean_files 3719ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3720# Try to create an executable without -o first, disregard a.out. 3721# It will help us diagnose broken compilers, and finding out an intuition 3722# of exeext. 3723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3724printf %s "checking whether the C compiler works... " >&6; } 3725ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3726 3727# The possible output files: 3728ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3729 3730ac_rmfiles= 3731for ac_file in $ac_files 3732do 3733 case $ac_file in 3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3735 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3736 esac 3737done 3738rm -f $ac_rmfiles 3739 3740if { { ac_try="$ac_link_default" 3741case "(($ac_try" in 3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3743 *) ac_try_echo=$ac_try;; 3744esac 3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3746printf "%s\n" "$ac_try_echo"; } >&5 3747 (eval "$ac_link_default") 2>&5 3748 ac_status=$? 3749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3750 test $ac_status = 0; } 3751then : 3752 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3753# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3754# in a Makefile. We should not override ac_cv_exeext if it was cached, 3755# so that the user can short-circuit this test for compilers unknown to 3756# Autoconf. 3757for ac_file in $ac_files '' 3758do 3759 test -f "$ac_file" || continue 3760 case $ac_file in 3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3762 ;; 3763 [ab].out ) 3764 # We found the default executable, but exeext='' is most 3765 # certainly right. 3766 break;; 3767 *.* ) 3768 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3769 then :; else 3770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3771 fi 3772 # We set ac_cv_exeext here because the later test for it is not 3773 # safe: cross compilers may not add the suffix if given an '-o' 3774 # argument, so we may need to know it at that point already. 3775 # Even if this section looks crufty: it has the advantage of 3776 # actually working. 3777 break;; 3778 * ) 3779 break;; 3780 esac 3781done 3782test "$ac_cv_exeext" = no && ac_cv_exeext= 3783 3784else case e in #( 3785 e) ac_file='' ;; 3786esac 3787fi 3788if test -z "$ac_file" 3789then : 3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3791printf "%s\n" "no" >&6; } 3792printf "%s\n" "$as_me: failed program was:" >&5 3793sed 's/^/| /' conftest.$ac_ext >&5 3794 3795{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3796printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3797as_fn_error 77 "C compiler cannot create executables 3798See 'config.log' for more details" "$LINENO" 5; } 3799else case e in #( 3800 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3801printf "%s\n" "yes" >&6; } ;; 3802esac 3803fi 3804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3805printf %s "checking for C compiler default output file name... " >&6; } 3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3807printf "%s\n" "$ac_file" >&6; } 3808ac_exeext=$ac_cv_exeext 3809 3810rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3811ac_clean_files=$ac_clean_files_save 3812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3813printf %s "checking for suffix of executables... " >&6; } 3814if { { ac_try="$ac_link" 3815case "(($ac_try" in 3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3817 *) ac_try_echo=$ac_try;; 3818esac 3819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3820printf "%s\n" "$ac_try_echo"; } >&5 3821 (eval "$ac_link") 2>&5 3822 ac_status=$? 3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3824 test $ac_status = 0; } 3825then : 3826 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3827# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3828# work properly (i.e., refer to 'conftest.exe'), while it won't with 3829# 'rm'. 3830for ac_file in conftest.exe conftest conftest.*; do 3831 test -f "$ac_file" || continue 3832 case $ac_file in 3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3835 break;; 3836 * ) break;; 3837 esac 3838done 3839else case e in #( 3840 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3841printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3842as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3843See 'config.log' for more details" "$LINENO" 5; } ;; 3844esac 3845fi 3846rm -f conftest conftest$ac_cv_exeext 3847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3848printf "%s\n" "$ac_cv_exeext" >&6; } 3849 3850rm -f conftest.$ac_ext 3851EXEEXT=$ac_cv_exeext 3852ac_exeext=$EXEEXT 3853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854/* end confdefs.h. */ 3855#include <stdio.h> 3856int 3857main (void) 3858{ 3859FILE *f = fopen ("conftest.out", "w"); 3860 if (!f) 3861 return 1; 3862 return ferror (f) || fclose (f) != 0; 3863 3864 ; 3865 return 0; 3866} 3867_ACEOF 3868ac_clean_files="$ac_clean_files conftest.out" 3869# Check that the compiler produces executables we can run. If not, either 3870# the compiler is broken, or we cross compile. 3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3872printf %s "checking whether we are cross compiling... " >&6; } 3873if test "$cross_compiling" != yes; then 3874 { { ac_try="$ac_link" 3875case "(($ac_try" in 3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3877 *) ac_try_echo=$ac_try;; 3878esac 3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3880printf "%s\n" "$ac_try_echo"; } >&5 3881 (eval "$ac_link") 2>&5 3882 ac_status=$? 3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3884 test $ac_status = 0; } 3885 if { ac_try='./conftest$ac_cv_exeext' 3886 { { case "(($ac_try" in 3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3888 *) ac_try_echo=$ac_try;; 3889esac 3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3891printf "%s\n" "$ac_try_echo"; } >&5 3892 (eval "$ac_try") 2>&5 3893 ac_status=$? 3894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3895 test $ac_status = 0; }; }; then 3896 cross_compiling=no 3897 else 3898 if test "$cross_compiling" = maybe; then 3899 cross_compiling=yes 3900 else 3901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3902printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3903as_fn_error 77 "cannot run C compiled programs. 3904If you meant to cross compile, use '--host'. 3905See 'config.log' for more details" "$LINENO" 5; } 3906 fi 3907 fi 3908fi 3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3910printf "%s\n" "$cross_compiling" >&6; } 3911 3912rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3913 conftest.o conftest.obj conftest.out 3914ac_clean_files=$ac_clean_files_save 3915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3916printf %s "checking for suffix of object files... " >&6; } 3917if test ${ac_cv_objext+y} 3918then : 3919 printf %s "(cached) " >&6 3920else case e in #( 3921 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923 3924int 3925main (void) 3926{ 3927 3928 ; 3929 return 0; 3930} 3931_ACEOF 3932rm -f conftest.o conftest.obj 3933if { { ac_try="$ac_compile" 3934case "(($ac_try" in 3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3936 *) ac_try_echo=$ac_try;; 3937esac 3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3939printf "%s\n" "$ac_try_echo"; } >&5 3940 (eval "$ac_compile") 2>&5 3941 ac_status=$? 3942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3943 test $ac_status = 0; } 3944then : 3945 for ac_file in conftest.o conftest.obj conftest.*; do 3946 test -f "$ac_file" || continue; 3947 case $ac_file in 3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3950 break;; 3951 esac 3952done 3953else case e in #( 3954 e) printf "%s\n" "$as_me: failed program was:" >&5 3955sed 's/^/| /' conftest.$ac_ext >&5 3956 3957{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3958printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3959as_fn_error $? "cannot compute suffix of object files: cannot compile 3960See 'config.log' for more details" "$LINENO" 5; } ;; 3961esac 3962fi 3963rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3964esac 3965fi 3966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3967printf "%s\n" "$ac_cv_objext" >&6; } 3968OBJEXT=$ac_cv_objext 3969ac_objext=$OBJEXT 3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3971printf %s "checking whether the compiler supports GNU C... " >&6; } 3972if test ${ac_cv_c_compiler_gnu+y} 3973then : 3974 printf %s "(cached) " >&6 3975else case e in #( 3976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978 3979int 3980main (void) 3981{ 3982#ifndef __GNUC__ 3983 choke me 3984#endif 3985 3986 ; 3987 return 0; 3988} 3989_ACEOF 3990if ac_fn_c_try_compile "$LINENO" 3991then : 3992 ac_compiler_gnu=yes 3993else case e in #( 3994 e) ac_compiler_gnu=no ;; 3995esac 3996fi 3997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3998ac_cv_c_compiler_gnu=$ac_compiler_gnu 3999 ;; 4000esac 4001fi 4002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4003printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4004ac_compiler_gnu=$ac_cv_c_compiler_gnu 4005 4006if test $ac_compiler_gnu = yes; then 4007 GCC=yes 4008else 4009 GCC= 4010fi 4011ac_test_CFLAGS=${CFLAGS+y} 4012ac_save_CFLAGS=$CFLAGS 4013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4014printf %s "checking whether $CC accepts -g... " >&6; } 4015if test ${ac_cv_prog_cc_g+y} 4016then : 4017 printf %s "(cached) " >&6 4018else case e in #( 4019 e) ac_save_c_werror_flag=$ac_c_werror_flag 4020 ac_c_werror_flag=yes 4021 ac_cv_prog_cc_g=no 4022 CFLAGS="-g" 4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4024/* end confdefs.h. */ 4025 4026int 4027main (void) 4028{ 4029 4030 ; 4031 return 0; 4032} 4033_ACEOF 4034if ac_fn_c_try_compile "$LINENO" 4035then : 4036 ac_cv_prog_cc_g=yes 4037else case e in #( 4038 e) CFLAGS="" 4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041 4042int 4043main (void) 4044{ 4045 4046 ; 4047 return 0; 4048} 4049_ACEOF 4050if ac_fn_c_try_compile "$LINENO" 4051then : 4052 4053else case e in #( 4054 e) ac_c_werror_flag=$ac_save_c_werror_flag 4055 CFLAGS="-g" 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057/* end confdefs.h. */ 4058 4059int 4060main (void) 4061{ 4062 4063 ; 4064 return 0; 4065} 4066_ACEOF 4067if ac_fn_c_try_compile "$LINENO" 4068then : 4069 ac_cv_prog_cc_g=yes 4070fi 4071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4072esac 4073fi 4074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4075esac 4076fi 4077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4078 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4079esac 4080fi 4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4082printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4083if test $ac_test_CFLAGS; then 4084 CFLAGS=$ac_save_CFLAGS 4085elif test $ac_cv_prog_cc_g = yes; then 4086 if test "$GCC" = yes; then 4087 CFLAGS="-g -O2" 4088 else 4089 CFLAGS="-g" 4090 fi 4091else 4092 if test "$GCC" = yes; then 4093 CFLAGS="-O2" 4094 else 4095 CFLAGS= 4096 fi 4097fi 4098ac_prog_cc_stdc=no 4099if test x$ac_prog_cc_stdc = xno 4100then : 4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4102printf %s "checking for $CC option to enable C11 features... " >&6; } 4103if test ${ac_cv_prog_cc_c11+y} 4104then : 4105 printf %s "(cached) " >&6 4106else case e in #( 4107 e) ac_cv_prog_cc_c11=no 4108ac_save_CC=$CC 4109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111$ac_c_conftest_c11_program 4112_ACEOF 4113for ac_arg in '' -std=gnu11 4114do 4115 CC="$ac_save_CC $ac_arg" 4116 if ac_fn_c_try_compile "$LINENO" 4117then : 4118 ac_cv_prog_cc_c11=$ac_arg 4119fi 4120rm -f core conftest.err conftest.$ac_objext conftest.beam 4121 test "x$ac_cv_prog_cc_c11" != "xno" && break 4122done 4123rm -f conftest.$ac_ext 4124CC=$ac_save_CC ;; 4125esac 4126fi 4127 4128if test "x$ac_cv_prog_cc_c11" = xno 4129then : 4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4131printf "%s\n" "unsupported" >&6; } 4132else case e in #( 4133 e) if test "x$ac_cv_prog_cc_c11" = x 4134then : 4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4136printf "%s\n" "none needed" >&6; } 4137else case e in #( 4138 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4139printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4140 CC="$CC $ac_cv_prog_cc_c11" ;; 4141esac 4142fi 4143 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4144 ac_prog_cc_stdc=c11 ;; 4145esac 4146fi 4147fi 4148if test x$ac_prog_cc_stdc = xno 4149then : 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4151printf %s "checking for $CC option to enable C99 features... " >&6; } 4152if test ${ac_cv_prog_cc_c99+y} 4153then : 4154 printf %s "(cached) " >&6 4155else case e in #( 4156 e) ac_cv_prog_cc_c99=no 4157ac_save_CC=$CC 4158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4159/* end confdefs.h. */ 4160$ac_c_conftest_c99_program 4161_ACEOF 4162for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4163do 4164 CC="$ac_save_CC $ac_arg" 4165 if ac_fn_c_try_compile "$LINENO" 4166then : 4167 ac_cv_prog_cc_c99=$ac_arg 4168fi 4169rm -f core conftest.err conftest.$ac_objext conftest.beam 4170 test "x$ac_cv_prog_cc_c99" != "xno" && break 4171done 4172rm -f conftest.$ac_ext 4173CC=$ac_save_CC ;; 4174esac 4175fi 4176 4177if test "x$ac_cv_prog_cc_c99" = xno 4178then : 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4180printf "%s\n" "unsupported" >&6; } 4181else case e in #( 4182 e) if test "x$ac_cv_prog_cc_c99" = x 4183then : 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4185printf "%s\n" "none needed" >&6; } 4186else case e in #( 4187 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4188printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4189 CC="$CC $ac_cv_prog_cc_c99" ;; 4190esac 4191fi 4192 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4193 ac_prog_cc_stdc=c99 ;; 4194esac 4195fi 4196fi 4197if test x$ac_prog_cc_stdc = xno 4198then : 4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4200printf %s "checking for $CC option to enable C89 features... " >&6; } 4201if test ${ac_cv_prog_cc_c89+y} 4202then : 4203 printf %s "(cached) " >&6 4204else case e in #( 4205 e) ac_cv_prog_cc_c89=no 4206ac_save_CC=$CC 4207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208/* end confdefs.h. */ 4209$ac_c_conftest_c89_program 4210_ACEOF 4211for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4212do 4213 CC="$ac_save_CC $ac_arg" 4214 if ac_fn_c_try_compile "$LINENO" 4215then : 4216 ac_cv_prog_cc_c89=$ac_arg 4217fi 4218rm -f core conftest.err conftest.$ac_objext conftest.beam 4219 test "x$ac_cv_prog_cc_c89" != "xno" && break 4220done 4221rm -f conftest.$ac_ext 4222CC=$ac_save_CC ;; 4223esac 4224fi 4225 4226if test "x$ac_cv_prog_cc_c89" = xno 4227then : 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4229printf "%s\n" "unsupported" >&6; } 4230else case e in #( 4231 e) if test "x$ac_cv_prog_cc_c89" = x 4232then : 4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4234printf "%s\n" "none needed" >&6; } 4235else case e in #( 4236 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4237printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4238 CC="$CC $ac_cv_prog_cc_c89" ;; 4239esac 4240fi 4241 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4242 ac_prog_cc_stdc=c89 ;; 4243esac 4244fi 4245fi 4246 4247ac_ext=c 4248ac_cpp='$CPP $CPPFLAGS' 4249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4251ac_compiler_gnu=$ac_cv_c_compiler_gnu 4252 4253 4254 ac_ext=c 4255ac_cpp='$CPP $CPPFLAGS' 4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4258ac_compiler_gnu=$ac_cv_c_compiler_gnu 4259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4260printf %s "checking whether $CC understands -c and -o together... " >&6; } 4261if test ${am_cv_prog_cc_c_o+y} 4262then : 4263 printf %s "(cached) " >&6 4264else case e in #( 4265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266/* end confdefs.h. */ 4267 4268int 4269main (void) 4270{ 4271 4272 ; 4273 return 0; 4274} 4275_ACEOF 4276 # Make sure it works both with $CC and with simple cc. 4277 # Following AC_PROG_CC_C_O, we do the test twice because some 4278 # compilers refuse to overwrite an existing .o file with -o, 4279 # though they will create one. 4280 am_cv_prog_cc_c_o=yes 4281 for am_i in 1 2; do 4282 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4283 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4284 ac_status=$? 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); } \ 4287 && test -f conftest2.$ac_objext; then 4288 : OK 4289 else 4290 am_cv_prog_cc_c_o=no 4291 break 4292 fi 4293 done 4294 rm -f core conftest* 4295 unset am_i ;; 4296esac 4297fi 4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4299printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4300if test "$am_cv_prog_cc_c_o" != yes; then 4301 # Losing compiler, so override with the script. 4302 # FIXME: It is wrong to rewrite CC. 4303 # But if we don't then we get into trouble of one sort or another. 4304 # A longer-term fix would be to have automake use am__CC in this case, 4305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4306 CC="$am_aux_dir/compile $CC" 4307fi 4308ac_ext=c 4309ac_cpp='$CPP $CPPFLAGS' 4310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4312ac_compiler_gnu=$ac_cv_c_compiler_gnu 4313 4314 4315depcc="$CC" am_compiler_list= 4316 4317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4318printf %s "checking dependency style of $depcc... " >&6; } 4319if test ${am_cv_CC_dependencies_compiler_type+y} 4320then : 4321 printf %s "(cached) " >&6 4322else case e in #( 4323 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4324 # We make a subdir and do the tests there. Otherwise we can end up 4325 # making bogus files that we don't know about and never remove. For 4326 # instance it was reported that on HP-UX the gcc test will end up 4327 # making a dummy file named 'D' -- because '-MD' means "put the output 4328 # in D". 4329 rm -rf conftest.dir 4330 mkdir conftest.dir 4331 # Copy depcomp to subdir because otherwise we won't find it if we're 4332 # using a relative directory. 4333 cp "$am_depcomp" conftest.dir 4334 cd conftest.dir 4335 # We will build objects and dependencies in a subdirectory because 4336 # it helps to detect inapplicable dependency modes. For instance 4337 # both Tru64's cc and ICC support -MD to output dependencies as a 4338 # side effect of compilation, but ICC will put the dependencies in 4339 # the current directory while Tru64 will put them in the object 4340 # directory. 4341 mkdir sub 4342 4343 am_cv_CC_dependencies_compiler_type=none 4344 if test "$am_compiler_list" = ""; then 4345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4346 fi 4347 am__universal=false 4348 case " $depcc " in #( 4349 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4350 esac 4351 4352 for depmode in $am_compiler_list; do 4353 # Setup a source with many dependencies, because some compilers 4354 # like to wrap large dependency lists on column 80 (with \), and 4355 # we should not choose a depcomp mode which is confused by this. 4356 # 4357 # We need to recreate these files for each test, as the compiler may 4358 # overwrite some of them when testing with obscure command lines. 4359 # This happens at least with the AIX C compiler. 4360 : > sub/conftest.c 4361 for i in 1 2 3 4 5 6; do 4362 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4363 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4364 # Solaris 10 /bin/sh. 4365 echo '/* dummy */' > sub/conftst$i.h 4366 done 4367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4368 4369 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4370 # mode. It turns out that the SunPro C++ compiler does not properly 4371 # handle '-M -o', and we need to detect this. Also, some Intel 4372 # versions had trouble with output in subdirs. 4373 am__obj=sub/conftest.${OBJEXT-o} 4374 am__minus_obj="-o $am__obj" 4375 case $depmode in 4376 gcc) 4377 # This depmode causes a compiler race in universal mode. 4378 test "$am__universal" = false || continue 4379 ;; 4380 nosideeffect) 4381 # After this tag, mechanisms are not by side-effect, so they'll 4382 # only be used when explicitly requested. 4383 if test "x$enable_dependency_tracking" = xyes; then 4384 continue 4385 else 4386 break 4387 fi 4388 ;; 4389 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4390 # This compiler won't grok '-c -o', but also, the minuso test has 4391 # not run yet. These depmodes are late enough in the game, and 4392 # so weak that their functioning should not be impacted. 4393 am__obj=conftest.${OBJEXT-o} 4394 am__minus_obj= 4395 ;; 4396 none) break ;; 4397 esac 4398 if depmode=$depmode \ 4399 source=sub/conftest.c object=$am__obj \ 4400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4401 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4402 >/dev/null 2>conftest.err && 4403 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4405 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4407 # icc doesn't choke on unknown options, it will just issue warnings 4408 # or remarks (even with -Werror). So we grep stderr for any message 4409 # that says an option was ignored or not supported. 4410 # When given -MP, icc 7.0 and 7.1 complain thusly: 4411 # icc: Command line warning: ignoring option '-M'; no argument required 4412 # The diagnosis changed in icc 8.0: 4413 # icc: Command line remark: option '-MP' not supported 4414 if (grep 'ignoring option' conftest.err || 4415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4416 am_cv_CC_dependencies_compiler_type=$depmode 4417 break 4418 fi 4419 fi 4420 done 4421 4422 cd .. 4423 rm -rf conftest.dir 4424else 4425 am_cv_CC_dependencies_compiler_type=none 4426fi 4427 ;; 4428esac 4429fi 4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4431printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4432CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4433 4434 if 4435 test "x$enable_dependency_tracking" != xno \ 4436 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4437 am__fastdepCC_TRUE= 4438 am__fastdepCC_FALSE='#' 4439else 4440 am__fastdepCC_TRUE='#' 4441 am__fastdepCC_FALSE= 4442fi 4443 4444 4445 4446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4447printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4448if test ${ac_cv_c_undeclared_builtin_options+y} 4449then : 4450 printf %s "(cached) " >&6 4451else case e in #( 4452 e) ac_save_CFLAGS=$CFLAGS 4453 ac_cv_c_undeclared_builtin_options='cannot detect' 4454 for ac_arg in '' -fno-builtin; do 4455 CFLAGS="$ac_save_CFLAGS $ac_arg" 4456 # This test program should *not* compile successfully. 4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4458/* end confdefs.h. */ 4459 4460int 4461main (void) 4462{ 4463(void) strchr; 4464 ; 4465 return 0; 4466} 4467_ACEOF 4468if ac_fn_c_try_compile "$LINENO" 4469then : 4470 4471else case e in #( 4472 e) # This test program should compile successfully. 4473 # No library function is consistently available on 4474 # freestanding implementations, so test against a dummy 4475 # declaration. Include always-available headers on the 4476 # off chance that they somehow elicit warnings. 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479#include <float.h> 4480#include <limits.h> 4481#include <stdarg.h> 4482#include <stddef.h> 4483extern void ac_decl (int, char *); 4484 4485int 4486main (void) 4487{ 4488(void) ac_decl (0, (char *) 0); 4489 (void) ac_decl; 4490 4491 ; 4492 return 0; 4493} 4494_ACEOF 4495if ac_fn_c_try_compile "$LINENO" 4496then : 4497 if test x"$ac_arg" = x 4498then : 4499 ac_cv_c_undeclared_builtin_options='none needed' 4500else case e in #( 4501 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4502esac 4503fi 4504 break 4505fi 4506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4507esac 4508fi 4509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4510 done 4511 CFLAGS=$ac_save_CFLAGS 4512 ;; 4513esac 4514fi 4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4516printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4517 case $ac_cv_c_undeclared_builtin_options in #( 4518 'cannot detect') : 4519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4520printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4521as_fn_error $? "cannot make $CC report undeclared builtins 4522See 'config.log' for more details" "$LINENO" 5; } ;; #( 4523 'none needed') : 4524 ac_c_undeclared_builtin_options='' ;; #( 4525 *) : 4526 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4527esac 4528 4529ac_header= ac_cache= 4530for ac_item in $ac_header_c_list 4531do 4532 if test $ac_cache; then 4533 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4534 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4535 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4536 fi 4537 ac_header= ac_cache= 4538 elif test $ac_header; then 4539 ac_cache=$ac_item 4540 else 4541 ac_header=$ac_item 4542 fi 4543done 4544 4545 4546 4547 4548 4549 4550 4551 4552if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4553then : 4554 4555printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4556 4557fi 4558 4559 4560 4561 4562ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4563if test "x$ac_cv_have_decl___clang__" = xyes 4564then : 4565 CLANGCC="yes" 4566else case e in #( 4567 e) CLANGCC="no" ;; 4568esac 4569fi 4570ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4571if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4572then : 4573 INTELCC="yes" 4574else case e in #( 4575 e) INTELCC="no" ;; 4576esac 4577fi 4578ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4579if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4580then : 4581 SUNCC="yes" 4582else case e in #( 4583 e) SUNCC="no" ;; 4584esac 4585fi 4586 4587 4588 4589 4590 4591 4592 4593 4594if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4595 if test -n "$ac_tool_prefix"; then 4596 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4597set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4599printf %s "checking for $ac_word... " >&6; } 4600if test ${ac_cv_path_PKG_CONFIG+y} 4601then : 4602 printf %s "(cached) " >&6 4603else case e in #( 4604 e) case $PKG_CONFIG in 4605 [\\/]* | ?:[\\/]*) 4606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4607 ;; 4608 *) 4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610for as_dir in $PATH 4611do 4612 IFS=$as_save_IFS 4613 case $as_dir in #((( 4614 '') as_dir=./ ;; 4615 */) ;; 4616 *) as_dir=$as_dir/ ;; 4617 esac 4618 for ac_exec_ext in '' $ac_executable_extensions; do 4619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4620 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4622 break 2 4623 fi 4624done 4625 done 4626IFS=$as_save_IFS 4627 4628 ;; 4629esac ;; 4630esac 4631fi 4632PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4633if test -n "$PKG_CONFIG"; then 4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4635printf "%s\n" "$PKG_CONFIG" >&6; } 4636else 4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4638printf "%s\n" "no" >&6; } 4639fi 4640 4641 4642fi 4643if test -z "$ac_cv_path_PKG_CONFIG"; then 4644 ac_pt_PKG_CONFIG=$PKG_CONFIG 4645 # Extract the first word of "pkg-config", so it can be a program name with args. 4646set dummy pkg-config; ac_word=$2 4647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4648printf %s "checking for $ac_word... " >&6; } 4649if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4650then : 4651 printf %s "(cached) " >&6 4652else case e in #( 4653 e) case $ac_pt_PKG_CONFIG in 4654 [\\/]* | ?:[\\/]*) 4655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4656 ;; 4657 *) 4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4659for as_dir in $PATH 4660do 4661 IFS=$as_save_IFS 4662 case $as_dir in #((( 4663 '') as_dir=./ ;; 4664 */) ;; 4665 *) as_dir=$as_dir/ ;; 4666 esac 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4669 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4671 break 2 4672 fi 4673done 4674 done 4675IFS=$as_save_IFS 4676 4677 ;; 4678esac ;; 4679esac 4680fi 4681ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4682if test -n "$ac_pt_PKG_CONFIG"; then 4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4684printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4685else 4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4687printf "%s\n" "no" >&6; } 4688fi 4689 4690 if test "x$ac_pt_PKG_CONFIG" = x; then 4691 PKG_CONFIG="" 4692 else 4693 case $cross_compiling:$ac_tool_warned in 4694yes:) 4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4696printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4697ac_tool_warned=yes ;; 4698esac 4699 PKG_CONFIG=$ac_pt_PKG_CONFIG 4700 fi 4701else 4702 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4703fi 4704 4705fi 4706if test -n "$PKG_CONFIG"; then 4707 _pkg_min_version=0.9.0 4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4709printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4710 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4712printf "%s\n" "yes" >&6; } 4713 else 4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4715printf "%s\n" "no" >&6; } 4716 PKG_CONFIG="" 4717 fi 4718fi 4719 4720 4721 # Make sure we can run config.sub. 4722$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4723 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4724 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4726printf %s "checking build system type... " >&6; } 4727if test ${ac_cv_build+y} 4728then : 4729 printf %s "(cached) " >&6 4730else case e in #( 4731 e) ac_build_alias=$build_alias 4732test "x$ac_build_alias" = x && 4733 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4734test "x$ac_build_alias" = x && 4735 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4736ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4737 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4738 ;; 4739esac 4740fi 4741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4742printf "%s\n" "$ac_cv_build" >&6; } 4743case $ac_cv_build in 4744*-*-*) ;; 4745*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4746esac 4747build=$ac_cv_build 4748ac_save_IFS=$IFS; IFS='-' 4749set x $ac_cv_build 4750shift 4751build_cpu=$1 4752build_vendor=$2 4753shift; shift 4754# Remember, the first character of IFS is used to create $*, 4755# except with old shells: 4756build_os=$* 4757IFS=$ac_save_IFS 4758case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4759 4760 4761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4762printf %s "checking host system type... " >&6; } 4763if test ${ac_cv_host+y} 4764then : 4765 printf %s "(cached) " >&6 4766else case e in #( 4767 e) if test "x$host_alias" = x; then 4768 ac_cv_host=$ac_cv_build 4769else 4770 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4771 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4772fi 4773 ;; 4774esac 4775fi 4776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4777printf "%s\n" "$ac_cv_host" >&6; } 4778case $ac_cv_host in 4779*-*-*) ;; 4780*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4781esac 4782host=$ac_cv_host 4783ac_save_IFS=$IFS; IFS='-' 4784set x $ac_cv_host 4785shift 4786host_cpu=$1 4787host_vendor=$2 4788shift; shift 4789# Remember, the first character of IFS is used to create $*, 4790# except with old shells: 4791host_os=$* 4792IFS=$ac_save_IFS 4793case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4794 4795 4796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4797printf %s "checking for a sed that does not truncate output... " >&6; } 4798if test ${ac_cv_path_SED+y} 4799then : 4800 printf %s "(cached) " >&6 4801else case e in #( 4802 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4803 for ac_i in 1 2 3 4 5 6 7; do 4804 ac_script="$ac_script$as_nl$ac_script" 4805 done 4806 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4807 { ac_script=; unset ac_script;} 4808 if test -z "$SED"; then 4809 ac_path_SED_found=false 4810 # Loop through the user's path and test for each of PROGNAME-LIST 4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4812for as_dir in $PATH 4813do 4814 IFS=$as_save_IFS 4815 case $as_dir in #((( 4816 '') as_dir=./ ;; 4817 */) ;; 4818 *) as_dir=$as_dir/ ;; 4819 esac 4820 for ac_prog in sed gsed 4821 do 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4824 as_fn_executable_p "$ac_path_SED" || continue 4825# Check for GNU ac_path_SED and select it if it is found. 4826 # Check for GNU $ac_path_SED 4827case `"$ac_path_SED" --version 2>&1` in #( 4828*GNU*) 4829 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4830#( 4831*) 4832 ac_count=0 4833 printf %s 0123456789 >"conftest.in" 4834 while : 4835 do 4836 cat "conftest.in" "conftest.in" >"conftest.tmp" 4837 mv "conftest.tmp" "conftest.in" 4838 cp "conftest.in" "conftest.nl" 4839 printf "%s\n" '' >> "conftest.nl" 4840 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4842 as_fn_arith $ac_count + 1 && ac_count=$as_val 4843 if test $ac_count -gt ${ac_path_SED_max-0}; then 4844 # Best one so far, save it but keep looking for a better one 4845 ac_cv_path_SED="$ac_path_SED" 4846 ac_path_SED_max=$ac_count 4847 fi 4848 # 10*(2^10) chars as input seems more than enough 4849 test $ac_count -gt 10 && break 4850 done 4851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4852esac 4853 4854 $ac_path_SED_found && break 3 4855 done 4856 done 4857 done 4858IFS=$as_save_IFS 4859 if test -z "$ac_cv_path_SED"; then 4860 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4861 fi 4862else 4863 ac_cv_path_SED=$SED 4864fi 4865 ;; 4866esac 4867fi 4868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4869printf "%s\n" "$ac_cv_path_SED" >&6; } 4870 SED="$ac_cv_path_SED" 4871 rm -f conftest.sed 4872 4873 4874 4875 4876 4877 4878# Check whether --enable-selective-werror was given. 4879if test ${enable_selective_werror+y} 4880then : 4881 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4882else case e in #( 4883 e) SELECTIVE_WERROR=yes ;; 4884esac 4885fi 4886 4887 4888 4889 4890 4891# -v is too short to test reliably with XORG_TESTSET_CFLAG 4892if test "x$SUNCC" = "xyes"; then 4893 BASE_CFLAGS="-v" 4894else 4895 BASE_CFLAGS="" 4896fi 4897 4898# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912xorg_testset_save_CFLAGS="$CFLAGS" 4913 4914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4917printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4918if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4919then : 4920 printf %s "(cached) " >&6 4921else case e in #( 4922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923/* end confdefs.h. */ 4924int i; 4925_ACEOF 4926if ac_fn_c_try_compile "$LINENO" 4927then : 4928 xorg_cv_cc_flag_unknown_warning_option=yes 4929else case e in #( 4930 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4931esac 4932fi 4933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4934esac 4935fi 4936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4937printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4939 CFLAGS="$xorg_testset_save_CFLAGS" 4940fi 4941 4942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4945 fi 4946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4948printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4949if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4950then : 4951 printf %s "(cached) " >&6 4952else case e in #( 4953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4954/* end confdefs.h. */ 4955int i; 4956_ACEOF 4957if ac_fn_c_try_compile "$LINENO" 4958then : 4959 xorg_cv_cc_flag_unused_command_line_argument=yes 4960else case e in #( 4961 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4962esac 4963fi 4964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4965esac 4966fi 4967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4970 CFLAGS="$xorg_testset_save_CFLAGS" 4971fi 4972 4973found="no" 4974 4975 if test $found = "no" ; then 4976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4978 fi 4979 4980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4982 fi 4983 4984 CFLAGS="$CFLAGS -Wall" 4985 4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4987printf %s "checking if $CC supports -Wall... " >&6; } 4988 cacheid=xorg_cv_cc_flag__Wall 4989 if eval test \${$cacheid+y} 4990then : 4991 printf %s "(cached) " >&6 4992else case e in #( 4993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995int i; 4996int 4997main (void) 4998{ 4999 5000 ; 5001 return 0; 5002} 5003_ACEOF 5004if ac_fn_c_try_link "$LINENO" 5005then : 5006 eval $cacheid=yes 5007else case e in #( 5008 e) eval $cacheid=no ;; 5009esac 5010fi 5011rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5012 conftest$ac_exeext conftest.$ac_ext ;; 5013esac 5014fi 5015 5016 5017 CFLAGS="$xorg_testset_save_CFLAGS" 5018 5019 eval supported=\$$cacheid 5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5021printf "%s\n" "$supported" >&6; } 5022 if test "$supported" = "yes" ; then 5023 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5024 found="yes" 5025 fi 5026 fi 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042xorg_testset_save_CFLAGS="$CFLAGS" 5043 5044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5048if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5049then : 5050 printf %s "(cached) " >&6 5051else case e in #( 5052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053/* end confdefs.h. */ 5054int i; 5055_ACEOF 5056if ac_fn_c_try_compile "$LINENO" 5057then : 5058 xorg_cv_cc_flag_unknown_warning_option=yes 5059else case e in #( 5060 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5061esac 5062fi 5063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5064esac 5065fi 5066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5069 CFLAGS="$xorg_testset_save_CFLAGS" 5070fi 5071 5072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5075 fi 5076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5079if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5080then : 5081 printf %s "(cached) " >&6 5082else case e in #( 5083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5084/* end confdefs.h. */ 5085int i; 5086_ACEOF 5087if ac_fn_c_try_compile "$LINENO" 5088then : 5089 xorg_cv_cc_flag_unused_command_line_argument=yes 5090else case e in #( 5091 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5092esac 5093fi 5094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5095esac 5096fi 5097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5098printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5100 CFLAGS="$xorg_testset_save_CFLAGS" 5101fi 5102 5103found="no" 5104 5105 if test $found = "no" ; then 5106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5108 fi 5109 5110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5112 fi 5113 5114 CFLAGS="$CFLAGS -Wpointer-arith" 5115 5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5117printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5118 cacheid=xorg_cv_cc_flag__Wpointer_arith 5119 if eval test \${$cacheid+y} 5120then : 5121 printf %s "(cached) " >&6 5122else case e in #( 5123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5124/* end confdefs.h. */ 5125int i; 5126int 5127main (void) 5128{ 5129 5130 ; 5131 return 0; 5132} 5133_ACEOF 5134if ac_fn_c_try_link "$LINENO" 5135then : 5136 eval $cacheid=yes 5137else case e in #( 5138 e) eval $cacheid=no ;; 5139esac 5140fi 5141rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5142 conftest$ac_exeext conftest.$ac_ext ;; 5143esac 5144fi 5145 5146 5147 CFLAGS="$xorg_testset_save_CFLAGS" 5148 5149 eval supported=\$$cacheid 5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5151printf "%s\n" "$supported" >&6; } 5152 if test "$supported" = "yes" ; then 5153 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5154 found="yes" 5155 fi 5156 fi 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172xorg_testset_save_CFLAGS="$CFLAGS" 5173 5174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5178if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5179then : 5180 printf %s "(cached) " >&6 5181else case e in #( 5182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185_ACEOF 5186if ac_fn_c_try_compile "$LINENO" 5187then : 5188 xorg_cv_cc_flag_unknown_warning_option=yes 5189else case e in #( 5190 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5191esac 5192fi 5193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5194esac 5195fi 5196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5197printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5199 CFLAGS="$xorg_testset_save_CFLAGS" 5200fi 5201 5202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5205 fi 5206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5208printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5209if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 5216_ACEOF 5217if ac_fn_c_try_compile "$LINENO" 5218then : 5219 xorg_cv_cc_flag_unused_command_line_argument=yes 5220else case e in #( 5221 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5222esac 5223fi 5224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5225esac 5226fi 5227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5230 CFLAGS="$xorg_testset_save_CFLAGS" 5231fi 5232 5233found="no" 5234 5235 if test $found = "no" ; then 5236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5238 fi 5239 5240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5242 fi 5243 5244 CFLAGS="$CFLAGS -Wmissing-declarations" 5245 5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5247printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5248 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5249 if eval test \${$cacheid+y} 5250then : 5251 printf %s "(cached) " >&6 5252else case e in #( 5253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5254/* end confdefs.h. */ 5255int i; 5256int 5257main (void) 5258{ 5259 5260 ; 5261 return 0; 5262} 5263_ACEOF 5264if ac_fn_c_try_link "$LINENO" 5265then : 5266 eval $cacheid=yes 5267else case e in #( 5268 e) eval $cacheid=no ;; 5269esac 5270fi 5271rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5272 conftest$ac_exeext conftest.$ac_ext ;; 5273esac 5274fi 5275 5276 5277 CFLAGS="$xorg_testset_save_CFLAGS" 5278 5279 eval supported=\$$cacheid 5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5281printf "%s\n" "$supported" >&6; } 5282 if test "$supported" = "yes" ; then 5283 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5284 found="yes" 5285 fi 5286 fi 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302xorg_testset_save_CFLAGS="$CFLAGS" 5303 5304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5307printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5308if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5309then : 5310 printf %s "(cached) " >&6 5311else case e in #( 5312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5313/* end confdefs.h. */ 5314int i; 5315_ACEOF 5316if ac_fn_c_try_compile "$LINENO" 5317then : 5318 xorg_cv_cc_flag_unknown_warning_option=yes 5319else case e in #( 5320 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5321esac 5322fi 5323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5324esac 5325fi 5326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5329 CFLAGS="$xorg_testset_save_CFLAGS" 5330fi 5331 5332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5335 fi 5336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5339if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 5346_ACEOF 5347if ac_fn_c_try_compile "$LINENO" 5348then : 5349 xorg_cv_cc_flag_unused_command_line_argument=yes 5350else case e in #( 5351 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5352esac 5353fi 5354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5355esac 5356fi 5357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5358printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5360 CFLAGS="$xorg_testset_save_CFLAGS" 5361fi 5362 5363found="no" 5364 5365 if test $found = "no" ; then 5366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5368 fi 5369 5370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5372 fi 5373 5374 CFLAGS="$CFLAGS -Wformat=2" 5375 5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5377printf %s "checking if $CC supports -Wformat=2... " >&6; } 5378 cacheid=xorg_cv_cc_flag__Wformat_2 5379 if eval test \${$cacheid+y} 5380then : 5381 printf %s "(cached) " >&6 5382else case e in #( 5383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5384/* end confdefs.h. */ 5385int i; 5386int 5387main (void) 5388{ 5389 5390 ; 5391 return 0; 5392} 5393_ACEOF 5394if ac_fn_c_try_link "$LINENO" 5395then : 5396 eval $cacheid=yes 5397else case e in #( 5398 e) eval $cacheid=no ;; 5399esac 5400fi 5401rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5402 conftest$ac_exeext conftest.$ac_ext ;; 5403esac 5404fi 5405 5406 5407 CFLAGS="$xorg_testset_save_CFLAGS" 5408 5409 eval supported=\$$cacheid 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5411printf "%s\n" "$supported" >&6; } 5412 if test "$supported" = "yes" ; then 5413 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5414 found="yes" 5415 fi 5416 fi 5417 5418 if test $found = "no" ; then 5419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5421 fi 5422 5423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5425 fi 5426 5427 CFLAGS="$CFLAGS -Wformat" 5428 5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5430printf %s "checking if $CC supports -Wformat... " >&6; } 5431 cacheid=xorg_cv_cc_flag__Wformat 5432 if eval test \${$cacheid+y} 5433then : 5434 printf %s "(cached) " >&6 5435else case e in #( 5436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437/* end confdefs.h. */ 5438int i; 5439int 5440main (void) 5441{ 5442 5443 ; 5444 return 0; 5445} 5446_ACEOF 5447if ac_fn_c_try_link "$LINENO" 5448then : 5449 eval $cacheid=yes 5450else case e in #( 5451 e) eval $cacheid=no ;; 5452esac 5453fi 5454rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5455 conftest$ac_exeext conftest.$ac_ext ;; 5456esac 5457fi 5458 5459 5460 CFLAGS="$xorg_testset_save_CFLAGS" 5461 5462 eval supported=\$$cacheid 5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5464printf "%s\n" "$supported" >&6; } 5465 if test "$supported" = "yes" ; then 5466 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5467 found="yes" 5468 fi 5469 fi 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487xorg_testset_save_CFLAGS="$CFLAGS" 5488 5489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5492printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5493if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5494then : 5495 printf %s "(cached) " >&6 5496else case e in #( 5497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5498/* end confdefs.h. */ 5499int i; 5500_ACEOF 5501if ac_fn_c_try_compile "$LINENO" 5502then : 5503 xorg_cv_cc_flag_unknown_warning_option=yes 5504else case e in #( 5505 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5506esac 5507fi 5508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5509esac 5510fi 5511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5514 CFLAGS="$xorg_testset_save_CFLAGS" 5515fi 5516 5517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5520 fi 5521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5524if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5525then : 5526 printf %s "(cached) " >&6 5527else case e in #( 5528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5529/* end confdefs.h. */ 5530int i; 5531_ACEOF 5532if ac_fn_c_try_compile "$LINENO" 5533then : 5534 xorg_cv_cc_flag_unused_command_line_argument=yes 5535else case e in #( 5536 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5537esac 5538fi 5539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5540esac 5541fi 5542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5543printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5545 CFLAGS="$xorg_testset_save_CFLAGS" 5546fi 5547 5548found="no" 5549 5550 if test $found = "no" ; then 5551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5553 fi 5554 5555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5557 fi 5558 5559 CFLAGS="$CFLAGS -Wstrict-prototypes" 5560 5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5562printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5563 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5564 if eval test \${$cacheid+y} 5565then : 5566 printf %s "(cached) " >&6 5567else case e in #( 5568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569/* end confdefs.h. */ 5570int i; 5571int 5572main (void) 5573{ 5574 5575 ; 5576 return 0; 5577} 5578_ACEOF 5579if ac_fn_c_try_link "$LINENO" 5580then : 5581 eval $cacheid=yes 5582else case e in #( 5583 e) eval $cacheid=no ;; 5584esac 5585fi 5586rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5587 conftest$ac_exeext conftest.$ac_ext ;; 5588esac 5589fi 5590 5591 5592 CFLAGS="$xorg_testset_save_CFLAGS" 5593 5594 eval supported=\$$cacheid 5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5596printf "%s\n" "$supported" >&6; } 5597 if test "$supported" = "yes" ; then 5598 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5599 found="yes" 5600 fi 5601 fi 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617xorg_testset_save_CFLAGS="$CFLAGS" 5618 5619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5622printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5623if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5624then : 5625 printf %s "(cached) " >&6 5626else case e in #( 5627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5628/* end confdefs.h. */ 5629int i; 5630_ACEOF 5631if ac_fn_c_try_compile "$LINENO" 5632then : 5633 xorg_cv_cc_flag_unknown_warning_option=yes 5634else case e in #( 5635 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5636esac 5637fi 5638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5639esac 5640fi 5641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5642printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5644 CFLAGS="$xorg_testset_save_CFLAGS" 5645fi 5646 5647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5650 fi 5651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5653printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5654if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5655then : 5656 printf %s "(cached) " >&6 5657else case e in #( 5658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5659/* end confdefs.h. */ 5660int i; 5661_ACEOF 5662if ac_fn_c_try_compile "$LINENO" 5663then : 5664 xorg_cv_cc_flag_unused_command_line_argument=yes 5665else case e in #( 5666 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5667esac 5668fi 5669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5670esac 5671fi 5672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5675 CFLAGS="$xorg_testset_save_CFLAGS" 5676fi 5677 5678found="no" 5679 5680 if test $found = "no" ; then 5681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5683 fi 5684 5685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5687 fi 5688 5689 CFLAGS="$CFLAGS -Wmissing-prototypes" 5690 5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5692printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5693 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5694 if eval test \${$cacheid+y} 5695then : 5696 printf %s "(cached) " >&6 5697else case e in #( 5698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699/* end confdefs.h. */ 5700int i; 5701int 5702main (void) 5703{ 5704 5705 ; 5706 return 0; 5707} 5708_ACEOF 5709if ac_fn_c_try_link "$LINENO" 5710then : 5711 eval $cacheid=yes 5712else case e in #( 5713 e) eval $cacheid=no ;; 5714esac 5715fi 5716rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5717 conftest$ac_exeext conftest.$ac_ext ;; 5718esac 5719fi 5720 5721 5722 CFLAGS="$xorg_testset_save_CFLAGS" 5723 5724 eval supported=\$$cacheid 5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5726printf "%s\n" "$supported" >&6; } 5727 if test "$supported" = "yes" ; then 5728 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5729 found="yes" 5730 fi 5731 fi 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747xorg_testset_save_CFLAGS="$CFLAGS" 5748 5749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5753if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5754then : 5755 printf %s "(cached) " >&6 5756else case e in #( 5757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5758/* end confdefs.h. */ 5759int i; 5760_ACEOF 5761if ac_fn_c_try_compile "$LINENO" 5762then : 5763 xorg_cv_cc_flag_unknown_warning_option=yes 5764else case e in #( 5765 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5766esac 5767fi 5768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5769esac 5770fi 5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5774 CFLAGS="$xorg_testset_save_CFLAGS" 5775fi 5776 5777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5780 fi 5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5784if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 5791_ACEOF 5792if ac_fn_c_try_compile "$LINENO" 5793then : 5794 xorg_cv_cc_flag_unused_command_line_argument=yes 5795else case e in #( 5796 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5797esac 5798fi 5799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5800esac 5801fi 5802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5803printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5805 CFLAGS="$xorg_testset_save_CFLAGS" 5806fi 5807 5808found="no" 5809 5810 if test $found = "no" ; then 5811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5813 fi 5814 5815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5817 fi 5818 5819 CFLAGS="$CFLAGS -Wnested-externs" 5820 5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5822printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5823 cacheid=xorg_cv_cc_flag__Wnested_externs 5824 if eval test \${$cacheid+y} 5825then : 5826 printf %s "(cached) " >&6 5827else case e in #( 5828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5829/* end confdefs.h. */ 5830int i; 5831int 5832main (void) 5833{ 5834 5835 ; 5836 return 0; 5837} 5838_ACEOF 5839if ac_fn_c_try_link "$LINENO" 5840then : 5841 eval $cacheid=yes 5842else case e in #( 5843 e) eval $cacheid=no ;; 5844esac 5845fi 5846rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5847 conftest$ac_exeext conftest.$ac_ext ;; 5848esac 5849fi 5850 5851 5852 CFLAGS="$xorg_testset_save_CFLAGS" 5853 5854 eval supported=\$$cacheid 5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5856printf "%s\n" "$supported" >&6; } 5857 if test "$supported" = "yes" ; then 5858 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5859 found="yes" 5860 fi 5861 fi 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877xorg_testset_save_CFLAGS="$CFLAGS" 5878 5879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5883if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5884then : 5885 printf %s "(cached) " >&6 5886else case e in #( 5887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5888/* end confdefs.h. */ 5889int i; 5890_ACEOF 5891if ac_fn_c_try_compile "$LINENO" 5892then : 5893 xorg_cv_cc_flag_unknown_warning_option=yes 5894else case e in #( 5895 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5896esac 5897fi 5898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5899esac 5900fi 5901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5902printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5904 CFLAGS="$xorg_testset_save_CFLAGS" 5905fi 5906 5907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5910 fi 5911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5913printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5914if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 5921_ACEOF 5922if ac_fn_c_try_compile "$LINENO" 5923then : 5924 xorg_cv_cc_flag_unused_command_line_argument=yes 5925else case e in #( 5926 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5927esac 5928fi 5929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5930esac 5931fi 5932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5935 CFLAGS="$xorg_testset_save_CFLAGS" 5936fi 5937 5938found="no" 5939 5940 if test $found = "no" ; then 5941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5943 fi 5944 5945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5947 fi 5948 5949 CFLAGS="$CFLAGS -Wbad-function-cast" 5950 5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5952printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5953 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5954 if eval test \${$cacheid+y} 5955then : 5956 printf %s "(cached) " >&6 5957else case e in #( 5958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959/* end confdefs.h. */ 5960int i; 5961int 5962main (void) 5963{ 5964 5965 ; 5966 return 0; 5967} 5968_ACEOF 5969if ac_fn_c_try_link "$LINENO" 5970then : 5971 eval $cacheid=yes 5972else case e in #( 5973 e) eval $cacheid=no ;; 5974esac 5975fi 5976rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5977 conftest$ac_exeext conftest.$ac_ext ;; 5978esac 5979fi 5980 5981 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983 5984 eval supported=\$$cacheid 5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5986printf "%s\n" "$supported" >&6; } 5987 if test "$supported" = "yes" ; then 5988 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5989 found="yes" 5990 fi 5991 fi 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007xorg_testset_save_CFLAGS="$CFLAGS" 6008 6009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6012printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6013if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6014then : 6015 printf %s "(cached) " >&6 6016else case e in #( 6017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019int i; 6020_ACEOF 6021if ac_fn_c_try_compile "$LINENO" 6022then : 6023 xorg_cv_cc_flag_unknown_warning_option=yes 6024else case e in #( 6025 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6026esac 6027fi 6028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6029esac 6030fi 6031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6034 CFLAGS="$xorg_testset_save_CFLAGS" 6035fi 6036 6037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6040 fi 6041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6044if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 6051_ACEOF 6052if ac_fn_c_try_compile "$LINENO" 6053then : 6054 xorg_cv_cc_flag_unused_command_line_argument=yes 6055else case e in #( 6056 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6057esac 6058fi 6059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6060esac 6061fi 6062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6065 CFLAGS="$xorg_testset_save_CFLAGS" 6066fi 6067 6068found="no" 6069 6070 if test $found = "no" ; then 6071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6073 fi 6074 6075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6077 fi 6078 6079 CFLAGS="$CFLAGS -Wold-style-definition" 6080 6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6082printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6083 cacheid=xorg_cv_cc_flag__Wold_style_definition 6084 if eval test \${$cacheid+y} 6085then : 6086 printf %s "(cached) " >&6 6087else case e in #( 6088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089/* end confdefs.h. */ 6090int i; 6091int 6092main (void) 6093{ 6094 6095 ; 6096 return 0; 6097} 6098_ACEOF 6099if ac_fn_c_try_link "$LINENO" 6100then : 6101 eval $cacheid=yes 6102else case e in #( 6103 e) eval $cacheid=no ;; 6104esac 6105fi 6106rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6107 conftest$ac_exeext conftest.$ac_ext ;; 6108esac 6109fi 6110 6111 6112 CFLAGS="$xorg_testset_save_CFLAGS" 6113 6114 eval supported=\$$cacheid 6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6116printf "%s\n" "$supported" >&6; } 6117 if test "$supported" = "yes" ; then 6118 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6119 found="yes" 6120 fi 6121 fi 6122 6123 if test $found = "no" ; then 6124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6126 fi 6127 6128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6130 fi 6131 6132 CFLAGS="$CFLAGS -fd" 6133 6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6135printf %s "checking if $CC supports -fd... " >&6; } 6136 cacheid=xorg_cv_cc_flag__fd 6137 if eval test \${$cacheid+y} 6138then : 6139 printf %s "(cached) " >&6 6140else case e in #( 6141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6142/* end confdefs.h. */ 6143int i; 6144int 6145main (void) 6146{ 6147 6148 ; 6149 return 0; 6150} 6151_ACEOF 6152if ac_fn_c_try_link "$LINENO" 6153then : 6154 eval $cacheid=yes 6155else case e in #( 6156 e) eval $cacheid=no ;; 6157esac 6158fi 6159rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6160 conftest$ac_exeext conftest.$ac_ext ;; 6161esac 6162fi 6163 6164 6165 CFLAGS="$xorg_testset_save_CFLAGS" 6166 6167 eval supported=\$$cacheid 6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6169printf "%s\n" "$supported" >&6; } 6170 if test "$supported" = "yes" ; then 6171 BASE_CFLAGS="$BASE_CFLAGS -fd" 6172 found="yes" 6173 fi 6174 fi 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190xorg_testset_save_CFLAGS="$CFLAGS" 6191 6192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6195printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6196if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6197then : 6198 printf %s "(cached) " >&6 6199else case e in #( 6200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201/* end confdefs.h. */ 6202int i; 6203_ACEOF 6204if ac_fn_c_try_compile "$LINENO" 6205then : 6206 xorg_cv_cc_flag_unknown_warning_option=yes 6207else case e in #( 6208 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6209esac 6210fi 6211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6212esac 6213fi 6214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6217 CFLAGS="$xorg_testset_save_CFLAGS" 6218fi 6219 6220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6223 fi 6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6227if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6228then : 6229 printf %s "(cached) " >&6 6230else case e in #( 6231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6232/* end confdefs.h. */ 6233int i; 6234_ACEOF 6235if ac_fn_c_try_compile "$LINENO" 6236then : 6237 xorg_cv_cc_flag_unused_command_line_argument=yes 6238else case e in #( 6239 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6240esac 6241fi 6242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6243esac 6244fi 6245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6248 CFLAGS="$xorg_testset_save_CFLAGS" 6249fi 6250 6251found="no" 6252 6253 if test $found = "no" ; then 6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6256 fi 6257 6258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6260 fi 6261 6262 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6263 6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6265printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6266 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6267 if eval test \${$cacheid+y} 6268then : 6269 printf %s "(cached) " >&6 6270else case e in #( 6271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272/* end confdefs.h. */ 6273int i; 6274int 6275main (void) 6276{ 6277 6278 ; 6279 return 0; 6280} 6281_ACEOF 6282if ac_fn_c_try_link "$LINENO" 6283then : 6284 eval $cacheid=yes 6285else case e in #( 6286 e) eval $cacheid=no ;; 6287esac 6288fi 6289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6290 conftest$ac_exeext conftest.$ac_ext ;; 6291esac 6292fi 6293 6294 6295 CFLAGS="$xorg_testset_save_CFLAGS" 6296 6297 eval supported=\$$cacheid 6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6299printf "%s\n" "$supported" >&6; } 6300 if test "$supported" = "yes" ; then 6301 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6302 found="yes" 6303 fi 6304 fi 6305 6306 6307 6308 6309 6310# This chunk adds additional warnings that could catch undesired effects. 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324xorg_testset_save_CFLAGS="$CFLAGS" 6325 6326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6330if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6331then : 6332 printf %s "(cached) " >&6 6333else case e in #( 6334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6335/* end confdefs.h. */ 6336int i; 6337_ACEOF 6338if ac_fn_c_try_compile "$LINENO" 6339then : 6340 xorg_cv_cc_flag_unknown_warning_option=yes 6341else case e in #( 6342 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6343esac 6344fi 6345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6346esac 6347fi 6348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6351 CFLAGS="$xorg_testset_save_CFLAGS" 6352fi 6353 6354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6357 fi 6358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6361if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6362then : 6363 printf %s "(cached) " >&6 6364else case e in #( 6365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366/* end confdefs.h. */ 6367int i; 6368_ACEOF 6369if ac_fn_c_try_compile "$LINENO" 6370then : 6371 xorg_cv_cc_flag_unused_command_line_argument=yes 6372else case e in #( 6373 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6374esac 6375fi 6376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6377esac 6378fi 6379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6380printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6382 CFLAGS="$xorg_testset_save_CFLAGS" 6383fi 6384 6385found="no" 6386 6387 if test $found = "no" ; then 6388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6390 fi 6391 6392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6394 fi 6395 6396 CFLAGS="$CFLAGS -Wunused" 6397 6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6399printf %s "checking if $CC supports -Wunused... " >&6; } 6400 cacheid=xorg_cv_cc_flag__Wunused 6401 if eval test \${$cacheid+y} 6402then : 6403 printf %s "(cached) " >&6 6404else case e in #( 6405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6406/* end confdefs.h. */ 6407int i; 6408int 6409main (void) 6410{ 6411 6412 ; 6413 return 0; 6414} 6415_ACEOF 6416if ac_fn_c_try_link "$LINENO" 6417then : 6418 eval $cacheid=yes 6419else case e in #( 6420 e) eval $cacheid=no ;; 6421esac 6422fi 6423rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6424 conftest$ac_exeext conftest.$ac_ext ;; 6425esac 6426fi 6427 6428 6429 CFLAGS="$xorg_testset_save_CFLAGS" 6430 6431 eval supported=\$$cacheid 6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6433printf "%s\n" "$supported" >&6; } 6434 if test "$supported" = "yes" ; then 6435 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6436 found="yes" 6437 fi 6438 fi 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454xorg_testset_save_CFLAGS="$CFLAGS" 6455 6456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6459printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6460if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6461then : 6462 printf %s "(cached) " >&6 6463else case e in #( 6464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466int i; 6467_ACEOF 6468if ac_fn_c_try_compile "$LINENO" 6469then : 6470 xorg_cv_cc_flag_unknown_warning_option=yes 6471else case e in #( 6472 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6473esac 6474fi 6475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6476esac 6477fi 6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6481 CFLAGS="$xorg_testset_save_CFLAGS" 6482fi 6483 6484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6487 fi 6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6491if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6492then : 6493 printf %s "(cached) " >&6 6494else case e in #( 6495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6496/* end confdefs.h. */ 6497int i; 6498_ACEOF 6499if ac_fn_c_try_compile "$LINENO" 6500then : 6501 xorg_cv_cc_flag_unused_command_line_argument=yes 6502else case e in #( 6503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6504esac 6505fi 6506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6507esac 6508fi 6509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6512 CFLAGS="$xorg_testset_save_CFLAGS" 6513fi 6514 6515found="no" 6516 6517 if test $found = "no" ; then 6518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6520 fi 6521 6522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6524 fi 6525 6526 CFLAGS="$CFLAGS -Wuninitialized" 6527 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6529printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6530 cacheid=xorg_cv_cc_flag__Wuninitialized 6531 if eval test \${$cacheid+y} 6532then : 6533 printf %s "(cached) " >&6 6534else case e in #( 6535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6536/* end confdefs.h. */ 6537int i; 6538int 6539main (void) 6540{ 6541 6542 ; 6543 return 0; 6544} 6545_ACEOF 6546if ac_fn_c_try_link "$LINENO" 6547then : 6548 eval $cacheid=yes 6549else case e in #( 6550 e) eval $cacheid=no ;; 6551esac 6552fi 6553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6554 conftest$ac_exeext conftest.$ac_ext ;; 6555esac 6556fi 6557 6558 6559 CFLAGS="$xorg_testset_save_CFLAGS" 6560 6561 eval supported=\$$cacheid 6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6563printf "%s\n" "$supported" >&6; } 6564 if test "$supported" = "yes" ; then 6565 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6566 found="yes" 6567 fi 6568 fi 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584xorg_testset_save_CFLAGS="$CFLAGS" 6585 6586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6589printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6590if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6591then : 6592 printf %s "(cached) " >&6 6593else case e in #( 6594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6595/* end confdefs.h. */ 6596int i; 6597_ACEOF 6598if ac_fn_c_try_compile "$LINENO" 6599then : 6600 xorg_cv_cc_flag_unknown_warning_option=yes 6601else case e in #( 6602 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6603esac 6604fi 6605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6606esac 6607fi 6608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6609printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6611 CFLAGS="$xorg_testset_save_CFLAGS" 6612fi 6613 6614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6617 fi 6618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6620printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6621if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 6628_ACEOF 6629if ac_fn_c_try_compile "$LINENO" 6630then : 6631 xorg_cv_cc_flag_unused_command_line_argument=yes 6632else case e in #( 6633 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6634esac 6635fi 6636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6637esac 6638fi 6639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6642 CFLAGS="$xorg_testset_save_CFLAGS" 6643fi 6644 6645found="no" 6646 6647 if test $found = "no" ; then 6648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6650 fi 6651 6652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6654 fi 6655 6656 CFLAGS="$CFLAGS -Wshadow" 6657 6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6659printf %s "checking if $CC supports -Wshadow... " >&6; } 6660 cacheid=xorg_cv_cc_flag__Wshadow 6661 if eval test \${$cacheid+y} 6662then : 6663 printf %s "(cached) " >&6 6664else case e in #( 6665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6666/* end confdefs.h. */ 6667int i; 6668int 6669main (void) 6670{ 6671 6672 ; 6673 return 0; 6674} 6675_ACEOF 6676if ac_fn_c_try_link "$LINENO" 6677then : 6678 eval $cacheid=yes 6679else case e in #( 6680 e) eval $cacheid=no ;; 6681esac 6682fi 6683rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6684 conftest$ac_exeext conftest.$ac_ext ;; 6685esac 6686fi 6687 6688 6689 CFLAGS="$xorg_testset_save_CFLAGS" 6690 6691 eval supported=\$$cacheid 6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6693printf "%s\n" "$supported" >&6; } 6694 if test "$supported" = "yes" ; then 6695 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6696 found="yes" 6697 fi 6698 fi 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714xorg_testset_save_CFLAGS="$CFLAGS" 6715 6716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6720if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6721then : 6722 printf %s "(cached) " >&6 6723else case e in #( 6724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725/* end confdefs.h. */ 6726int i; 6727_ACEOF 6728if ac_fn_c_try_compile "$LINENO" 6729then : 6730 xorg_cv_cc_flag_unknown_warning_option=yes 6731else case e in #( 6732 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6733esac 6734fi 6735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6736esac 6737fi 6738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6741 CFLAGS="$xorg_testset_save_CFLAGS" 6742fi 6743 6744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6747 fi 6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6751if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 6758_ACEOF 6759if ac_fn_c_try_compile "$LINENO" 6760then : 6761 xorg_cv_cc_flag_unused_command_line_argument=yes 6762else case e in #( 6763 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6764esac 6765fi 6766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6767esac 6768fi 6769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6772 CFLAGS="$xorg_testset_save_CFLAGS" 6773fi 6774 6775found="no" 6776 6777 if test $found = "no" ; then 6778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6780 fi 6781 6782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6784 fi 6785 6786 CFLAGS="$CFLAGS -Wmissing-noreturn" 6787 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6789printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6790 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6791 if eval test \${$cacheid+y} 6792then : 6793 printf %s "(cached) " >&6 6794else case e in #( 6795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796/* end confdefs.h. */ 6797int i; 6798int 6799main (void) 6800{ 6801 6802 ; 6803 return 0; 6804} 6805_ACEOF 6806if ac_fn_c_try_link "$LINENO" 6807then : 6808 eval $cacheid=yes 6809else case e in #( 6810 e) eval $cacheid=no ;; 6811esac 6812fi 6813rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6814 conftest$ac_exeext conftest.$ac_ext ;; 6815esac 6816fi 6817 6818 6819 CFLAGS="$xorg_testset_save_CFLAGS" 6820 6821 eval supported=\$$cacheid 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6823printf "%s\n" "$supported" >&6; } 6824 if test "$supported" = "yes" ; then 6825 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6826 found="yes" 6827 fi 6828 fi 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844xorg_testset_save_CFLAGS="$CFLAGS" 6845 6846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6849printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6850if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6851then : 6852 printf %s "(cached) " >&6 6853else case e in #( 6854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6855/* end confdefs.h. */ 6856int i; 6857_ACEOF 6858if ac_fn_c_try_compile "$LINENO" 6859then : 6860 xorg_cv_cc_flag_unknown_warning_option=yes 6861else case e in #( 6862 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6863esac 6864fi 6865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6866esac 6867fi 6868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6871 CFLAGS="$xorg_testset_save_CFLAGS" 6872fi 6873 6874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6877 fi 6878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6881if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 6888_ACEOF 6889if ac_fn_c_try_compile "$LINENO" 6890then : 6891 xorg_cv_cc_flag_unused_command_line_argument=yes 6892else case e in #( 6893 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6894esac 6895fi 6896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6897esac 6898fi 6899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6900printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6902 CFLAGS="$xorg_testset_save_CFLAGS" 6903fi 6904 6905found="no" 6906 6907 if test $found = "no" ; then 6908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6910 fi 6911 6912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6914 fi 6915 6916 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6917 6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6919printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6920 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6921 if eval test \${$cacheid+y} 6922then : 6923 printf %s "(cached) " >&6 6924else case e in #( 6925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6926/* end confdefs.h. */ 6927int i; 6928int 6929main (void) 6930{ 6931 6932 ; 6933 return 0; 6934} 6935_ACEOF 6936if ac_fn_c_try_link "$LINENO" 6937then : 6938 eval $cacheid=yes 6939else case e in #( 6940 e) eval $cacheid=no ;; 6941esac 6942fi 6943rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6944 conftest$ac_exeext conftest.$ac_ext ;; 6945esac 6946fi 6947 6948 6949 CFLAGS="$xorg_testset_save_CFLAGS" 6950 6951 eval supported=\$$cacheid 6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6953printf "%s\n" "$supported" >&6; } 6954 if test "$supported" = "yes" ; then 6955 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6956 found="yes" 6957 fi 6958 fi 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974xorg_testset_save_CFLAGS="$CFLAGS" 6975 6976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6980if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6981then : 6982 printf %s "(cached) " >&6 6983else case e in #( 6984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6985/* end confdefs.h. */ 6986int i; 6987_ACEOF 6988if ac_fn_c_try_compile "$LINENO" 6989then : 6990 xorg_cv_cc_flag_unknown_warning_option=yes 6991else case e in #( 6992 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6993esac 6994fi 6995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6996esac 6997fi 6998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6999printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7001 CFLAGS="$xorg_testset_save_CFLAGS" 7002fi 7003 7004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7007 fi 7008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7010printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7011if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 7018_ACEOF 7019if ac_fn_c_try_compile "$LINENO" 7020then : 7021 xorg_cv_cc_flag_unused_command_line_argument=yes 7022else case e in #( 7023 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7024esac 7025fi 7026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7027esac 7028fi 7029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7032 CFLAGS="$xorg_testset_save_CFLAGS" 7033fi 7034 7035found="no" 7036 7037 if test $found = "no" ; then 7038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7040 fi 7041 7042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7044 fi 7045 7046 CFLAGS="$CFLAGS -Wredundant-decls" 7047 7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7049printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7050 cacheid=xorg_cv_cc_flag__Wredundant_decls 7051 if eval test \${$cacheid+y} 7052then : 7053 printf %s "(cached) " >&6 7054else case e in #( 7055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057int i; 7058int 7059main (void) 7060{ 7061 7062 ; 7063 return 0; 7064} 7065_ACEOF 7066if ac_fn_c_try_link "$LINENO" 7067then : 7068 eval $cacheid=yes 7069else case e in #( 7070 e) eval $cacheid=no ;; 7071esac 7072fi 7073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7074 conftest$ac_exeext conftest.$ac_ext ;; 7075esac 7076fi 7077 7078 7079 CFLAGS="$xorg_testset_save_CFLAGS" 7080 7081 eval supported=\$$cacheid 7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7083printf "%s\n" "$supported" >&6; } 7084 if test "$supported" = "yes" ; then 7085 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7086 found="yes" 7087 fi 7088 fi 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104xorg_testset_save_CFLAGS="$CFLAGS" 7105 7106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7109printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7110if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7111then : 7112 printf %s "(cached) " >&6 7113else case e in #( 7114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7115/* end confdefs.h. */ 7116int i; 7117_ACEOF 7118if ac_fn_c_try_compile "$LINENO" 7119then : 7120 xorg_cv_cc_flag_unknown_warning_option=yes 7121else case e in #( 7122 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7123esac 7124fi 7125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7126esac 7127fi 7128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7131 CFLAGS="$xorg_testset_save_CFLAGS" 7132fi 7133 7134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7137 fi 7138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7141if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 7148_ACEOF 7149if ac_fn_c_try_compile "$LINENO" 7150then : 7151 xorg_cv_cc_flag_unused_command_line_argument=yes 7152else case e in #( 7153 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7154esac 7155fi 7156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7157esac 7158fi 7159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7162 CFLAGS="$xorg_testset_save_CFLAGS" 7163fi 7164 7165found="no" 7166 7167 if test $found = "no" ; then 7168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7170 fi 7171 7172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7174 fi 7175 7176 CFLAGS="$CFLAGS -Wlogical-op" 7177 7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7179printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7180 cacheid=xorg_cv_cc_flag__Wlogical_op 7181 if eval test \${$cacheid+y} 7182then : 7183 printf %s "(cached) " >&6 7184else case e in #( 7185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186/* end confdefs.h. */ 7187int i; 7188int 7189main (void) 7190{ 7191 7192 ; 7193 return 0; 7194} 7195_ACEOF 7196if ac_fn_c_try_link "$LINENO" 7197then : 7198 eval $cacheid=yes 7199else case e in #( 7200 e) eval $cacheid=no ;; 7201esac 7202fi 7203rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7204 conftest$ac_exeext conftest.$ac_ext ;; 7205esac 7206fi 7207 7208 7209 CFLAGS="$xorg_testset_save_CFLAGS" 7210 7211 eval supported=\$$cacheid 7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7213printf "%s\n" "$supported" >&6; } 7214 if test "$supported" = "yes" ; then 7215 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7216 found="yes" 7217 fi 7218 fi 7219 7220 7221 7222# These are currently disabled because they are noisy. They will be enabled 7223# in the future once the codebase is sufficiently modernized to silence 7224# them. For now, I don't want them to drown out the other warnings. 7225# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7226# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7227# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7228 7229# Turn some warnings into errors, so we don't accidentally get successful builds 7230# when there are problems that should be fixed. 7231 7232if test "x$SELECTIVE_WERROR" = "xyes" ; then 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246xorg_testset_save_CFLAGS="$CFLAGS" 7247 7248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7251printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7252if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7253then : 7254 printf %s "(cached) " >&6 7255else case e in #( 7256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7257/* end confdefs.h. */ 7258int i; 7259_ACEOF 7260if ac_fn_c_try_compile "$LINENO" 7261then : 7262 xorg_cv_cc_flag_unknown_warning_option=yes 7263else case e in #( 7264 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7265esac 7266fi 7267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7268esac 7269fi 7270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7273 CFLAGS="$xorg_testset_save_CFLAGS" 7274fi 7275 7276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7279 fi 7280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7283if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7284then : 7285 printf %s "(cached) " >&6 7286else case e in #( 7287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288/* end confdefs.h. */ 7289int i; 7290_ACEOF 7291if ac_fn_c_try_compile "$LINENO" 7292then : 7293 xorg_cv_cc_flag_unused_command_line_argument=yes 7294else case e in #( 7295 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7296esac 7297fi 7298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7299esac 7300fi 7301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7304 CFLAGS="$xorg_testset_save_CFLAGS" 7305fi 7306 7307found="no" 7308 7309 if test $found = "no" ; then 7310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7312 fi 7313 7314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7316 fi 7317 7318 CFLAGS="$CFLAGS -Werror=implicit" 7319 7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7321printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7322 cacheid=xorg_cv_cc_flag__Werror_implicit 7323 if eval test \${$cacheid+y} 7324then : 7325 printf %s "(cached) " >&6 7326else case e in #( 7327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329int i; 7330int 7331main (void) 7332{ 7333 7334 ; 7335 return 0; 7336} 7337_ACEOF 7338if ac_fn_c_try_link "$LINENO" 7339then : 7340 eval $cacheid=yes 7341else case e in #( 7342 e) eval $cacheid=no ;; 7343esac 7344fi 7345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7346 conftest$ac_exeext conftest.$ac_ext ;; 7347esac 7348fi 7349 7350 7351 CFLAGS="$xorg_testset_save_CFLAGS" 7352 7353 eval supported=\$$cacheid 7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7355printf "%s\n" "$supported" >&6; } 7356 if test "$supported" = "yes" ; then 7357 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7358 found="yes" 7359 fi 7360 fi 7361 7362 if test $found = "no" ; then 7363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7365 fi 7366 7367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7369 fi 7370 7371 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7372 7373 { 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 7374printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7375 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7376 if eval test \${$cacheid+y} 7377then : 7378 printf %s "(cached) " >&6 7379else case e in #( 7380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7381/* end confdefs.h. */ 7382int i; 7383int 7384main (void) 7385{ 7386 7387 ; 7388 return 0; 7389} 7390_ACEOF 7391if ac_fn_c_try_link "$LINENO" 7392then : 7393 eval $cacheid=yes 7394else case e in #( 7395 e) eval $cacheid=no ;; 7396esac 7397fi 7398rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7399 conftest$ac_exeext conftest.$ac_ext ;; 7400esac 7401fi 7402 7403 7404 CFLAGS="$xorg_testset_save_CFLAGS" 7405 7406 eval supported=\$$cacheid 7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7408printf "%s\n" "$supported" >&6; } 7409 if test "$supported" = "yes" ; then 7410 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7411 found="yes" 7412 fi 7413 fi 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429xorg_testset_save_CFLAGS="$CFLAGS" 7430 7431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7434printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7435if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7436then : 7437 printf %s "(cached) " >&6 7438else case e in #( 7439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7440/* end confdefs.h. */ 7441int i; 7442_ACEOF 7443if ac_fn_c_try_compile "$LINENO" 7444then : 7445 xorg_cv_cc_flag_unknown_warning_option=yes 7446else case e in #( 7447 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7448esac 7449fi 7450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7451esac 7452fi 7453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7454printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7456 CFLAGS="$xorg_testset_save_CFLAGS" 7457fi 7458 7459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7462 fi 7463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7465printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7466if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7467then : 7468 printf %s "(cached) " >&6 7469else case e in #( 7470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471/* end confdefs.h. */ 7472int i; 7473_ACEOF 7474if ac_fn_c_try_compile "$LINENO" 7475then : 7476 xorg_cv_cc_flag_unused_command_line_argument=yes 7477else case e in #( 7478 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7479esac 7480fi 7481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7482esac 7483fi 7484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7485printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7487 CFLAGS="$xorg_testset_save_CFLAGS" 7488fi 7489 7490found="no" 7491 7492 if test $found = "no" ; then 7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7495 fi 7496 7497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7499 fi 7500 7501 CFLAGS="$CFLAGS -Werror=nonnull" 7502 7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7504printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7505 cacheid=xorg_cv_cc_flag__Werror_nonnull 7506 if eval test \${$cacheid+y} 7507then : 7508 printf %s "(cached) " >&6 7509else case e in #( 7510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7511/* end confdefs.h. */ 7512int i; 7513int 7514main (void) 7515{ 7516 7517 ; 7518 return 0; 7519} 7520_ACEOF 7521if ac_fn_c_try_link "$LINENO" 7522then : 7523 eval $cacheid=yes 7524else case e in #( 7525 e) eval $cacheid=no ;; 7526esac 7527fi 7528rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7529 conftest$ac_exeext conftest.$ac_ext ;; 7530esac 7531fi 7532 7533 7534 CFLAGS="$xorg_testset_save_CFLAGS" 7535 7536 eval supported=\$$cacheid 7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7538printf "%s\n" "$supported" >&6; } 7539 if test "$supported" = "yes" ; then 7540 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7541 found="yes" 7542 fi 7543 fi 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559xorg_testset_save_CFLAGS="$CFLAGS" 7560 7561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7565if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7566then : 7567 printf %s "(cached) " >&6 7568else case e in #( 7569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7570/* end confdefs.h. */ 7571int i; 7572_ACEOF 7573if ac_fn_c_try_compile "$LINENO" 7574then : 7575 xorg_cv_cc_flag_unknown_warning_option=yes 7576else case e in #( 7577 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7578esac 7579fi 7580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7581esac 7582fi 7583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7584printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7586 CFLAGS="$xorg_testset_save_CFLAGS" 7587fi 7588 7589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 fi 7593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7595printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7596if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7597then : 7598 printf %s "(cached) " >&6 7599else case e in #( 7600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7601/* end confdefs.h. */ 7602int i; 7603_ACEOF 7604if ac_fn_c_try_compile "$LINENO" 7605then : 7606 xorg_cv_cc_flag_unused_command_line_argument=yes 7607else case e in #( 7608 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7609esac 7610fi 7611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7612esac 7613fi 7614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7615printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7617 CFLAGS="$xorg_testset_save_CFLAGS" 7618fi 7619 7620found="no" 7621 7622 if test $found = "no" ; then 7623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7625 fi 7626 7627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7629 fi 7630 7631 CFLAGS="$CFLAGS -Werror=init-self" 7632 7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7634printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7635 cacheid=xorg_cv_cc_flag__Werror_init_self 7636 if eval test \${$cacheid+y} 7637then : 7638 printf %s "(cached) " >&6 7639else case e in #( 7640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7641/* end confdefs.h. */ 7642int i; 7643int 7644main (void) 7645{ 7646 7647 ; 7648 return 0; 7649} 7650_ACEOF 7651if ac_fn_c_try_link "$LINENO" 7652then : 7653 eval $cacheid=yes 7654else case e in #( 7655 e) eval $cacheid=no ;; 7656esac 7657fi 7658rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7659 conftest$ac_exeext conftest.$ac_ext ;; 7660esac 7661fi 7662 7663 7664 CFLAGS="$xorg_testset_save_CFLAGS" 7665 7666 eval supported=\$$cacheid 7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7668printf "%s\n" "$supported" >&6; } 7669 if test "$supported" = "yes" ; then 7670 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7671 found="yes" 7672 fi 7673 fi 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689xorg_testset_save_CFLAGS="$CFLAGS" 7690 7691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7694printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7695if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7696then : 7697 printf %s "(cached) " >&6 7698else case e in #( 7699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700/* end confdefs.h. */ 7701int i; 7702_ACEOF 7703if ac_fn_c_try_compile "$LINENO" 7704then : 7705 xorg_cv_cc_flag_unknown_warning_option=yes 7706else case e in #( 7707 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7708esac 7709fi 7710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7711esac 7712fi 7713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7716 CFLAGS="$xorg_testset_save_CFLAGS" 7717fi 7718 7719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7722 fi 7723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7726if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 7733_ACEOF 7734if ac_fn_c_try_compile "$LINENO" 7735then : 7736 xorg_cv_cc_flag_unused_command_line_argument=yes 7737else case e in #( 7738 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7739esac 7740fi 7741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7742esac 7743fi 7744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7745printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7747 CFLAGS="$xorg_testset_save_CFLAGS" 7748fi 7749 7750found="no" 7751 7752 if test $found = "no" ; then 7753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7755 fi 7756 7757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7759 fi 7760 7761 CFLAGS="$CFLAGS -Werror=main" 7762 7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7764printf %s "checking if $CC supports -Werror=main... " >&6; } 7765 cacheid=xorg_cv_cc_flag__Werror_main 7766 if eval test \${$cacheid+y} 7767then : 7768 printf %s "(cached) " >&6 7769else case e in #( 7770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771/* end confdefs.h. */ 7772int i; 7773int 7774main (void) 7775{ 7776 7777 ; 7778 return 0; 7779} 7780_ACEOF 7781if ac_fn_c_try_link "$LINENO" 7782then : 7783 eval $cacheid=yes 7784else case e in #( 7785 e) eval $cacheid=no ;; 7786esac 7787fi 7788rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7789 conftest$ac_exeext conftest.$ac_ext ;; 7790esac 7791fi 7792 7793 7794 CFLAGS="$xorg_testset_save_CFLAGS" 7795 7796 eval supported=\$$cacheid 7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7798printf "%s\n" "$supported" >&6; } 7799 if test "$supported" = "yes" ; then 7800 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7801 found="yes" 7802 fi 7803 fi 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819xorg_testset_save_CFLAGS="$CFLAGS" 7820 7821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7824printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7825if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7826then : 7827 printf %s "(cached) " >&6 7828else case e in #( 7829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830/* end confdefs.h. */ 7831int i; 7832_ACEOF 7833if ac_fn_c_try_compile "$LINENO" 7834then : 7835 xorg_cv_cc_flag_unknown_warning_option=yes 7836else case e in #( 7837 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7838esac 7839fi 7840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7841esac 7842fi 7843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7846 CFLAGS="$xorg_testset_save_CFLAGS" 7847fi 7848 7849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7852 fi 7853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7856if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7857then : 7858 printf %s "(cached) " >&6 7859else case e in #( 7860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7861/* end confdefs.h. */ 7862int i; 7863_ACEOF 7864if ac_fn_c_try_compile "$LINENO" 7865then : 7866 xorg_cv_cc_flag_unused_command_line_argument=yes 7867else case e in #( 7868 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7869esac 7870fi 7871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7872esac 7873fi 7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7877 CFLAGS="$xorg_testset_save_CFLAGS" 7878fi 7879 7880found="no" 7881 7882 if test $found = "no" ; then 7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7885 fi 7886 7887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7889 fi 7890 7891 CFLAGS="$CFLAGS -Werror=missing-braces" 7892 7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7894printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7895 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7896 if eval test \${$cacheid+y} 7897then : 7898 printf %s "(cached) " >&6 7899else case e in #( 7900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901/* end confdefs.h. */ 7902int i; 7903int 7904main (void) 7905{ 7906 7907 ; 7908 return 0; 7909} 7910_ACEOF 7911if ac_fn_c_try_link "$LINENO" 7912then : 7913 eval $cacheid=yes 7914else case e in #( 7915 e) eval $cacheid=no ;; 7916esac 7917fi 7918rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7919 conftest$ac_exeext conftest.$ac_ext ;; 7920esac 7921fi 7922 7923 7924 CFLAGS="$xorg_testset_save_CFLAGS" 7925 7926 eval supported=\$$cacheid 7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7928printf "%s\n" "$supported" >&6; } 7929 if test "$supported" = "yes" ; then 7930 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7931 found="yes" 7932 fi 7933 fi 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949xorg_testset_save_CFLAGS="$CFLAGS" 7950 7951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7954printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7955if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7956then : 7957 printf %s "(cached) " >&6 7958else case e in #( 7959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960/* end confdefs.h. */ 7961int i; 7962_ACEOF 7963if ac_fn_c_try_compile "$LINENO" 7964then : 7965 xorg_cv_cc_flag_unknown_warning_option=yes 7966else case e in #( 7967 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7968esac 7969fi 7970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7971esac 7972fi 7973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7976 CFLAGS="$xorg_testset_save_CFLAGS" 7977fi 7978 7979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7982 fi 7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7986if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 7993_ACEOF 7994if ac_fn_c_try_compile "$LINENO" 7995then : 7996 xorg_cv_cc_flag_unused_command_line_argument=yes 7997else case e in #( 7998 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7999esac 8000fi 8001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8002esac 8003fi 8004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8007 CFLAGS="$xorg_testset_save_CFLAGS" 8008fi 8009 8010found="no" 8011 8012 if test $found = "no" ; then 8013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8015 fi 8016 8017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8019 fi 8020 8021 CFLAGS="$CFLAGS -Werror=sequence-point" 8022 8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8024printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8025 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8026 if eval test \${$cacheid+y} 8027then : 8028 printf %s "(cached) " >&6 8029else case e in #( 8030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8031/* end confdefs.h. */ 8032int i; 8033int 8034main (void) 8035{ 8036 8037 ; 8038 return 0; 8039} 8040_ACEOF 8041if ac_fn_c_try_link "$LINENO" 8042then : 8043 eval $cacheid=yes 8044else case e in #( 8045 e) eval $cacheid=no ;; 8046esac 8047fi 8048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8049 conftest$ac_exeext conftest.$ac_ext ;; 8050esac 8051fi 8052 8053 8054 CFLAGS="$xorg_testset_save_CFLAGS" 8055 8056 eval supported=\$$cacheid 8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8058printf "%s\n" "$supported" >&6; } 8059 if test "$supported" = "yes" ; then 8060 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8061 found="yes" 8062 fi 8063 fi 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079xorg_testset_save_CFLAGS="$CFLAGS" 8080 8081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8084printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8085if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8086then : 8087 printf %s "(cached) " >&6 8088else case e in #( 8089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091int i; 8092_ACEOF 8093if ac_fn_c_try_compile "$LINENO" 8094then : 8095 xorg_cv_cc_flag_unknown_warning_option=yes 8096else case e in #( 8097 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8098esac 8099fi 8100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8101esac 8102fi 8103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8104printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8106 CFLAGS="$xorg_testset_save_CFLAGS" 8107fi 8108 8109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8112 fi 8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8115printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8116if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 8123_ACEOF 8124if ac_fn_c_try_compile "$LINENO" 8125then : 8126 xorg_cv_cc_flag_unused_command_line_argument=yes 8127else case e in #( 8128 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8129esac 8130fi 8131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8132esac 8133fi 8134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8137 CFLAGS="$xorg_testset_save_CFLAGS" 8138fi 8139 8140found="no" 8141 8142 if test $found = "no" ; then 8143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8145 fi 8146 8147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8149 fi 8150 8151 CFLAGS="$CFLAGS -Werror=return-type" 8152 8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8154printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8155 cacheid=xorg_cv_cc_flag__Werror_return_type 8156 if eval test \${$cacheid+y} 8157then : 8158 printf %s "(cached) " >&6 8159else case e in #( 8160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162int i; 8163int 8164main (void) 8165{ 8166 8167 ; 8168 return 0; 8169} 8170_ACEOF 8171if ac_fn_c_try_link "$LINENO" 8172then : 8173 eval $cacheid=yes 8174else case e in #( 8175 e) eval $cacheid=no ;; 8176esac 8177fi 8178rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8179 conftest$ac_exeext conftest.$ac_ext ;; 8180esac 8181fi 8182 8183 8184 CFLAGS="$xorg_testset_save_CFLAGS" 8185 8186 eval supported=\$$cacheid 8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8188printf "%s\n" "$supported" >&6; } 8189 if test "$supported" = "yes" ; then 8190 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8191 found="yes" 8192 fi 8193 fi 8194 8195 if test $found = "no" ; then 8196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8198 fi 8199 8200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8202 fi 8203 8204 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8205 8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8207printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8208 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8209 if eval test \${$cacheid+y} 8210then : 8211 printf %s "(cached) " >&6 8212else case e in #( 8213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214/* end confdefs.h. */ 8215int i; 8216int 8217main (void) 8218{ 8219 8220 ; 8221 return 0; 8222} 8223_ACEOF 8224if ac_fn_c_try_link "$LINENO" 8225then : 8226 eval $cacheid=yes 8227else case e in #( 8228 e) eval $cacheid=no ;; 8229esac 8230fi 8231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8232 conftest$ac_exeext conftest.$ac_ext ;; 8233esac 8234fi 8235 8236 8237 CFLAGS="$xorg_testset_save_CFLAGS" 8238 8239 eval supported=\$$cacheid 8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8241printf "%s\n" "$supported" >&6; } 8242 if test "$supported" = "yes" ; then 8243 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8244 found="yes" 8245 fi 8246 fi 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262xorg_testset_save_CFLAGS="$CFLAGS" 8263 8264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8268if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8269then : 8270 printf %s "(cached) " >&6 8271else case e in #( 8272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273/* end confdefs.h. */ 8274int i; 8275_ACEOF 8276if ac_fn_c_try_compile "$LINENO" 8277then : 8278 xorg_cv_cc_flag_unknown_warning_option=yes 8279else case e in #( 8280 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8281esac 8282fi 8283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8284esac 8285fi 8286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8289 CFLAGS="$xorg_testset_save_CFLAGS" 8290fi 8291 8292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8295 fi 8296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8299if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8300then : 8301 printf %s "(cached) " >&6 8302else case e in #( 8303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8304/* end confdefs.h. */ 8305int i; 8306_ACEOF 8307if ac_fn_c_try_compile "$LINENO" 8308then : 8309 xorg_cv_cc_flag_unused_command_line_argument=yes 8310else case e in #( 8311 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8312esac 8313fi 8314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8315esac 8316fi 8317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8320 CFLAGS="$xorg_testset_save_CFLAGS" 8321fi 8322 8323found="no" 8324 8325 if test $found = "no" ; then 8326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8328 fi 8329 8330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8332 fi 8333 8334 CFLAGS="$CFLAGS -Werror=trigraphs" 8335 8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8337printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8338 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8339 if eval test \${$cacheid+y} 8340then : 8341 printf %s "(cached) " >&6 8342else case e in #( 8343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8344/* end confdefs.h. */ 8345int i; 8346int 8347main (void) 8348{ 8349 8350 ; 8351 return 0; 8352} 8353_ACEOF 8354if ac_fn_c_try_link "$LINENO" 8355then : 8356 eval $cacheid=yes 8357else case e in #( 8358 e) eval $cacheid=no ;; 8359esac 8360fi 8361rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8362 conftest$ac_exeext conftest.$ac_ext ;; 8363esac 8364fi 8365 8366 8367 CFLAGS="$xorg_testset_save_CFLAGS" 8368 8369 eval supported=\$$cacheid 8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8371printf "%s\n" "$supported" >&6; } 8372 if test "$supported" = "yes" ; then 8373 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8374 found="yes" 8375 fi 8376 fi 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392xorg_testset_save_CFLAGS="$CFLAGS" 8393 8394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8397printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8398if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8399then : 8400 printf %s "(cached) " >&6 8401else case e in #( 8402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8403/* end confdefs.h. */ 8404int i; 8405_ACEOF 8406if ac_fn_c_try_compile "$LINENO" 8407then : 8408 xorg_cv_cc_flag_unknown_warning_option=yes 8409else case e in #( 8410 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8411esac 8412fi 8413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8414esac 8415fi 8416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8419 CFLAGS="$xorg_testset_save_CFLAGS" 8420fi 8421 8422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8425 fi 8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8429if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 8436_ACEOF 8437if ac_fn_c_try_compile "$LINENO" 8438then : 8439 xorg_cv_cc_flag_unused_command_line_argument=yes 8440else case e in #( 8441 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8442esac 8443fi 8444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8445esac 8446fi 8447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8450 CFLAGS="$xorg_testset_save_CFLAGS" 8451fi 8452 8453found="no" 8454 8455 if test $found = "no" ; then 8456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8458 fi 8459 8460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8462 fi 8463 8464 CFLAGS="$CFLAGS -Werror=array-bounds" 8465 8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8467printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8468 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8469 if eval test \${$cacheid+y} 8470then : 8471 printf %s "(cached) " >&6 8472else case e in #( 8473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475int i; 8476int 8477main (void) 8478{ 8479 8480 ; 8481 return 0; 8482} 8483_ACEOF 8484if ac_fn_c_try_link "$LINENO" 8485then : 8486 eval $cacheid=yes 8487else case e in #( 8488 e) eval $cacheid=no ;; 8489esac 8490fi 8491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8492 conftest$ac_exeext conftest.$ac_ext ;; 8493esac 8494fi 8495 8496 8497 CFLAGS="$xorg_testset_save_CFLAGS" 8498 8499 eval supported=\$$cacheid 8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8501printf "%s\n" "$supported" >&6; } 8502 if test "$supported" = "yes" ; then 8503 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8504 found="yes" 8505 fi 8506 fi 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522xorg_testset_save_CFLAGS="$CFLAGS" 8523 8524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8528if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8529then : 8530 printf %s "(cached) " >&6 8531else case e in #( 8532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8533/* end confdefs.h. */ 8534int i; 8535_ACEOF 8536if ac_fn_c_try_compile "$LINENO" 8537then : 8538 xorg_cv_cc_flag_unknown_warning_option=yes 8539else case e in #( 8540 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8541esac 8542fi 8543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8544esac 8545fi 8546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8549 CFLAGS="$xorg_testset_save_CFLAGS" 8550fi 8551 8552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8555 fi 8556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8559if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 8566_ACEOF 8567if ac_fn_c_try_compile "$LINENO" 8568then : 8569 xorg_cv_cc_flag_unused_command_line_argument=yes 8570else case e in #( 8571 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8572esac 8573fi 8574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8575esac 8576fi 8577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8580 CFLAGS="$xorg_testset_save_CFLAGS" 8581fi 8582 8583found="no" 8584 8585 if test $found = "no" ; then 8586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8588 fi 8589 8590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8592 fi 8593 8594 CFLAGS="$CFLAGS -Werror=write-strings" 8595 8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8597printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8598 cacheid=xorg_cv_cc_flag__Werror_write_strings 8599 if eval test \${$cacheid+y} 8600then : 8601 printf %s "(cached) " >&6 8602else case e in #( 8603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8604/* end confdefs.h. */ 8605int i; 8606int 8607main (void) 8608{ 8609 8610 ; 8611 return 0; 8612} 8613_ACEOF 8614if ac_fn_c_try_link "$LINENO" 8615then : 8616 eval $cacheid=yes 8617else case e in #( 8618 e) eval $cacheid=no ;; 8619esac 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8622 conftest$ac_exeext conftest.$ac_ext ;; 8623esac 8624fi 8625 8626 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628 8629 eval supported=\$$cacheid 8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8631printf "%s\n" "$supported" >&6; } 8632 if test "$supported" = "yes" ; then 8633 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8634 found="yes" 8635 fi 8636 fi 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652xorg_testset_save_CFLAGS="$CFLAGS" 8653 8654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8657printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8658if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8659then : 8660 printf %s "(cached) " >&6 8661else case e in #( 8662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8663/* end confdefs.h. */ 8664int i; 8665_ACEOF 8666if ac_fn_c_try_compile "$LINENO" 8667then : 8668 xorg_cv_cc_flag_unknown_warning_option=yes 8669else case e in #( 8670 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8671esac 8672fi 8673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8674esac 8675fi 8676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8677printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8679 CFLAGS="$xorg_testset_save_CFLAGS" 8680fi 8681 8682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8685 fi 8686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8688printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8689if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 8696_ACEOF 8697if ac_fn_c_try_compile "$LINENO" 8698then : 8699 xorg_cv_cc_flag_unused_command_line_argument=yes 8700else case e in #( 8701 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8702esac 8703fi 8704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8705esac 8706fi 8707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8708printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8710 CFLAGS="$xorg_testset_save_CFLAGS" 8711fi 8712 8713found="no" 8714 8715 if test $found = "no" ; then 8716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8718 fi 8719 8720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8722 fi 8723 8724 CFLAGS="$CFLAGS -Werror=address" 8725 8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8727printf %s "checking if $CC supports -Werror=address... " >&6; } 8728 cacheid=xorg_cv_cc_flag__Werror_address 8729 if eval test \${$cacheid+y} 8730then : 8731 printf %s "(cached) " >&6 8732else case e in #( 8733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734/* end confdefs.h. */ 8735int i; 8736int 8737main (void) 8738{ 8739 8740 ; 8741 return 0; 8742} 8743_ACEOF 8744if ac_fn_c_try_link "$LINENO" 8745then : 8746 eval $cacheid=yes 8747else case e in #( 8748 e) eval $cacheid=no ;; 8749esac 8750fi 8751rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8752 conftest$ac_exeext conftest.$ac_ext ;; 8753esac 8754fi 8755 8756 8757 CFLAGS="$xorg_testset_save_CFLAGS" 8758 8759 eval supported=\$$cacheid 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8761printf "%s\n" "$supported" >&6; } 8762 if test "$supported" = "yes" ; then 8763 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8764 found="yes" 8765 fi 8766 fi 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782xorg_testset_save_CFLAGS="$CFLAGS" 8783 8784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8787printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8788if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8789then : 8790 printf %s "(cached) " >&6 8791else case e in #( 8792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8793/* end confdefs.h. */ 8794int i; 8795_ACEOF 8796if ac_fn_c_try_compile "$LINENO" 8797then : 8798 xorg_cv_cc_flag_unknown_warning_option=yes 8799else case e in #( 8800 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8801esac 8802fi 8803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8804esac 8805fi 8806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8807printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8809 CFLAGS="$xorg_testset_save_CFLAGS" 8810fi 8811 8812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8815 fi 8816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8818printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8819if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 8826_ACEOF 8827if ac_fn_c_try_compile "$LINENO" 8828then : 8829 xorg_cv_cc_flag_unused_command_line_argument=yes 8830else case e in #( 8831 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8832esac 8833fi 8834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8835esac 8836fi 8837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8840 CFLAGS="$xorg_testset_save_CFLAGS" 8841fi 8842 8843found="no" 8844 8845 if test $found = "no" ; then 8846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8848 fi 8849 8850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8852 fi 8853 8854 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8855 8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8857printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8858 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8859 if eval test \${$cacheid+y} 8860then : 8861 printf %s "(cached) " >&6 8862else case e in #( 8863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8864/* end confdefs.h. */ 8865int i; 8866int 8867main (void) 8868{ 8869 8870 ; 8871 return 0; 8872} 8873_ACEOF 8874if ac_fn_c_try_link "$LINENO" 8875then : 8876 eval $cacheid=yes 8877else case e in #( 8878 e) eval $cacheid=no ;; 8879esac 8880fi 8881rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8882 conftest$ac_exeext conftest.$ac_ext ;; 8883esac 8884fi 8885 8886 8887 CFLAGS="$xorg_testset_save_CFLAGS" 8888 8889 eval supported=\$$cacheid 8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8891printf "%s\n" "$supported" >&6; } 8892 if test "$supported" = "yes" ; then 8893 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8894 found="yes" 8895 fi 8896 fi 8897 8898 if test $found = "no" ; then 8899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8901 fi 8902 8903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8905 fi 8906 8907 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8908 8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8910printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8911 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8912 if eval test \${$cacheid+y} 8913then : 8914 printf %s "(cached) " >&6 8915else case e in #( 8916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8917/* end confdefs.h. */ 8918int i; 8919int 8920main (void) 8921{ 8922 8923 ; 8924 return 0; 8925} 8926_ACEOF 8927if ac_fn_c_try_link "$LINENO" 8928then : 8929 eval $cacheid=yes 8930else case e in #( 8931 e) eval $cacheid=no ;; 8932esac 8933fi 8934rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8935 conftest$ac_exeext conftest.$ac_ext ;; 8936esac 8937fi 8938 8939 8940 CFLAGS="$xorg_testset_save_CFLAGS" 8941 8942 eval supported=\$$cacheid 8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8944printf "%s\n" "$supported" >&6; } 8945 if test "$supported" = "yes" ; then 8946 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8947 found="yes" 8948 fi 8949 fi 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965xorg_testset_save_CFLAGS="$CFLAGS" 8966 8967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8971if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8972then : 8973 printf %s "(cached) " >&6 8974else case e in #( 8975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976/* end confdefs.h. */ 8977int i; 8978_ACEOF 8979if ac_fn_c_try_compile "$LINENO" 8980then : 8981 xorg_cv_cc_flag_unknown_warning_option=yes 8982else case e in #( 8983 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8984esac 8985fi 8986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8987esac 8988fi 8989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8990printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8992 CFLAGS="$xorg_testset_save_CFLAGS" 8993fi 8994 8995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8998 fi 8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9001printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9002if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9003then : 9004 printf %s "(cached) " >&6 9005else case e in #( 9006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9007/* end confdefs.h. */ 9008int i; 9009_ACEOF 9010if ac_fn_c_try_compile "$LINENO" 9011then : 9012 xorg_cv_cc_flag_unused_command_line_argument=yes 9013else case e in #( 9014 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9015esac 9016fi 9017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9018esac 9019fi 9020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9021printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9023 CFLAGS="$xorg_testset_save_CFLAGS" 9024fi 9025 9026found="no" 9027 9028 if test $found = "no" ; then 9029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9031 fi 9032 9033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9035 fi 9036 9037 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9038 9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9040printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9041 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9042 if eval test \${$cacheid+y} 9043then : 9044 printf %s "(cached) " >&6 9045else case e in #( 9046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047/* end confdefs.h. */ 9048int i; 9049int 9050main (void) 9051{ 9052 9053 ; 9054 return 0; 9055} 9056_ACEOF 9057if ac_fn_c_try_link "$LINENO" 9058then : 9059 eval $cacheid=yes 9060else case e in #( 9061 e) eval $cacheid=no ;; 9062esac 9063fi 9064rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9065 conftest$ac_exeext conftest.$ac_ext ;; 9066esac 9067fi 9068 9069 9070 CFLAGS="$xorg_testset_save_CFLAGS" 9071 9072 eval supported=\$$cacheid 9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9074printf "%s\n" "$supported" >&6; } 9075 if test "$supported" = "yes" ; then 9076 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9077 found="yes" 9078 fi 9079 fi 9080 9081 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9082else 9083{ 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 9084printf "%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;} 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098xorg_testset_save_CFLAGS="$CFLAGS" 9099 9100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9104if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9105then : 9106 printf %s "(cached) " >&6 9107else case e in #( 9108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9109/* end confdefs.h. */ 9110int i; 9111_ACEOF 9112if ac_fn_c_try_compile "$LINENO" 9113then : 9114 xorg_cv_cc_flag_unknown_warning_option=yes 9115else case e in #( 9116 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9117esac 9118fi 9119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9120esac 9121fi 9122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9125 CFLAGS="$xorg_testset_save_CFLAGS" 9126fi 9127 9128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9131 fi 9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9135if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9136then : 9137 printf %s "(cached) " >&6 9138else case e in #( 9139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140/* end confdefs.h. */ 9141int i; 9142_ACEOF 9143if ac_fn_c_try_compile "$LINENO" 9144then : 9145 xorg_cv_cc_flag_unused_command_line_argument=yes 9146else case e in #( 9147 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9148esac 9149fi 9150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9151esac 9152fi 9153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9156 CFLAGS="$xorg_testset_save_CFLAGS" 9157fi 9158 9159found="no" 9160 9161 if test $found = "no" ; then 9162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9164 fi 9165 9166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9168 fi 9169 9170 CFLAGS="$CFLAGS -Wimplicit" 9171 9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9173printf %s "checking if $CC supports -Wimplicit... " >&6; } 9174 cacheid=xorg_cv_cc_flag__Wimplicit 9175 if eval test \${$cacheid+y} 9176then : 9177 printf %s "(cached) " >&6 9178else case e in #( 9179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9180/* end confdefs.h. */ 9181int i; 9182int 9183main (void) 9184{ 9185 9186 ; 9187 return 0; 9188} 9189_ACEOF 9190if ac_fn_c_try_link "$LINENO" 9191then : 9192 eval $cacheid=yes 9193else case e in #( 9194 e) eval $cacheid=no ;; 9195esac 9196fi 9197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9198 conftest$ac_exeext conftest.$ac_ext ;; 9199esac 9200fi 9201 9202 9203 CFLAGS="$xorg_testset_save_CFLAGS" 9204 9205 eval supported=\$$cacheid 9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9207printf "%s\n" "$supported" >&6; } 9208 if test "$supported" = "yes" ; then 9209 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9210 found="yes" 9211 fi 9212 fi 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228xorg_testset_save_CFLAGS="$CFLAGS" 9229 9230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9233printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9234if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9235then : 9236 printf %s "(cached) " >&6 9237else case e in #( 9238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240int i; 9241_ACEOF 9242if ac_fn_c_try_compile "$LINENO" 9243then : 9244 xorg_cv_cc_flag_unknown_warning_option=yes 9245else case e in #( 9246 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9247esac 9248fi 9249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9250esac 9251fi 9252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9255 CFLAGS="$xorg_testset_save_CFLAGS" 9256fi 9257 9258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9261 fi 9262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9265if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9266then : 9267 printf %s "(cached) " >&6 9268else case e in #( 9269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270/* end confdefs.h. */ 9271int i; 9272_ACEOF 9273if ac_fn_c_try_compile "$LINENO" 9274then : 9275 xorg_cv_cc_flag_unused_command_line_argument=yes 9276else case e in #( 9277 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9278esac 9279fi 9280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9281esac 9282fi 9283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287fi 9288 9289found="no" 9290 9291 if test $found = "no" ; then 9292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9294 fi 9295 9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9298 fi 9299 9300 CFLAGS="$CFLAGS -Wnonnull" 9301 9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9303printf %s "checking if $CC supports -Wnonnull... " >&6; } 9304 cacheid=xorg_cv_cc_flag__Wnonnull 9305 if eval test \${$cacheid+y} 9306then : 9307 printf %s "(cached) " >&6 9308else case e in #( 9309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9310/* end confdefs.h. */ 9311int i; 9312int 9313main (void) 9314{ 9315 9316 ; 9317 return 0; 9318} 9319_ACEOF 9320if ac_fn_c_try_link "$LINENO" 9321then : 9322 eval $cacheid=yes 9323else case e in #( 9324 e) eval $cacheid=no ;; 9325esac 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9328 conftest$ac_exeext conftest.$ac_ext ;; 9329esac 9330fi 9331 9332 9333 CFLAGS="$xorg_testset_save_CFLAGS" 9334 9335 eval supported=\$$cacheid 9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9337printf "%s\n" "$supported" >&6; } 9338 if test "$supported" = "yes" ; then 9339 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9340 found="yes" 9341 fi 9342 fi 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358xorg_testset_save_CFLAGS="$CFLAGS" 9359 9360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9364if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9365then : 9366 printf %s "(cached) " >&6 9367else case e in #( 9368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369/* end confdefs.h. */ 9370int i; 9371_ACEOF 9372if ac_fn_c_try_compile "$LINENO" 9373then : 9374 xorg_cv_cc_flag_unknown_warning_option=yes 9375else case e in #( 9376 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9377esac 9378fi 9379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9380esac 9381fi 9382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9383printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9385 CFLAGS="$xorg_testset_save_CFLAGS" 9386fi 9387 9388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9391 fi 9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9394printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9395if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 9402_ACEOF 9403if ac_fn_c_try_compile "$LINENO" 9404then : 9405 xorg_cv_cc_flag_unused_command_line_argument=yes 9406else case e in #( 9407 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9408esac 9409fi 9410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9411esac 9412fi 9413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9416 CFLAGS="$xorg_testset_save_CFLAGS" 9417fi 9418 9419found="no" 9420 9421 if test $found = "no" ; then 9422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9424 fi 9425 9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9428 fi 9429 9430 CFLAGS="$CFLAGS -Winit-self" 9431 9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9433printf %s "checking if $CC supports -Winit-self... " >&6; } 9434 cacheid=xorg_cv_cc_flag__Winit_self 9435 if eval test \${$cacheid+y} 9436then : 9437 printf %s "(cached) " >&6 9438else case e in #( 9439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9440/* end confdefs.h. */ 9441int i; 9442int 9443main (void) 9444{ 9445 9446 ; 9447 return 0; 9448} 9449_ACEOF 9450if ac_fn_c_try_link "$LINENO" 9451then : 9452 eval $cacheid=yes 9453else case e in #( 9454 e) eval $cacheid=no ;; 9455esac 9456fi 9457rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9458 conftest$ac_exeext conftest.$ac_ext ;; 9459esac 9460fi 9461 9462 9463 CFLAGS="$xorg_testset_save_CFLAGS" 9464 9465 eval supported=\$$cacheid 9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9467printf "%s\n" "$supported" >&6; } 9468 if test "$supported" = "yes" ; then 9469 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9470 found="yes" 9471 fi 9472 fi 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488xorg_testset_save_CFLAGS="$CFLAGS" 9489 9490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9494if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9495then : 9496 printf %s "(cached) " >&6 9497else case e in #( 9498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499/* end confdefs.h. */ 9500int i; 9501_ACEOF 9502if ac_fn_c_try_compile "$LINENO" 9503then : 9504 xorg_cv_cc_flag_unknown_warning_option=yes 9505else case e in #( 9506 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9507esac 9508fi 9509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9510esac 9511fi 9512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9515 CFLAGS="$xorg_testset_save_CFLAGS" 9516fi 9517 9518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9521 fi 9522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9525if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 9532_ACEOF 9533if ac_fn_c_try_compile "$LINENO" 9534then : 9535 xorg_cv_cc_flag_unused_command_line_argument=yes 9536else case e in #( 9537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9538esac 9539fi 9540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9541esac 9542fi 9543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9546 CFLAGS="$xorg_testset_save_CFLAGS" 9547fi 9548 9549found="no" 9550 9551 if test $found = "no" ; then 9552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9554 fi 9555 9556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9558 fi 9559 9560 CFLAGS="$CFLAGS -Wmain" 9561 9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9563printf %s "checking if $CC supports -Wmain... " >&6; } 9564 cacheid=xorg_cv_cc_flag__Wmain 9565 if eval test \${$cacheid+y} 9566then : 9567 printf %s "(cached) " >&6 9568else case e in #( 9569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9570/* end confdefs.h. */ 9571int i; 9572int 9573main (void) 9574{ 9575 9576 ; 9577 return 0; 9578} 9579_ACEOF 9580if ac_fn_c_try_link "$LINENO" 9581then : 9582 eval $cacheid=yes 9583else case e in #( 9584 e) eval $cacheid=no ;; 9585esac 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9588 conftest$ac_exeext conftest.$ac_ext ;; 9589esac 9590fi 9591 9592 9593 CFLAGS="$xorg_testset_save_CFLAGS" 9594 9595 eval supported=\$$cacheid 9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9597printf "%s\n" "$supported" >&6; } 9598 if test "$supported" = "yes" ; then 9599 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9600 found="yes" 9601 fi 9602 fi 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618xorg_testset_save_CFLAGS="$CFLAGS" 9619 9620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9624if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9625then : 9626 printf %s "(cached) " >&6 9627else case e in #( 9628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629/* end confdefs.h. */ 9630int i; 9631_ACEOF 9632if ac_fn_c_try_compile "$LINENO" 9633then : 9634 xorg_cv_cc_flag_unknown_warning_option=yes 9635else case e in #( 9636 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9637esac 9638fi 9639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9640esac 9641fi 9642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9645 CFLAGS="$xorg_testset_save_CFLAGS" 9646fi 9647 9648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9651 fi 9652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9655if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 9662_ACEOF 9663if ac_fn_c_try_compile "$LINENO" 9664then : 9665 xorg_cv_cc_flag_unused_command_line_argument=yes 9666else case e in #( 9667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9668esac 9669fi 9670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9671esac 9672fi 9673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9676 CFLAGS="$xorg_testset_save_CFLAGS" 9677fi 9678 9679found="no" 9680 9681 if test $found = "no" ; then 9682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9684 fi 9685 9686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9688 fi 9689 9690 CFLAGS="$CFLAGS -Wmissing-braces" 9691 9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9693printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9694 cacheid=xorg_cv_cc_flag__Wmissing_braces 9695 if eval test \${$cacheid+y} 9696then : 9697 printf %s "(cached) " >&6 9698else case e in #( 9699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9700/* end confdefs.h. */ 9701int i; 9702int 9703main (void) 9704{ 9705 9706 ; 9707 return 0; 9708} 9709_ACEOF 9710if ac_fn_c_try_link "$LINENO" 9711then : 9712 eval $cacheid=yes 9713else case e in #( 9714 e) eval $cacheid=no ;; 9715esac 9716fi 9717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9718 conftest$ac_exeext conftest.$ac_ext ;; 9719esac 9720fi 9721 9722 9723 CFLAGS="$xorg_testset_save_CFLAGS" 9724 9725 eval supported=\$$cacheid 9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9727printf "%s\n" "$supported" >&6; } 9728 if test "$supported" = "yes" ; then 9729 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9730 found="yes" 9731 fi 9732 fi 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748xorg_testset_save_CFLAGS="$CFLAGS" 9749 9750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9754if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9755then : 9756 printf %s "(cached) " >&6 9757else case e in #( 9758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9759/* end confdefs.h. */ 9760int i; 9761_ACEOF 9762if ac_fn_c_try_compile "$LINENO" 9763then : 9764 xorg_cv_cc_flag_unknown_warning_option=yes 9765else case e in #( 9766 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9767esac 9768fi 9769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9770esac 9771fi 9772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9775 CFLAGS="$xorg_testset_save_CFLAGS" 9776fi 9777 9778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9781 fi 9782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9785if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 9792_ACEOF 9793if ac_fn_c_try_compile "$LINENO" 9794then : 9795 xorg_cv_cc_flag_unused_command_line_argument=yes 9796else case e in #( 9797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9798esac 9799fi 9800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9801esac 9802fi 9803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9806 CFLAGS="$xorg_testset_save_CFLAGS" 9807fi 9808 9809found="no" 9810 9811 if test $found = "no" ; then 9812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9814 fi 9815 9816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9818 fi 9819 9820 CFLAGS="$CFLAGS -Wsequence-point" 9821 9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9823printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9824 cacheid=xorg_cv_cc_flag__Wsequence_point 9825 if eval test \${$cacheid+y} 9826then : 9827 printf %s "(cached) " >&6 9828else case e in #( 9829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830/* end confdefs.h. */ 9831int i; 9832int 9833main (void) 9834{ 9835 9836 ; 9837 return 0; 9838} 9839_ACEOF 9840if ac_fn_c_try_link "$LINENO" 9841then : 9842 eval $cacheid=yes 9843else case e in #( 9844 e) eval $cacheid=no ;; 9845esac 9846fi 9847rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9848 conftest$ac_exeext conftest.$ac_ext ;; 9849esac 9850fi 9851 9852 9853 CFLAGS="$xorg_testset_save_CFLAGS" 9854 9855 eval supported=\$$cacheid 9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9857printf "%s\n" "$supported" >&6; } 9858 if test "$supported" = "yes" ; then 9859 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9860 found="yes" 9861 fi 9862 fi 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878xorg_testset_save_CFLAGS="$CFLAGS" 9879 9880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9884if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9885then : 9886 printf %s "(cached) " >&6 9887else case e in #( 9888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9889/* end confdefs.h. */ 9890int i; 9891_ACEOF 9892if ac_fn_c_try_compile "$LINENO" 9893then : 9894 xorg_cv_cc_flag_unknown_warning_option=yes 9895else case e in #( 9896 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9897esac 9898fi 9899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9900esac 9901fi 9902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9905 CFLAGS="$xorg_testset_save_CFLAGS" 9906fi 9907 9908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9911 fi 9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9915if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 9922_ACEOF 9923if ac_fn_c_try_compile "$LINENO" 9924then : 9925 xorg_cv_cc_flag_unused_command_line_argument=yes 9926else case e in #( 9927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9928esac 9929fi 9930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9931esac 9932fi 9933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9936 CFLAGS="$xorg_testset_save_CFLAGS" 9937fi 9938 9939found="no" 9940 9941 if test $found = "no" ; then 9942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9944 fi 9945 9946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9948 fi 9949 9950 CFLAGS="$CFLAGS -Wreturn-type" 9951 9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9953printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9954 cacheid=xorg_cv_cc_flag__Wreturn_type 9955 if eval test \${$cacheid+y} 9956then : 9957 printf %s "(cached) " >&6 9958else case e in #( 9959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9960/* end confdefs.h. */ 9961int i; 9962int 9963main (void) 9964{ 9965 9966 ; 9967 return 0; 9968} 9969_ACEOF 9970if ac_fn_c_try_link "$LINENO" 9971then : 9972 eval $cacheid=yes 9973else case e in #( 9974 e) eval $cacheid=no ;; 9975esac 9976fi 9977rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9978 conftest$ac_exeext conftest.$ac_ext ;; 9979esac 9980fi 9981 9982 9983 CFLAGS="$xorg_testset_save_CFLAGS" 9984 9985 eval supported=\$$cacheid 9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9987printf "%s\n" "$supported" >&6; } 9988 if test "$supported" = "yes" ; then 9989 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9990 found="yes" 9991 fi 9992 fi 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008xorg_testset_save_CFLAGS="$CFLAGS" 10009 10010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10013printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10014if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10015then : 10016 printf %s "(cached) " >&6 10017else case e in #( 10018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10019/* end confdefs.h. */ 10020int i; 10021_ACEOF 10022if ac_fn_c_try_compile "$LINENO" 10023then : 10024 xorg_cv_cc_flag_unknown_warning_option=yes 10025else case e in #( 10026 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10027esac 10028fi 10029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10030esac 10031fi 10032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10035 CFLAGS="$xorg_testset_save_CFLAGS" 10036fi 10037 10038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10041 fi 10042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10045if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 10052_ACEOF 10053if ac_fn_c_try_compile "$LINENO" 10054then : 10055 xorg_cv_cc_flag_unused_command_line_argument=yes 10056else case e in #( 10057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10058esac 10059fi 10060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10061esac 10062fi 10063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10066 CFLAGS="$xorg_testset_save_CFLAGS" 10067fi 10068 10069found="no" 10070 10071 if test $found = "no" ; then 10072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10074 fi 10075 10076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10078 fi 10079 10080 CFLAGS="$CFLAGS -Wtrigraphs" 10081 10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10083printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10084 cacheid=xorg_cv_cc_flag__Wtrigraphs 10085 if eval test \${$cacheid+y} 10086then : 10087 printf %s "(cached) " >&6 10088else case e in #( 10089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10090/* end confdefs.h. */ 10091int i; 10092int 10093main (void) 10094{ 10095 10096 ; 10097 return 0; 10098} 10099_ACEOF 10100if ac_fn_c_try_link "$LINENO" 10101then : 10102 eval $cacheid=yes 10103else case e in #( 10104 e) eval $cacheid=no ;; 10105esac 10106fi 10107rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10108 conftest$ac_exeext conftest.$ac_ext ;; 10109esac 10110fi 10111 10112 10113 CFLAGS="$xorg_testset_save_CFLAGS" 10114 10115 eval supported=\$$cacheid 10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10117printf "%s\n" "$supported" >&6; } 10118 if test "$supported" = "yes" ; then 10119 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10120 found="yes" 10121 fi 10122 fi 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138xorg_testset_save_CFLAGS="$CFLAGS" 10139 10140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10144if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10145then : 10146 printf %s "(cached) " >&6 10147else case e in #( 10148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10149/* end confdefs.h. */ 10150int i; 10151_ACEOF 10152if ac_fn_c_try_compile "$LINENO" 10153then : 10154 xorg_cv_cc_flag_unknown_warning_option=yes 10155else case e in #( 10156 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10157esac 10158fi 10159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10160esac 10161fi 10162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10165 CFLAGS="$xorg_testset_save_CFLAGS" 10166fi 10167 10168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10171 fi 10172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10175if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 10182_ACEOF 10183if ac_fn_c_try_compile "$LINENO" 10184then : 10185 xorg_cv_cc_flag_unused_command_line_argument=yes 10186else case e in #( 10187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10188esac 10189fi 10190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10191esac 10192fi 10193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10194printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10196 CFLAGS="$xorg_testset_save_CFLAGS" 10197fi 10198 10199found="no" 10200 10201 if test $found = "no" ; then 10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10204 fi 10205 10206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10208 fi 10209 10210 CFLAGS="$CFLAGS -Warray-bounds" 10211 10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10213printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10214 cacheid=xorg_cv_cc_flag__Warray_bounds 10215 if eval test \${$cacheid+y} 10216then : 10217 printf %s "(cached) " >&6 10218else case e in #( 10219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220/* end confdefs.h. */ 10221int i; 10222int 10223main (void) 10224{ 10225 10226 ; 10227 return 0; 10228} 10229_ACEOF 10230if ac_fn_c_try_link "$LINENO" 10231then : 10232 eval $cacheid=yes 10233else case e in #( 10234 e) eval $cacheid=no ;; 10235esac 10236fi 10237rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10238 conftest$ac_exeext conftest.$ac_ext ;; 10239esac 10240fi 10241 10242 10243 CFLAGS="$xorg_testset_save_CFLAGS" 10244 10245 eval supported=\$$cacheid 10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10247printf "%s\n" "$supported" >&6; } 10248 if test "$supported" = "yes" ; then 10249 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10250 found="yes" 10251 fi 10252 fi 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268xorg_testset_save_CFLAGS="$CFLAGS" 10269 10270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10274if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10275then : 10276 printf %s "(cached) " >&6 10277else case e in #( 10278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279/* end confdefs.h. */ 10280int i; 10281_ACEOF 10282if ac_fn_c_try_compile "$LINENO" 10283then : 10284 xorg_cv_cc_flag_unknown_warning_option=yes 10285else case e in #( 10286 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10287esac 10288fi 10289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10290esac 10291fi 10292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10295 CFLAGS="$xorg_testset_save_CFLAGS" 10296fi 10297 10298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10301 fi 10302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10305if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10306then : 10307 printf %s "(cached) " >&6 10308else case e in #( 10309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311int i; 10312_ACEOF 10313if ac_fn_c_try_compile "$LINENO" 10314then : 10315 xorg_cv_cc_flag_unused_command_line_argument=yes 10316else case e in #( 10317 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10318esac 10319fi 10320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10321esac 10322fi 10323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10324printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10326 CFLAGS="$xorg_testset_save_CFLAGS" 10327fi 10328 10329found="no" 10330 10331 if test $found = "no" ; then 10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10334 fi 10335 10336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10338 fi 10339 10340 CFLAGS="$CFLAGS -Wwrite-strings" 10341 10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10343printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10344 cacheid=xorg_cv_cc_flag__Wwrite_strings 10345 if eval test \${$cacheid+y} 10346then : 10347 printf %s "(cached) " >&6 10348else case e in #( 10349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350/* end confdefs.h. */ 10351int i; 10352int 10353main (void) 10354{ 10355 10356 ; 10357 return 0; 10358} 10359_ACEOF 10360if ac_fn_c_try_link "$LINENO" 10361then : 10362 eval $cacheid=yes 10363else case e in #( 10364 e) eval $cacheid=no ;; 10365esac 10366fi 10367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10368 conftest$ac_exeext conftest.$ac_ext ;; 10369esac 10370fi 10371 10372 10373 CFLAGS="$xorg_testset_save_CFLAGS" 10374 10375 eval supported=\$$cacheid 10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10377printf "%s\n" "$supported" >&6; } 10378 if test "$supported" = "yes" ; then 10379 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10380 found="yes" 10381 fi 10382 fi 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398xorg_testset_save_CFLAGS="$CFLAGS" 10399 10400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10404if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10405then : 10406 printf %s "(cached) " >&6 10407else case e in #( 10408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409/* end confdefs.h. */ 10410int i; 10411_ACEOF 10412if ac_fn_c_try_compile "$LINENO" 10413then : 10414 xorg_cv_cc_flag_unknown_warning_option=yes 10415else case e in #( 10416 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10417esac 10418fi 10419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10420esac 10421fi 10422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10423printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10425 CFLAGS="$xorg_testset_save_CFLAGS" 10426fi 10427 10428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10431 fi 10432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10434printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10435if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 10442_ACEOF 10443if ac_fn_c_try_compile "$LINENO" 10444then : 10445 xorg_cv_cc_flag_unused_command_line_argument=yes 10446else case e in #( 10447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10448esac 10449fi 10450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10451esac 10452fi 10453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10456 CFLAGS="$xorg_testset_save_CFLAGS" 10457fi 10458 10459found="no" 10460 10461 if test $found = "no" ; then 10462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10464 fi 10465 10466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10468 fi 10469 10470 CFLAGS="$CFLAGS -Waddress" 10471 10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10473printf %s "checking if $CC supports -Waddress... " >&6; } 10474 cacheid=xorg_cv_cc_flag__Waddress 10475 if eval test \${$cacheid+y} 10476then : 10477 printf %s "(cached) " >&6 10478else case e in #( 10479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10480/* end confdefs.h. */ 10481int i; 10482int 10483main (void) 10484{ 10485 10486 ; 10487 return 0; 10488} 10489_ACEOF 10490if ac_fn_c_try_link "$LINENO" 10491then : 10492 eval $cacheid=yes 10493else case e in #( 10494 e) eval $cacheid=no ;; 10495esac 10496fi 10497rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10498 conftest$ac_exeext conftest.$ac_ext ;; 10499esac 10500fi 10501 10502 10503 CFLAGS="$xorg_testset_save_CFLAGS" 10504 10505 eval supported=\$$cacheid 10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10507printf "%s\n" "$supported" >&6; } 10508 if test "$supported" = "yes" ; then 10509 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10510 found="yes" 10511 fi 10512 fi 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528xorg_testset_save_CFLAGS="$CFLAGS" 10529 10530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10533printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10534if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10535then : 10536 printf %s "(cached) " >&6 10537else case e in #( 10538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10539/* end confdefs.h. */ 10540int i; 10541_ACEOF 10542if ac_fn_c_try_compile "$LINENO" 10543then : 10544 xorg_cv_cc_flag_unknown_warning_option=yes 10545else case e in #( 10546 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10547esac 10548fi 10549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10550esac 10551fi 10552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10553printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10555 CFLAGS="$xorg_testset_save_CFLAGS" 10556fi 10557 10558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10561 fi 10562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10564printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10565if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10566then : 10567 printf %s "(cached) " >&6 10568else case e in #( 10569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570/* end confdefs.h. */ 10571int i; 10572_ACEOF 10573if ac_fn_c_try_compile "$LINENO" 10574then : 10575 xorg_cv_cc_flag_unused_command_line_argument=yes 10576else case e in #( 10577 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10578esac 10579fi 10580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10581esac 10582fi 10583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10586 CFLAGS="$xorg_testset_save_CFLAGS" 10587fi 10588 10589found="no" 10590 10591 if test $found = "no" ; then 10592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10594 fi 10595 10596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10598 fi 10599 10600 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10601 10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10603printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10604 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10605 if eval test \${$cacheid+y} 10606then : 10607 printf %s "(cached) " >&6 10608else case e in #( 10609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10610/* end confdefs.h. */ 10611int i; 10612int 10613main (void) 10614{ 10615 10616 ; 10617 return 0; 10618} 10619_ACEOF 10620if ac_fn_c_try_link "$LINENO" 10621then : 10622 eval $cacheid=yes 10623else case e in #( 10624 e) eval $cacheid=no ;; 10625esac 10626fi 10627rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10628 conftest$ac_exeext conftest.$ac_ext ;; 10629esac 10630fi 10631 10632 10633 CFLAGS="$xorg_testset_save_CFLAGS" 10634 10635 eval supported=\$$cacheid 10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10637printf "%s\n" "$supported" >&6; } 10638 if test "$supported" = "yes" ; then 10639 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10640 found="yes" 10641 fi 10642 fi 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658xorg_testset_save_CFLAGS="$CFLAGS" 10659 10660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10663printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10664if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10665then : 10666 printf %s "(cached) " >&6 10667else case e in #( 10668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10669/* end confdefs.h. */ 10670int i; 10671_ACEOF 10672if ac_fn_c_try_compile "$LINENO" 10673then : 10674 xorg_cv_cc_flag_unknown_warning_option=yes 10675else case e in #( 10676 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10677esac 10678fi 10679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10680esac 10681fi 10682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10685 CFLAGS="$xorg_testset_save_CFLAGS" 10686fi 10687 10688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10691 fi 10692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10695if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 10702_ACEOF 10703if ac_fn_c_try_compile "$LINENO" 10704then : 10705 xorg_cv_cc_flag_unused_command_line_argument=yes 10706else case e in #( 10707 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10708esac 10709fi 10710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10711esac 10712fi 10713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10716 CFLAGS="$xorg_testset_save_CFLAGS" 10717fi 10718 10719found="no" 10720 10721 if test $found = "no" ; then 10722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10724 fi 10725 10726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10728 fi 10729 10730 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10731 10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10733printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10734 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10735 if eval test \${$cacheid+y} 10736then : 10737 printf %s "(cached) " >&6 10738else case e in #( 10739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10740/* end confdefs.h. */ 10741int i; 10742int 10743main (void) 10744{ 10745 10746 ; 10747 return 0; 10748} 10749_ACEOF 10750if ac_fn_c_try_link "$LINENO" 10751then : 10752 eval $cacheid=yes 10753else case e in #( 10754 e) eval $cacheid=no ;; 10755esac 10756fi 10757rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10758 conftest$ac_exeext conftest.$ac_ext ;; 10759esac 10760fi 10761 10762 10763 CFLAGS="$xorg_testset_save_CFLAGS" 10764 10765 eval supported=\$$cacheid 10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10767printf "%s\n" "$supported" >&6; } 10768 if test "$supported" = "yes" ; then 10769 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10770 found="yes" 10771 fi 10772 fi 10773 10774 10775fi 10776 10777 10778 10779 10780 10781 10782 10783 CWARNFLAGS="$BASE_CFLAGS" 10784 if test "x$GCC" = xyes ; then 10785 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10786 fi 10787 10788 10789 10790 10791 10792 10793 10794 10795# Check whether --enable-strict-compilation was given. 10796if test ${enable_strict_compilation+y} 10797then : 10798 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10799else case e in #( 10800 e) STRICT_COMPILE=no ;; 10801esac 10802fi 10803 10804 10805 10806 10807 10808 10809STRICT_CFLAGS="" 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823xorg_testset_save_CFLAGS="$CFLAGS" 10824 10825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10829if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10830then : 10831 printf %s "(cached) " >&6 10832else case e in #( 10833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10834/* end confdefs.h. */ 10835int i; 10836_ACEOF 10837if ac_fn_c_try_compile "$LINENO" 10838then : 10839 xorg_cv_cc_flag_unknown_warning_option=yes 10840else case e in #( 10841 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10842esac 10843fi 10844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10845esac 10846fi 10847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10848printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10850 CFLAGS="$xorg_testset_save_CFLAGS" 10851fi 10852 10853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10856 fi 10857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10859printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10860if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10861then : 10862 printf %s "(cached) " >&6 10863else case e in #( 10864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10865/* end confdefs.h. */ 10866int i; 10867_ACEOF 10868if ac_fn_c_try_compile "$LINENO" 10869then : 10870 xorg_cv_cc_flag_unused_command_line_argument=yes 10871else case e in #( 10872 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10873esac 10874fi 10875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10876esac 10877fi 10878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10881 CFLAGS="$xorg_testset_save_CFLAGS" 10882fi 10883 10884found="no" 10885 10886 if test $found = "no" ; then 10887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10889 fi 10890 10891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10893 fi 10894 10895 CFLAGS="$CFLAGS -pedantic" 10896 10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10898printf %s "checking if $CC supports -pedantic... " >&6; } 10899 cacheid=xorg_cv_cc_flag__pedantic 10900 if eval test \${$cacheid+y} 10901then : 10902 printf %s "(cached) " >&6 10903else case e in #( 10904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10905/* end confdefs.h. */ 10906int i; 10907int 10908main (void) 10909{ 10910 10911 ; 10912 return 0; 10913} 10914_ACEOF 10915if ac_fn_c_try_link "$LINENO" 10916then : 10917 eval $cacheid=yes 10918else case e in #( 10919 e) eval $cacheid=no ;; 10920esac 10921fi 10922rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10923 conftest$ac_exeext conftest.$ac_ext ;; 10924esac 10925fi 10926 10927 10928 CFLAGS="$xorg_testset_save_CFLAGS" 10929 10930 eval supported=\$$cacheid 10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10932printf "%s\n" "$supported" >&6; } 10933 if test "$supported" = "yes" ; then 10934 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10935 found="yes" 10936 fi 10937 fi 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953xorg_testset_save_CFLAGS="$CFLAGS" 10954 10955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10959if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10960then : 10961 printf %s "(cached) " >&6 10962else case e in #( 10963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10964/* end confdefs.h. */ 10965int i; 10966_ACEOF 10967if ac_fn_c_try_compile "$LINENO" 10968then : 10969 xorg_cv_cc_flag_unknown_warning_option=yes 10970else case e in #( 10971 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10972esac 10973fi 10974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10975esac 10976fi 10977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10980 CFLAGS="$xorg_testset_save_CFLAGS" 10981fi 10982 10983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10986 fi 10987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10990if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10991then : 10992 printf %s "(cached) " >&6 10993else case e in #( 10994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10995/* end confdefs.h. */ 10996int i; 10997_ACEOF 10998if ac_fn_c_try_compile "$LINENO" 10999then : 11000 xorg_cv_cc_flag_unused_command_line_argument=yes 11001else case e in #( 11002 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11003esac 11004fi 11005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11006esac 11007fi 11008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11011 CFLAGS="$xorg_testset_save_CFLAGS" 11012fi 11013 11014found="no" 11015 11016 if test $found = "no" ; then 11017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11019 fi 11020 11021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11023 fi 11024 11025 CFLAGS="$CFLAGS -Werror" 11026 11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11028printf %s "checking if $CC supports -Werror... " >&6; } 11029 cacheid=xorg_cv_cc_flag__Werror 11030 if eval test \${$cacheid+y} 11031then : 11032 printf %s "(cached) " >&6 11033else case e in #( 11034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11035/* end confdefs.h. */ 11036int i; 11037int 11038main (void) 11039{ 11040 11041 ; 11042 return 0; 11043} 11044_ACEOF 11045if ac_fn_c_try_link "$LINENO" 11046then : 11047 eval $cacheid=yes 11048else case e in #( 11049 e) eval $cacheid=no ;; 11050esac 11051fi 11052rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11053 conftest$ac_exeext conftest.$ac_ext ;; 11054esac 11055fi 11056 11057 11058 CFLAGS="$xorg_testset_save_CFLAGS" 11059 11060 eval supported=\$$cacheid 11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11062printf "%s\n" "$supported" >&6; } 11063 if test "$supported" = "yes" ; then 11064 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11065 found="yes" 11066 fi 11067 fi 11068 11069 if test $found = "no" ; then 11070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11072 fi 11073 11074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11076 fi 11077 11078 CFLAGS="$CFLAGS -errwarn" 11079 11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11081printf %s "checking if $CC supports -errwarn... " >&6; } 11082 cacheid=xorg_cv_cc_flag__errwarn 11083 if eval test \${$cacheid+y} 11084then : 11085 printf %s "(cached) " >&6 11086else case e in #( 11087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11088/* end confdefs.h. */ 11089int i; 11090int 11091main (void) 11092{ 11093 11094 ; 11095 return 0; 11096} 11097_ACEOF 11098if ac_fn_c_try_link "$LINENO" 11099then : 11100 eval $cacheid=yes 11101else case e in #( 11102 e) eval $cacheid=no ;; 11103esac 11104fi 11105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11106 conftest$ac_exeext conftest.$ac_ext ;; 11107esac 11108fi 11109 11110 11111 CFLAGS="$xorg_testset_save_CFLAGS" 11112 11113 eval supported=\$$cacheid 11114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11115printf "%s\n" "$supported" >&6; } 11116 if test "$supported" = "yes" ; then 11117 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11118 found="yes" 11119 fi 11120 fi 11121 11122 11123 11124# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11125# activate it with -Werror, so we add it here explicitly. 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139xorg_testset_save_CFLAGS="$CFLAGS" 11140 11141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11144printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11145if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11146then : 11147 printf %s "(cached) " >&6 11148else case e in #( 11149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11150/* end confdefs.h. */ 11151int i; 11152_ACEOF 11153if ac_fn_c_try_compile "$LINENO" 11154then : 11155 xorg_cv_cc_flag_unknown_warning_option=yes 11156else case e in #( 11157 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11158esac 11159fi 11160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11161esac 11162fi 11163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11166 CFLAGS="$xorg_testset_save_CFLAGS" 11167fi 11168 11169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11172 fi 11173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11176if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11177then : 11178 printf %s "(cached) " >&6 11179else case e in #( 11180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11181/* end confdefs.h. */ 11182int i; 11183_ACEOF 11184if ac_fn_c_try_compile "$LINENO" 11185then : 11186 xorg_cv_cc_flag_unused_command_line_argument=yes 11187else case e in #( 11188 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11189esac 11190fi 11191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11192esac 11193fi 11194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11195printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11197 CFLAGS="$xorg_testset_save_CFLAGS" 11198fi 11199 11200found="no" 11201 11202 if test $found = "no" ; then 11203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11205 fi 11206 11207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11209 fi 11210 11211 CFLAGS="$CFLAGS -Werror=attributes" 11212 11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11214printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11215 cacheid=xorg_cv_cc_flag__Werror_attributes 11216 if eval test \${$cacheid+y} 11217then : 11218 printf %s "(cached) " >&6 11219else case e in #( 11220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11221/* end confdefs.h. */ 11222int i; 11223int 11224main (void) 11225{ 11226 11227 ; 11228 return 0; 11229} 11230_ACEOF 11231if ac_fn_c_try_link "$LINENO" 11232then : 11233 eval $cacheid=yes 11234else case e in #( 11235 e) eval $cacheid=no ;; 11236esac 11237fi 11238rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11239 conftest$ac_exeext conftest.$ac_ext ;; 11240esac 11241fi 11242 11243 11244 CFLAGS="$xorg_testset_save_CFLAGS" 11245 11246 eval supported=\$$cacheid 11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11248printf "%s\n" "$supported" >&6; } 11249 if test "$supported" = "yes" ; then 11250 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11251 found="yes" 11252 fi 11253 fi 11254 11255 11256 11257if test "x$STRICT_COMPILE" = "xyes"; then 11258 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11259 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11260fi 11261 11262 11263 11264 11265 11266 11267 11268 11269cat >>confdefs.h <<_ACEOF 11270#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11271_ACEOF 11272 11273 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11274 if test "x$PVM" = "x"; then 11275 PVM="0" 11276 fi 11277 11278printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11279 11280 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11281 if test "x$PVP" = "x"; then 11282 PVP="0" 11283 fi 11284 11285printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11286 11287 11288 11289CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11290mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11291|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11292touch \$(top_srcdir)/ChangeLog; \ 11293echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11294 11295 11296 11297 11298macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11299INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11300mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11301|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11302touch \$(top_srcdir)/INSTALL; \ 11303echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11304 11305 11306 11307 11308 11309 11310case $host_os in 11311 solaris*) 11312 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11313 # check for a man page file found in later versions that use 11314 # traditional section numbers instead 11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11316printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11317if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11318then : 11319 printf %s "(cached) " >&6 11320else case e in #( 11321 e) test "$cross_compiling" = yes && 11322 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11323if test -r "/usr/share/man/man7/attributes.7"; then 11324 ac_cv_file__usr_share_man_man7_attributes_7=yes 11325else 11326 ac_cv_file__usr_share_man_man7_attributes_7=no 11327fi ;; 11328esac 11329fi 11330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11331printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11332if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11333then : 11334 SYSV_MAN_SECTIONS=false 11335else case e in #( 11336 e) SYSV_MAN_SECTIONS=true ;; 11337esac 11338fi 11339 11340 ;; 11341 *) SYSV_MAN_SECTIONS=false ;; 11342esac 11343 11344if test x$APP_MAN_SUFFIX = x ; then 11345 APP_MAN_SUFFIX=1 11346fi 11347if test x$APP_MAN_DIR = x ; then 11348 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11349fi 11350 11351if test x$LIB_MAN_SUFFIX = x ; then 11352 LIB_MAN_SUFFIX=3 11353fi 11354if test x$LIB_MAN_DIR = x ; then 11355 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11356fi 11357 11358if test x$FILE_MAN_SUFFIX = x ; then 11359 case $SYSV_MAN_SECTIONS in 11360 true) FILE_MAN_SUFFIX=4 ;; 11361 *) FILE_MAN_SUFFIX=5 ;; 11362 esac 11363fi 11364if test x$FILE_MAN_DIR = x ; then 11365 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11366fi 11367 11368if test x$MISC_MAN_SUFFIX = x ; then 11369 case $SYSV_MAN_SECTIONS in 11370 true) MISC_MAN_SUFFIX=5 ;; 11371 *) MISC_MAN_SUFFIX=7 ;; 11372 esac 11373fi 11374if test x$MISC_MAN_DIR = x ; then 11375 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11376fi 11377 11378if test x$DRIVER_MAN_SUFFIX = x ; then 11379 case $SYSV_MAN_SECTIONS in 11380 true) DRIVER_MAN_SUFFIX=7 ;; 11381 *) DRIVER_MAN_SUFFIX=4 ;; 11382 esac 11383fi 11384if test x$DRIVER_MAN_DIR = x ; then 11385 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11386fi 11387 11388if test x$ADMIN_MAN_SUFFIX = x ; then 11389 case $SYSV_MAN_SECTIONS in 11390 true) ADMIN_MAN_SUFFIX=1m ;; 11391 *) ADMIN_MAN_SUFFIX=8 ;; 11392 esac 11393fi 11394if test x$ADMIN_MAN_DIR = x ; then 11395 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11396fi 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412XORG_MAN_PAGE="X Version 11" 11413 11414MAN_SUBSTS="\ 11415 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11416 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11417 -e 's|__xservername__|Xorg|g' \ 11418 -e 's|__xconfigfile__|xorg.conf|g' \ 11419 -e 's|__projectroot__|\$(prefix)|g' \ 11420 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11421 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11422 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11423 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11424 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11425 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11426 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11427 11428 11429 11430# Check whether --enable-silent-rules was given. 11431if test ${enable_silent_rules+y} 11432then : 11433 enableval=$enable_silent_rules; 11434fi 11435 11436case $enable_silent_rules in # ((( 11437 yes) AM_DEFAULT_VERBOSITY=0;; 11438 no) AM_DEFAULT_VERBOSITY=1;; 11439 *) AM_DEFAULT_VERBOSITY=0;; 11440esac 11441am_make=${MAKE-make} 11442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11443printf %s "checking whether $am_make supports nested variables... " >&6; } 11444if test ${am_cv_make_support_nested_variables+y} 11445then : 11446 printf %s "(cached) " >&6 11447else case e in #( 11448 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11449BAR0=false 11450BAR1=true 11451V=1 11452am__doit: 11453 @$(TRUE) 11454.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11455 am_cv_make_support_nested_variables=yes 11456else 11457 am_cv_make_support_nested_variables=no 11458fi ;; 11459esac 11460fi 11461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11462printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11463if test $am_cv_make_support_nested_variables = yes; then 11464 AM_V='$(V)' 11465 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11466else 11467 AM_V=$AM_DEFAULT_VERBOSITY 11468 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11469fi 11470AM_BACKSLASH='\' 11471 11472 11473 11474 11475# Checks for typedefs, structures, and compiler characteristics. 11476# Check whether --enable-largefile was given. 11477if test ${enable_largefile+y} 11478then : 11479 enableval=$enable_largefile; 11480fi 11481if test "$enable_largefile,$enable_year2038" != no,no 11482then : 11483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11484printf %s "checking for $CC option to enable large file support... " >&6; } 11485if test ${ac_cv_sys_largefile_opts+y} 11486then : 11487 printf %s "(cached) " >&6 11488else case e in #( 11489 e) ac_save_CC="$CC" 11490 ac_opt_found=no 11491 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11492 if test x"$ac_opt" != x"none needed" 11493then : 11494 CC="$ac_save_CC $ac_opt" 11495fi 11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11497/* end confdefs.h. */ 11498#include <sys/types.h> 11499#ifndef FTYPE 11500# define FTYPE off_t 11501#endif 11502 /* Check that FTYPE can represent 2**63 - 1 correctly. 11503 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11504 since some C++ compilers masquerading as C compilers 11505 incorrectly reject 9223372036854775807. */ 11506#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11507 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11508 && LARGE_FTYPE % 2147483647 == 1) 11509 ? 1 : -1]; 11510int 11511main (void) 11512{ 11513 11514 ; 11515 return 0; 11516} 11517_ACEOF 11518if ac_fn_c_try_compile "$LINENO" 11519then : 11520 if test x"$ac_opt" = x"none needed" 11521then : 11522 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11523 CC="$CC -DFTYPE=ino_t" 11524 if ac_fn_c_try_compile "$LINENO" 11525then : 11526 11527else case e in #( 11528 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11529 if ac_fn_c_try_compile "$LINENO" 11530then : 11531 ac_opt='-D_FILE_OFFSET_BITS=64' 11532fi 11533rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11534esac 11535fi 11536rm -f core conftest.err conftest.$ac_objext conftest.beam 11537fi 11538 ac_cv_sys_largefile_opts=$ac_opt 11539 ac_opt_found=yes 11540fi 11541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11542 test $ac_opt_found = no || break 11543 done 11544 CC="$ac_save_CC" 11545 11546 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11547esac 11548fi 11549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11550printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11551 11552ac_have_largefile=yes 11553case $ac_cv_sys_largefile_opts in #( 11554 "none needed") : 11555 ;; #( 11556 "supported through gnulib") : 11557 ;; #( 11558 "support not detected") : 11559 ac_have_largefile=no ;; #( 11560 "-D_FILE_OFFSET_BITS=64") : 11561 11562printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11563 ;; #( 11564 "-D_LARGE_FILES=1") : 11565 11566printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11567 ;; #( 11568 "-n32") : 11569 CC="$CC -n32" ;; #( 11570 *) : 11571 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11572esac 11573 11574if test "$enable_year2038" != no 11575then : 11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11577printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11578if test ${ac_cv_sys_year2038_opts+y} 11579then : 11580 printf %s "(cached) " >&6 11581else case e in #( 11582 e) ac_save_CPPFLAGS="$CPPFLAGS" 11583 ac_opt_found=no 11584 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 11585 if test x"$ac_opt" != x"none needed" 11586then : 11587 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11588fi 11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11590/* end confdefs.h. */ 11591 11592 #include <time.h> 11593 /* Check that time_t can represent 2**32 - 1 correctly. */ 11594 #define LARGE_TIME_T \\ 11595 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11596 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11597 && LARGE_TIME_T % 65537 == 0) 11598 ? 1 : -1]; 11599 11600int 11601main (void) 11602{ 11603 11604 ; 11605 return 0; 11606} 11607_ACEOF 11608if ac_fn_c_try_compile "$LINENO" 11609then : 11610 ac_cv_sys_year2038_opts="$ac_opt" 11611 ac_opt_found=yes 11612fi 11613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11614 test $ac_opt_found = no || break 11615 done 11616 CPPFLAGS="$ac_save_CPPFLAGS" 11617 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11618esac 11619fi 11620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11621printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11622 11623ac_have_year2038=yes 11624case $ac_cv_sys_year2038_opts in #( 11625 "none needed") : 11626 ;; #( 11627 "support not detected") : 11628 ac_have_year2038=no ;; #( 11629 "-D_TIME_BITS=64") : 11630 11631printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11632 ;; #( 11633 "-D__MINGW_USE_VC2005_COMPAT") : 11634 11635printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11636 ;; #( 11637 "-U_USE_32_BIT_TIME_T"*) : 11638 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11639printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11640as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11641will stop working after mid-January 2038. Remove 11642_USE_32BIT_TIME_T from the compiler flags. 11643See 'config.log' for more details" "$LINENO" 5; } ;; #( 11644 *) : 11645 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11646esac 11647 11648fi 11649 11650fi 11651 11652# Checks for pkg-config packages 11653 11654pkg_failed=no 11655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMESSAGE" >&5 11656printf %s "checking for XMESSAGE... " >&6; } 11657 11658if test -n "$XMESSAGE_CFLAGS"; then 11659 pkg_cv_XMESSAGE_CFLAGS="$XMESSAGE_CFLAGS" 11660 elif test -n "$PKG_CONFIG"; then 11661 if test -n "$PKG_CONFIG" && \ 11662 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 11663 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 11664 ac_status=$? 11665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11666 test $ac_status = 0; }; then 11667 pkg_cv_XMESSAGE_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null` 11668 test "x$?" != "x0" && pkg_failed=yes 11669else 11670 pkg_failed=yes 11671fi 11672 else 11673 pkg_failed=untried 11674fi 11675if test -n "$XMESSAGE_LIBS"; then 11676 pkg_cv_XMESSAGE_LIBS="$XMESSAGE_LIBS" 11677 elif test -n "$PKG_CONFIG"; then 11678 if test -n "$PKG_CONFIG" && \ 11679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 11680 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 11681 ac_status=$? 11682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11683 test $ac_status = 0; }; then 11684 pkg_cv_XMESSAGE_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null` 11685 test "x$?" != "x0" && pkg_failed=yes 11686else 11687 pkg_failed=yes 11688fi 11689 else 11690 pkg_failed=untried 11691fi 11692 11693 11694 11695if test $pkg_failed = yes; then 11696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11697printf "%s\n" "no" >&6; } 11698 11699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11700 _pkg_short_errors_supported=yes 11701else 11702 _pkg_short_errors_supported=no 11703fi 11704 if test $_pkg_short_errors_supported = yes; then 11705 XMESSAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7" 2>&1` 11706 else 11707 XMESSAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7" 2>&1` 11708 fi 11709 # Put the nasty error message in config.log where it belongs 11710 echo "$XMESSAGE_PKG_ERRORS" >&5 11711 11712 as_fn_error $? "Package requirements (xaw7) were not met: 11713 11714$XMESSAGE_PKG_ERRORS 11715 11716Consider adjusting the PKG_CONFIG_PATH environment variable if you 11717installed software in a non-standard prefix. 11718 11719Alternatively, you may set the environment variables XMESSAGE_CFLAGS 11720and XMESSAGE_LIBS to avoid the need to call pkg-config. 11721See the pkg-config man page for more details." "$LINENO" 5 11722elif test $pkg_failed = untried; then 11723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11724printf "%s\n" "no" >&6; } 11725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11726printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11727as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11728is in your PATH or set the PKG_CONFIG environment variable to the full 11729path to pkg-config. 11730 11731Alternatively, you may set the environment variables XMESSAGE_CFLAGS 11732and XMESSAGE_LIBS to avoid the need to call pkg-config. 11733See the pkg-config man page for more details. 11734 11735To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11736See 'config.log' for more details" "$LINENO" 5; } 11737else 11738 XMESSAGE_CFLAGS=$pkg_cv_XMESSAGE_CFLAGS 11739 XMESSAGE_LIBS=$pkg_cv_XMESSAGE_LIBS 11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11741printf "%s\n" "yes" >&6; } 11742 11743fi 11744 11745 11746pkg_failed=no 11747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11748printf %s "checking for APPDEFS... " >&6; } 11749 11750if test -n "$APPDEFS_CFLAGS"; then 11751 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11752 elif test -n "$PKG_CONFIG"; then 11753 if test -n "$PKG_CONFIG" && \ 11754 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11755 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11756 ac_status=$? 11757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11758 test $ac_status = 0; }; then 11759 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11760 test "x$?" != "x0" && pkg_failed=yes 11761else 11762 pkg_failed=yes 11763fi 11764 else 11765 pkg_failed=untried 11766fi 11767if test -n "$APPDEFS_LIBS"; then 11768 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11769 elif test -n "$PKG_CONFIG"; then 11770 if test -n "$PKG_CONFIG" && \ 11771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11772 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11773 ac_status=$? 11774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11775 test $ac_status = 0; }; then 11776 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11777 test "x$?" != "x0" && pkg_failed=yes 11778else 11779 pkg_failed=yes 11780fi 11781 else 11782 pkg_failed=untried 11783fi 11784 11785 11786 11787if test $pkg_failed = yes; then 11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11789printf "%s\n" "no" >&6; } 11790 11791if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11792 _pkg_short_errors_supported=yes 11793else 11794 _pkg_short_errors_supported=no 11795fi 11796 if test $_pkg_short_errors_supported = yes; then 11797 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11798 else 11799 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11800 fi 11801 # Put the nasty error message in config.log where it belongs 11802 echo "$APPDEFS_PKG_ERRORS" >&5 11803 11804 as_fn_error $? "Package requirements (xt) were not met: 11805 11806$APPDEFS_PKG_ERRORS 11807 11808Consider adjusting the PKG_CONFIG_PATH environment variable if you 11809installed software in a non-standard prefix. 11810 11811Alternatively, you may set the environment variables APPDEFS_CFLAGS 11812and APPDEFS_LIBS to avoid the need to call pkg-config. 11813See the pkg-config man page for more details." "$LINENO" 5 11814elif test $pkg_failed = untried; then 11815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11816printf "%s\n" "no" >&6; } 11817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11818printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11819as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11820is in your PATH or set the PKG_CONFIG environment variable to the full 11821path to pkg-config. 11822 11823Alternatively, you may set the environment variables APPDEFS_CFLAGS 11824and APPDEFS_LIBS to avoid the need to call pkg-config. 11825See the pkg-config man page for more details. 11826 11827To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11828See 'config.log' for more details" "$LINENO" 5; } 11829else 11830 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11831 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11833printf "%s\n" "yes" >&6; } 11834 11835fi 11836xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11837 11838# Check whether --with-appdefaultdir was given. 11839if test ${with_appdefaultdir+y} 11840then : 11841 withval=$with_appdefaultdir; appdefaultdir="$withval" 11842else case e in #( 11843 e) appdefaultdir="${xt_appdefaultdir}" ;; 11844esac 11845fi 11846 11847 11848 11849 11850ac_config_files="$ac_config_files Makefile man/Makefile" 11851 11852cat >confcache <<\_ACEOF 11853# This file is a shell script that caches the results of configure 11854# tests run on this system so they can be shared between configure 11855# scripts and configure runs, see configure's option --config-cache. 11856# It is not useful on other systems. If it contains results you don't 11857# want to keep, you may remove or edit it. 11858# 11859# config.status only pays attention to the cache file if you give it 11860# the --recheck option to rerun configure. 11861# 11862# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11863# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11864# following values. 11865 11866_ACEOF 11867 11868# The following way of writing the cache mishandles newlines in values, 11869# but we know of no workaround that is simple, portable, and efficient. 11870# So, we kill variables containing newlines. 11871# Ultrix sh set writes to stderr and can't be redirected directly, 11872# and sets the high bit in the cache file unless we assign to the vars. 11873( 11874 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11875 eval ac_val=\$$ac_var 11876 case $ac_val in #( 11877 *${as_nl}*) 11878 case $ac_var in #( 11879 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11880printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11881 esac 11882 case $ac_var in #( 11883 _ | IFS | as_nl) ;; #( 11884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11885 *) { eval $ac_var=; unset $ac_var;} ;; 11886 esac ;; 11887 esac 11888 done 11889 11890 (set) 2>&1 | 11891 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11892 *${as_nl}ac_space=\ *) 11893 # 'set' does not quote correctly, so add quotes: double-quote 11894 # substitution turns \\\\ into \\, and sed turns \\ into \. 11895 sed -n \ 11896 "s/'/'\\\\''/g; 11897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11898 ;; #( 11899 *) 11900 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11902 ;; 11903 esac | 11904 sort 11905) | 11906 sed ' 11907 /^ac_cv_env_/b end 11908 t clear 11909 :clear 11910 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11911 t end 11912 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11913 :end' >>confcache 11914if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11915 if test -w "$cache_file"; then 11916 if test "x$cache_file" != "x/dev/null"; then 11917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11918printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11919 if test ! -f "$cache_file" || test -h "$cache_file"; then 11920 cat confcache >"$cache_file" 11921 else 11922 case $cache_file in #( 11923 */* | ?:*) 11924 mv -f confcache "$cache_file"$$ && 11925 mv -f "$cache_file"$$ "$cache_file" ;; #( 11926 *) 11927 mv -f confcache "$cache_file" ;; 11928 esac 11929 fi 11930 fi 11931 else 11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11933printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11934 fi 11935fi 11936rm -f confcache 11937 11938test "x$prefix" = xNONE && prefix=$ac_default_prefix 11939# Let make expand exec_prefix. 11940test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11941 11942DEFS=-DHAVE_CONFIG_H 11943 11944ac_libobjs= 11945ac_ltlibobjs= 11946U= 11947for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11948 # 1. Remove the extension, and $U if already installed. 11949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11950 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11952 # will be set to the directory where LIBOBJS objects are built. 11953 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11954 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11955done 11956LIBOBJS=$ac_libobjs 11957 11958LTLIBOBJS=$ac_ltlibobjs 11959 11960 11961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11962printf %s "checking that generated files are newer than configure... " >&6; } 11963 if test -n "$am_sleep_pid"; then 11964 # Hide warnings about reused PIDs. 11965 wait $am_sleep_pid 2>/dev/null 11966 fi 11967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11968printf "%s\n" "done" >&6; } 11969 if test -n "$EXEEXT"; then 11970 am__EXEEXT_TRUE= 11971 am__EXEEXT_FALSE='#' 11972else 11973 am__EXEEXT_TRUE='#' 11974 am__EXEEXT_FALSE= 11975fi 11976 11977if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11978 as_fn_error $? "conditional \"AMDEP\" was never defined. 11979Usually this means the macro was only invoked conditionally." "$LINENO" 5 11980fi 11981if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11982 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11983Usually this means the macro was only invoked conditionally." "$LINENO" 5 11984fi 11985# Check whether --enable-year2038 was given. 11986if test ${enable_year2038+y} 11987then : 11988 enableval=$enable_year2038; 11989fi 11990 11991 11992: "${CONFIG_STATUS=./config.status}" 11993ac_write_fail=0 11994ac_clean_files_save=$ac_clean_files 11995ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11997printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11998as_write_fail=0 11999cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12000#! $SHELL 12001# Generated by $as_me. 12002# Run this file to recreate the current configuration. 12003# Compiler output produced by configure, useful for debugging 12004# configure, is in config.log if it exists. 12005 12006debug=false 12007ac_cs_recheck=false 12008ac_cs_silent=false 12009 12010SHELL=\${CONFIG_SHELL-$SHELL} 12011export SHELL 12012_ASEOF 12013cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12014## -------------------- ## 12015## M4sh Initialization. ## 12016## -------------------- ## 12017 12018# Be more Bourne compatible 12019DUALCASE=1; export DUALCASE # for MKS sh 12020if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12021then : 12022 emulate sh 12023 NULLCMD=: 12024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12025 # is contrary to our usage. Disable this feature. 12026 alias -g '${1+"$@"}'='"$@"' 12027 setopt NO_GLOB_SUBST 12028else case e in #( 12029 e) case `(set -o) 2>/dev/null` in #( 12030 *posix*) : 12031 set -o posix ;; #( 12032 *) : 12033 ;; 12034esac ;; 12035esac 12036fi 12037 12038 12039 12040# Reset variables that may have inherited troublesome values from 12041# the environment. 12042 12043# IFS needs to be set, to space, tab, and newline, in precisely that order. 12044# (If _AS_PATH_WALK were called with IFS unset, it would have the 12045# side effect of setting IFS to empty, thus disabling word splitting.) 12046# Quoting is to prevent editors from complaining about space-tab. 12047as_nl=' 12048' 12049export as_nl 12050IFS=" "" $as_nl" 12051 12052PS1='$ ' 12053PS2='> ' 12054PS4='+ ' 12055 12056# Ensure predictable behavior from utilities with locale-dependent output. 12057LC_ALL=C 12058export LC_ALL 12059LANGUAGE=C 12060export LANGUAGE 12061 12062# We cannot yet rely on "unset" to work, but we need these variables 12063# to be unset--not just set to an empty or harmless value--now, to 12064# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12065# also avoids known problems related to "unset" and subshell syntax 12066# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12067for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12068do eval test \${$as_var+y} \ 12069 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12070done 12071 12072# Ensure that fds 0, 1, and 2 are open. 12073if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12074if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12075if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12076 12077# The user is always right. 12078if ${PATH_SEPARATOR+false} :; then 12079 PATH_SEPARATOR=: 12080 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12081 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12082 PATH_SEPARATOR=';' 12083 } 12084fi 12085 12086 12087# Find who we are. Look in the path if we contain no directory separator. 12088as_myself= 12089case $0 in #(( 12090 *[\\/]* ) as_myself=$0 ;; 12091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12092for as_dir in $PATH 12093do 12094 IFS=$as_save_IFS 12095 case $as_dir in #((( 12096 '') as_dir=./ ;; 12097 */) ;; 12098 *) as_dir=$as_dir/ ;; 12099 esac 12100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12101 done 12102IFS=$as_save_IFS 12103 12104 ;; 12105esac 12106# We did not find ourselves, most probably we were run as 'sh COMMAND' 12107# in which case we are not to be found in the path. 12108if test "x$as_myself" = x; then 12109 as_myself=$0 12110fi 12111if test ! -f "$as_myself"; then 12112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12113 exit 1 12114fi 12115 12116 12117 12118# as_fn_error STATUS ERROR [LINENO LOG_FD] 12119# ---------------------------------------- 12120# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12121# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12122# script with STATUS, using 1 if that was 0. 12123as_fn_error () 12124{ 12125 as_status=$1; test $as_status -eq 0 && as_status=1 12126 if test "$4"; then 12127 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12129 fi 12130 printf "%s\n" "$as_me: error: $2" >&2 12131 as_fn_exit $as_status 12132} # as_fn_error 12133 12134 12135# as_fn_set_status STATUS 12136# ----------------------- 12137# Set $? to STATUS, without forking. 12138as_fn_set_status () 12139{ 12140 return $1 12141} # as_fn_set_status 12142 12143# as_fn_exit STATUS 12144# ----------------- 12145# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12146as_fn_exit () 12147{ 12148 set +e 12149 as_fn_set_status $1 12150 exit $1 12151} # as_fn_exit 12152 12153# as_fn_unset VAR 12154# --------------- 12155# Portably unset VAR. 12156as_fn_unset () 12157{ 12158 { eval $1=; unset $1;} 12159} 12160as_unset=as_fn_unset 12161 12162# as_fn_append VAR VALUE 12163# ---------------------- 12164# Append the text in VALUE to the end of the definition contained in VAR. Take 12165# advantage of any shell optimizations that allow amortized linear growth over 12166# repeated appends, instead of the typical quadratic growth present in naive 12167# implementations. 12168if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12169then : 12170 eval 'as_fn_append () 12171 { 12172 eval $1+=\$2 12173 }' 12174else case e in #( 12175 e) as_fn_append () 12176 { 12177 eval $1=\$$1\$2 12178 } ;; 12179esac 12180fi # as_fn_append 12181 12182# as_fn_arith ARG... 12183# ------------------ 12184# Perform arithmetic evaluation on the ARGs, and store the result in the 12185# global $as_val. Take advantage of shells that can avoid forks. The arguments 12186# must be portable across $(()) and expr. 12187if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12188then : 12189 eval 'as_fn_arith () 12190 { 12191 as_val=$(( $* )) 12192 }' 12193else case e in #( 12194 e) as_fn_arith () 12195 { 12196 as_val=`expr "$@" || test $? -eq 1` 12197 } ;; 12198esac 12199fi # as_fn_arith 12200 12201 12202if expr a : '\(a\)' >/dev/null 2>&1 && 12203 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12204 as_expr=expr 12205else 12206 as_expr=false 12207fi 12208 12209if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12210 as_basename=basename 12211else 12212 as_basename=false 12213fi 12214 12215if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12216 as_dirname=dirname 12217else 12218 as_dirname=false 12219fi 12220 12221as_me=`$as_basename -- "$0" || 12222$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12223 X"$0" : 'X\(//\)$' \| \ 12224 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12225printf "%s\n" X/"$0" | 12226 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12227 s//\1/ 12228 q 12229 } 12230 /^X\/\(\/\/\)$/{ 12231 s//\1/ 12232 q 12233 } 12234 /^X\/\(\/\).*/{ 12235 s//\1/ 12236 q 12237 } 12238 s/.*/./; q'` 12239 12240# Avoid depending upon Character Ranges. 12241as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12242as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12243as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12244as_cr_digits='0123456789' 12245as_cr_alnum=$as_cr_Letters$as_cr_digits 12246 12247 12248# Determine whether it's possible to make 'echo' print without a newline. 12249# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12250# for compatibility with existing Makefiles. 12251ECHO_C= ECHO_N= ECHO_T= 12252case `echo -n x` in #((((( 12253-n*) 12254 case `echo 'xy\c'` in 12255 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12256 xy) ECHO_C='\c';; 12257 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12258 ECHO_T=' ';; 12259 esac;; 12260*) 12261 ECHO_N='-n';; 12262esac 12263 12264# For backward compatibility with old third-party macros, we provide 12265# the shell variables $as_echo and $as_echo_n. New code should use 12266# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12267as_echo='printf %s\n' 12268as_echo_n='printf %s' 12269 12270rm -f conf$$ conf$$.exe conf$$.file 12271if test -d conf$$.dir; then 12272 rm -f conf$$.dir/conf$$.file 12273else 12274 rm -f conf$$.dir 12275 mkdir conf$$.dir 2>/dev/null 12276fi 12277if (echo >conf$$.file) 2>/dev/null; then 12278 if ln -s conf$$.file conf$$ 2>/dev/null; then 12279 as_ln_s='ln -s' 12280 # ... but there are two gotchas: 12281 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12282 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12283 # In both cases, we have to default to 'cp -pR'. 12284 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12285 as_ln_s='cp -pR' 12286 elif ln conf$$.file conf$$ 2>/dev/null; then 12287 as_ln_s=ln 12288 else 12289 as_ln_s='cp -pR' 12290 fi 12291else 12292 as_ln_s='cp -pR' 12293fi 12294rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12295rmdir conf$$.dir 2>/dev/null 12296 12297 12298# as_fn_mkdir_p 12299# ------------- 12300# Create "$as_dir" as a directory, including parents if necessary. 12301as_fn_mkdir_p () 12302{ 12303 12304 case $as_dir in #( 12305 -*) as_dir=./$as_dir;; 12306 esac 12307 test -d "$as_dir" || eval $as_mkdir_p || { 12308 as_dirs= 12309 while :; do 12310 case $as_dir in #( 12311 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12312 *) as_qdir=$as_dir;; 12313 esac 12314 as_dirs="'$as_qdir' $as_dirs" 12315 as_dir=`$as_dirname -- "$as_dir" || 12316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12317 X"$as_dir" : 'X\(//\)[^/]' \| \ 12318 X"$as_dir" : 'X\(//\)$' \| \ 12319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12320printf "%s\n" X"$as_dir" | 12321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12322 s//\1/ 12323 q 12324 } 12325 /^X\(\/\/\)[^/].*/{ 12326 s//\1/ 12327 q 12328 } 12329 /^X\(\/\/\)$/{ 12330 s//\1/ 12331 q 12332 } 12333 /^X\(\/\).*/{ 12334 s//\1/ 12335 q 12336 } 12337 s/.*/./; q'` 12338 test -d "$as_dir" && break 12339 done 12340 test -z "$as_dirs" || eval "mkdir $as_dirs" 12341 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12342 12343 12344} # as_fn_mkdir_p 12345if mkdir -p . 2>/dev/null; then 12346 as_mkdir_p='mkdir -p "$as_dir"' 12347else 12348 test -d ./-p && rmdir ./-p 12349 as_mkdir_p=false 12350fi 12351 12352 12353# as_fn_executable_p FILE 12354# ----------------------- 12355# Test if FILE is an executable regular file. 12356as_fn_executable_p () 12357{ 12358 test -f "$1" && test -x "$1" 12359} # as_fn_executable_p 12360as_test_x='test -x' 12361as_executable_p=as_fn_executable_p 12362 12363# Sed expression to map a string onto a valid CPP name. 12364as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12365as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12366 12367# Sed expression to map a string onto a valid variable name. 12368as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12369as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12370 12371 12372exec 6>&1 12373## ----------------------------------- ## 12374## Main body of $CONFIG_STATUS script. ## 12375## ----------------------------------- ## 12376_ASEOF 12377test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12378 12379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12380# Save the log message, to keep $0 and so on meaningful, and to 12381# report actual input values of CONFIG_FILES etc. instead of their 12382# values after options handling. 12383ac_log=" 12384This file was extended by xmessage $as_me 1.0.7, which was 12385generated by GNU Autoconf 2.72. Invocation command line was 12386 12387 CONFIG_FILES = $CONFIG_FILES 12388 CONFIG_HEADERS = $CONFIG_HEADERS 12389 CONFIG_LINKS = $CONFIG_LINKS 12390 CONFIG_COMMANDS = $CONFIG_COMMANDS 12391 $ $0 $@ 12392 12393on `(hostname || uname -n) 2>/dev/null | sed 1q` 12394" 12395 12396_ACEOF 12397 12398case $ac_config_files in *" 12399"*) set x $ac_config_files; shift; ac_config_files=$*;; 12400esac 12401 12402case $ac_config_headers in *" 12403"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12404esac 12405 12406 12407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12408# Files that config.status was made for. 12409config_files="$ac_config_files" 12410config_headers="$ac_config_headers" 12411config_commands="$ac_config_commands" 12412 12413_ACEOF 12414 12415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12416ac_cs_usage="\ 12417'$as_me' instantiates files and other configuration actions 12418from templates according to the current configuration. Unless the files 12419and actions are specified as TAGs, all are instantiated by default. 12420 12421Usage: $0 [OPTION]... [TAG]... 12422 12423 -h, --help print this help, then exit 12424 -V, --version print version number and configuration settings, then exit 12425 --config print configuration, then exit 12426 -q, --quiet, --silent 12427 do not print progress messages 12428 -d, --debug don't remove temporary files 12429 --recheck update $as_me by reconfiguring in the same conditions 12430 --file=FILE[:TEMPLATE] 12431 instantiate the configuration file FILE 12432 --header=FILE[:TEMPLATE] 12433 instantiate the configuration header FILE 12434 12435Configuration files: 12436$config_files 12437 12438Configuration headers: 12439$config_headers 12440 12441Configuration commands: 12442$config_commands 12443 12444Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmessage/-/issues>." 12445 12446_ACEOF 12447ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12448ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12450ac_cs_config='$ac_cs_config_escaped' 12451ac_cs_version="\\ 12452xmessage config.status 1.0.7 12453configured by $0, generated by GNU Autoconf 2.72, 12454 with options \\"\$ac_cs_config\\" 12455 12456Copyright (C) 2023 Free Software Foundation, Inc. 12457This config.status script is free software; the Free Software Foundation 12458gives unlimited permission to copy, distribute and modify it." 12459 12460ac_pwd='$ac_pwd' 12461srcdir='$srcdir' 12462INSTALL='$INSTALL' 12463MKDIR_P='$MKDIR_P' 12464AWK='$AWK' 12465test -n "\$AWK" || AWK=awk 12466_ACEOF 12467 12468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12469# The default lists apply if the user does not specify any file. 12470ac_need_defaults=: 12471while test $# != 0 12472do 12473 case $1 in 12474 --*=?*) 12475 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12476 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12477 ac_shift=: 12478 ;; 12479 --*=) 12480 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12481 ac_optarg= 12482 ac_shift=: 12483 ;; 12484 *) 12485 ac_option=$1 12486 ac_optarg=$2 12487 ac_shift=shift 12488 ;; 12489 esac 12490 12491 case $ac_option in 12492 # Handling of the options. 12493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12494 ac_cs_recheck=: ;; 12495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12496 printf "%s\n" "$ac_cs_version"; exit ;; 12497 --config | --confi | --conf | --con | --co | --c ) 12498 printf "%s\n" "$ac_cs_config"; exit ;; 12499 --debug | --debu | --deb | --de | --d | -d ) 12500 debug=: ;; 12501 --file | --fil | --fi | --f ) 12502 $ac_shift 12503 case $ac_optarg in 12504 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12505 '') as_fn_error $? "missing file argument" ;; 12506 esac 12507 as_fn_append CONFIG_FILES " '$ac_optarg'" 12508 ac_need_defaults=false;; 12509 --header | --heade | --head | --hea ) 12510 $ac_shift 12511 case $ac_optarg in 12512 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12513 esac 12514 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12515 ac_need_defaults=false;; 12516 --he | --h) 12517 # Conflict between --help and --header 12518 as_fn_error $? "ambiguous option: '$1' 12519Try '$0 --help' for more information.";; 12520 --help | --hel | -h ) 12521 printf "%s\n" "$ac_cs_usage"; exit ;; 12522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12523 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12524 ac_cs_silent=: ;; 12525 12526 # This is an error. 12527 -*) as_fn_error $? "unrecognized option: '$1' 12528Try '$0 --help' for more information." ;; 12529 12530 *) as_fn_append ac_config_targets " $1" 12531 ac_need_defaults=false ;; 12532 12533 esac 12534 shift 12535done 12536 12537ac_configure_extra_args= 12538 12539if $ac_cs_silent; then 12540 exec 6>/dev/null 12541 ac_configure_extra_args="$ac_configure_extra_args --silent" 12542fi 12543 12544_ACEOF 12545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12546if \$ac_cs_recheck; then 12547 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12548 shift 12549 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12550 CONFIG_SHELL='$SHELL' 12551 export CONFIG_SHELL 12552 exec "\$@" 12553fi 12554 12555_ACEOF 12556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12557exec 5>>config.log 12558{ 12559 echo 12560 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12561## Running $as_me. ## 12562_ASBOX 12563 printf "%s\n" "$ac_log" 12564} >&5 12565 12566_ACEOF 12567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12568# 12569# INIT-COMMANDS 12570# 12571AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12572 12573_ACEOF 12574 12575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12576 12577# Handling of arguments. 12578for ac_config_target in $ac_config_targets 12579do 12580 case $ac_config_target in 12581 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12583 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12584 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12585 12586 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12587 esac 12588done 12589 12590 12591# If the user did not use the arguments to specify the items to instantiate, 12592# then the envvar interface is used. Set only those that are not. 12593# We use the long form for the default assignment because of an extremely 12594# bizarre bug on SunOS 4.1.3. 12595if $ac_need_defaults; then 12596 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12597 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12598 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12599fi 12600 12601# Have a temporary directory for convenience. Make it in the build tree 12602# simply because there is no reason against having it here, and in addition, 12603# creating and moving files from /tmp can sometimes cause problems. 12604# Hook for its removal unless debugging. 12605# Note that there is a small window in which the directory will not be cleaned: 12606# after its creation but before its name has been assigned to '$tmp'. 12607$debug || 12608{ 12609 tmp= ac_tmp= 12610 trap 'exit_status=$? 12611 : "${ac_tmp:=$tmp}" 12612 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12613' 0 12614 trap 'as_fn_exit 1' 1 2 13 15 12615} 12616# Create a (secure) tmp directory for tmp files. 12617 12618{ 12619 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12620 test -d "$tmp" 12621} || 12622{ 12623 tmp=./conf$$-$RANDOM 12624 (umask 077 && mkdir "$tmp") 12625} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12626ac_tmp=$tmp 12627 12628# Set up the scripts for CONFIG_FILES section. 12629# No need to generate them if there are no CONFIG_FILES. 12630# This happens for instance with './config.status config.h'. 12631if test -n "$CONFIG_FILES"; then 12632 12633 12634ac_cr=`echo X | tr X '\015'` 12635# On cygwin, bash can eat \r inside `` if the user requested igncr. 12636# But we know of no other shell where ac_cr would be empty at this 12637# point, so we can use a bashism as a fallback. 12638if test "x$ac_cr" = x; then 12639 eval ac_cr=\$\'\\r\' 12640fi 12641ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12642if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12643 ac_cs_awk_cr='\\r' 12644else 12645 ac_cs_awk_cr=$ac_cr 12646fi 12647 12648echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12649_ACEOF 12650 12651 12652{ 12653 echo "cat >conf$$subs.awk <<_ACEOF" && 12654 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12655 echo "_ACEOF" 12656} >conf$$subs.sh || 12657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12658ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12659ac_delim='%!_!# ' 12660for ac_last_try in false false false false false :; do 12661 . ./conf$$subs.sh || 12662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12663 12664 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12665 if test $ac_delim_n = $ac_delim_num; then 12666 break 12667 elif $ac_last_try; then 12668 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12669 else 12670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12671 fi 12672done 12673rm -f conf$$subs.sh 12674 12675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12676cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12677_ACEOF 12678sed -n ' 12679h 12680s/^/S["/; s/!.*/"]=/ 12681p 12682g 12683s/^[^!]*!// 12684:repl 12685t repl 12686s/'"$ac_delim"'$// 12687t delim 12688:nl 12689h 12690s/\(.\{148\}\)..*/\1/ 12691t more1 12692s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12693p 12694n 12695b repl 12696:more1 12697s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12698p 12699g 12700s/.\{148\}// 12701t nl 12702:delim 12703h 12704s/\(.\{148\}\)..*/\1/ 12705t more2 12706s/["\\]/\\&/g; s/^/"/; s/$/"/ 12707p 12708b 12709:more2 12710s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12711p 12712g 12713s/.\{148\}// 12714t delim 12715' <conf$$subs.awk | sed ' 12716/^[^""]/{ 12717 N 12718 s/\n// 12719} 12720' >>$CONFIG_STATUS || ac_write_fail=1 12721rm -f conf$$subs.awk 12722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12723_ACAWK 12724cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12725 for (key in S) S_is_set[key] = 1 12726 FS = "" 12727 12728} 12729{ 12730 line = $ 0 12731 nfields = split(line, field, "@") 12732 substed = 0 12733 len = length(field[1]) 12734 for (i = 2; i < nfields; i++) { 12735 key = field[i] 12736 keylen = length(key) 12737 if (S_is_set[key]) { 12738 value = S[key] 12739 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12740 len += length(value) + length(field[++i]) 12741 substed = 1 12742 } else 12743 len += 1 + keylen 12744 } 12745 12746 print line 12747} 12748 12749_ACAWK 12750_ACEOF 12751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12752if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12753 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12754else 12755 cat 12756fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12757 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12758_ACEOF 12759 12760# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12761# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12762# trailing colons and then remove the whole line if VPATH becomes empty 12763# (actually we leave an empty line to preserve line numbers). 12764if test "x$srcdir" = x.; then 12765 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12766h 12767s/// 12768s/^/:/ 12769s/[ ]*$/:/ 12770s/:\$(srcdir):/:/g 12771s/:\${srcdir}:/:/g 12772s/:@srcdir@:/:/g 12773s/^:*// 12774s/:*$// 12775x 12776s/\(=[ ]*\).*/\1/ 12777G 12778s/\n// 12779s/^[^=]*=[ ]*$// 12780}' 12781fi 12782 12783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12784fi # test -n "$CONFIG_FILES" 12785 12786# Set up the scripts for CONFIG_HEADERS section. 12787# No need to generate them if there are no CONFIG_HEADERS. 12788# This happens for instance with './config.status Makefile'. 12789if test -n "$CONFIG_HEADERS"; then 12790cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12791BEGIN { 12792_ACEOF 12793 12794# Transform confdefs.h into an awk script 'defines.awk', embedded as 12795# here-document in config.status, that substitutes the proper values into 12796# config.h.in to produce config.h. 12797 12798# Create a delimiter string that does not exist in confdefs.h, to ease 12799# handling of long lines. 12800ac_delim='%!_!# ' 12801for ac_last_try in false false :; do 12802 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12803 if test -z "$ac_tt"; then 12804 break 12805 elif $ac_last_try; then 12806 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12807 else 12808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12809 fi 12810done 12811 12812# For the awk script, D is an array of macro values keyed by name, 12813# likewise P contains macro parameters if any. Preserve backslash 12814# newline sequences. 12815 12816ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12817sed -n ' 12818s/.\{148\}/&'"$ac_delim"'/g 12819t rset 12820:rset 12821s/^[ ]*#[ ]*define[ ][ ]*/ / 12822t def 12823d 12824:def 12825s/\\$// 12826t bsnl 12827s/["\\]/\\&/g 12828s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12829D["\1"]=" \3"/p 12830s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12831d 12832:bsnl 12833s/["\\]/\\&/g 12834s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12835D["\1"]=" \3\\\\\\n"\\/p 12836t cont 12837s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12838t cont 12839d 12840:cont 12841n 12842s/.\{148\}/&'"$ac_delim"'/g 12843t clear 12844:clear 12845s/\\$// 12846t bsnlc 12847s/["\\]/\\&/g; s/^/"/; s/$/"/p 12848d 12849:bsnlc 12850s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12851b cont 12852' <confdefs.h | sed ' 12853s/'"$ac_delim"'/"\\\ 12854"/g' >>$CONFIG_STATUS || ac_write_fail=1 12855 12856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12857 for (key in D) D_is_set[key] = 1 12858 FS = "" 12859} 12860/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12861 line = \$ 0 12862 split(line, arg, " ") 12863 if (arg[1] == "#") { 12864 defundef = arg[2] 12865 mac1 = arg[3] 12866 } else { 12867 defundef = substr(arg[1], 2) 12868 mac1 = arg[2] 12869 } 12870 split(mac1, mac2, "(") #) 12871 macro = mac2[1] 12872 prefix = substr(line, 1, index(line, defundef) - 1) 12873 if (D_is_set[macro]) { 12874 # Preserve the white space surrounding the "#". 12875 print prefix "define", macro P[macro] D[macro] 12876 next 12877 } else { 12878 # Replace #undef with comments. This is necessary, for example, 12879 # in the case of _POSIX_SOURCE, which is predefined and required 12880 # on some systems where configure will not decide to define it. 12881 if (defundef == "undef") { 12882 print "/*", prefix defundef, macro, "*/" 12883 next 12884 } 12885 } 12886} 12887{ print } 12888_ACAWK 12889_ACEOF 12890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12891 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12892fi # test -n "$CONFIG_HEADERS" 12893 12894 12895eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12896shift 12897for ac_tag 12898do 12899 case $ac_tag in 12900 :[FHLC]) ac_mode=$ac_tag; continue;; 12901 esac 12902 case $ac_mode$ac_tag in 12903 :[FHL]*:*);; 12904 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12905 :[FH]-) ac_tag=-:-;; 12906 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12907 esac 12908 ac_save_IFS=$IFS 12909 IFS=: 12910 set x $ac_tag 12911 IFS=$ac_save_IFS 12912 shift 12913 ac_file=$1 12914 shift 12915 12916 case $ac_mode in 12917 :L) ac_source=$1;; 12918 :[FH]) 12919 ac_file_inputs= 12920 for ac_f 12921 do 12922 case $ac_f in 12923 -) ac_f="$ac_tmp/stdin";; 12924 *) # Look for the file first in the build tree, then in the source tree 12925 # (if the path is not absolute). The absolute path cannot be DOS-style, 12926 # because $ac_f cannot contain ':'. 12927 test -f "$ac_f" || 12928 case $ac_f in 12929 [\\/$]*) false;; 12930 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12931 esac || 12932 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12933 esac 12934 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12935 as_fn_append ac_file_inputs " '$ac_f'" 12936 done 12937 12938 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12939 # use $as_me), people would be surprised to read: 12940 # /* config.h. Generated by config.status. */ 12941 configure_input='Generated from '` 12942 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12943 `' by configure.' 12944 if test x"$ac_file" != x-; then 12945 configure_input="$ac_file. $configure_input" 12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12947printf "%s\n" "$as_me: creating $ac_file" >&6;} 12948 fi 12949 # Neutralize special characters interpreted by sed in replacement strings. 12950 case $configure_input in #( 12951 *\&* | *\|* | *\\* ) 12952 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12953 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12954 *) ac_sed_conf_input=$configure_input;; 12955 esac 12956 12957 case $ac_tag in 12958 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12960 esac 12961 ;; 12962 esac 12963 12964 ac_dir=`$as_dirname -- "$ac_file" || 12965$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12966 X"$ac_file" : 'X\(//\)[^/]' \| \ 12967 X"$ac_file" : 'X\(//\)$' \| \ 12968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12969printf "%s\n" X"$ac_file" | 12970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12971 s//\1/ 12972 q 12973 } 12974 /^X\(\/\/\)[^/].*/{ 12975 s//\1/ 12976 q 12977 } 12978 /^X\(\/\/\)$/{ 12979 s//\1/ 12980 q 12981 } 12982 /^X\(\/\).*/{ 12983 s//\1/ 12984 q 12985 } 12986 s/.*/./; q'` 12987 as_dir="$ac_dir"; as_fn_mkdir_p 12988 ac_builddir=. 12989 12990case "$ac_dir" in 12991.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12992*) 12993 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12994 # A ".." for each directory in $ac_dir_suffix. 12995 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12996 case $ac_top_builddir_sub in 12997 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12998 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12999 esac ;; 13000esac 13001ac_abs_top_builddir=$ac_pwd 13002ac_abs_builddir=$ac_pwd$ac_dir_suffix 13003# for backward compatibility: 13004ac_top_builddir=$ac_top_build_prefix 13005 13006case $srcdir in 13007 .) # We are building in place. 13008 ac_srcdir=. 13009 ac_top_srcdir=$ac_top_builddir_sub 13010 ac_abs_top_srcdir=$ac_pwd ;; 13011 [\\/]* | ?:[\\/]* ) # Absolute name. 13012 ac_srcdir=$srcdir$ac_dir_suffix; 13013 ac_top_srcdir=$srcdir 13014 ac_abs_top_srcdir=$srcdir ;; 13015 *) # Relative name. 13016 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13017 ac_top_srcdir=$ac_top_build_prefix$srcdir 13018 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13019esac 13020ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13021 13022 13023 case $ac_mode in 13024 :F) 13025 # 13026 # CONFIG_FILE 13027 # 13028 13029 case $INSTALL in 13030 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13031 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13032 esac 13033 ac_MKDIR_P=$MKDIR_P 13034 case $MKDIR_P in 13035 [\\/$]* | ?:[\\/]* ) ;; 13036 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13037 esac 13038_ACEOF 13039 13040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13041# If the template does not know about datarootdir, expand it. 13042# FIXME: This hack should be removed a few years after 2.60. 13043ac_datarootdir_hack=; ac_datarootdir_seen= 13044ac_sed_dataroot=' 13045/datarootdir/ { 13046 p 13047 q 13048} 13049/@datadir@/p 13050/@docdir@/p 13051/@infodir@/p 13052/@localedir@/p 13053/@mandir@/p' 13054case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13055*datarootdir*) ac_datarootdir_seen=yes;; 13056*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13058printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13059_ACEOF 13060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13061 ac_datarootdir_hack=' 13062 s&@datadir@&$datadir&g 13063 s&@docdir@&$docdir&g 13064 s&@infodir@&$infodir&g 13065 s&@localedir@&$localedir&g 13066 s&@mandir@&$mandir&g 13067 s&\\\${datarootdir}&$datarootdir&g' ;; 13068esac 13069_ACEOF 13070 13071# Neutralize VPATH when '$srcdir' = '.'. 13072# Shell code in configure.ac might set extrasub. 13073# FIXME: do we really want to maintain this feature? 13074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13075ac_sed_extra="$ac_vpsub 13076$extrasub 13077_ACEOF 13078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13079:t 13080/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13081s|@configure_input@|$ac_sed_conf_input|;t t 13082s&@top_builddir@&$ac_top_builddir_sub&;t t 13083s&@top_build_prefix@&$ac_top_build_prefix&;t t 13084s&@srcdir@&$ac_srcdir&;t t 13085s&@abs_srcdir@&$ac_abs_srcdir&;t t 13086s&@top_srcdir@&$ac_top_srcdir&;t t 13087s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13088s&@builddir@&$ac_builddir&;t t 13089s&@abs_builddir@&$ac_abs_builddir&;t t 13090s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13091s&@INSTALL@&$ac_INSTALL&;t t 13092s&@MKDIR_P@&$ac_MKDIR_P&;t t 13093$ac_datarootdir_hack 13094" 13095eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13096 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13097 13098test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13099 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13101 "$ac_tmp/out"`; test -z "$ac_out"; } && 13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13103which seems to be undefined. Please make sure it is defined" >&5 13104printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13105which seems to be undefined. Please make sure it is defined" >&2;} 13106 13107 rm -f "$ac_tmp/stdin" 13108 case $ac_file in 13109 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13110 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13111 esac \ 13112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13113 ;; 13114 :H) 13115 # 13116 # CONFIG_HEADER 13117 # 13118 if test x"$ac_file" != x-; then 13119 { 13120 printf "%s\n" "/* $configure_input */" >&1 \ 13121 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13122 } >"$ac_tmp/config.h" \ 13123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13124 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13126printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13127 else 13128 rm -f "$ac_file" 13129 mv "$ac_tmp/config.h" "$ac_file" \ 13130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13131 fi 13132 else 13133 printf "%s\n" "/* $configure_input */" >&1 \ 13134 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13135 || as_fn_error $? "could not create -" "$LINENO" 5 13136 fi 13137# Compute "$ac_file"'s index in $config_headers. 13138_am_arg="$ac_file" 13139_am_stamp_count=1 13140for _am_header in $config_headers :; do 13141 case $_am_header in 13142 $_am_arg | $_am_arg:* ) 13143 break ;; 13144 * ) 13145 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13146 esac 13147done 13148echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13149$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13150 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13151 X"$_am_arg" : 'X\(//\)$' \| \ 13152 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13153printf "%s\n" X"$_am_arg" | 13154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13155 s//\1/ 13156 q 13157 } 13158 /^X\(\/\/\)[^/].*/{ 13159 s//\1/ 13160 q 13161 } 13162 /^X\(\/\/\)$/{ 13163 s//\1/ 13164 q 13165 } 13166 /^X\(\/\).*/{ 13167 s//\1/ 13168 q 13169 } 13170 s/.*/./; q'`/stamp-h$_am_stamp_count 13171 ;; 13172 13173 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13174printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13175 ;; 13176 esac 13177 13178 13179 case $ac_file$ac_mode in 13180 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13181 # Older Autoconf quotes --file arguments for eval, but not when files 13182 # are listed without --file. Let's play safe and only enable the eval 13183 # if we detect the quoting. 13184 # TODO: see whether this extra hack can be removed once we start 13185 # requiring Autoconf 2.70 or later. 13186 case $CONFIG_FILES in #( 13187 *\'*) : 13188 eval set x "$CONFIG_FILES" ;; #( 13189 *) : 13190 set x $CONFIG_FILES ;; #( 13191 *) : 13192 ;; 13193esac 13194 shift 13195 # Used to flag and report bootstrapping failures. 13196 am_rc=0 13197 for am_mf 13198 do 13199 # Strip MF so we end up with the name of the file. 13200 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13201 # Check whether this is an Automake generated Makefile which includes 13202 # dependency-tracking related rules and includes. 13203 # Grep'ing the whole file directly is not great: AIX grep has a line 13204 # limit of 2048, but all sed's we know have understand at least 4000. 13205 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13206 || continue 13207 am_dirpart=`$as_dirname -- "$am_mf" || 13208$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13209 X"$am_mf" : 'X\(//\)[^/]' \| \ 13210 X"$am_mf" : 'X\(//\)$' \| \ 13211 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13212printf "%s\n" X"$am_mf" | 13213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13214 s//\1/ 13215 q 13216 } 13217 /^X\(\/\/\)[^/].*/{ 13218 s//\1/ 13219 q 13220 } 13221 /^X\(\/\/\)$/{ 13222 s//\1/ 13223 q 13224 } 13225 /^X\(\/\).*/{ 13226 s//\1/ 13227 q 13228 } 13229 s/.*/./; q'` 13230 am_filepart=`$as_basename -- "$am_mf" || 13231$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13232 X"$am_mf" : 'X\(//\)$' \| \ 13233 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13234printf "%s\n" X/"$am_mf" | 13235 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13236 s//\1/ 13237 q 13238 } 13239 /^X\/\(\/\/\)$/{ 13240 s//\1/ 13241 q 13242 } 13243 /^X\/\(\/\).*/{ 13244 s//\1/ 13245 q 13246 } 13247 s/.*/./; q'` 13248 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13249 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13250 | $MAKE -f - am--depfiles" >&5 13251 (cd "$am_dirpart" \ 13252 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13253 | $MAKE -f - am--depfiles) >&5 2>&5 13254 ac_status=$? 13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13256 (exit $ac_status); } || am_rc=$? 13257 done 13258 if test $am_rc -ne 0; then 13259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13260printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13261as_fn_error $? "Something went wrong bootstrapping makefile fragments 13262 for automatic dependency tracking. If GNU make was not used, consider 13263 re-running the configure script with MAKE=\"gmake\" (or whatever is 13264 necessary). You can also try re-running configure with the 13265 '--disable-dependency-tracking' option to at least be able to build 13266 the package (albeit without support for automatic dependency tracking). 13267See 'config.log' for more details" "$LINENO" 5; } 13268 fi 13269 { am_dirpart=; unset am_dirpart;} 13270 { am_filepart=; unset am_filepart;} 13271 { am_mf=; unset am_mf;} 13272 { am_rc=; unset am_rc;} 13273 rm -f conftest-deps.mk 13274} 13275 ;; 13276 13277 esac 13278done # for ac_tag 13279 13280 13281as_fn_exit 0 13282_ACEOF 13283ac_clean_files=$ac_clean_files_save 13284 13285test $ac_write_fail = 0 || 13286 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13287 13288 13289# configure is writing to config.log, and then calls config.status. 13290# config.status does its own redirection, appending to config.log. 13291# Unfortunately, on DOS this fails, as config.log is still kept open 13292# by configure, so config.status won't be able to write to it; its 13293# output is simply discarded. So we exec the FD to /dev/null, 13294# effectively closing config.log, so it can be properly (re)opened and 13295# appended to by config.status. When coming back to configure, we 13296# need to make the FD available again. 13297if test "$no_create" != yes; then 13298 ac_cs_success=: 13299 ac_config_status_args= 13300 test "$silent" = yes && 13301 ac_config_status_args="$ac_config_status_args --quiet" 13302 exec 5>/dev/null 13303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13304 exec 5>>config.log 13305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13306 # would make configure fail if this is the last instruction. 13307 $ac_cs_success || as_fn_exit 1 13308fi 13309if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13311printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13312fi 13313 13314 13315